factory-baseline

factory-baseline is a command for Claude Code from watt-mind/factory. It costs 30 tokens per session (584 once invoked), scanned A, original, Apache-2.0.

A command for bringing a repository into a specified Factory baseline covering development checks, CI, security scanning, Git worktrees, and instructions for coding agents. It can first inspect the repository and show a plan without making changes.

In plain words
What is it for?
Use it to audit or configure CI, linting, security tools, dependency updates, Git hooks, agent entry files, product documents, and isolated worktrees.
Why use it?
It gives a new or lagging repository a single reviewable setup path instead of requiring each safeguard to be configured manually and inconsistently.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions AGENTS.md.

Part of the core plugin — 38 skills, 22 commands, 5 agents, 1 hook shipped together

Good fit Use it to audit or configure CI, linting, security tools, dependency updates, Git hooks, agent entry files, product documents, and isolated worktrees.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/watt-mind/factory/factory-baseline
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.

Clone the repo
git clone --depth 1 https://github.com/watt-mind/factory

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 38 skills, 22 commands, 5 agents, 1 hook.

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-baseline

README.md
[![agentmods](https://agentmods.dev/badge/commands/watt-mind/factory/factory-baseline/github.svg)](https://agentmods.dev/commands/watt-mind/factory/factory-baseline)
Your own site
<a href="https://agentmods.dev/commands/watt-mind/factory/factory-baseline"><img src="https://agentmods.dev/badge/commands/watt-mind/factory/factory-baseline/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-baseline

Your own site · 80×15
<a href="https://agentmods.dev/commands/watt-mind/factory/factory-baseline"><img src="https://agentmods.dev/badge/commands/watt-mind/factory/factory-baseline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 584 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.00030 $0.00584
Opus 5.5 $0.00012 $0.00234
Sonnet 5.5 $0.00006 $0.00117
Haiku 4.5 $0.00003 $0.00058

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

Security

Grade A, and why

factory-baseline 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 13d 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.

plugins/core/commands/factory-baseline.md · 16 lines

What it actually says

Align a new or lagging repository with Factory's PC-01…PC-23 baseline and SAST controls cleanly in one PR.

Load and execute shared/skills/factory-baseline/SKILL.md (resolved relative to your active harness skill tree, or docs/project-conventions.md + docs/code-security.md), applying the optional local overlay ~/Develop/hdkiller/docs/guides/project-conventions.md if present on disk:

  1. Survey & grade (PC-01…PC-23): Check origin/<base> (git fetch --quiet), inspect workflows/scripts/GitHub settings, and build the initial PASS / FAIL / N/A table. Stop after printing the matrix and plan when --dry-run is passed.
  2. Isolate cleanly: File/claim a ticket if missing and work in an isolated worktree (bin/worktree-up.sh or git worktree add; never git stash).
  3. Scaffold missing baseline: Align in-repo CI (ci.yml), SAST/security (security.yml, ruff.toml, eslint-plugin-security), dependabot.yml, Git hooks (lefthook.yml or Husky + lint-staged + commitlint), AGENTS.md + thin CLAUDE.md/GEMINI.md, docs/product-decisions.md, worktree isolation (W-1…W-13), and (where applicable) bin/dev-login.sh, smoke/E2E isolation (H-1…H-8), and GHCR hygiene (R-1…R-6).
  4. Apply safe GitHub settings (PC-08, PC-09, PC-11): Unless --no-github-settings is passed, enable vulnerability alerts, automated security fixes, and read-only workflow token permissions via gh api, and check/configure branch protection.
  5. Verify & open PR: Run lint, typecheck, format check, unit tests, and factory security; open one baseline PR against <base> (gh pr create --base <base>); report the Before → After PC-01…PC-23 matrix and file any remaining external blockers (PC-18 secrets, plan limits) to Triage.
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. 13d ago First seen · 16 lines · 30 tokens per session scan A 0484081749ec

Subscribe to this mod's changes

factory-baseline is a command published in the GitHub repository watt-mind/factory (24 stars, last pushed yesterday), licensed Apache-2.0. It adds 30 tokens to every session and 584 once invoked, about $0.0001 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-11-18.

Related

factory-baseline compared with commands from other repositories

factory-baseline next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-baselinewatt-mind/factoryCommand24yesterdayApache-2.0A30Claude Code
flow-nexus-workflowruvnet/rufloCommand83ktodayMITA13Claude Code
release-swarmruvnet/rufloCommand83ktodayMITA0Claude Code
release-managerruvnet/rufloCommand83ktodayMITA0Claude Code
workflow-automationruvnet/rufloCommand83ktodayMITA0Claude Code
initruvnet/rufloCommand83ktodayMITA0Claude Code
repo-analyzeruvnet/rufloCommand83ktodayMITA0Claude Code