make-pr-lite
Skill2 starsChanged 4 months agoMITView on GitHub
Use when explicitly asked to run /make-pr-lite on an already-scoped, low-risk single-module PR. A cheaper alternative to /make-pr — one self-TDD coder, the language gates, then a parallel panel of 3 reviewers plus a comment-reviewer and a critic, squashed to one commit. Not for feature decomposition, multi-module planning, or high-risk work (filesystem/state mutation, merge/refcount, destructive ops) — route those to /make-pr.
- Commits and pushes
In this repository17 other files it gives its agents.
- breakdownSkill
- course-correctSkill
- dispatchSkill
- explainSkill
- improve-architectureSkill
- latest-rebaseSkill
- make-prSkill
- pr-babysitSkill
- pr-breakdownSkill
- pr-explainSkill
- pr-makeSkill
- pr-make-till-mergeSkill
- prompt-reviewSkill
- shippedSkill
- to-ddSkill
- to-issuesSkill
- to-prdSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 136
Done: When all behaviors and gates are green, no CRITICAL / >=70 / aggregate blocker, comment-reviewer pass, and critic achieved.
- Distinctive: line 169
Keep a live table, one row per behavior, plus a panel-scores line after step 5.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
make-pr-lite
You orchestrate one already-scoped, low-risk PR to done: dispatch the agents, run the gates, judge the panel, decide. You never write production code or tests.
Use it for / route elsewhere
Use for greenfield or low-risk PRs: arg routing, parsing, models, read-only views, config, or code that only composes already-tested units and adds no new state mutation.
High-risk set → recommend /make-pr and stop (proceed only if the human explicitly confirms
lite for this task): filesystem/state mutation, destructive ops (delete, overwrite, .bak
restore), JSON/settings merge-and-unmerge, refcounting, content-hash/drift, or a cutover touching
existing behavior. (Lite verifies a RED's reason but never re-witnesses it live; only /make-pr
guarantees that.)
Runtime resolution
- skill_root — the directory this
SKILL.mdlives in; it holds only the SKILL.md itself. The rule files and the runtimegates/are resolved fromextras_root, not from here. - extras_root — the installer's state root
~/.claude/at, the single source of truth the installer stages a package's extras into — this skill'srules/andgates/live here. Resolving them from this one root keeps an install self-contained, with no dependency on a repo checkout. - rules_root —
~/.claude/at/rules, the rules the installer composes from the single canonical source; pass rule files as absolute paths (a subagent's cwd is the target repo, so bare names won't resolve). - target_cwd — the repo being changed; run every
git/gate command there. - run_root —
<target_cwd>/.v1-runs, writable; lite keeps no JSONL log — useWriteonly for theevidence/<branch-slug>/handoff at Done (branch-slug= the pushed branch with/and whitespace →_— the key/pr-explainjoins on). - base — user/spec-named → else
git merge-base HEAD origin/main→ else… main→ else stop and ask. - gates — preflight: pick
~/.claude/at/gates/<lang>.jsonby the task's language(s) /allowed_paths. After the coder runs, re-check againstgit diff --name-only <base>...HEAD. A changed language with no profile → stop and report. - rules to pass — always
design-principles.md;comments.mdtocoder-liteand the comment-reviewer only (comments are not the 3 reviewers' lens);tdd.mdfor behavioral work; the language rule (python.md/typescript.md/rust.md) per changed file type.
Agents
| Agent | Count | Job |
coder-lite | 1 (+ fix) | plan behaviors, self-TDD the whole PR, one commit |
reviewer | 3, parallel | the panel — each a focused lens-group |
comment-reviewer | 1, with the panel | scores the added comments against comments.md; each finding carries its replacement text |
critic | 1 (+1 on partial) | goal-fit: did the PR achieve the task? |
Dispatch the 3 reviewers and the comment-reviewer in one message (parallel). Then, after
they return, dispatch the critic — it needs the reviewers' findings. Each reviewer gets the
base ref (it runs git diff <base>...HEAD itself) and the absolute rule paths, with one
lens-group emphasized (it still reports any CRITICAL it sees outside its group). The groups
partition the reviewer's five lenses:
- correctness + security — lenses
bug,security. - rules-conformance + test-form — lenses
readability,test. - quality — lens
quality(covers simplicity/reuse).
The comment-reviewer gets the base ref, comments.md, english.md, and the language rule.
The critic gets the task spec, task type (behavioral if any slice has a test, else
non_behavioral), base, diff, changed test files, the coder's per-behavior RED evidence, the green
gate output, and the reviewers' findings. Each reviewer finding carries a 1–100 score and a
location (per the reviewer's return); the panel rules below gate on those.
The loop
- Intake. Restate goal, boundary/
allowed_paths, interface or files, acceptance criteria, language(s), base,dependencies_allowed. Missing any → stop for re-scope. High-risk set → route per Use it for / route elsewhere.TodoWritethe steps. - Preflight.
git status --short(dirty outside the boundary → stop). Run the gatesetuponce. If tests exist, run the test gate for a green baseline ("no tests yet" is neutral, never a final pass). A pre-existing, unrelated red → stop and report. - Build. Dispatch
coder-litemode: buildwith full context (goal, boundary, allowed_paths, interface, acceptance criteria, base,dependencies_allowed, absolute rule paths). Requirestatus: done, then verify its return:- each behavioral slice shows a right-reason RED:
behaviors[].redhas a nonzero exit and akey_outputthat is an assertion failure or a missing-symbol error naming the interface being added (coder-lite's RED rubric defines it). A behavioral slice withred: null→ route back. - the slice files reconcile:
union(behaviors[].files)equalsfiles_changedequalsgit diff --name-only <base>...HEAD. Every logic file (importable code defining or re-exporting a runtime symbol) appears in at least one behavioral (red ≠ null) slice; a logic file appearing only inred: nullslices → route back (a behavioral change cannot skip RED) — unless that slice is a pure rename/move with no content change (gitshowsR100).red: nullslices otherwise carry only declared formats (toml/yaml/ini/json/md). new_dependenciesempty unless allowed/named → else route back.blocked→ decide (re-scope, re-dispatch, or stop). Max 2 build re-dispatches, then stop and report to the human.
- each behavioral slice shows a right-reason RED:
Reproduce + gate (objective — before any judgment). First re-run the full suite yourself on HEAD and route on its outcome; once the suite is green, run the gate profile (
setuponce, then eachgates[].runin order) and route on each gate's outcome. All gates must pass before the panel. Max 2 fix rounds here, then stop. The table is total — every outcome has a row:Outcome Action suite green and every non-null behaviors[].testpassesrun the gate profile suite red, or a new test missing/failing coder-litemode: fix— behavioral regressioncollection error naming a missing third-party dep run gate setuponce, re-run; still missing →mode: fixif the dep is approved, else stop and report (scope)collection error naming a project module under change mode: fix— build failurea format/lint/typegate redmode: fix— mechanicalthe testgate redmode: fix— behavioral regressionany other gate red mode: fix— mechanical; name the gategate setupitself failsstop and report (environment, not a coder bug) Panel + critic (judgment — once, on the green diff). Dispatch the 3 reviewers and the comment-reviewer (one message), then the critic; read the returns directly. Each reviewer finding's
scoreis severity (1–100, higher = worse). Deduplicate reviewer findings by(file:line)(fall back to(file:issue)when a finding has no line), keeping the highest-scoring per location. Then block if any row fires:Condition Result any reviewer finding CRITICAL, score >= 70, or a reviewer'shas_criticalblock summed scoreof50–69reviewer findings>= 120block (findings < 50are advisory, never aggregate)comment-reviewer verdict fixorrewrite(gate on itsverdictonly — itsscoreis quality, not severity)block; its findings go to the coder verbatim critic verdict not_achievedblock critic verdict partialdispatch one second critic; block only if it also returns partial/not_achievedCRITICAL, a red gate, and a black-letter language-rule violation are never waivable. No blockers → Done.
- Fix once, re-verify in proportion. Capture
git rev-parse HEADas<pre_fix>, then route all blockers back as one batchedcoder-litemode: fix(findings verbatim; for a comment-reviewermovefinding, keep the cut text for the PR body). After it lands: always re-run the gates; re-review the fix with the reviewer(s) whose lens-group covers each routed blocker, passing<pre_fix>as the diff base so they see only the fix's hunks (git diff <pre_fix>...HEAD) — the comment-reviewer too, when the round touched a comment; re-run the critic only if the fix changed behavior or coverage. One fix round (separate from step 4's budget); a second only if round 1 introduced a new blocker. Then Done, or escalate the remainder to the human as waive-or-rescope. - Done. When all behaviors and gates are green, no CRITICAL /
>=70/ aggregate blocker, comment-reviewerpass, and criticachieved. Squash to one commit:git reset --soft <base> && git commit -m "<conventional subject>"(no AI attribution). Confirm only boundary files changed (git diff --name-only <base>...HEAD). Write the evidence handoff<run_root>/evidence/<branch-slug>/evidence.json(schema~/.claude/at/schemas/evidence.schema.json;pipeline: "make-pr-lite"): onebehaviors[]entry per slice —name,test,files,redverbatim from the coder's return,kind=behavioraliffredis non-null;green= your step-4 suite re-run (cmd,exit_code,key_output) withlines_addedsummed fromgit diff --numstat <base>...HEAD -- <the slice's non-test files>, ornullfor every slice sharing a production file with another slice (a shared file makes per-slice counts non-derivable; never double-count) — plus onegates[]entry per gate in the final green pass with its realkey_outputnumbers, and oneruntime[]entry per capture of the change actually working — the branch is built right now, so for a behavioral run drive the built artifact end to end (kind: "run_output", real data seeded) and screenshot anything a person looks at that now comes out different; each entry carrieskind,what, thecmd, and either verbatimkey_outputor apathcopied into.../runtime/./pr-explainscores these on its proof ladder, where a green suite is worth a fraction of one real run.[]only when the slice is non-behavioral or nothing can be launched here — say which in the summary. Validate it:uv run --no-project --with jsonschema python ~/.claude/at/scripts/validate_return.py ~/.claude/at/schemas/evidence.schema.json <that file>— a failing file blocks the push. Then ship it without asking: branch first if still on the default branch,git push -u origin <branch>(--force-with-leaseonly if this run already pushed the branch before the squash), andgh pr createagainst the default branch (or the task-named target), referencing the task/issue in the body and carrying the text everymovefinding cut. Summarize with the PR URL — done needs no human confirmation. Then invoke thepr-explainskill (Skill tool, args: the new PR number) — it publishes the explainer page from the evidence handoff and maintains the PR-body teaser; headless it degrades to markdown in the body on its own, so never skip it; a failure goes in the summary and never reopens done.
Status table
Keep a live table, one row per behavior, plus a panel-scores line after step 5. Example:
| B1 discount applies to subtotal | RED✓ | GREEN✓ | gate✓ | panel: 0 blockers |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.

