Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By sdsrssv0.124.0MITIn 1 marketplace
Personal AI-coding discipline harness — one developer's opinionated AI-CODING-SPEC v9.0, enforced via Claude Code hooks + shipped with the plugin
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
claude-code, spec, hooks, enforcement, banned-vocab, ship-baseline
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
A personal AI-coding discipline harness: one developer's AI-CODING-SPEC v9.0 for Claude Code, plus a thin safety net of shell hooks. Built and dogfooded on my own repos — fork and adapt, don't adopt wholesale.
claudemd does two things:
CLAUDE.md, about 2.8 KB) into ~/.claude/, where Claude Code reads it as your user-global instructions, plus two modules (ship, review) that load only when a prompt asks for a release or a review.rm -rf "$VAR" on an unchecked variable, an unpinned npx <pkg>, a push while CI is red, a release command before the relevant MEMORY.md entries were read.Why this little: an outcome A/B with hidden tests (docs/claudemd-value-assessment-2026-11-25.md) found that the earlier 24 KB spec gave the same or lower correctness than no spec at 1.8–2.4× the cost, while the hooks alone cost 1.04× with unchanged correctness. Spec v9.0 keeps only what the model does not do by default.
Status & scope. A single-maintainer tool, exercised almost entirely on my own repositories. The defaults reflect my preferences. If you install it, expect to fork
spec/CLAUDE.md. Issues and PRs are welcome.
Run both slash commands inside Claude Code:
/plugin marketplace add sdsrss/claudemd
/plugin install claudemd@claudemd
Then bootstrap the current session and check it:
/claudemd-install
/claudemd-doctor
install copies the spec into ~/.claude/ and writes the install manifest; it is idempotent. Claude Code does not fire postInstall, so without /claudemd-install the same script runs at the next SessionStart. doctor runs the health checks, including the hooks' own self-tests.
⚠️
~/.claude/CLAUDE.mdis shared real estate. If you keep personal instructions there, install moves your file to~/.claude/backup-<ISO>/(last 5 kept) before writing the spec, and says so in a banner. To get it back, run/claudemd-uninstall restoreand then/plugin uninstall claudemd@claudemd, or merge the two files by hand.
| Tool | Required | Why |
|---|---|---|
node >= 20 | yes | install, doctor and the other scripts |
jq | yes | every hook parses Claude Code's event JSON with jq; without it the hooks fail open |
git | yes | ship-baseline-check, session-start-check, session-end-check |
gh | recommended | ship-baseline-check calls gh run list; without it shipping on red CI is not blocked |
coreutils | macOS only | GNU timeout: brew install coreutils, then put $(brew --prefix coreutils)/libexec/gnubin on PATH |
| Layer | Contents |
|---|---|
| 12 shell hooks | pre-bash-safety-check · ship-baseline-check · memory-read-check · banned-vocab-check · session-start-check · version-sync · spec-module-inject · sandbox-disposal-check · reply-language-check · memory-index-lines · tmp-sweep · session-end-check |
| 11 slash commands | /claudemd-install · /claudemd-status · /claudemd-update · /claudemd-refresh · /claudemd-audit · /claudemd-toggle · /claudemd-doctor · /claudemd-uninstall · /claudemd-clean-residue · /claudemd-design-adopt · /claudemd-statusline |
| 1 standalone CLI | claudemd-cli lint · claudemd-cli audit (npm: claudemd-cli) |
| Spec v9.0 | ~/.claude/CLAUDE.md · CLAUDE-extended.md · CLAUDE-changelog.md · OPERATOR.md · spec-modules/*.md |
| StatusLine (opt-out) | user@host:dir (branch) Model [ctx:N% · 5h:N% · 7d:N%], wired into ~/.claude/settings.json only when the slot is empty. Skip with CLAUDEMD_NO_STATUSLINE=1, hide the quota segments with DISABLE_STATUSLINE_QUOTA=1, manage with /claudemd-statusline. |
A hand-written ~/.claude/CLAUDE.md (any file without the # AI-CODING-SPEC heading) goes to ~/.claude/backup-<ISO>/, which restore reads. An installed claudemd spec that differs from the shipped one goes to spec-backup-<ISO>/ instead, which restore does not read. Both keep the last 5.
Hooks are registered by the plugin's own hooks/hooks.json; Claude Code expands ${CLAUDE_PLUGIN_ROOT} there, so the hooks follow the active plugin version.
Every hook fails open: a missing jq, malformed event JSON or a timeout lets the tool call through. Decisions are logged to ~/.claude/logs/claudemd.jsonl; /claudemd-audit aggregates them.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub sdsrss/claudemd --plugin claudemdPlugins from other owners that cover similar ground