plugins/start/skills/specify-factory/SKILL.md
Decompose a specified feature into factory-consumable artifacts. Reads requirements.md and solution.md, then produces unit specs (units/*.md), holdout scenarios (scenarios/**/*.md), and a decomposition manifest (manifest.md). Replaces specify-plan for Dark Factory workflow.
npx skillsauth add rsmdt/the-startup specify-factoryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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:
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 AGENTS.md 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:
AskUserQuestion: Approve units | Adjust decomposition | 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:
AskUserQuestion: Approve scenarios and stubs | Edit scenarios | Edit E2E stubs | Add missing scenarios | 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:
AskUserQuestion: Approve manifest | Adjust execution order | Change settings
Read validation.md and run completeness checks:
Coverage checks:
Structural checks:
Format checks:
Read reference/output-format.md and format status report. AskUserQuestion: Finalize | Revisit units | Revisit scenarios | Adjust manifest
development
Vulnerability review, threat modeling, OWASP patterns, and secure coding assessment. Use when reviewing code security, designing secure systems, performing threat analysis, or validating security implementations.
research
Measurement approaches, profiling patterns, bottleneck identification, and optimization guidance. Use when diagnosing performance issues, establishing baselines, identifying bottlenecks, or planning for scale. Always measure before optimizing.
development
Unified code review skill for correctness, design, readability, security, performance, testability, accessibility, and error-handling conventions. Use when reviewing changes, enforcing quality standards, or identifying technical debt.
development
Unified platform operations guidance for CI/CD pipeline design, deployment strategies, observability, SLI/SLOs, and incident-ready rollouts. Use when building release workflows, production monitoring, or reliability controls.