Agent skill

Specify Factory

by rsmdt in rsmdt/the-startup

Decompose a multi-feature or multi-component specification into factory-consumable artifacts.

MITAuto-check passedAgent Workflows

Install Specify Factory

skills CLI
$ npx skills add rsmdt/the-startup --skill specify-factory -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rsmdt/the-startup specify-factory --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rsmdt/the-startup.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/start/skills/specify-factory .claude/skills/specify-factory && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
specify-factory
GitHub stars
557
Token cost
~2.1k tokens
SKILL.md length
985 words
Files
16
Skills in repo
27
Repo updated
First seen
Licence
MIT

At a glance

Decompose a multi-feature or multi-component specification into factory-consumable artifacts.

  • Works in 6 steps: Initialize → Decompose into Units → Generate Scenarios and E2E Stubs → …
  • Agent Workflows work in your project
  • SKILL.md covers Persona, Interface, Constraints and Reference Materials, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Specify Factory is an agent skill from rsmdt/the-startup. 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.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 22 other files (for example `evals/evals.json`, `evals/fixtures/spec-missing-sdd/requirements.md` and `evals/fixtures/spec-with-both/requirements.md`).

It sits in Agent Workflows. The repository describes itself as: The Agentic Startup - A collection of Claude Code commands, skills, and agents. The licence is MIT.

When your agent uses it

  • Agent Workflows work in your project

Example prompts

  • “/specify-factory”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Initialize
  2. Decompose into Units
  3. Generate Scenarios and E2E Stubs
  4. Assemble Manifest
  5. Validate
  6. Present Status

What it can do on your machine

Read from SKILL.md and the folder at commit 88d447c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Specify Factory loads about 2.1k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 985 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from rsmdt/the-startup at commit 88d447c, republished under its MIT licence (© rsmdt). 985 words, ~2,120 tokens.

Download SKILL.mdSave it as .claude/skills/specify-factory/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
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)

Persona

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

Interface

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 }

Constraints

Always:

  • Attempt to read both requirements.md and solution.md before decomposing. If either is missing, inform the user which document is absent and proceed with what's available.
  • Read the project instructions file (CLAUDE.md, AGENTS.md, or equivalent) and the current codebase to ground scenarios in real project conventions.
  • Each unit must be self-contained: goal + requirements + constraints. A single code agent must be able to implement it.
  • Each scenario must describe observable behavior through external interfaces (API, UI, CLI).
  • Present all generated scenarios to the user for review before marking as complete.
  • Ensure every requirement in requirements.md maps to at least one unit.
  • Ensure every unit has at least one scenario.
  • Use template files for consistent formatting.
  • Write units to specDirectory/units/{id}.md.
  • Write scenarios to specDirectory/scenarios/{unit-id}/{scenario-name}.md.
  • Write manifest to specDirectory/manifest.md.

Never:

  • Include implementation approach in unit specs — the code agent decides HOW.
  • Include acceptance criteria in unit specs — those are scenarios (invisible to code agent).
  • Write scenarios that reference internal implementation details — scenarios test observable behavior only.
  • Create units that depend on each other circularly.
  • Proceed past scenario generation without user review.
  • Embed unit IDs in stub file paths, test file names, or test function names. Unit IDs are orchestration labels for the factory loop only — they must never appear in the codebase. Name files after the feature/component under test (e.g. test_audit_logger.py, not test_al1_audit.py).

Reference Materials

Templates:

  • Unit Template — Unit spec template, write to specDirectory/units/{id}.md
  • Scenario Template — Scenario template, write to specDirectory/scenarios/{unit-id}/{name}.md
  • E2E Stubs Template — E2E test stub template, write to specDirectory/scenarios/{unit-id}/e2e-stubs.md
  • Manifest Template — Manifest template, write to specDirectory/manifest.md

References:

Examples:

Workflow

1. Initialize

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.

2. Decompose into Units

Read reference/decomposition.md for decomposition principles.

Break the solution into factory-sized units:

  • Each unit is atomic — one code agent can implement it
  • Each unit has a clear goal, focused requirements, and explicit constraints
  • Dependencies between units are declared, not implicit
  • Unit IDs are short alphanumeric (dm1, ve1, rl1) — position-independent

Write each unit spec using templates/unit.md to specDirectory/units/{id}.md.

Present unit decomposition to user:

  • Unit list with IDs, titles, dependencies
  • Coverage matrix: which requirements map to which units
  • Dependency graph

Ask the user to choose between Approve units, Adjust decomposition, or Add/remove units.

3. Generate Scenarios and E2E Stubs

Read reference/scenario-guide.md for scenario authorship guidance.

For each unit, generate holdout scenarios:

  • Read the unit spec for requirements
  • Read the codebase for actual endpoints, data models, conventions
  • Write scenarios that test observable behavior through external interfaces
  • Assign priorities: P0 (critical path), P1 (important), P2 (edge case)
  • Each scenario runs through the API/UI, not through internal code

Write each scenario using templates/scenario.md to specDirectory/scenarios/{unit-id}/{name}.md.

Show full SKILL.md (376 more words)Show less
3a. Generate E2E Test Stubs

For each unit, generate an E2E test stub file that the evaluation agent will use during the factory loop:

  1. Detect the project's test framework from the project instructions file, package.json, or project structure.
  2. For each scenario in the unit, write an executable test stub:
    • Test name derived from scenario name (match project naming conventions)
    • Test body asserts the scenario's expected outcomes through the external interface
    • Use the project's assertion library and HTTP client patterns
    • Mark all tests as pending/skipped (they run during evaluation, not during specification)
  3. Write the aggregated stubs to specDirectory/scenarios/{unit-id}/e2e-stubs.md.

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:

  • Scenarios grouped by unit
  • E2E test stubs shown alongside their scenarios
  • Coverage: which unit requirements are tested by which scenarios
  • Gaps: any requirements without scenario coverage

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.

4. Assemble Manifest

Build the dependency graph from unit declarations. Resolve execution groups via topological sort:

  • Group 1: units with no dependencies (can run in parallel)
  • Group 2: units whose dependencies are all in Group 1 (can run in parallel)
  • etc.

Write manifest using templates/manifest.md to specDirectory/manifest.md.

Present manifest to user:

  • Execution order with groups
  • Threshold and max_iterations settings
  • Total units and scenario counts

Ask the user to choose between Approve manifest, Adjust execution order, or Change settings.

5. Validate

Read validation.md and run completeness checks:

Coverage checks:

  • Every requirement maps to at least one unit
  • Every unit has at least one scenario
  • Every scenario tests observable behavior (no internal implementation references)

Structural checks:

  • No circular dependencies between units
  • All dependency targets exist
  • Execution groups are correctly computed from dependency graph
  • Unit IDs are unique

Format checks:

  • Unit specs follow template structure
  • Scenarios follow template structure
  • Manifest YAML frontmatter is valid
6. Present Status

Read reference/output-format.md and format status report. Ask the user to choose between Finalize, Revisit units, Revisit scenarios, or Adjust manifest.

© rsmdt, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files in plugins/start/skills/specify-factory of rsmdt/the-startup.

  • SKILL.md
  • evals/evals.json
  • evals/fixtures/spec-missing-sdd/requirements.md
  • evals/fixtures/spec-with-both/requirements.md
  • evals/fixtures/spec-with-both/solution.md
  • examples/manifest-example.md
  • examples/scenario-example.md
  • examples/unit-example.md
  • reference/decomposition.md
  • reference/output-format.md
  • reference/scenario-guide.md
  • templates/e2e-stubs.md
  • templates/manifest.md
  • templates/scenario.md
  • … and 2 more

Open the folder on GitHubat commit 88d447c

Compare with similar skills

Specify Factory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Specify Factory compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Specify Factory this skillrsmdt/the-startup557—~2.1kAutomated safety check: PassMIT
Diagnosing Superpowers Sessionsobra/superpowers297k3 repos~1.7kAutomated safety check: PassMIT
Grillingpietheinstrengholt/rssmonster56431 repos~510Automated safety check: PassMIT
CodeGraph Agent Evalcolbymchenry/codegraph74k—~950Automated safety check: PassMIT
Improvefossasia/eventyay-interpretation1.6k10 repos~3.7kAutomated safety check: WarnMIT
Kayba Stage 1 API Analysiskayba-ai/agentic-context-engine2.6k—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Investigates a session where Superpowers went wrong, reads the transcripts on disk and produces an evidence-cited report, optionally prepared as a bug report for the maintainers.

    297k GitHub starsUsed in 3 repos~1.7k tokens
    Agent WorkflowsAuto-check passed
  • Grilling

    pietheinstrengholt/rssmonster

    Grill the user relentlessly about a plan, decision, or idea.

    564 GitHub starsUsed in 31 repos~510 tokens
    Agent WorkflowsAuto-check passed
  • CodeGraph Agent Eval

    colbymchenry/codegraph

    Benchmarks how much CodeGraph helps a coding agent on a real repository, comparing runs with and without it for a chosen local or published version.

    74k GitHub stars~950 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Improve

    fossasia/eventyay-interpretation

    Survey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute.

    1.6k GitHub starsUsed in 10 repos~3.7k tokens
    Agent WorkflowsAuto-check: warnings
  • Kayba Stage 1 API Analysis

    kayba-ai/agentic-context-engine

    Fetch pre-computed insights from the Kayba API and build a structured summary.

    2.6k GitHub stars~1.1k tokensUpdated 15 days ago
    Agent WorkflowsAuto-check passed
  • Agent QA Authoring

    vostride/agent-qa

    A skill your agent uses when creating, editing, validating, or running agent-qa tests, suites, or hooks.

    903 GitHub stars~569 tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed

More from rsmdt/the-startup

All 27 skills in this repo
  • Analyze

    rsmdt/the-startup

    Deep-dive codebase analysis that explains how things actually work — business rules, architecture patterns, auth flows, data models, integrations, and performance hotspots.

    557 GitHub stars~1.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Implement

    rsmdt/the-startup

    Implementation entry point. An agent skill from rsmdt/the-startup.

    557 GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Implement Factory

    rsmdt/the-startup

    Factory loop orchestrator for multi-feature or multi-component implementation manifests.

    557 GitHub stars~3.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Agentic Patterns

    rsmdt/the-startup

    Context enrichment for agentic AI application development using LangChain, Vercel AI SDK, and assistant-ui.

    557 GitHub stars~501 tokensUpdated 2 mo ago
    Auto-check passed
  • API Contract Design

    rsmdt/the-startup

    REST and GraphQL API design patterns, OpenAPI/Swagger specifications, versioning strategies, and authentication patterns.

    557 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Architecture Selection

    rsmdt/the-startup

    System architecture patterns including monolith, microservices, event-driven, and serverless, with C4 modeling, scalability strategies, and technology selection criteria.

    557 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Specify Factory

What does Specify Factory do?

Decompose a multi-feature or multi-component specification into factory-consumable artifacts. Specify Factory is an agent skill from rsmdt/the-startup. Decompose a multi-feature or multi-component specification into factory-consumable artifacts.

When should I use Specify Factory?

Specify Factory fits situations like: agent Workflows work in your project.

How do I install Specify Factory in Claude Code?

Run `npx skills add rsmdt/the-startup --skill specify-factory -a claude-code`. Or copy the skill folder (plugins/start/skills/specify-factory in rsmdt/the-startup) into .claude/skills/specify-factory in your project. Claude Code loads it when a task matches its description.

How do I install Specify Factory in Codex?

Run `npx skills add rsmdt/the-startup --skill specify-factory -a codex`. Or copy the skill folder (plugins/start/skills/specify-factory in rsmdt/the-startup) into .agents/skills/specify-factory in your project. Codex loads it when a task matches its description.

Can I use Specify Factory in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rsmdt/the-startup --skill specify-factory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/specify-factory, .gemini/skills/specify-factory, .github/skills/specify-factory and .opencode/skills/specify-factory in your project.

What does Specify Factory need to run?

SKILL.md names no scripts, command-line tools or credentials: Specify Factory is instructions for the agent only.

Does Specify Factory access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Specify Factory safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Specify Factory use?

Specify Factory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Specify Factory use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Specify Factory?

Skills that share tags, products or a category with Specify Factory: Diagnosing Superpowers Sessions (obra/superpowers, 297k stars), Grilling (pietheinstrengholt/rssmonster, 564 stars), CodeGraph Agent Eval (colbymchenry/codegraph, 74k stars) and Improve (fossasia/eventyay-interpretation, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Specify Factory?

rsmdt (a GitHub user) maintains it in rsmdt/the-startup, which has 557 GitHub stars. The repository holds 27 skills in this directory. The repository was last updated on August 3, 2026.

Source: rsmdt/the-startup on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.