Verify spelling prerequisites and its git pre-commit entry (check [inspect]), or resolve and register its git pre-commit entry (apply [install-git-hooks]).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/melodic-software-setup-1a36529c)
---
description: "Verify spelling prerequisites and its git pre-commit entry (check [inspect]), or resolve and register its git pre-commit entry (apply [install-git-hooks])."
argument-hint: "[check|apply] [inspect|install-git-hooks [scope=local|shared]]"
user-invocable: true
disable-model-invocation: true
allowed-tools:
- "Bash(command -v typos*)"
- "Bash(node \"${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs\" verify:*)"
- "Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs verify:*)"
- "Bash(node \"${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs\" inspect:*)"
- "Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs inspect:*)"
- "Bash(node \"${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs\" plan:*)"
- "Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs plan:*)"
- "Bash(sh \"${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh\" --resolve)"
- "Bash(sh \"${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh\" --resolve:*)"
- "Bash(sh ${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh --resolve)"
- "Bash(sh ${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh --resolve:*)"
shell: bash
---
# Setup
## Pre-computed context
`check`'s tool probe ran at load time. Read this row instead of re-issuing it; it shows the
tool's path when present, or `absent` when missing:
- `typos`: !`command -v typos 2>/dev/null || echo absent`
A row reading `[shell command execution disabled by policy]` carries no result: run the
`command -v` probe via Bash instead.
- **Pointer**: for the placeholder a skipped load-time command leaves, fetch
[skills § Inject dynamic context](https://code.claude.com/docs/en/skills#inject-dynamic-context)
live.
- **As of**: 2026-11-11
- **Recheck trigger**: the placeholder text changes.
## Purpose
Thin check-centric setup per the uniform setup contract (`docs/plugin-philosophy.md`
"Setup is explicit and repeatable" in the marketplace repository): `check` inspects and
reports, `apply` resolves. Spelling is one concern, lint: it reports and never rewrites. The git
pre-commit entry runs only the plugin's shipped typos adapter, with or without a repository typos
config; it never runs a command from the repository's spelling record
(`docs/conventions/ecosystems/spelling.yaml`), which `/toolchain:lint` (if enabled) and `/toolchain:check` (if enabled) run on
request. The only consumer-project files this plugin writes are its git-hook entry copies
(`apply install-git-hooks`); the record is written by `/toolchain:setup apply spelling` (if enabled), never
here. Rules come from the repository's own typos config, and the only tunable is the native
`userConfig` on/off toggle for the session-start probe. Unlike sibling formatter plugins
(Ruff, markdownlint-cli2), typos has no per-repo dependency-manager install path. It is a
standalone Rust binary installed at the machine level (cargo, Homebrew, Conda, pacman, or
a pre-built binary), never as a project dependency. `apply` is therefore guidance-only: it
never installs anything, matching the check's own PATH-only resolution and the plugin
philosophy's never-download-silently rule.
Action routing: no argument or `check` runs the check; `check inspect` runs only the
`check inspect` section; `apply` runs the check first, then
prints remediation guidance for each FAIL. Both are non-interactive. Never prompt when the
action is given. `apply install-git-hooks` is the one write path, and it asks only where its
section says to.
Step 1 of `check` only reports a Bash version because the skill cannot load where bash is missing:
with `shell: bash` on Windows without Git Bash the invocation fails before any command runs, so
this skill never gets to diagnose the missing Git Bash. The README Requirements section carries
that answer. Verification record. Claim: `shell: bash` without bash available fails the
invocation before any command runs, showing ``Skill <name> requires bash (`shell: bash` in
frontmatter) but Git Bash was not found``, and a failed injected command aborts the skill before
Claude sees its content. Basis: [How injected commands
run](https://code.claude.com/docs/en/skills#how-injected-commands-run) and [When an injected
command fails](https://code.claude.com/docs/en/skills#when-an-injected-command-fails). As of
2026-09-29. Recheck when a re-read of either section no longer describes that failure.
## `check` (read-only)
Spelling findings arrive at commit time, from the git pre-commit entry
(`${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh`). Nothing reports while Claude edits. Read that
script and `${CLAUDE_PLUGIN_ROOT}/git-hooks/adapters.sh` first: probe what they actually do, don't recite
this file. Then read the pre-computed tool row, run the remaining probes via Bash, and report a
PASS/FAIL/INFO table with one remediation line per FAIL. Do not modify anything.
Read each option value from this text; never put a `${user_config.*}` string in a shell command.
Open plugin files by the `${CLAUDE_PLUGIN_ROOT}` paths this skill names; never Glob or Grep the plugin directory.
An installed plugin runs from a deeply nested cache path, and a search passed that path can fail
to start on some hosts because the path is too long, while reading a named file still works.
typos stays a FAIL even when `spelling_enabled` is
off, because the installed git entry runs without Claude Code. Node.js (step 6) is a FAIL either
way too.
1. **Bash version.** Check against the README Requirements floor (3.2 or newer).
2. **typos binary.** The pre-computed `typos` row (PATH only, with no per-repo convention).
Report the resolved path and `typos --version` output when found. FAIL when absent: an agent's
commit then fails with the install command, and a person's commit passes with a notice.
3. **What the lint concern resolves to.** From the repository root run
`sh "${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh" --resolve`. It prints one row: plugin, concern,
source, tool, found, detail, tab-separated. It reads the adapter's config and runs nothing.
Append repository paths (`--resolve docs/a.md src/b.md`) for one row per file when the answer
can differ per file; the detail column then names the typos config that governs that file, or
says no typos config does. The adapter governs every file with or without a config: typos
resolves its own governing config from each checked path, and the adapter adds the bundled
`${CLAUDE_PLUGIN_ROOT}/config/default-typos.toml` with `typos -c`, whose `extend-*` keys merge
with the repository's. Which config files typos reads is in
`${CLAUDE_PLUGIN_ROOT}/git-hooks/adapters.sh`: read it to explain a row. Report from the rows,
never from this text:
- `adapter:typos` with found `yes`: PASS. found `no`: FAIL; the remediation is the
`${CLAUDE_PLUGIN_ROOT}/prerequisites.json` install hints (Read that path).
- The governing config, as INFO: named, or absent. An absent config does not make the check
inert; the user can add one to tune the rules. Do not offer to create one.
- A file row with source `none` and detail `generated (marker: <regex>)`: INFO. The entry
skips that file because its staged copy matches a generated-file marker in its first 5
lines. Extra markers come from the `spelling.generatedHeader` git config key
(`git config --get-all spelling.generatedHeader`).
A detail saying a spelling record exists is INFO beside the row: the entry never runs it, and
`/toolchain:lint` (if enabled) or `/toolchain:check` (if enabled) runs it on request.
4. **Draft, never write, the record.** When the person names a spell-checker the plugin ships no
adapter for, say that the entry will not run it: it runs only the shipped typos adapter. Find
the repository's own spell-checker by the steps in
[reference/ecosystem-resolution.md](../../reference/ecosystem-resolution.md), and draft the
`lint-cmd` value: it holds `<files>`, only reports, and prints findings as `<path>:<line>`
lines. Hand the draft to `/toolchain:setup apply spelling` (if enabled), the one writer of that key, so
`/toolchain:lint` (if enabled) and `/toolchain:check` (if enabled) can run it on request.
5. **Options.** Report the effective `spelling_enabled` value
(`${user_config.spelling_enabled}`; unexpanded or empty means `true`) as INFO.
6. **Node.js.** Run `node --version` via Bash. A `command -v node` hit is not enough: a
version-manager shim or a shell function resolves there yet cannot run a script. FAIL when
the command is absent or exits non-zero: the session-start probe and the installer are node
scripts. Node is a prerequisite separate from Claude Code. Pointer:
[Install with npm](https://code.claude.com/docs/en/setup#install-with-npm).
7. **Git pre-commit entry.** Run `node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" verify`
from the repository. It lists `lint`. 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 or entry name left (the `typos-check` entry `lint` replaced), which that action removes on the user's yes. A `tool\t<tool>\tmissing` line means the
installed entry cannot run here: list every such tool with its install method from the
`${CLAUDE_PLUGIN_ROOT}/prerequisites.json` (Read that path), so a lane or cloud setup script can provision it before an
auto-mode session commits. Outside a git repository, report INFO and skip the step.
## `check inspect` (read-only)
Follow [reference/git-hook-decisions.md](reference/git-hook-decisions.md) "check inspect", with `<plugin>` = `spelling` and
`<install>` = `${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs`.
## `apply install-git-hooks [scope=local|shared]`
Follow [reference/git-hook-decisions.md](reference/git-hook-decisions.md) "apply install-git-hooks", with `<plugin>` =
`spelling`, `<install>` = `${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs`, `<verify-step>` = `check` step
7, and the entry `lint`.
The `lint` entry only reports typos on the lines the commit adds. A decline of the earlier `typos-check` entry carries to it.
## `apply` (idempotent)
Run `check`, then for each FAIL print remediation guidance. Never install anything. There is
no `apply install-typos` write path. This skill follows the refusal template in
[docs/plugin-philosophy.md](https://github.com/melodic-software/claude-code-plugins/blob/main/docs/plugin-philosophy.md#install-subactions-and-refusal) `### Install subactions and refusal`
and prints the consumer-run install method instead. Both reasons apply: (1) every install is
machine-level (cargo, Homebrew, Conda, pacman, or a pre-built binary), not a dependency recorded
through the repo's package manager; (2) typos publishes several official install methods, so choosing one is the consumer's call.
Surface the platform-appropriate method from the install hints in
`${CLAUDE_PLUGIN_ROOT}/prerequisites.json` (Read that path).
After the consumer installs `typos` themselves, re-run `check` with live Bash probes (the
pre-computed row predates the install) and report its actual result.
Never claim resolved without re-verifying. For everything else `apply` only points:
- missing Bash / Node.js: platform install instructions from the README Requirements section;
this skill never installs system packages.
- toggle off: set `spelling_enabled` to `false` through Claude Code's native flow,
interactively with `/plugin configure spelling@<marketplace>` or by a headless route, as the
marketplace's plugin-reconfiguration convention gives them in
[§ The routes](../../reference/plugin-reconfiguration.md#the-routes)
(it owns the verified-version record). Apply the scope and failure-signal caveats in its
[§ Caveats every setup skill's short form carries](../../reference/plugin-reconfiguration.md#caveats-every-setup-skills-short-form-carries).
Read both sections and print what they give, the fallback route, its behavior on an
already-installed plugin and the scope to pass included, rather than only naming them, and
leave out the verified-version record.
Never uninstall to reconfigure; that section links what an uninstall deletes. This skill never
writes user settings or `pluginConfigs`. Afterwards rerun `check` in a **fresh session**, since a
same-session `check` can still show the old value, and report the observed effective value,
never an unobserved change.
- **Pointer**: for the headless command's flags, how it reports a saved or refused value, and
when a saved value applies, fetch
[plugin CLI reference § plugin configure](https://code.claude.com/docs/en/plugins/cli-reference#plugin-configure)
live.
- no typos config: offer to create a minimal `_typos.toml` in the repository root only when explicitly asked. The plugin imposes no rules of
its own.
Re-running `apply` after everything passes changes nothing and reports "already configured".
## Related
- Run repo-configured spell-checkers on request: /toolchain:lint.
- Persist a custom spelling lint-cmd record: /toolchain:setup.
## What this skill does not do
- Run the spell-checker. `git commit` exercises the installed pre-commit entry.
- Write the plugin cache, Claude Code user settings, or `pluginConfigs`.
- Write the spelling record (`docs/conventions/ecosystems/spelling.yaml`); `/toolchain:setup apply spelling` (if enabled) does.
- Install `typos`. Installation is always the consumer's own choice and command, at the
machine level, never a project dependency this skill records.
- Download tools, or run any during `check` or `apply` beyond the read-only `typos --version` and
`node --version` probes, the `lint.sh --resolve` row (which runs nothing) and the `install.mjs`
commands named above.