prompt-enricher
Phase 0.2 — Enriches the raw user prompt with discovered constraints, ambiguities, likely edge cases, and suggested scope boundaries. Runs after context-gatherer, before idea-explorer questions. Generates enriched-prompt.md in the state directory.
npx skills add majiayu000/claude-skill-registry --skill prompt-enricher --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Prompt Enricher Runs **automatically as Phase 0.2**, after context-gatherer and before `idea-explorer` questions. Purpose: transform the raw user prompt into a grounded, constraint-aware brief that prevents the spec from ignoring known realities of the codebase. ## Entry conditions - `context.md` must exist in `.claude/feature-state/{slug}/` (run context-gatherer first) - Generates `enriched-prompt.md` and saves to `.claude/feature-state/{slug}/` - Load if already exists (resume flow) ## Step 1: Detect constraints from codebase Read `context.md` and extract constraints relevant to the feature: - **Architectural constraints**: What patterns must be followed? (e.g., "All API routes use verifyAuthRequest") - **Data constraints**: What data model rules exist? (e.g., "soft delete only, never hard delete") - **Infrastructure constraints**: What infrastructure is confirmed vs. uncertain? (e.g., "Stripe webhook is not configured in production") - **Dependency constraints**: What libraries are already in use that shape the approach? ## Step 2: Identify ambiguities From the prompt + context, list decisions that have multiple valid interpretations: Examples: - "Use the existing checkout flo
- Entry conditions
- Step 1: Detect constraints from codebase
- Step 2: Identify ambiguities
- Step 3: Suggest likely edge cases by feature type
- Step 4: Suggest scope boundaries
- Step 5: Generate enriched-prompt.md
- Step 6: Inject into idea-explorer context
- Edge case injection by feature type detection
What does the prompt-enricher skill do?
Phase 0.2 — Enriches the raw user prompt with discovered constraints, ambiguities, likely edge cases, and suggested scope boundaries. Runs after context-gatherer, before idea-explorer questions. Generates enriched-prompt.md in the state directory.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill prompt-enricher --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
