Command Palette

Search for a command to run...

Back to skills
skill № 27732

Setup

Check instruction-placement prerequisites and index reachability (check, check inspect) or configure git hooks (apply, install-git-hooks).

FreeNo executable scripts
melodic-softwareby melodic-software★ 34 GitHub stars

Install Setup in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Setup

Pre-computed context

!"${CLAUDE_PLUGIN_ROOT}/scripts/precompute.sh" audit 2>/dev/null || echo "- Orientation unavailable"

Purpose

Thin check-centric setup per the uniform setup contract (docs/plugin-philosophy.md, "Setup is explicit and repeatable"): check inspects and reports, check inspect runs only the check inspect section, apply points at what it found.

The warrant is all three criteria, but one carries the weight. The index target is an external referent whose validity cannot be established by a configuration prompt. A prompt stores the path you typed; it cannot tell you that Claude Code will never read it. A CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md at the root is read instead of the AGENTS.md beside it, so a repository carrying both with no import between them gets a perfectly generated, perfectly in-sync index that never enters context, with every other gate green. Verifying that before a first audit is this skill's job; /instruction-placement:check asks the same question again on every gate run.

This skill treats the root AGENTS.md as shadowed wherever a CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md sits in the working directory or above it, and treats 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 observed the shadowing (same file, "The CI canary").

Secondary warrants: git backs tracked-file discovery for nested instruction files, node runs the git-hook installer and the session-start drift probe, and the optional empirical load probe needs the Claude Code CLI plus jq. The consumer-project files this skill writes are its git-hook entry copies, which apply install-git-hooks writes.

Action: check (default)

Read-only. Report each item with a verdict, and never repair anything.

1. Index target, the one that matters. Resolve it the way check does (explicit argument, then the root AGENTS.md or CLAUDE.md that holds the index marker, then root AGENTS.md, then root CLAUDE.md), then verify reachability:

"${CLAUDE_PLUGIN_ROOT}/scripts/render-index.sh" reachable --file <resolved target>
Verdict Meaning Say
LOADED Claude Code reaches it Name the file and the path it was reached by
NATIVE nothing in the repository blocks it Report it as unblocked, never as loaded: no CLAUDE.md on its path displaces it, and whether Claude Code read it also depends on version and session kind, which no static check sees. verify-load.sh is the only thing that proves it loaded
UNREACHABLE it exists and is never read The headline finding. Name the missing import
target absent no index home yet Not a failure. Say which file apply would propose

2. git. Present and this is a work tree? Nested-instruction discovery is tracked-only, so without git it falls back to a plain walk and cannot honor the tracked-only corpus rule. Report the degradation rather than implying full behavior.

3. node. Probe it through the Bash tool: command -v node && node --version. The git-hook installer and the session-start probe run on it, so without node on PATH the pre-commit entry cannot be installed or verified. FAIL when absent, with that consequence. The skills and scripts still work, and an already-installed entry keeps running at commit.

4. Empirical probe prerequisites. jq on PATH, and a Claude Code CLI. Both are optional: the static gates work without them and only verify-load.sh degrades. Say "optional, absent" rather than "missing". An absent optional prerequisite is not a failure.

5. Git pre-commit entry. Run node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" verify from the repository. Each line is <state>\t<entry>[\t<detail>]: ok is PASS, declined is INFO (this clone said no; silent at session start), and missing, stale, modified or superseded is a FAIL whose remediation is apply install-git-hooks; a superseded detail lists what an install under an earlier plugin name left, which that action removes on the user's yes. The entry needs no external tool. Outside a git repository, report INFO and skip the step.

6. Effective configuration. Print each value with its source, so a surprising number is traceable:

Setting Default Source to report
index target the root file holding the index marker, else root AGENTS.md, else root CLAUDE.md resolved-from
breadth_max 75 user_config or default
index_max_rows 40 user_config or default

A value equal to the default is still reported with its so

Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

  1. 01Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" verify:*)
  2. 02Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs verify:*)
  3. 03Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" inspect:*)
  4. 04Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs inspect:*)
  5. 05Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" plan:*)
  6. 06Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs plan:*)

Bundled files

  • reference/git-hook-decisions.md

FAQ

What does the Setup skill do?

Check instruction-placement prerequisites and index reachability (check, check inspect) or configure git hooks (apply, install-git-hooks).

How do I install the Setup skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the Setup skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare Setup with