/spec-forge:decompose runs instead · from spec-forge
Lightweight project decomposition skill that interviews users to determine if a project should be treated as a single feature or split into multiple sub-features, generating a dependency-ordered manifest for multi-split projects.
This skill never runs in Claude Code
It ships in spec-forge at skills/, but /spec-forge:decompose (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Analyze project scope and determine whether to treat it as a single feature or split into multiple sub-features before entering the spec chain.
Scan the project to understand what exists:
@../shared/project-context.md
Execute PC.1 (Project Discovery) and PC.3 (Project Profile). Prefer the fast path — resolve <sf_scripts> (see @../shared/scripts.md) and run python3 "<sf_scripts>/sf-scan.py" --root "<project_root>", which returns the project structure, languages, frameworks, DB/auth signals, and the existing-doc inventory in one pass. Fall back to the manual PC.1/PC.3 scan only if python3 is unavailable or the script is not found — switch to the fallback silently.
ideas/{feature-name}/draft.md exists — if found, read it for context on scopeThe project profile informs the decomposition: a monorepo with multiple apps has different split criteria than a single-purpose API. Summarize what you learned in 2-3 sentences. Do not present this to the user — it is internal context for the interview.
@../shared/user-centric-ux.md
Use AskUserQuestion to understand project boundaries. Ask only what you cannot already infer from the scan and the user's description, adapting based on answers — there is no fixed number of rounds. Lead with user goals and everyday scenarios (avoid framing early questions around internal modules, schemas, or infrastructure unless the user already speaks in those terms).
Round 1 — The Shape:
Round 2 — Boundaries:
Round 3+ — Clarification (if needed):
Do NOT force answers. If the user says "I'm not sure", use your judgment based on what you know.
Based on the interview, determine: single or multi-split.
Split heuristics:
| Signal | Verdict |
|---|---|
| Multiple distinct systems (backend + frontend + pipeline) | Multi-split |
| Repeated "and also..." in scope description | Multi-split |
| No single clear purpose — hard to name in one phrase | Multi-split |
| Materially more scope than one Tech Design + Feature Specs can cohesively cover | Multi-split |
| Single cohesive system with tightly coupled components | Single |
| Fully specifiable in a few paragraphs | Single |
| No architectural decisions needed at the boundary level | Single |
| Too unclear even after interview — need PRD to discover structure | Single (suggest running /spec-forge:prd first to clarify scope) |
Good split characteristics:
Rationale requirement: After reaching a verdict, give a one-to-two-sentence justification that names the deciding factor (the coupling, scope, or boundary that settled it) — do not present the verdict without justification. Expand to the full ✓/✗ Split Rationale block (see Step 4a / 4b) only when the verdict is genuinely close, or when the user pushes back and wants to see the reasoning; for a clear-cut call the short justification is enough.
If the project is a single feature:
Split Rationale:
Verdict: Single feature
Signals that fired (Single):
✓ [Signal text from heuristics table] — [one sentence of project-specific evidence]
✓ [Signal text] — [evidence]
Signals evaluated but not triggered (Multi-split):
✗ [Signal text] — [why it does not apply to this project]
✗ [Signal text] — [why it does not apply]
Why not Multi-split: [1-2 sentences explaining why splitting would be premature,
over-engineered, or harmful for this specific project — reference scope, coupling,
team size, or other concrete factors from the interview.]
If the project should be split:
Split Rationale:
Verdict: Multi-split ({N} sub-features)
Signals that fired (Multi-split):
✓ [Signal text from heuristics table] — [one sentence of project-specific evidence]
✓ [Signal text] — [evidence]
Signals evaluated but not triggered (Single):
✗ [Signal text] — [why it does not apply to this project]
✗ [Signal text] — [why it does not apply]
Why not Single: [1-2 sentences explaining what makes this project structurally
too broad or heterogeneous to treat as one feature — e.g., "The auth subsystem
and payment pipeline share no code paths and require independent deployment cycles."]
Boundary rationale:
{sub-feature-1} | {sub-feature-2}: [Why this is a clean cut point — what the
interface between them is and why each side is independently specifiable]
[Add one line per boundary if N > 2]
docs/project-{name}.mdManifest format:
The file MUST start with a FEATURE_MANIFEST comment block, followed by human-readable content:
<!-- FEATURE_MANIFEST
{sub-feature-1}
{sub-feature-2}
{sub-feature-3}
END_MANIFEST -->
# Project: {name}
## Sub-Features
### 1. {sub-feature-1}
- **Description**: {what this sub-feature covers}
- **Dependencies**: {none, or list of sub-feature names it depends on}
- **Scope**: {brief scope summary}
### 2. {sub-feature-2}
- **Description**: ...
- **Dependencies**: ...
- **Scope**: ...
## Execution Order
{Ordered list with dependency and parallelism notes}
## Cross-Cutting Concerns
{Shared data models, conventions, infrastructure, or other things that span multiple sub-features}
FEATURE_MANIFEST rules:
<!-- FEATURE_MANIFEST comment. The spec-forge chain parser reads from the top and will fail to recognize the manifest if anything precedes it.user-auth, payment-processing)docs/ — each sub-feature gets its own docs/{name}/srs.md and docs/{name}/tech-design.mdDisplay the result:
If single:
Scope analysis complete: {name}
Verdict: Single feature
Next: Running spec chain (SRS → Tech Design → Review)
If multi-split:
Scope analysis complete: {name}
Verdict: {N} sub-features
Manifest: docs/project-{name}.md
Sub-features:
1. {sub-feature-1} — {one-line description}
2. {sub-feature-2} — {one-line description}
...
Next: Run the full chain for all sub-features:
/spec-forge {name}
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/analyzeAnalyze a collection of documents to build a knowledge map, identify themes, find gaps, duplicates, conflicts, and staleness, then produce an organized analysis with improvement recommendations. Designed for document ecosystems (cross-repo docs, research collections, mixed-format doc repos) where the challenge is understanding the landscape, not auditing against code.
/auditAudit existing project documentation for quality, completeness, consistency, and code alignment. Scans docs against the actual codebase to find stale references, missing coverage, internal contradictions, and quality issues. Generates a structured findings report with severity levels and actionable fix recommendations. Works on any project with a docs/ directory.
/ideaUse when exploring a new idea before writing formal specifications. Guides users through iterative discovery, research, and critical analysis to crystallize vague ideas into validated requirement drafts. Includes anti-pseudo-requirement checks, competitive research, demand evidence gathering, and "What if we don't build this?" analysis. Supports pause/resume across sessions, stores ideas in the project's ideas/ directory, and graduates validated ideas into the spec-forge auto chain ([idea] → [decompose] → [prd] → srs → tech-design → review).
spec-forge@tercel-claude-plugins is listed by tercel/tercel-claude-plugins — review the source before installing
npx claudepluginhub tercel/tercel-claude-plugins --plugin spec-forgeOther plugins' skills for the same job