code-challenge
Skill2 starsChanged 14 days agoMITView on GitHub
Challenge a planned or finished change's decisions the way a senior reviewer would
In this repository81 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- add-languageSkill
- audit-a11ySkill
- audit-archSkill
- audit-ciSkill
- audit-debtSkill
- audit-doc-driftSkill
- audit-flagsSkill
- audit-infraSkill
- audit-perfSkill
- audit-readinessSkill
- audit-securitySkill
- audit-slopSkill
- audit-testsSkill
- audit-tokensSkill
- audit-verifySkill
- backup-patternsSkill
- bash-patternsSkill
- claude-code-mods-patternsSkill
- code-contractSkill
- code-deep-reviewSkill
- code-evaluateSkill
- code-from-designSkill
- code-historySkill
- code-host-patternsSkill
- code-impactSkill
- code-migrateSkill
- code-tourSkill
- code-visualSkill
- depsSkill
- django-patternsSkill
- docker-patternsSkill
- drf-patternsSkill
- engineering-fundamentalsSkill
- fastapi-patternsSkill
- git-patternsSkill
- go-patternsSkill
- graphql-patternsSkill
- investigateSkill
- javascript-patternsSkill
- kit-rulesSkill
- logging-patternsSkill
- meta-conventionsSkill
- meta-promptSkill
- meta-refreshSkill
- meta-retroSkill
- meta-skillSkill
- monitoring-patternsSkill
- next-app-router-patternsSkill
- nuxt-patternsSkill
- opentofu-patternsSkill
- pr-descriptionSkill
- pr-publishSkill
- pr-queueSkill
- pr-replySkill
- pr-reviewSkill
- python-patternsSkill
- react-patternsSkill
- report-formatSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
If the artifact links a ticket, fetch that too.
- Distinctive: line 50
Run in this order. Answer each from the repo first.
- Distinctive: line 63
Only from the project's own rules, CLAUDE.md, and loaded pattern skills, never generic taste.
- Distinctive: line 91
Read-only on the repo. Never edit, never comment on a PR or ticket, never approve.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/code-challenge
Challenge a proposed or finished change the way a senior reviewer would, decision first and code second. Most useful before the change is written, on your own plan or on someone else's design doc.
Loading this skill isn't enough. Before the step a row names, read its file.
| Before | Read |
| Filtering findings, or choosing the verdict line | reference/standard.md |
Inputs
Resolve the artifact, first match wins:
- A file path: a plan or a report.
- A ticket URL: resolved as
investigatestep 0 describes. - A design doc or RFC URL: fetched through the docs connector (
skills/kit-rules/reference/tooling.mdsection 4), with its comments. - A PR number or branch: its title, body, changed files, and diff, through the code host per
skills/kit-rules/reference/tooling.mdsection 4. - Nothing: the current plan file in plan mode, else the newest report in
kit scratch-dir, elsekit git-base --diff.
If the artifact links a ticket, fetch that too; the "why" lives there. Read the project's CLAUDE.md and load the pattern skills it suggests.
ADRs: kit adrs <path> for each path the artifact touches, and kit adrs alone, searched with rg for its terms. Each one read feeds checks 2 and 4. kit adrs failing means the repo keeps none.
Mode follows the input:
- Pre-change (plan, report, ticket): check against the files and symbols the artifact names, read from the repo.
- Post-change (diff, PR): check against the diff.
- Doc review (someone else's design doc): pre-change, plus three checks of the doc itself. Every claim it makes about the code (a module's role, a call path, a count) is checked against the repo. Each assumption it leaves unstated, the one that has to hold for the proposal to work, is named. Each failure mode it misses, along
skills/kit-rules/reference/verify.mdsection 2's axes, is listed. These come before the decision pass's own findings.
Decision pass (blocking)
Run in this order. Answer each from the repo first; only what the repo can't answer becomes a finding.
- Purpose. Is the why stated in one sentence? Is the change needed at all?
- What changes vs before. Compare current and proposed behavior: what's shown, hidden, or allowed, and under which conditions.
git log -Sor blame on the old behavior to learn why it existed before replacing it. - Blast radius and root cause. Count consumers of every shared unit touched, as
skills/code-impact/SKILL.mdConsumers does. Is the fix at the root, or in a shared layer whose other callers aren't broken? - Domain meaning. Which fields, states, or terms does the change assume a meaning for? Are they used that way elsewhere?
- Existing solution. Does the repo already have something that does this?
- Usage. Does every new export, option, or field have a consumer in this change?
- Breaking it. List the cases from
skills/kit-rules/reference/verify.mdsection 2's axes that apply. Don't run them. Pre-change: does the plan's verification cover them? - Scope and dependencies. Does part of this belong in a ticket, an upstream change, or a redesign? Is an upstream contract or design the change relies on actually in place?
Convention pass (non-blocking)
Only from the project's own rules, CLAUDE.md, and loaded pattern skills, never generic taste. Pre-change, check only the paths, names, and structure the artifact proposes.
Filter
Drop every finding the repo or the artifact already answers. Keep 3 to 7 blocking findings. Fewer is fine when the change is sound.
Report
Load the report-format skill and use its format, written to the path kit scratch-dir challenge <artifact-slug> prints, with these narrowings:
- The Scope line names the artifact and the mode, and says "no ADRs found" when the repo has none.
- The TL;DR's first bullet is the verdict line, in place of the health word:
- Post-change:
LGTM, a few non-blocking nits/LGTM, but <blocker>/let's discuss first: <decision> - Pre-change:
go/go after: <question>/let's discuss first: <decision>
- Post-change:
- Findings from the decision pass come first, the check named after the severity (
warning: Blast radius, ...). Severity isfailurewhen the evidence shows a defect,warningfor an open question that blocks. Convention-pass findings areinfo. - Each finding's location is a
file:linepost-change, or the artifact's section or step pre-change and in a doc review. - Each finding is shaped and worded per
skills/kit-rules/reference/output.mdsection 4.
Reply
The report path and the verdict line. On a doc review, then ask with AskUserQuestion whether to post the findings as comments on the doc.
Post (doc review, after the user's yes)
One comment per finding, through the docs connector, anchored to the section it's about, worded per skills/kit-rules/reference/output.md section 4, in report order. Log each comment's link in the report under its finding. A finding the user dropped isn't posted.
Stop
Read-only on the repo. Never edit, never comment on a PR or ticket, never approve. A doc gets comments only after the user's yes.
Arguments: $ARGUMENTS
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.

