affinage
БесплатноЗапускает вложенные скриптыНе проверенTriage a GitHub PR's review comments, CI failures, and merge conflicts through the /age lens. Use when the user says "address the PR feedback", "fix the…
от paulnsorensen★ 20 звёзд на GitHubОб этом скилле
/affinage
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:
- Standalone — The user starts
/affinage <pr>withouthandoff_context. Run/ageon the PR diff unless the user passes--no-age. Add the new findings to the same report. - Chained —
/cookor/curesupplieshandoff_context. Skip the fresh review because/agealready ran in this chain.
See ## Fresh review for the entry rule.
See ## Merge-conflict resolution for the conflict path.
Phase entry
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.
Inputs
/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>acceptsblocker,high,medium+, orall. Bare--autouses themedium+default floor. Use the same floor rules as/cure. Send/cure --auto --stake <floor>. Post replies without prompts. Seereferences/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/plateopen a new PR when no PR exists. Without this flag,/plateonly 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>replacesmedium+.--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.
Flow
Read references/flow-details.md for exact commands, exit codes, and grading reasons.
- Resolve PR. Use
<pr-ref>orgh pr view --json number. Normalize aPR#<n>reference or a PR URL to its integer. Resolve<owner>/<repo>from the Git remote. - Fetch PR status. Run
python3 skills/affinage/scripts/affinage.pyz pr-status <pr>. Alogs_expired: truefield stops withstatus: halt: pr-status-logs-expired. A nonzero exit stops withstatus: halt: pr-status-unavailable. Route a conflicting or dirty merge state to## Merge-conflict resolution. - Check out the PR. Run
gh pr checkout <pr>. The fresh review and/cureread the PR head from the working tree. Skip this step when## Merge-conflict resolutionalready checked out the PR. Before a branch switch, stop withstatus: halt: pr-checkout-dirty-treeon a dirty tree. With--safe, ask before the checkout. A failed checkout stops withstatus: halt: pr-checkout-failed. - Fetch comments. Fetch inline threads from
pulls/<pr>/comments. Skip comments withposition: nullunless the user passes--include-outdated. Fetch review bodies frompulls/<pr>/reviews. Keep each nonempty body. Remove duplicates bypull_request_review_id. - Skip answered threads. Read thread resolution state from GraphQL
reviewThreads. Skip a thread that GitHub marks resolved. Skip a thread when the resolved GitHub handle replied after its root comment. - Run fresh review. Run this step only in standalone mode without
--no-age. Build contextual review input and call the bundledage-routecommand. Include the unresolved thread count from step 5 and the CI failure class. Run/agewith the complete subject plan and its evidence. Tag each new finding with[from-age:<dimension>]. - Grade claims. Classify each claim by the
/agedimension and severity rules. Do not incr
Установить affinage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл affinage?
Triage a GitHub PR's review comments, CI failures, and merge conflicts through the /age lens. Use when the user says "address the PR feedback", "fix the review comments on PR 123", "fix CI on my PR", "resolve this PR's merge conflicts", or "/affinage". Do not use for a diff without a PR. Use /age instead. Do not use for local Git conflicts without a PR. Use /melt instead.
Как установить скилл affinage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл affinage запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub