Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 of HEAD. An explicit slug overrides the SHA.
  • --socratic-cap N sets the maximum number of retries. The gate then marks the artifact FAILED and returns a non-zero status. The default is 3. Vibecheck has no limit, but easy-cheese prevents infinite loops.
  • --passing-score N sets the minimum SOLO score for PASS. Use a value from 1 through 5. The default is 3. The gate treats a previous PASS below this value as stale.
  • --no-judge enables log-only mode. Record the user's explanation with status: 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

  1. Resolve scope.

    • Set diff_base = origin/main and diff_head = <short-sha of HEAD>.
    • Load .cheese/specs/<slug>.md as the optional intent reference when it exists. The diff remains the source of truth.
    • Use the short SHA of HEAD when no slug exists.
    • If the diff against origin/main is empty, return 0 with "nothing to gate on". Do not write an artifact.
  2. 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 0 for every state. Read its state field. For previously_passed, print "previously passed" and stop. Continue to step 3 for stale or new. A nonzero exit status is an input error; its stderr line is JSON with error and exit_code. A result is stale when HEAD changes or the last PASS score is too low.

  3. 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-hunks before you compose the prompt:

    python3 skills/hard-cheese/scripts/hard-cheese.pyz rank-hunks \
      --base origin/main --head HEAD
    

    Show 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 /plate omits one of these four values. Stop with a non-zero status when a completion row has verified: false.

  4. Record the user's explanation as free text. Do not provide coaching or example answers. The explanation is the artifact under test.

  5. Start the judge sub-agent in a fresh context. Use the same pattern as the /cook fan pathway.

    • Use references/judge-prompt.md as the system prompt.
    • Provide the passing score, diff summary, optional spec excerpt, the targets JSON from rank-hunks, and user's explanation.
    • Require this JSON object: {score, level, pass, feedback, socratic_qs, targets_addressed}.

    See references/judge-prompt.md for the full system prompt and output shape.

    Skip this step when the user sets --no-judge. Mark the attempt status: LOGGED, write the artifact, and return 0.

Полный SKILL.md на GitHub

Установить hard-cheese в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

evals/autoimprove.jsonevals/journey-gates.jsonevals/journeys.jsonevals/journeys.mdreferences/commands.mdreferences/composition.mdreferences/judge-prompt.mdscripts/hard-cheese.pyzwedge.toml

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить hard-cheese с