ワンクリックで
specify-factory
// Decompose a multi-feature or multi-component specification into factory-consumable artifacts. Use this for high-complexity work — multiple features, three or more components, or parallel-eligible workstreams.
// Decompose a multi-feature or multi-component specification into factory-consumable artifacts. Use this for high-complexity work — multiple features, three or more components, or parallel-eligible workstreams.
Lightweight implementation orchestrator for low-complexity work — fixes, refactors, doc changes, or single-AC features that do not warrant a phase plan or factory decomposition.
Linear phase-loop orchestrator for single-feature implementation plans. Use for medium-complexity work where transparent human-in-the-loop phase review is preferred over factory automation.
Implementation entry point. Use to execute a completed specification. Auto-detects the decomposition tier (Direct, Incremental, or Factory) from spec artifacts and dispatches to the matching execution sub-skill.
Decompose a single-feature specification into a linear, phase-by-phase implementation plan. Use this for medium-complexity work — single feature, one or two components — where transparent human-in-the-loop phase review is preferred over factory automation.
Scaffold, status-check, and manage specification directories. Use when creating a new spec, reading spec status, transitioning between phases, or logging decisions on a spec in .start/specs/.
Create a comprehensive specification from a brief description. Runs requirements gathering, solution design, and decomposition — routing decomposition to one of three tiers based on a complexity classifier: Direct (no plan), Incremental (linear phase plan), or Factory (parallel units with holdout scenarios).
| name | specify-factory |
| description | Decompose a multi-feature or multi-component specification into factory-consumable artifacts. Use this for high-complexity work — multiple features, three or more components, or parallel-eligible workstreams. |
| user-invocable | false |
| argument-hint | spec ID to decompose (e.g., 002) |
Act as a decomposition specialist that transforms requirements and solution design into factory-consumable artifacts — unit specs, holdout scenarios, and an execution manifest.
Spec Target: $ARGUMENTS
Unit { id: string // short alphanumeric (dm1, ve1, rl1) title: string type: feature | fix | refactor dependencies: string[] // unit IDs this depends on }
Scenario { unit: string // unit ID name: string // kebab-case filename feature: string priority: P0 | P1 | P2 }
ManifestStatus { units: Unit[] scenarios: Scenario[] executionGroups: string[][] coverage: number // % of requirements with scenarios }
State { specDirectory = "" requirements = "" // path to requirements.md solution = "" // path to solution.md units: Unit[] scenarios: Scenario[] manifest: ManifestStatus }
Always:
Never:
test_audit_logger.py, not test_al1_audit.py).Templates:
specDirectory/units/{id}.mdspecDirectory/scenarios/{unit-id}/{name}.mdspecDirectory/scenarios/{unit-id}/e2e-stubs.mdspecDirectory/manifest.mdReferences:
Examples:
Read requirements.md and solution.md from specDirectory. Read the project instructions file for codebase context. Explore the codebase to understand existing patterns, test structure, and conventions.
Identify the solution's components, interfaces, and dependencies from the SDD. These inform unit boundaries.
Read reference/decomposition.md for decomposition principles.
Break the solution into factory-sized units:
Write each unit spec using templates/unit.md to specDirectory/units/{id}.md.
Present unit decomposition to user:
Ask the user to choose between Approve units, Adjust decomposition, or Add/remove units.
Read reference/scenario-guide.md for scenario authorship guidance.
For each unit, generate holdout scenarios:
Write each scenario using templates/scenario.md to specDirectory/scenarios/{unit-id}/{name}.md.
For each unit, generate an E2E test stub file that the evaluation agent will use during the factory loop:
Use templates/e2e-stubs.md for the stub file format.
If the test framework cannot be detected, skip E2E stub generation — the evaluation agent will fall back to writing tests from plain-English scenarios.
Present ALL generated scenarios and E2E stubs to user for review:
Ask the user to choose between Approve scenarios and stubs, Edit scenarios, Edit E2E stubs, Add missing scenarios, or Regenerate.
CRITICAL: User must approve scenarios before proceeding. The factory loop cannot run with unreviewed scenarios.
Build the dependency graph from unit declarations. Resolve execution groups via topological sort:
Write manifest using templates/manifest.md to specDirectory/manifest.md.
Present manifest to user:
Ask the user to choose between Approve manifest, Adjust execution order, or Change settings.
Read validation.md and run completeness checks:
Coverage checks:
Structural checks:
Format checks:
Read reference/output-format.md and format status report. Ask the user to choose between Finalize, Revisit units, Revisit scenarios, or Adjust manifest.