factory-security

factory-security is a skill for Claude Code, Codex from squidbay/factory. It costs 139 tokens per session (1,644 once invoked), scanned A, original, MIT.

A focused security review of a pull request before it is merged. It checks the changed code for concrete risks such as leaked credentials, exposed services, overly broad access, or untrusted webhooks.

In plain words
What is it for?
Use it when a pull request changes credentials, workflows, authentication, payments, personal data, or other security-sensitive behavior.
Why use it?
It gives a clear merge-safety verdict while avoiding speculative warnings that make real security problems harder to notice.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when a pull request changes credentials, workflows, authentication, payments, personal data, or other security-sensitive behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/squidbay/factory/factory-security
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 squidbay/factory --skill factory-security
Clone the repo
git clone --depth 1 https://github.com/squidbay/factory

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/squidbay/factory/factory-security"><img src="https://agentmods.dev/badge/skills/squidbay/factory/factory-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,644 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.00139 $0.01644
Opus 5.5 $0.00056 $0.00658
Sonnet 5.5 $0.00028 $0.00329
Haiku 4.5 $0.00014 $0.00164

Measured 1mo ago against content hash a783daf9eb92, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

factory-security 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 1mo 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.

skills/factory-security/SKILL.md · 57 lines

How it starts

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

Factory Security — read the change, find the real problem, give one verdict

You are running a security check on the changes in a pull request, before the human merges it. This is not a full audit of the whole project and it is not a lint pass — it is a focused look at this diff for the handful of ways a change can actually hurt: a leaked secret, an exposed service, an access scope that's too wide, a webhook that trusts anyone. Your output is plain-words findings and one verdict — never vibes, never a wall of maybes.

The bar is high on purpose. A security check that cries wolf gets ignored, and an ignored check is worse than none. Report only what you are confident is real (RULE 3 — observed, not imagined). Everything you're unsure about goes in the "what I did NOT check" list, honestly, rather than into a finding that pads the count and dulls the signal.

The factory's standing security posture — the design premise this diff-level check sits on top of — lives in .github/SECURITY.md: no exposed services, no credential in any chat or committed file, broad access read-only and write access human-gated. Read it once so a finding here lands against the whole model, not just the lines in front of you.

When to run it

Team Leader runs this read on any sensitive PR before it reaches the human's merge button. A PR is sensitive if it touches:

  • Credentials — any token, key, password, or .env; anything read from or written to a secret store; a change to the guardrails denylist. (This is also where an accidentally-committed secret value gets caught.)
  • Workflows — a CI workflow, a GitHub Action, or the boot/rules files every seat trusts; anything that runs automatically or changes what the automation is allowed to do.
  • Auth — login, sessions, permission scopes, who-can-do-what; a widening of what a token or an app install may reach; a route that should be behind a check and isn't.
  • Payments — a checkout or billing path, a payment webhook, anything that moves money or trusts a message claiming money moved.
  • Personal data — anything that stores, exposes, or ships a real person's information (a customer list, an email, an address), or opens a service to the public internet where that data lives.

Read the full file on GitHub · 57 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. 1mo ago First seen · 57 lines · 139 tokens per session scan A a783daf9eb92

Subscribe to this mod's changes

factory-security is a skill published in the GitHub repository squidbay/factory (5 stars, last pushed 1mo ago), licensed MIT. It adds 139 tokens to every session and 1,644 once invoked, about $0.0006 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-08-31.

Related

Other skills, from other repositories

review-duo

Review a defined code change with two Thread members independently checking standards, quality and requirements. Applies to the initiator and invited reviewer through the final report; excludes solo review, undefined scope and implementation-only requests.

murray17/rovai-ai · 45 tokens

ai-driven-code-editor-cli

OpenCode AI - AI-driven code editor/IDE (CLI/TUI version of Cursor/Windsurf). Use when: (1) AI-assisted coding tasks, (2) Code refactoring with AI, (3) GitHub PR review/fixes, (4) Multi-file edits requiring context, (5) Running AI agents on codebases. NOT for: simple one-line ed…

rondoflow/rondoflow · 84 tokens

adversarial-implementation-review-coach

Adversarial implementation review based on Block's g3 dialectical autocoding research. Use when validating implementation completeness against requirements with fresh objectivity.

rondoflow/rondoflow · 38 tokens

dos-verify-done-claims

Before accepting an agent's 'done / shipped / fixed' claim, verify it against ground truth (git ancestry + the commit's own diff) using the DOS kernel's dos verify and dos commit-audit — never the agent's own narration.

anthony-chaudhary/dos-kernel · 61 tokens

pragma-code-review

A code-review guide written in Chinese. It reviews code across correctness, architectural boundaries, risk, and verification.

pqpo/pragma · 24 tokens

review-pr

Use whenever the user wants to harden a pull request before merge — run several independent reviewers in parallel, address every issue (including minor ones), and iterate until the PR comes back clean. Identifies the PR from the current branch (or an explicit argument), rebases it onto its base if stale, then per…

felipearomani/claude-shipyard · 225 tokens