factory

factory is a skill for Claude Code from chrisgagne/grounded-forge. It costs 88 tokens per session (793 once invoked), scanned A, original, MIT.

A software-change workflow that takes a written specification through tests, a build, review and a warranty report. It records each stage in an append-only ledger, meaning earlier records are kept rather than overwritten.

In plain words
What is it for?
Checking a proposed code change, running its configured tests and build, collecting review findings, and preparing evidence for the person responsible for accepting it.
Why use it?
It gives a change a defined path and stops when a required check blocks it, instead of relying only on an agent's claim that the work is complete.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Part of the factory plugin — 1 skill, 2 agents shipped together

Good fit Checking a proposed code change, running its configured tests and build, collecting review findings, and preparing evidence for the person responsible for accepting it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chrisgagne/grounded-forge/factory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add chrisgagne/grounded-forge --skill factory
Clone the repo
git clone --depth 1 https://github.com/chrisgagne/grounded-forge

Made for: Claude Code.

Or install factory, the plugin that ships this one along with the rest of its 1 skill, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for factory

README.md
[![agentmods](https://agentmods.dev/badge/skills/chrisgagne/grounded-forge/factory/github.svg)](https://agentmods.dev/skills/chrisgagne/grounded-forge/factory)
Your own site
<a href="https://agentmods.dev/skills/chrisgagne/grounded-forge/factory"><img src="https://agentmods.dev/badge/skills/chrisgagne/grounded-forge/factory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for factory

Your own site · 80×15
<a href="https://agentmods.dev/skills/chrisgagne/grounded-forge/factory"><img src="https://agentmods.dev/badge/skills/chrisgagne/grounded-forge/factory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 793 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.00793
Opus 5.5 $0.00035 $0.00317
Sonnet 5.5 $0.00018 $0.00159
Haiku 4.5 $0.00009 $0.00079

Measured 8d ago against content hash 005d1b5fb93c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

factory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

corpus.commons/chrisgagne-agent-built-software/apps/factory-warranty-full/factory/skills/factory/SKILL.md · 26 lines

How it starts

The opening of the file, as written. The whole thing — 26 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Running a change through the factory

The factory is a command-line harness. Its gates are code: exit codes, hashes and structured findings decide pass or block, and every stage writes to an append-only ledger in the target repo at .factory/changes/{id}/. Your job here is to drive the CLI, explain what it found, and hand the decision to the person accountable for the change.

The CLI is factory (install once with uv tool install --editable <factory repo>; the factory repo is two folders above this skill's base directory). If it isn't on PATH, run uv run --project <factory repo> factory ....

Steps

  1. Check the target repo opts in. It needs .factory/config.yaml with at least commands.test and test_globs. If it's missing, show the user the example in the factory's README and stop; don't guess their commands.
  2. Get the story. A markdown file saying what the change should do. If the user described it in chat, write it to a file outside .factory/ and show it to them before running.
  3. Run it. factory run STORY.md --repo PATH. It runs spec → triage → tests → build → triage → gate → review → warrant and stops at the first block. Builds and reviews can take many minutes; run it in the background and check on it rather than waiting in silence. The factory sandboxes its own legs and commands, and sandboxes can't nest: run the CLI outside your own Bash sandbox, or it refuses to run builder code and says so in the ledger.
  4. If it blocks, read .factory/changes/{id}/decisions-needed.md and tell the user, plainly: what blocked, the evidence (ledger event ids, log paths), and the options it lists. Resume with factory run --change ID --repo PATH once they've chosen. factory status --change ID --repo PATH shows where each stage stands.
  5. When it finishes, present .factory/changes/{id}/warranty.md: the status line, what was demonstrated, what is only asserted, gates passed/failed/skipped, review findings and their resolution, ratchet counts, whether the theory doc changed, and residual risks. Keep the pack's own split: never present a line from "Asserted, not evidence" as fact.

Read the full file on GitHub · 26 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 26 lines · 88 tokens per session scan A 005d1b5fb93c

Subscribe to this mod's changes

factory is a skill published in the GitHub repository chrisgagne/grounded-forge (8 stars, last pushed yesterday), licensed MIT. It adds 88 tokens to every session and 793 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-22.

Related

Other skills, from other repositories

review-prs

Review a GitHub pull request in the googleapis/mcp-toolbox repo against the team's reviewer checklist: PR title/description conventions, linked issue, logic errors and unhandled edge cases, breaking changes, test coverage, docs updates, security (input handling), and new dependencies. Use whenever a maintainer asks…

googleapis/mcp-toolbox · 162 tokens

mem0-test-integration

Verify a Mem0 integration produced by /mem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run /mem0-integrate…

mem0ai/mem0 · 207 tokens

mem0-integrate

Integrate Mem0 into an existing repository using a goal-driven, TDD pipeline. Detects the repo's language automatically and asks the user to pick between Mem0 Platform (managed) and Mem0 Open Source (self-hosted). Writes failing tests before any implementation. Produces a local feature branch plus .mem0-integration/…

mem0ai/mem0 · 188 tokens

dev-browser

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website"…

MemTensor/MemOS · 84 tokens

discount-review

Inspect the discount policy fixture with a repeatable review checklist and helper script.

promptfoo/promptfoo · 18 tokens

code-review

Reviews code for bugs, security issues, and best practices.

promptfoo/promptfoo · 11 tokens