hard-cheese
БесплатноЗапускает вложенные скриптыНе проверенChecks whether an author can explain a code change before review. Use when the user requests `/hard-cheese`, `/cheese --hard`, or an understanding check. Use…
от paulnsorensen★ 20 звёзд на GitHubОб этом скилле
/hard-cheese
The gate reduces epistemic debt. This debt exists when code passes checks, but the author cannot explain it.
Inputs
/hard-cheese [<slug>] [--socratic-cap N=3] [--passing-score N=3] [--no-judge]
Arguments:
<slug>identifies the artifact at.cheese/hard-cheese/<slug>.md. This argument is optional. Without it, use the short SHA ofHEAD. An explicit slug overrides the SHA.--socratic-cap Nsets the maximum number of retries. The gate then marks the artifactFAILEDand returns a non-zero status. The default is3. Vibecheck has no limit, but easy-cheese prevents infinite loops.--passing-score Nsets the minimum SOLO score for PASS. Use a value from1through5. The default is3. The gate treats a previous PASS below this value as stale.--no-judgeenables log-only mode. Record the user's explanation withstatus: LOGGED. Do not start the judge sub-agent. This mode is the easy-cheese equivalent of the optional JSONL telemetry mode in vibecheck. It retains more content. See## Divergence from the paper.
Invocation modes
| Mode | How the gate runs | Where the gate sits |
|---|---|---|
| standalone | The user runs /hard-cheese <slug> before a pull request. |
Outside the pipeline. No upstream skill is required. |
| propagated | /plate --hard runs /hard-cheese <slug> after the final writes and before publication. |
At the verified-artifacts to share-for-review boundary. |
--hard passes through /cheese → /mold → /cook (⇄ /press) → /age → /cure → /plate. Only /plate runs /hard-cheese.
See ../cheese/references/harness-portability.md for portability requirements. It covers helper resolution, sub-agent dispatch, GitHub operations, and handoff transitions.
Use the bundle or repository helper first. Use ${CLAUDE_SKILL_DIR} only as an optional host fallback.
The handoff blocks define the portable contract because slash commands are host renderings, not the control model.
Flow
Resolve scope.
- Set
diff_base = origin/mainanddiff_head = <short-sha of HEAD>. - Load
.cheese/specs/<slug>.mdas the optional intent reference when it exists. The diff remains the source of truth. - Use the short SHA of
HEADwhen no slug exists. - If the diff against
origin/mainis empty, return0with"nothing to gate on". Do not write an artifact.
- Set
Freshness check. Run the freshness check before you run the gate:
python3 skills/hard-cheese/scripts/hard-cheese.pyz freshness-check \ --slug <slug> --passing-score <n>The command prints one JSON object and exits
0for every state. Read itsstatefield. Forpreviously_passed, print"previously passed"and stop. Continue to step 3 forstaleornew. A nonzero exit status is an input error; its stderr line is JSON witherrorandexit_code. A result is stale whenHEADchanges or the last PASS score is too low.Rank the hunks, then compose the vibecheck prompt. Keep it faithful to Sankaranarayanan 2026. Use "share for review" to keep the gate implementation independent.
Run
rank-hunksbefore you compose the prompt:python3 skills/hard-cheese/scripts/hard-cheese.pyz rank-hunks \ --base origin/main --head HEADShow the ranked regions next to the diff summary, one line per hunk, as
path:start-end — reasons. Put the changed lines from every ranked region in the 80-line diff summary before other context. Make no judge call before the first attempt.Before this is shared for review, explain in your own words what this change is for. How does
work? Why does it produce the desired behavior? What state, control flow, or invariants does it rely on? Start with the highlighted regions. Show a diff summary with the prompt. For
/plate, also show the complete final evidence:- the final artifact inventory,
- each
{target, backend, verified}completion row, - the tracked artifact diff,
- the quality gate result.
Stop with a non-zero status when
/plateomits one of these four values. Stop with a non-zero status when a completion row hasverified: false.Record the user's explanation as free text. Do not provide coaching or example answers. The explanation is the artifact under test.
Start the judge sub-agent in a fresh context. Use the same pattern as the
/cookfan pathway.- Use
references/judge-prompt.mdas the system prompt. - Provide the passing score, diff summary, optional spec excerpt, the
targetsJSON fromrank-hunks, and user's explanation. - Require this JSON object:
{score, level, pass, feedback, socratic_qs, targets_addressed}.
See
references/judge-prompt.mdfor the full system prompt and output shape.Skip this step when the user sets
--no-judge. Mark the attemptstatus: LOGGED, write the artifact, and return0.- Use
Установить hard-cheese в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл hard-cheese?
Checks whether an author can explain a code change before review. Use when the user requests `/hard-cheese`, `/cheese --hard`, or an understanding check. Use it before a pull request or through the `--hard` pipeline flag. Do not use it for reviews, test hardening, or fixes.
Как установить скилл hard-cheese?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл hard-cheese запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic