production-grade
Skill1 starsChanged 6 months agoMITView on GitHub
Router and orchestrator for the craft code-quality guardrails. Use FIRST on any broad "is this production-ready?", "review this code/diff/PR", "build this properly", "why does our AI-generated code keep needing rework", or "make this maintainable" request. Two modes: GENERATIVE GUARD (load the right senior heuristics before writing code) and CRITIQUE (audit a diff/file and return one worst-first ranked list of findings). Decomposes the request, fires the relevant craft member skills plus the existing complexity/refactoring/dependency/test skills in the right order, resolves their conflicts, and returns a single merged verdict. Defer to a single member skill only when the task is already narrow.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- nagisanzenin/production-gradetheir own version, first seen Aug 19, 2026
- a-tokyo/aiworkspacetheir own version, first seen Aug 10, 2026
- a-tokyo/agent-skills-harnesstheir own version, first seen Aug 6, 2026
- sahil1115/claude-skillstheir own version, first seen Jul 14, 2026
- a-tokyo/agent-skillstheir own version, first seen Jul 6, 2026
- Sean-Michael/skillstheir own version, first seen Mar 18, 2026
Used with
Projects with it also use tribunal.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
cukasSkilltribunal
Multi-mode AI debate — adversarial, Socratic, steelman, red-team, synthesis, or postmortem with evidence
Also in 3 projects that use this
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- nagisanzenin/production-grade★ 181same name
- a-tokyo/aiworkspace★ 21same name
- a-tokyo/agent-skills★ 17same name
- a-tokyo/agent-skills-harness★ 11same name
- sahil1115/claude-skills★ 2same name
- Sean-Michael/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- code-smellsSkill
- data-and-state-evolutionSkill
- dry-and-reuseSkill
- effects-and-puritySkill
- naming-and-commentsSkill
- right-sized-designSkill
- robustness-at-boundariesSkill
- supply-chain-hygieneSkill
- trustworthy-testsSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Route here: when the request is broad: "review this PR," "is this production-ready," "build feature X properly," "our AI code keeps needing …
- Very specific: line 33
Go direct to a member skill: when the task is already narrow: only naming → craft:naming-and-comments.
- Very specific: line 42
Read RULES.md (the 13 rules + Definition of Done) — always.
- Distinctive: line 83
Run lenses outside-in, cheap-and-structural first:
- Distinctive: line 128
Always: name the principle, cite the file:line, give the fix, and rank by severity.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
production-grade — the senior-review router
Purpose: be the 15-year senior engineer who can glance at a change and say "this won't survive contact with production, and here's exactly why." This skill decomposes a request, dispatches to the right guardrails, and merges their output into one verdict — instead of dumping ten separate checklists.
Anchor frame (state it, then act on it): an AI coding agent is a Tactical Tornado
by default — fast, prolific, leaving a maintenance wake. Every move here forces
strategic (durable) code over tactical (fast-but-disposable) code. The bar is not
"it works"; the bar is "the next engineer can read, trust, and change it." See
references/PRINCIPLES.md and references/EVIDENCE.md.
When to use this router vs. go direct
- Route here when the request is broad: "review this PR," "is this production-ready," "build feature X properly," "our AI code keeps needing rework — fix the process," "audit this module."
- Go direct to a member skill when the task is already narrow: only naming →
craft:naming-and-comments; only a dependency question →craft:supply-chain-hygiene. - Don't route for trivial one-line edits. Overhead isn't worth it.
The two modes
Mode A — Generative Guard (before/while writing code)
Pull the relevant reflex cards into context before the agent writes, so the code is born right instead of being fixed later.
- Read
RULES.md(the 13 rules + Definition of Done) — always. - Classify the task and load the matching member skills' Tier-1 reflex cards (the table below).
- Build with the smallest-diff-that-works discipline.
- Close with the Definition of Done gate from
RULES.md— including "I ran it, here's the evidence."
Mode B — Critique (auditing a diff / file / PR)
Return one ranked, worst-first list, each item tagged [skill · principle ·
severity], with the concrete fix. Not ten lists. Not vibes.
- Determine what changed (the diff) and what it touches.
- Fire the relevant lenses (below) in dependency order.
- Merge & dedupe findings; one issue may trip several lenses — report it once, under its root cause.
- Rank by severity = job-damage × fix-cheapness.
- Emit the Output Contract.
Dispatch map — intent → skill
| The change involves… | Fire | Layer |
| New class / interface / factory / config / abstraction | craft:right-sized-design | craft |
| Error handling, input validation, secrets, boundaries | craft:robustness-at-boundaries | craft |
| A helper that may already exist; copy-paste; duplication | craft:dry-and-reuse | craft |
| Smelly structure (long method, god class, feature envy…) | craft:code-smells | craft |
| Logic tangled with I/O / mutation / nondeterminism | craft:effects-and-purity | craft |
| Names, comments, readability | craft:naming-and-comments | craft |
| Tests (writing or judging them); "is it actually done?" | craft:trustworthy-tests | craft |
| Schema / migration / payload / event-shape change | craft:data-and-state-evolution | craft |
| New dependency / external API call | craft:supply-chain-hygiene | craft |
| Quantified complexity metrics (cyclomatic/cognitive) | complexity-analysis | existing |
| The concrete refactoring to apply once a smell is found | refactoring-patterns | existing |
| Coupling / circular deps / god modules | dependency-analyzer | existing |
| Coverage gaps, risk-ranked | test-coverage-analyzer | existing |
craft skills detect and judge; the existing skills measure and fix. When
code-smells names a Long Method, hand the fix to refactoring-patterns. When you
suspect deep coupling, confirm with dependency-analyzer.
Canonical critique chain (order matters)
Run lenses outside-in, cheap-and-structural first:
- Scope — does the diff match the request? (
right-sized-design) — catch over-engineering and scope creep before reading further. - Reuse — is anything here duplicating what exists? (
dry-and-reuse) - Structure — smells & coupling (
code-smells→dependency-analyzer) - Robustness — validation, errors, secrets (
robustness-at-boundaries) - Effects — purity / testability (
effects-and-purity) - Clarity — names & comments (
naming-and-comments) - Trust — tests prove behavior; it actually ran, red→green (
trustworthy-tests) - Data & state — shape changes phased, rollback tested (
data-and-state-evolution) - Supply chain — deps verified, no hallucinated APIs (
supply-chain-hygiene)
Tension resolution (when guardrails conflict)
| Tension | Resolution |
| "Add validation/robustness" vs. "smallest diff / don't over-engineer" | Robustness at boundaries always wins; over-engineering is internal structure, not edge safety. Validate the edge; keep the core simple. |
| "Make it pure/testable" vs. "don't add abstraction" | Extracting a pure function is not speculative generality — it pays off immediately in testability. Allow it. A new interface/factory needs ≥2–3 call sites; a pure helper does not. |
| "DRY / consolidate" vs. "a little duplication is fine" | DRY applies to knowledge (one rule, one place). Two look-alike blocks encoding different decisions may stay. Don't abstract incidental similarity. |
| "Match the codebase" vs. "the codebase is wrong" | Match it for this diff; raise the systemic fix as a separate, visible item — don't smuggle a refactor into an unrelated change (Broken Windows ticketed, not silently rewritten). |
| Severity disagreements between lenses | Router decides by job-damage × fix-cheapness; a Change Preventer outranks a cosmetic smell. |
Output Contract (Mode B)
## Verdict: SHIP / SHIP-WITH-FIXES / REWORK
One-sentence senior summary. (e.g. "Logic is correct but the diff doubles an
existing util and swallows the parse error — rework before merge.")
## Must-fix (blocks merge)
1. [robustness-at-boundaries · swallowed-error · HIGH] path/file.ts:42 —
<what's wrong> → <the fix> (links: refactoring-patterns / RULES rule 6)
2. ...
## Should-fix (not blocking, but real debt)
- [code-smells · duplicate-code · MED] ...
## Nits (optional)
- [naming-and-comments · vague-name · LOW] ...
## Definition-of-Done check
- [x]/[ ] for each item in RULES.md's gate, with the missing evidence called out.Always: name the principle, cite the file:line, give the fix, and rank by severity. Never assert taste without a named principle. Praise is fine but brief — this is editing, not a performance review.
References
- The 13 rules + Definition of Done:
../../RULES.md - Why durable code wins:
../../references/PRINCIPLES.md - The smell catalog:
../../references/SMELLS.md - The data behind all of it:
../../references/EVIDENCE.md - Language tells:
../../references/lang/{python,typescript,go}.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

