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.
npx agentmods add skills/nonlinear-xyz/factory-kit/factory-code-reviewernpx skills add nonlinear-xyz/factory-kit --skill factory-code-reviewergit clone --depth 1 https://github.com/nonlinear-xyz/factory-kitWrote 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.
[](https://agentmods.dev/skills/nonlinear-xyz/factory-kit/factory-code-reviewer)<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>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.
| Model | Per session | Once 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 |
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.
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)
-
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.
-
Which domain skills apply? Map changed files to skills:
features/*/columns.tsx,Drawer.tsx,Table.tsx→factory-frontend.mdfeatures/*/schema.ts, form components →factory-forms.mdfeatures/*/actions.ts,server/api/routers/*→factory-api.mddb/schema.ts,db/schemas/*→factory-data-layer.mdlib/auth/*, middleware →factory-auth.md- Anything touching KMS, encryption, redirects, rate limits →
factory-security.md workflows/*,nodes/*,*.pyLLM →factory-llm-workflows.mdscripts/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.
-
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
-
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)
-
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-*.mdskill)
-
Look for what's NOT there. Hardest reviews are about missing patterns:
- Empty states on tables? Loading skeletons?
useTransitionon async submissions?safeNexton redirects?- Audit logging at mutation boundaries?
- Multi-tenant filter on queries?
- Encryption at rest for sensitive fields?
-
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.
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.
- 4d ago First seen · 141 lines · 96 tokens per session scan A b83e86291ee7
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.
Other skills, from other repositories
hook-template
Generate hook script from template. Use when adding a new hook, wiring a PreToolUse/PostToolUse/Stop/Notification hook, or scaffolding hook config for settings.json.
skill-template
Generate custom skill/command from template. Use when creating a new skill or slash command from scratch, or scaffolding a skill file with correct frontmatter.
agent-template
Generate custom agent from template. Use when creating a new subagent from scratch, or scaffolding an agent file with correct frontmatter.
workflow
Run the complete 5-step development workflow: focus problem → prevent over-development → test-first (TDD) → document → smart commit. Use when starting a new feature, or when the user runs /workflow or asks for the full development flow.
check-environment
Verify Claude, Codex, and Grok availability plus Director guidance, relay, agents, and skills. Audit optional hooks only when selected. Use after installation or when a native surface misbehaves.
doc-writer
Documentation templates and standards: README structure, API reference format, changelog (Keep a Changelog), and comment guidelines. Use when creating or updating documentation. Loaded automatically by the doc-writer agent.