Claude-skill-registry doc-discovery
Loads feature docs, workflow docs, and invariants before planning any task. Use when starting complex work, changing multiple features, or when unsure about constraints. Essential first step for non-trivial changes.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/doc-discovery" ~/.claude/skills/majiayu000-claude-skill-registry-doc-discovery && rm -rf "$T"
manifest:
skills/data/doc-discovery/SKILL.mdsource content
Doc Discovery
Load only necessary documentation before planning. Understand feature landscape BEFORE coding.
When to Use
- Starting any task touching server actions, database, or AI
- Before creating a plan for non-trivial changes
- When uncertain about feature boundaries
- After user describes a bug or feature request
Process
- Identify Primary Feature: Read
→ find ownerdocs/features/FEATURE_INDEX.md - Map Coupling: Check "Couples with" entries → list secondary features
- Load Feature Docs: Read primary + coupled feature docs → extract invariants
- High-Risk Check: Auth/RLS? AI? Billing? Schema? Org-scoped? New Pages? → load specialized docs
- Workflow Impact: Read
→ identify affected journeysdocs/workflows/WORKFLOW_INDEX.md
High-Risk Areas — Required Doc Loading
| Area | Trigger | Load |
|---|---|---|
| AI Context Engine | Changes to RAG, embeddings, context | |
| Org-Scoped Content | New org-specific data, org filtering | |
| New Page Creation | Any new page or layout | |
| Auth/RLS | Permission changes, policy updates | |
| Billing | Credits, subscriptions, entitlements | |
| Schema | New tables, columns, migrations | Load relevant feature docs |
Output
## Doc Discovery Complete ### Primary Feature - **Name**: [feature-name] - **Risk**: [low/medium/high] ### Coupled Features | Feature | Coupling Type | |---------|--------------| | [name] | [data/API/UI] | ### Key Invariants 1. [Invariant from primary] 2. [Invariant from coupled] 3. [Invariant from coupled] ### High-Risk Areas - Auth/RLS: [yes/no] - AI/Prompts: [yes/no] - Billing: [yes/no] - Schema: [yes/no] ### Workflows Affected - [workflow]: Steps [X, Y, Z] ### Ready for Planning [Yes / No - missing: X]
Validation
Before proceeding:
- Primary feature identified and doc loaded
- All coupled features identified
- Invariants extracted (minimum 3)
- High-risk areas checked
- Workflow impact assessed
Related
- Examples: See reference/examples.md
- High-risk areas guide: See reference/high-risk-areas.md
- Next step:
/plan-lint