factory-code-reviewer

factory-code-reviewer is a skill for Claude Code, Codex from nonlinear-xyz/factory-kit. It costs 96 tokens per session (1,760 once invoked), scanned A, original, MIT.

A read-only code review helper for checking pull requests, diffs, or recently written code against a project's agreed coding rules. It produces a structured review instead of changing files.

In plain words
What is it for?
Use it to review a selected diff, a recent pull request, or a feature folder. It can apply the relevant rules for frontend, forms, APIs, database code, authentication, and security changes.
Why use it?
It helps catch security risks, missing rules, and recurring coding mistakes before code is merged. It also keeps reviews focused on the files and parts that changed.

Skill for Claude CodeCodex

Part of the factory-kit plugin — 37 skills, 8 commands, 12 agents, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/nonlinear-xyz/factory-kit/factory-code-reviewer
Any agent
npx skills add nonlinear-xyz/factory-kit --skill factory-code-reviewer
Clone the repo
git clone --depth 1 https://github.com/nonlinear-xyz/factory-kit

Made for: Claude Code, Codex.

Or install factory-kit, the plugin that ships this one along with the rest of its 37 skills, 8 commands, 12 agents, 1 MCP server.

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-code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-code-reviewer.svg)](https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-code-reviewer)
Your own site
<a href="https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-code-reviewer"><img src="https://agentmods.dev/badge/skills/nonlinear-xyz/factory-kit/factory-code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,760 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00096 $0.01760
Opus 5 $0.00048 $0.00880
Sonnet 5 $0.00019 $0.00352
Haiku 4.5 $0.00010 $0.00176

Measured 4d ago against content hash b83e86291ee7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

factory-code-reviewer 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 4d 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-code-reviewer/SKILL.md · 141 lines

How it starts

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

Apply the code-reviewer specialist workflow. Review code against the factory's conventions and anti-pattern digest, producing a structured, prioritized review. You do not write or edit code. Load factory-pitfalls first through the host's skill capability, then the relevant domain skill based on what changed.

How to think (in order)

  1. What's the scope? Either:

    • The user pointed at specific files / a diff range → review those
    • The user said "review the recent PR" → run git diff main...HEAD (or equivalent) and review the changed files
    • The user said "review feature X" → grep / find the relevant feature folder, review the whole thing

    If the scope is ambiguous, ask. Don't review the whole repo by default.

  2. Which domain skills apply? Map changed files to skills:

    • features/*/columns.tsx, Drawer.tsx, Table.tsxfactory-frontend.md
    • features/*/schema.ts, form components → factory-forms.md
    • features/*/actions.ts, server/api/routers/*factory-api.md
    • db/schema.ts, db/schemas/*factory-data-layer.md
    • lib/auth/*, middleware → factory-auth.md
    • Anything touching KMS, encryption, redirects, rate limits → factory-security.md
    • workflows/*, nodes/*, *.py LLM → factory-llm-workflows.md
    • scripts/data_processing/*, models/* Python → factory-data-pipelines.md
    • PostHog / Sentry / logging / activity tables → factory-observability.md
    • Dockerfile, terraform/, GitHub Actions → factory-deployment.md

    Pull the relevant skill into context before reviewing each file.

  3. Run the factory-pitfalls checklist. For each changed file, scan against the digest:

    • Stack / architecture pitfalls
    • Form pitfalls
    • Frontend pitfalls
    • Security pitfalls (highest priority)
    • Data pitfalls
    • LLM workflow pitfalls
    • Process pitfalls
  4. Prioritize findings. Use four tiers:

    • Critical — security risk, data loss, auth bypass, prod-data mutation without review
    • High — convention violation that creates technical debt (monolithic form, hardcoded allowlist, raw SQL)
    • Medium — minor convention violation (missing useTransition, inline color name, missing empty state)
    • Low — nit (naming, comment style)
  5. Cite specifically. Every finding gets:

    • File path + line number (or function name if line number is ambiguous)
    • The actual pattern being violated
    • The right move (with reference to the relevant factory-*.md skill)
  6. Look for what's NOT there. Hardest reviews are about missing patterns:

    • Empty states on tables? Loading skeletons?
    • useTransition on async submissions?
    • safeNext on redirects?
    • Audit logging at mutation boundaries?
    • Multi-tenant filter on queries?
    • Encryption at rest for sensitive fields?
  7. Don't repeat the same finding. If a pattern is violated 5 times, mention it once at the top with "5 instances; representative example below." Don't pad the review.

Read the full file on GitHub · 141 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. 4d ago First seen · 141 lines · 96 tokens per session scan A b83e86291ee7

Subscribe to this mod's changes

factory-code-reviewer is a skill published in the GitHub repository nonlinear-xyz/factory-kit (9 stars, last pushed 1mo ago), licensed MIT. It adds 96 tokens to every session and 1,760 once invoked, about $0.0005 per session on Opus 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