codebase-docs-search
Patterns for finding and using project documentation at runtime. Use this skill when you need to search for existing documentation, solutions, patterns, or learnings in a codebase before starting work. Don't use when you already know the file path, or when searching for code (use Grep/Glob directly).
What this skill does
# Codebase Documentation Search This skill provides patterns for discovering and leveraging project-specific documentation at runtime. Use it to find existing solutions, understand patterns, and avoid reinventing the wheel. ## When to Use This Skill Search codebase docs when: - Starting a new feature (check for existing patterns) - Debugging an issue (check for documented solutions) - Planning technical work (understand architecture decisions) - Before making architectural changes (review existing decisions) - When encountering unfamiliar code (find explanations) ## Standard Documentation Locations Search these locations in order of priority: ### High Priority (Project-Specific) | Location | Purpose | |----------|---------| | `CLAUDE.md` | AI-specific project instructions | | `AGENTS.md` | AI agent guidelines | | `projects/` | Project-specific docs | | `docs/` | General project documentation | | `docs/solutions/` | Documented problem solutions | | `docs/learnings/` | Captured learnings | ### Medium Priority (Context) | Location | Purpose | |----------|---------| | `README.md` | Project overview | | `docs/guides/` | How-to guides | | `docs/architecture/` | Architecture decisions | | `playbook/` | Workflow documentation | ### Lower Priority (Reference) | Location | Purpose | |----------|---------| | `*.md` files in root | Various documentation | | Code comments | Inline documentation | | Test files | Expected behaviors | ## Search Strategy ### Step 1: Glob for Documentation Files ```bash # Find all markdown files in standard locations Glob: docs/**/*.md Glob: **/README.md Glob: **/CLAUDE.md Glob: **/AGENTS.md ``` ### Step 2: Grep for Relevant Content ```bash # Search for keywords in documentation Grep: "keyword" in docs/ Grep: "error message" in docs/solutions/ Grep: "pattern name" in docs/ ``` ### Step 3: Read Relevant Files After finding matches, read the most relevant files to understand: - Existing solutions to similar problems - Architectural decisions and rationale - Patterns used in the codebase - Known gotchas or constraints ## YAML Frontmatter Search For learnings and solutions with YAML frontmatter, use targeted searches: ```yaml # Frontmatter schema for learnings --- title: "Brief descriptive title" date: YYYY-MM-DD trigger: [chat-session|project-completion|blocker-overcome] category: [performance|database|integration|workflow|debugging|design|generation|infrastructure] tags: [relevant, searchable, keywords] severity: [critical|high|medium|low] module: "affected_module_name" --- ``` ### Search by Category ```bash Grep: "category: performance" in docs/learnings/ Grep: "category: database" in docs/solutions/ Grep: "category: design" in docs/learnings/ Grep: "category: generation" in docs/learnings/ Grep: "category: infrastructure" in docs/learnings/ ``` ### Search by Tags ```bash Grep: "tags:.*authentication" in docs/ Grep: "tags:.*caching" in docs/learnings/ ``` ### Search by Module ```bash Grep: "module: user_service" in docs/ ``` ## Search Patterns by Context ### Before Starting a Feature 1. Search for similar features: `Grep: "feature-name" in docs/` 2. Check for architectural patterns: `Grep: "pattern" in docs/architecture/` 3. Look for related learnings: `Grep: "category:.*relevant-category" in docs/learnings/` ### When Debugging 1. Search for the error: `Grep: "error message" in docs/solutions/` 2. Check for known issues: `Grep: "symptom" in docs/learnings/` 3. Look for troubleshooting guides: `Glob: docs/**/troubleshoot*.md` ### Before Making Changes 1. Check for architecture decisions: `Grep: "component-name" in docs/architecture/` 2. Look for related decisions: `Grep: "decision" in docs/` 3. Review existing patterns: `Glob: docs/patterns/**/*.md` ## Handling Missing Documentation If documentation doesn't exist for your area: 1. **Note the gap** - This is valuable feedback 2. **Proceed with caution** - Make educated decisions 3. **Document as you go** - Create the docs you wish existed 4. **Capture learnings** - Use `/playbook:learnings` after completing work ## Integration with Playbook Commands This skill is automatically used by: - `/playbook:tech-plan` - Searches for architecture docs and existing patterns - `/playbook:work` - Searches for relevant learnings before starting tasks - `/playbook:debug` - Searches for existing solutions to similar problems ## Proactive Invocation This skill triggers as an internal check, not a user-facing suggestion: - When a command needs project context and hasn't searched `docs/` yet - Before starting any workflow command that benefits from prior learnings or architecture decisions - When encountering unfamiliar code patterns that might be documented No user prompt needed — search automatically as part of context gathering. ## Best Practices 1. **Search before creating** - Always check if documentation exists 2. **Use specific keywords** - More specific searches yield better results 3. **Check multiple locations** - Docs may be in unexpected places 4. **Read frontmatter** - YAML metadata helps filter relevant docs 5. **Note gaps** - Missing docs are opportunities to improve 6. **Keep docs updated** - Update docs when you find them outdated ## Example Workflow ```markdown # Before implementing user authentication: 1. Search for existing auth docs: Glob: docs/**/*auth*.md Grep: "authentication" in docs/ 2. Check for security patterns: Grep: "security" in docs/architecture/ 3. Look for related learnings: Grep: "category: security" in docs/learnings/ Grep: "tags:.*auth" in docs/solutions/ 4. Review findings and incorporate into planning ``` --- *Good documentation search prevents duplicate work and leverages institutional knowledge.*
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.