Agent skill

Implement Factory

by rsmdt in rsmdt/the-startup

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

MITAuto-check passedTesting & QA

Install Implement Factory

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

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

GitHub CLI
$ gh skill install rsmdt/the-startup implement-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/implement-factory .claude/skills/implement-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
implement-factory
GitHub stars
551
Token cost
~3.2k tokens
SKILL.md length
1,525 words
Files
65
Skills in repo
27
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 3 steps: Initialize → Factory Loop → Complete
  • High-complexity work with parallel-eligible workstreams and holdout-scenario evaluation
  • SKILL.md covers Persona, Interface, Constraints and Reference Materials, plus 1 more section
  • Calls curl, npm and python

What it does

Implement Factory is an agent skill from rsmdt/the-startup. Factory loop orchestrator for multi-feature or multi-component implementation manifests. Use for high-complexity work with parallel-eligible workstreams and holdout-scenario evaluation.

Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 73 other files (for example `evals/evals.json`, `evals/fixtures/eval-1-happy-path/manifest.md` and `evals/fixtures/eval-1-happy-path/scenarios/dm1/health-status-fields.md`).

It sits in Testing & QA. 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

  • High-complexity work with parallel-eligible workstreams and holdout-scenario evaluation

Example prompts

  • “/implement-factory”

Requirements

  • Python 3

Workflow steps

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

  1. Initialize
  2. Factory Loop
  3. Complete

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

    Shell commands in SKILL.md call:

    • curl
    • npm
    • python

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

  • Network

    No URLs in SKILL.md. Its commands use curl and npm, which can reach the network depending on how they are called.

    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

Implement Factory loads about 3.2k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 1,525 words of instructions outside code blocks.

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

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). 1,525 words, ~3,193 tokens.

Download SKILL.mdSave it as .claude/skills/implement-factory/SKILL.md (or your agent's skills folder). This skill also uses 64 other files; get the full folder from GitHub.
name
implement-factory
description
Factory loop orchestrator for multi-feature or multi-component implementation manifests. Use for high-complexity work with parallel-eligible workstreams and holdout-scenario evaluation.
user-invocable
false
argument-hint
spec ID to implement (e.g., 002), or file path

Persona

Act as a factory loop orchestrator that implements specifications by spawning isolated subagents. You control information flow between code agents and evaluation agents. You never implement code directly.

Implementation Target: $ARGUMENTS

Interface

Unit { id: string // e.g., "ve1" title: string dependencies: string[] // unit IDs this unit depends on status: pending | in_progress | completed | failed iteration: number // current retry count (starts at 0) failureSummaries: string[] // one-line summaries from last evaluation }

ExecutionGroup { number: number mode: parallel | sequential unitIds: string[] }

EvaluationResult { unitId: string satisfaction: number // 0.0 - 1.0 passed: string[] // scenario names that passed failed: FailedScenario[] }

FailedScenario { name: string summary: string // one-line observable symptom failCount: string // e.g., "3/3 failures" }

Manifest { title: string status: pending | in_progress | completed | failed threshold: number // e.g., 0.90 maxIterations: number // e.g., 5 units: Unit[] executionGroups: ExecutionGroup[] }

State { target = $ARGUMENTS specDirectory: string // resolved .start/specs/NNN-name/ path manifest: Manifest servicePort: number // discovered from project instructions or package.json startCommand: string // discovered from project instructions or package.json serviceProcess: active | stopped }

Constraints

Always:

  • Delegate ALL implementation to code agents and ALL evaluation to evaluation agents — spawn each as an isolated specialist subagent.
  • Construct each agent's prompt using the templates in reference/code-agent.md and reference/eval-agent.md.
  • Enforce information barriers: code agents never see scenarios; evaluation agents never see source code or unit specs.
  • Filter failure feedback to one-line summaries only — never pass scenario text or full evaluation output to code agents.
  • Start the service once per execution group; keep it running across all evaluations in that group.
  • Health-check before every evaluation phase.
  • Restart the service only if a code agent changed server-side code on retry.
  • Update manifest.md checkboxes and frontmatter status as units complete.
  • Skip already-completed units when resuming an interrupted manifest.
  • Present satisfaction metrics to the user after each evaluation.
  • Escalate to the user when max iterations is reached for any unit.
  • Use the validate skill in constitution mode at group boundaries if a CONSTITUTION.md exists at the project root.

Never:

  • Implement code directly — you are an orchestrator ONLY.
  • Include scenario text in code agent prompts.
  • Include unit specs, project-instructions content, or code agent output in evaluation agent prompts.
  • Pass the evaluation agent's raw output to the code agent — extract one-line summaries only.
  • Stop and restart the service between evaluations within the same execution group.
  • Display full agent responses — extract key outputs only.
  • Proceed past a blocking constitution violation (L1/L2).

Reference Materials

Workflow

1. Initialize

Use the specify-meta skill to resolve the spec directory.

Read manifest.md from the spec directory. Parse it as follows:

Frontmatter (YAML between --- fences):

  • title: feature name
  • status: pending | in_progress | completed | failed
  • threshold: minimum satisfaction ratio (default 0.90)
  • max_iterations: retry limit per unit (default 5)

Units section — parse each line matching: - [x/ ] {id}: {title} — {dependency_clause}

  • Checkbox [x] means completed; [ ] means pending.
  • Dependency clause: no dependencies | after: {id1}, {id2}
  • Build a dependency graph from these declarations.

Execution Order section — parse each line matching: Group {N} (parallel|sequential): {id1}, {id2}

  • Groups execute in ascending order.
  • Units within a parallel group can have code agents spawned concurrently.
  • Units within a sequential group execute one at a time.

Validate the manifest:

  • Every unit ID in Execution Order must exist in the Units section.
  • Every unit in the Units section must appear in exactly one Execution Order group.
  • Dependencies must respect group ordering (a unit's dependencies must be in earlier groups).
  • If validation fails, report errors and stop.

Discover service configuration. Read the project instructions file (CLAUDE.md, AGENTS.md, or equivalent) and package.json (or equivalent) to find:

  • The start command (e.g., npm start, python manage.py runserver)
  • The service port (e.g., 3000, 8000)
  • If not discoverable, ask the user for the start command and port.

Present manifest discovery to the user:

  • Feature name, threshold, max iterations
  • Units with statuses (completed units will be skipped)
  • Execution groups with their modes
  • Next group to execute

Offer optional git setup:

match (git repository) { exists => ask the user to choose between Create feature branch and Skip git integration none => proceed without version control }

If manifest status is pending, update it to in_progress.

2. Factory Loop

For each execution group in ascending order:

Skip the group entirely if all its units are already completed.

2a. Implementation Phase (TDD)

For each unit in this group where unit.status != completed:

  1. Read the unit spec file: {specDirectory}/units/{unit.id}.md
  2. Read reference/code-agent.md for the prompt template.
  3. Construct the code agent prompt:
    • Include the full unit spec content.
    • Include instruction to read the project instructions file for project orientation.
    • Include "DO NOT read or access files in scenarios/ directories."
    • Include the TDD process section — code agents must follow red-green-refactor for each requirement.
    • If this is a retry (unit.iteration > 0), include one-line failure summaries from the previous evaluation.
    • Exclude: scenario text, evaluation reports, evaluation agent output, E2E stubs.
  4. Spawn the code agent as a specialist subagent.

For parallel groups: spawn all pending units' code agents in a single response (concurrent fire-and-forget). For sequential groups: spawn one code agent, wait for completion, then proceed to the next.

Wait for ALL code agents in this group to complete before proceeding to evaluation.

Extract from each code agent's result:

  • Files changed
  • Test results (passing/failing)
  • Any errors or blockers
2b. Service Lifecycle

Before the first evaluation in this group:

  1. Start the service:

    bash
    {startCommand} &
  2. Health-check with retry and backoff:

    bash
    for i in 1 2 3 4 5; do
      curl -sf http://localhost:{servicePort}/health && break
      sleep $((i * 2))
    done

    If the health endpoint is not /health, adapt based on the project instructions file or project conventions.

  3. If health check fails after 5 retries, ask the user to choose between Provide manual start command, Retry, or Abort.

The service stays running for all evaluations in this group.

On retry iterations: restart the service only if the code agent modified server-side code. Otherwise, leave it running.

Show full SKILL.md (572 more words)Show less
2c. Evaluation Phase (E2E Automation)

For each unit in this group, sequentially (shared running service):

  1. Read all scenario files: {specDirectory}/scenarios/{unit.id}/*.md
  2. Check for pre-generated E2E stubs: {specDirectory}/scenarios/{unit.id}/e2e-stubs.md
  3. Read reference/eval-agent.md for the prompt template.
  4. Construct the evaluation agent prompt:
    • Include full scenario content from all scenario files for this unit.
    • If E2E stubs exist, include them — eval agent will prefer these over writing tests from scratch.
    • Include localhost:{servicePort} as the service URL.
    • Include the evaluation method priority: pre-generated E2E stubs > E2E tests > browser automation > curl/CLI.
    • Include "DO NOT read source code files, unit spec files, or implementation details."
    • Include the reporting format (run each scenario 3 times, 2/3 must pass).
    • Exclude: unit spec content, project-instructions content, code agent output.
  5. Spawn the evaluation agent as a specialist subagent.
  6. Wait for the evaluation agent to complete.
2d. Parse Evaluation and Decide

Parse the evaluation agent's satisfaction report for each unit:

Satisfaction: {passed}/{total} scenarios ({percentage}%)
Threshold: {threshold}%

Extract passed and failed scenario details.

Decision per unit:

match (evaluation result) { satisfaction >= manifest.threshold => { Mark unit complete: Update manifest.md: - [ ] {id}: => - [x] {id}: Report to user: unit passed with satisfaction percentage. } satisfaction < manifest.threshold AND unit.iteration < manifest.maxIterations => { Extract one-line failure summaries (step 2e). Increment unit.iteration. Queue unit for retry in the next iteration of this group. } unit.iteration >= manifest.maxIterations => { Mark unit failed. Ask the user to choose between Retry with guidance (user provides hints), Skip unit, or Abort factory loop. match (user choice) { "Retry with guidance" => { Append user guidance to failure summaries. Reset iteration counter. Queue for retry. } "Skip unit" => mark unit as failed in manifest, continue to next unit. "Abort" => stop the factory loop, report progress. } } }

2e. Failure Summary Extraction

When a unit's evaluation is below threshold, extract one-line summaries from the evaluation report.

Filtering rules:

  • From the Failed: section of the evaluation report, extract each line.
  • Take the text after - and before the parenthetical failure count.
  • Each summary must describe the observable symptom only.
  • NEVER include scenario names that reveal test structure.
  • NEVER include the full scenario text or expected behavior details.
  • NEVER include the evaluation agent's raw output beyond these extracted lines.
  • Keep each summary to one line.

Example extraction:

# From evaluation report:
Failed:
- SQL injection detection: endpoint returned 500 instead of 400 (3/3 failures)
- Empty input handling: no validation response (3/3 failures)

# Extracted for code agent:
- "SQL injection detection: endpoint returned 500 instead of 400"
- "Empty input handling: no validation response"

Store these in unit.failureSummaries for the next code agent iteration.

2f. Retry Loop

If any units in this group need retry:

  1. Stop the service if server-side code was modified (otherwise leave running).
  2. Restart from step 2a (Implementation Phase) for failed units only.
  3. Passing units are NOT re-implemented or re-evaluated.
  4. Repeat until all units pass or reach max iterations.
2g. Group Completion

After all units in this group are resolved (completed, failed, or skipped):

  1. Stop the service:
    bash
    kill %1    # or equivalent process cleanup
  2. Use the validate skill in constitution mode if a CONSTITUTION.md exists at the project root.
  3. Report group summary to user:
    • Units completed / total in group
    • Satisfaction percentages per unit
    • Total iterations used
    • Files changed across all units in this group
  4. Update manifest.md frontmatter status if all groups are done.
3. Complete

After all execution groups are resolved:

  1. Update manifest.md frontmatter: status: completed (or failed if any units failed).
  2. Use the validate skill for final validation if a CONSTITUTION.md exists.
  3. Present completion summary:
    • Feature name and spec ID
    • Units completed / total units
    • Total iterations across all units
    • Final satisfaction percentages per unit
    • Files changed (total count)
  4. Ask the user how to finalize:

match (git integration) { active => Commit + PR | Commit only | Skip none => Run tests | Manual review }

© 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 64 other files in plugins/start/skills/implement-factory of rsmdt/the-startup.

  • SKILL.md
  • evals/evals.json
  • evals/fixtures/eval-1-happy-path/manifest.md
  • evals/fixtures/eval-1-happy-path/scenarios/dm1/health-status-fields.md
  • evals/fixtures/eval-1-happy-path/scenarios/rl1/rate-limit-exceeded.md
  • evals/fixtures/eval-1-happy-path/scenarios/ve1/endpoint-returns-200.md
  • evals/fixtures/eval-1-happy-path/scenarios/ve1/invalid-method-405.md
  • evals/fixtures/eval-1-happy-path/units/dm1.md
  • evals/fixtures/eval-1-happy-path/units/rl1.md
  • evals/fixtures/eval-1-happy-path/units/ve1.md
  • evals/fixtures/eval-2-retry/manifest.md
  • evals/fixtures/eval-2-retry/scenarios
  • … and 53 more

Open the folder on GitHubat commit 88d447c

Compare with similar skills

Implement 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.

Implement Factory compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Implement Factory this skillrsmdt/the-startup551—~3.2kAutomated safety check: PassMIT
Web Application Testinganthropics/skills180k51 repos~966Automated safety check: PassApache-2.0
Diagnosing Bugsfossasia/eventyay-interpretation1.6k32 repos~2.1kAutomated safety check: PassApache-2.0
TDDpietheinstrengholt/rssmonster56430 repos~906Automated safety check: PassMIT
TDD WorkflowhellangleZ/burn-in-cceverywhere-ralph11211 repos~2.4kAutomated safety check: PassNone
TDDsanity-io/sanity6.4k20 repos~1kAutomated safety check: PassMIT

Similar skills

  • Web Application Testing

    anthropics/skills

    Official

    Tests local web applications with Python Playwright scripts, checking frontend behavior, capturing screenshots and reading browser console logs.

    180k GitHub starsUsed in 51 repos~966 tokens
    Testing & QAAuto-check passed
  • Diagnosing Bugs

    fossasia/eventyay-interpretation

    Diagnosis loop for hard bugs and performance regressions. An agent skill from fossasia/eventyay-interpretation.

    1.6k GitHub starsUsed in 32 repos~2.1k tokens
    Testing & QAAuto-check passed
  • TDD

    pietheinstrengholt/rssmonster

    Test-driven development. An agent skill from pietheinstrengholt/rssmonster.

    564 GitHub starsUsed in 30 repos~906 tokens
    Testing & QAAuto-check passed
  • TDD Workflow

    hellangleZ/burn-in-cceverywhere-ralph

    A skill your agent uses when writing new features, fixing bugs, or refactoring code.

    112 GitHub starsUsed in 11 repos~2.4k tokens
    Testing & QAAuto-check passed
  • TDD

    sanity-io/sanity

    Official

    Test-driven development with red-green-refactor loop. An agent skill from sanity-io/sanity.

    6.4k GitHub starsUsed in 20 repos~1k tokens
    Testing & QAAuto-check passed
  • Context Driven Development

    Ibrahim-3d/orchestrator-supaconductor

    A skill your agent uses when working with Conductor's context-driven development methodology, managing project context artifacts, or understanding the relationship between product.md, tech-stack.md…

    380 GitHub starsUsed in 9 repos~2.9k tokens
    Testing & QAAuto-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.

    551 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.

    551 GitHub stars~1.3k 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.

    551 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.

    551 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.

    551 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Brainstorm

    rsmdt/the-startup

    You MUST use this before any creative work — creating features, building components, adding functionality, or modifying behavior.

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

Categories

Questions about Implement Factory

What does Implement Factory do?

Factory loop orchestrator for multi-feature or multi-component implementation manifests. Implement Factory is an agent skill from rsmdt/the-startup. Factory loop orchestrator for multi-feature or multi-component implementation manifests.

When should I use Implement Factory?

Implement Factory fits situations like: high-complexity work with parallel-eligible workstreams and holdout-scenario evaluation.

How do I install Implement Factory in Claude Code?

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

How do I install Implement Factory in Codex?

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

Can I use Implement 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 implement-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/implement-factory, .gemini/skills/implement-factory, .github/skills/implement-factory and .opencode/skills/implement-factory in your project.

What does Implement Factory need to run?

Going by SKILL.md and its folder, Implement Factory needs the command-line tools its instructions call (curl, npm and python). Our summary lists: Python 3.

Does Implement Factory access the network?

SKILL.md contains no URLs. Its commands use curl and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Implement 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 Implement Factory use?

Implement 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 Implement Factory use?

About 3.2k tokens (SKILL.md is roughly 13k 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 Implement Factory?

Skills that share tags, products or a category with Implement Factory: Web Application Testing (anthropics/skills, 180k stars), Diagnosing Bugs (fossasia/eventyay-interpretation, 1.6k stars), TDD (pietheinstrengholt/rssmonster, 564 stars) and TDD Workflow (hellangleZ/burn-in-cceverywhere-ralph, 112 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Implement Factory?

rsmdt (a GitHub user) maintains it in rsmdt/the-startup, which has 551 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.