ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 LeeHigma0201

check-ledger

実際に実行したチェックと、その後に変更されたファイルを記録します。ステータス行、/evidence、テスト済みと主張する前に Claude が読む証拠ツールを提供します。

LeeHigma0201@LeeHigma0201

LeeHigma0201/claude-code-mods/tree/main/mods/check-ledger

翻訳済み

この mod について

CLAUDE.md のステータスに関する主張を支える証拠を追跡する Claude Code mod です。Bash と編集ツールの呼び出しを監視し、実際のチェック(テスト、型チェッカー、ビルド、linter、validator、plugin test/validate)と対象外の呼び出しを見分けます。その後、✓ pnpm run typecheck · 2 files unchecked や ✗ pnpm test のような簡潔なステータス行を表示します。/evidence コマンドでは、直近 10 件のチェック、最後に成功したチェック以降に編集されたファイル、そして台帳が認める最も強いステータス語(tested と implemented locally)を確認できます。mcp__check-ledger__evidence ツールは同じレポートをモデルに公開しますが、ローカルリスナーが必要です。拒否された場合も 1 行を記録し、ステータス行と /evidence は動作し続けます。claude plugin test . で実行できる 3 つのテストが含まれます。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add LeeHigma0201/claude-code-mods
claude plugin install check-ledger
原文 / README

check-ledger

Keeps the evidence behind the CLAUDE.md status words: which real checks ran, whether they passed, and which files changed after the last pass.

  • Real check means the repo's tests, type-checker, build, linter or validator: pnpm test|typecheck|build|lint, vitest, jest, pytest, tsc, cargo/go/swift test/build, eslint, claude plugin test|validate, and similar. Syntax-only checks (bash -n, node --check, json.tool), --help and --version don't count. The outcome comes from the Bash call's own error flag.
  • Status line: ✓ pnpm run typecheck · 2 files unchecked, or ✗ pnpm test.
  • /evidence: the last 10 checks, the files edited after the last passing check, and the strongest word the ledger supports: tested (every edit has a passing check after it) or implemented locally.
  • evidence tool (mcp__check-ledger__evidence): the same report for Claude to read before it says "tested". The tool needs a local listener. Where that is refused (a sandboxed launch) it logs one line, and /evidence and the status line still work.

Limits: the ledger lives in the module and restarts on a reload or a new session. It only sees calls made in this session, including its subagents. It observes; it never blocks or changes a call.

Hooks: session.start, tool.call (Bash and edit tools, passed through unchanged), command.run. Calls: $.command.register, $.tool.register, $.ui.status, $.ui.log, $.clock.now.

Test: claude plugin test . (3 tests).

関連作品