factory-baseline

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

A repository setup and alignment skill for applying a defined quality, continuous integration, security, Git worktree, and agent-entry baseline. Continuous integration (CI) automatically checks changes, while SAST scans source code for security problems.

In plain words
What is it for?
Use it to inspect a repository against the baseline and configure CI, linting, security scans, dependency checks, Git hooks, agent instructions, and worktree support.
Why use it?
It helps reveal and fix missing development checks, security scans, hooks, documentation, and branch or worktree safeguards in a new or inconsistent repository.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Gemini CLI.

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

Good fit Use it to inspect a repository against the baseline and configure CI, linting, security scans, dependency checks, Git hooks, agent instructions, and worktree support.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/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.

Any agent
npx skills add watt-mind/factory --skill factory-baseline
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/skills/watt-mind/factory/factory-baseline/github.svg)](https://agentmods.dev/skills/watt-mind/factory/factory-baseline)
Your own site
<a href="https://agentmods.dev/skills/watt-mind/factory/factory-baseline"><img src="https://agentmods.dev/badge/skills/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/skills/watt-mind/factory/factory-baseline"><img src="https://agentmods.dev/badge/skills/watt-mind/factory/factory-baseline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,925 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.00080 $0.01925
Opus 5.5 $0.00032 $0.00770
Sonnet 5.5 $0.00016 $0.00385
Haiku 4.5 $0.00008 $0.00193

Measured 11d ago against content hash 68b4af64d32f, 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 11d 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/skills/factory-baseline/SKILL.md · 82 lines

How it starts

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

Align a Repository to the Factory Baseline

Bring a new or lagging repository into conformance with Factory's PC-01…PC-23 baseline and SAST controls in one clean, verified pull request.

1. Read the Baseline References

Read both bundled references in full before touching files:

  • references/project-conventions.md — PC-01…PC-23, W-1…W-13, H-1…H-8, R-1…R-6, concurrency, branch protection, agent entry files.
  • references/code-security.md — Semgrep, Gitleaks, Actionlint, ESLint security rules, Ruff S rules, pip-audit, npm audit --audit-level=high, Lefthook/Husky hooks.

If an org-local conventions overlay exists on this machine (for example via $FACTORY_CONVENTIONS_OVERLAY or your org's infra docs), also read it for org-specific runner labels and tracker team/project mappings.

2. Survey and Grade (PC-01…PC-23)

Inspect the target repository against origin/<base> (git fetch --quiet) and live GitHub state:

  1. Stack & scripts: Node/Bun/TypeScript (package.json), Python (pyproject.toml, uv.lock, requirements*.txt), Rust/Go, Docker/GHCR.
  2. Branches & visibility: integration branch (develop or default), deploy branch (main/master), and repo visibility (gh repo view --json isPrivate,nameWithOwner -> private org repos pin target self-hosted labels per PC-03; public repos allow hosted runners when configured).
  3. Grade PC-01…PC-23: Record PASS / FAIL / N/A (with concrete repo-grounded N/A reasons only) before editing.

If --dry-run was passed, stop after outputting the PC-01…PC-23 grade matrix and remediation plan.

3. Ticket and Worktree Discipline

Follow AGENTS.md / shared/floor.md:

  • Before writing files inside an existing tracked repo, find or create a tracking issue (unless working explicitly with --no-ticket / "no ticket").
  • Work inside an isolated worktree (bin/worktree-up.sh <ISSUE-ID> when present, otherwise git worktree add). Never use git stash or git rebase --autostash.

Read the full file on GitHub · 82 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago Changed 68b4af64d32f
  2. 12d ago First seen · 82 lines · 80 tokens per session scan A 803065b830fe

Subscribe to this mod's changes

factory-baseline is a skill published in the GitHub repository watt-mind/factory (24 stars, last pushed today), licensed Apache-2.0. It adds 80 tokens to every session and 1,925 once invoked, about $0.0003 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 skills from other repositories

factory-baseline next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
factory-baselinewatt-mind/factorySkill24todayApache-2.0A80Claude Code
agent-workflow-automationruvnet/rufloSkill83ktodayMITA21Claude Code
agent-github-modesruvnet/rufloSkill83ktodayMITA21Claude Code
agent-ops-cicd-githubruvnet/rufloSkill83ktodayMITA30Claude Code
workflow-automationruvnet/rufloSkill83ktodayMITA53Claude Code
authoring-github-workflowsrichfrem/agent-plugins-skillsSkill8yesterdayMITA104Claude Code
cicd_integrationjxoesneon/CielSkill11mo agoApache-2.0A19Claude Code, Codex