/easy-cheese:affinagefrom easy-cheese
Triages GitHub PR review comments, CI failures, and merge conflicts by grading claims and sending accepted ones for automated resolution.
Ships in easy-cheese. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Act on existing claims about a PR.
Claims can come from reviewers, CI checks, or merge conflicts.
Grade each claim through the /age lens.
Send accepted claims to /cure.
/affinage always grades claims that exist on the PR.
Its entry path controls whether it also finds new /age findings:
/affinage <pr> without handoff_context.
Run /age on the PR diff unless the user passes --no-age.
Add the new findings to the same report./cook or /cure supplies handoff_context.
Skip the fresh review because /age already ran in this chain.See ## Fresh review for the entry rule.
See ## Merge-conflict resolution for the conflict path.
Run python3 skills/affinage/scripts/affinage.pyz wheypoint-resolve --ref <slug>.
authoritative uses the record; its working_context is the first batched tilth_read.
not-found proceeds cold; legacy shows its source and slug, then proceeds.
gated, ambiguous, and error stop and show the payload.
Show advisory stale-commit and grounded-path-missing findings.
/affinage [<pr-ref>] [--auto --stake <floor>] [--plate] [--safe] [--open-pr] [--hard] [--full] [--include-outdated]
<pr-ref> accepts a PR number, a PR#<n> reference, or a full GitHub PR URL.
Extract the integer before you call pr-status.
The command accepts only the integer.
If no reference exists, run gh pr view --json number on the current branch.
Flags:
--auto --stake <floor> — Run without selection prompts.
<floor> accepts blocker, high, medium+, or all.
Bare --auto uses the medium+ default floor.
Use the same floor rules as /cure.
Send /cure --auto --stake <floor>.
Post replies without prompts.
See references/auto-mode.md.--safe — Add gates before cure selection and conflict resolution.
This flag does not remove the default reply gate.--open-pr — Let terminal /plate open a new PR when no PR exists.
Without this flag, /plate only updates an open PR.--plate — Run --auto --stake medium+ --open-pr.
Grade the claims.
Cure the selected findings.
Post the replies.
Then run /plate.
An explicit --stake <floor> replaces medium+.--hard — Pass the metacognitive gate flag to terminal /plate.--full — Show all low findings when at least 10 low findings exist.--include-outdated — Include outdated review threads.--no-age — Skip the fresh review in standalone mode.
This flag has no effect in chained mode.Read ../cheese/references/harness-portability.md for portability rules.
It covers helper resolution, agent dispatch, GitHub operations, and handoff transitions.
Use the bundle or repository helper first.
Do not use the ${CLAUDE_SKILL_DIR} environment variable in an invocation path.
The handoff blocks below define the portable contract.
The rule "slash commands are host renderings, not the control model" applies here.
Read references/flow-details.md for exact commands, exit codes, and grading reasons.
<pr-ref> or gh pr view --json number.
Normalize a PR#<n> reference or a PR URL to its integer.
Resolve <owner>/<repo> from the Git remote.python3 skills/affinage/scripts/affinage.pyz pr-status <pr>.
A logs_expired: true field stops with status: halt: pr-status-logs-expired.
A nonzero exit stops with status: halt: pr-status-unavailable.
Route a conflicting or dirty merge state to ## Merge-conflict resolution.gh pr checkout <pr>.
The fresh review and /cure read the PR head from the working tree.
Skip this step when ## Merge-conflict resolution already checked out the PR.
Before a branch switch, stop with status: halt: pr-checkout-dirty-tree on a dirty tree.
With --safe, ask before the checkout.
A failed checkout stops with status: halt: pr-checkout-failed.python3 skills/affinage/scripts/affinage.pyz pr-threads <pr>.
Add --include-outdated when the user passes it.
A nonzero exit stops with status: halt: pr-threads-unavailable.skipped and truncated fields in the PR status section.--no-age.
Build contextual review input and call the bundled age-route command.
Include the unresolved thread count from step 5 and the CI failure class.
Run /age with the complete subject plan and its evidence.
Tag each new finding with [from-age:<dimension>]./age dimension and severity rules.
Do not increase severity because a reviewer selected CHANGES_REQUESTED.
Put contained fixes in severity sections.
Put claims that need outside evidence in ## Needs-investigation.
Put wrong, unsupported, or large claims in ## Reviewer-rejected.
Put claims that the current head already fixes in ## Already-addressed..cheese/affinage/pr-<n>.md.
Start with the four-line handoff slug.
Add the /age report body and the affinage sections.
See ## Output.
Then run python3 skills/affinage/scripts/affinage.pyz findings recommend --report .cheese/affinage/pr-<n>.md.
Set the next: line to its next value.## Handoff./cure.
Read ### Applied and ### Deferred from .cheese/cure/pr-<n>.md.
Draft Fixed — <applied summary>. for applied comment findings.
Draft Attempted fix reverted — <reason>. for deferred comment findings./cure run without --auto.
/cure --auto runs its own scoped /age chain.
Run the /age <slug> --scope <touched-path> command that .cheese/cure/pr-<n>.md recommends.
Start each reviewer worker prompt with the line Review mode: severity-report.
Use the /age findings, not its handoff gate.
Send the new findings to one more /cure by the ## Handoff rules.
Do not re-review that second /cure.
Do not draft replies for these findings.
Report each finding that remains as a residual.--auto is active.
Post approved replies with python3 skills/affinage/scripts/affinage.pyz post-reply.
Resolve each approved already-addressed thread with affinage.pyz resolve-thread <thread_id>./cure applies at least one fix.
Also publish when /melt resolved a merge conflict.
Send terminal /plate [--open-pr] [--hard] [--safe].
Then run the post-PR learning write-back from ../cure/SKILL.md.
Skip publication and write-back when the working tree has no change.Standalone mode calls the router with entry="affinage".
Pass the PR reference and the router values to /age.
This prevents /age from calculating a smaller route with entry="age".
Add each result to its severity section with [from-age:<dimension>].
Send these findings to /cure like other findings.
Do not post GitHub replies for these findings.
Run the fresh review before you grade external claims.
This order lets you remove duplicate findings.
Use the same agent gate as the grading step.
Start each reviewer worker prompt with the line Review mode: severity-report.
When pr-status reports conflicts, send the PR to /melt.
/melt uses mergiraf, rerere, and kdiff3.
Do not resolve conflicts by hand.
Default and --auto modes run checkout and /melt before /cure.
--safe requires the handoff gate first.
If /melt fails, write status: halt: merge-conflicts-need-human and stop.
/melt leaves the resolution uncommitted.
Terminal /plate commits and pushes that resolution.
See references/merge-conflict.md.
Keep dialogue, selection, approval state, and reply posting in the parent context.
Use a fresh read-only reviewer when any limit below is true:
Resolve the reviewer through the shared agent resolver.
Start the reviewer prompt with the line Review mode: severity-report.
Without that line, the reviewer agent returns blocked: missing-contract.
Use a general worker only with degraded: true.
The reviewer returns a compact digest of graded findings.
Each finding includes its dimension, severity, confidence, evidence, and draft push-back.
The parent writes the report, controls selection, calls /cure, and posts replies.
See ../age/references/sub-agent-gate.md for digest limits.
Use code-intelligence-routing.md for source code operations.
Use these affinage tools:
| Need | Prefer | Fallback |
|---|---|---|
| PR status | python3 skills/affinage/scripts/affinage.pyz pr-status | gh pr checks and gh pr view |
| GitHub fetch | gh api | none; stop the skill |
| Thread fetch | affinage.pyz pr-threads | none; stop the skill |
| Thread resolve | affinage.pyz resolve-thread | none; stop the skill |
| Reply posting | python3 skills/affinage/scripts/affinage.pyz post-reply | none; direct gh api calls omit attribution |
Write the report to .cheese/affinage/pr-<n>.md.
Start with the four-line handoff slug.
Then add the /age report body and the ## PR status section.
Use the severity sections from /age.
Add the ## Needs-investigation and ## Reviewer-rejected sections from /affinage.
See references/report-template.md.
status: <canonical status field>
next: cure | done
artifact: <path-to-prior-cure-or-press-report-if-any>
<one-line orientation: what the PR does and what was graded>
Use the canonical status: grammar from the handback contract.
Only next: and the extra keyed lines are phase-specific.
Omit empty sections.
Use status: ok after grading completes.
Use status: halt: <reason> when gh or pr-status fails.
Set next: by the rules in ## Handoff.
Pipeline: culture → mold → cook (⇄ press) → age → cure → plate.
/affinage runs parallel to /age and sends findings to /cure.
By default, affinage acts without a prompt.
Ask only when the ask list from findings recommend is not empty, findings conflict, or --safe is active.
resolved_ids from findings recommend.
Without an ask reason, announce the selection.
Then send /cure the locked handoff_context.
Then show one reply gate for every drafted reply.
That gate covers the applied, deferred, push-back, and investigation replies.
With an ask reason, show the cure selection gate instead.
Use the shared gate in ../cheese/references/handoff-gate.md.
Preselect the composite and identify large rows.
--auto skips both gates./cure.
Show the reply gate.
Then wait for a selection.
--auto skips this gate.Then follow Flow steps 10 through 14.
Set status: ok / next: done when no action remains.
Set next: from findings recommend (Flow step 8), the same rule as /age.
Read references/auto-mode.md when --auto or --plate is active.
It defines the selection, cure chain, reply, and publication steps.
Pass --hard to terminal /plate.
/plate runs /hard-cheese after it verifies the final artifact.
/cure does not call /plate in this chain.
The gate therefore runs once at the publication boundary.
/cure as Low.## Reviewer-rejected for wrong, unsupported, or large claims./cure and merge conflicts to /melt.--auto is active.python3 skills/affinage/scripts/affinage.pyz post-reply.agent on behalf of <handle>.<handle>; RESPOND_GH_HANDLE overrides it.../age/references/voice.md.certain, speculating, or don't know for confidence.Read each affinage reference when its trigger applies:
references/flow-details.md — read when you run Flow steps 2, 3, 4, 5, 6, 7, 10, or 13.references/merge-conflict.md — read when pr-status reports a conflicting or dirty merge state.references/report-template.md — read when you write the report at Flow step 8.references/handoff-templates.md — read when you render the cure selection gate or the reply gate.references/auto-mode.md — read when --auto or --plate is active.references/commands.md — read when you need the exact flags of a bundled command.
The file is the generated command inventory.Use ../age/references/sub-agent-gate.md for the shared agent gate.
Resolve each dispatch through ../cheese/references/agent-resolution.md.
| Work | Preferred types | Permissions/isolation | Minimum power | Effort | Fallback |
|---|---|---|---|---|---|
| Triage review claims and CI evidence | reviewer | read-only, fresh context | powerful | high | compatible reviewer, then general |
The canonical affinage report includes the shared agent_resolution block.
evals/autoimprove.json (opens in a new tab)evals/journey-gates.json (opens in a new tab)evals/journeys.json (opens in a new tab)evals/journeys.md (opens in a new tab)references/auto-mode.md (opens in a new tab)references/commands.md (opens in a new tab)references/flow-details.md (opens in a new tab)references/handoff-templates.md (opens in a new tab)references/merge-conflict.md (opens in a new tab)references/report-template.md (opens in a new tab)wedge.toml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
16 skills in this plugin
/ageReview a diff, PR, branch, or path across seventeen dimensions. Emit a severity-grouped findings report. Use when the user wants a code review. Trigger on "review this", "/age", "is this safe to merge", or "find bugs". Also trigger on "spot security issues", "check for slop", "review my PR", or "what's wrong with this code". Review every requested dimension. Review all seventeen dimensions by default. Do not apply fixes. Route them to /cure. Do not harden tests; route that work to /press./briesearchResearches cited evidence from documentation, current web sources, repositories, local code, and Git hosting. Use when the user asks to research, compare, investigate, verify facts, find guidance, assess maintenance, or gather evidence before implementation. Trigger on "research X", "compare A vs B", "what's the latest on", "is X still maintained", "ground this plan in the docs", or "/briesearch". Do not use for one clear file lookup or when the user already has sufficient evidence./cheeseGenerated from the plugin's indexed repository (paulnsorensen/easy-cheese) — no native marketplace selected
npx claudepluginhub p/paulnsorensen-easy-cheeseOther plugins' skills for the same job