Check
Read-only pass/fail CI gate for path-scoped instruction surfaces (silent failures in Claude Code): verifies every .claude/rules/ glob resolves and the rules…
от melodic-software★ 34 звезды на GitHub
Установить Check в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Check
Arguments. [--file <index-path>] [--breadth-max <pct>] [--repo <repo> ...]. Default: gate the
whole repository. --repo and the other target forms: "Over several repositories" below
Pre-computed context
!"${CLAUDE_PLUGIN_ROOT}/scripts/precompute.sh" check 2>/dev/null || echo "- Orientation unavailable"
Purpose
A gate, not an audit. It answers one question with one exit code: would every path-scoped instruction surface in this repository actually load when it is supposed to, and does the always-loaded index still describe what is on disk?
It fails a glob that matches nothing, a malformed bracket expression and a pattern over the brace budget, whatever Claude Code reports for each (how it treats one: Memory, "Path-specific rules"), because a rule that never fires leaves its convention absent from every session that needed it, and a repository can accumulate a dozen dead rules and look healthy.
Wire it into CI beside the linters. It is fast, deterministic, and has no judgment layer to drift.
What it checks
| Check | Mechanism | Failure means |
|---|---|---|
| Glob resolves | glob-tools.sh rules |
The rule never fires for any file in the repository |
| Frontmatter parses | same (FRONTMATTER row) |
The rule loads unscoped |
| Bracket expressions valid | same | The pattern silently matches nothing |
| Brace budget respected | same | The pattern is used unexpanded; its braces match nothing |
| Glob not over-broad | same | Advisory. The rule loads so often it saves nothing |
| Index in sync | render-index.sh check |
Deferred surfaces go unnamed: nothing tells an agent they exist |
| Index target loaded at all | render-index.sh reachable |
A root CLAUDE.md is read instead of the index and does not import it |
| Nested AGENTS.md wired | render-index.sh wiring |
An indexed nested surface never loads: a CLAUDE.md on its path is read instead and no CLAUDE.md imports it |
The last two are the least obvious. A repository carrying a CLAUDE.md-family file and an
AGENTS.md with no import between them can get a generated, in-sync index that never enters
context (which file Claude Code reads: pointer below): the subagent-gap mitigation does nothing
while every other check reports green. The same silence can repeat one level down, for a nested
AGENTS.md with a CLAUDE.md on its path and no import or symlink between them. Sync,
reachability, and wiring are independent questions; ask all three.
The reachability and wiring gates treat an AGENTS.md, at the root and in a subdirectory alike,
as shadowed wherever a CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md sits in the working
directory or above it, and treat direct AGENTS.md reading as dependent on the CLI floor and
session recorded in skills/migrate/reference/sources.md, "The minimum CLI version". A CI
canary, recorded in that file under "The CI canary", observed the shadowing.
- Pointer: for when Claude Code reads
AGENTS.mdand when that support is unavailable, see https://code.claude.com/docs/en/memory#when-claude-code-reads-agents-md and https://code.claude.com/docs/en/memory#when-agents-md-support-is-unavailable.
Over-broad is the one warning rather than a failure: breadth is a judgment about whether a demotion was worth making, not a statement that the rule is broken. Everything else is a hard fail.
Running it
"${CLAUDE_PLUGIN_ROOT}/scripts/glob-tools.sh" rules
"${CLAUDE_PLUGIN_ROOT}/scripts/render-index.sh" check --file <index-file>
"${CLAUDE_PLUGIN_ROOT}/scripts/render-index.sh" reachable --file <index-file>
"${CLAUDE_PLUGIN_ROOT}/scripts/render-index.sh" wiring
wiring takes no file: it walks every nested AGENTS.md the index would list and prints one
WIRED, NATIVE or UNWIRED row per file, exiting 1 on any UNWIRED. A repository with no
nested files prints NONE and exits 0, so silence from this subcommand means it did not run. The fix for an unwired file
is a one-line @AGENTS.md CLAUDE.md beside it, never removing the row. A NATIVE row is not a
finding: no CLAUDE.md on that file's path displaces it, so the shim is not what makes it load
there. It remains the cover for sessions that cannot read AGENTS.md at all, which is why a
NATIVE row is never a reason to remove one.
<index-file> is a precedence order, not a procedure. Take the first that applies:
| Precedence | Target | Why |
|---|---|---|
| 1 | An explicit --file argument |
The operator's own choice wins |
| 2 | The first of root AGENTS.md, root CLAUDE.md that holds the index marker |
Where the index already lives; the same rule as the index-check hook |
| 3 | Root AGENTS.md |
The portable home. Other agents read it too |
| 4 | Root CLAUDE.md |
The Claude-only fallback |
Name the winner in the report; the run is not complete until the output states which file was checked. If none exists, say so and skip
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
[ "Bash(${CLAUDE_PLUGIN_ROOT}/scripts/glob-tools.sh:*)" - 02
Bash(${CLAUDE_PLUGIN_ROOT}/scripts/render-index.sh:*) - 03
Bash(${CLAUDE_PLUGIN_ROOT}/scripts/verify-load.sh:*) - 04
Read - 05
Grep - 06
Glob - 07
]
FAQ
Что делает скилл Check?
Read-only pass/fail CI gate for path-scoped instruction surfaces (silent failures in Claude Code): verifies every .claude/rules/ glob resolves and the rules index matches disk. Use when: 'check my rules', 'validate paths frontmatter', 'is the rules index stale', or editing rules/paths. Not for applying fixes: /instruction-placement:realign.
Как установить скилл Check?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Check запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis 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…