clean-code-setup
Installation
SKILL.md
Clean Code Setup
Make the rules in /clean-code enforceable by tooling. Prose asks; a linter insists; a hook makes it automatic. Run once per repo, and again after adding a language.
Templates live in ${CLAUDE_SKILL_DIR}/templates/. Arguments: $ARGUMENTS (--no-hooks skips step 5).
1. Detect
- Stacks present:
package.json(with or withouttsconfig.json),pyproject.tomlorrequirements*.txt,go.mod,Cargo.toml. Several may apply; handle each. - JavaScript package manager from the lockfile (
pnpm-lock.yaml,yarn.lock,bun.lock*, else npm). - Existing formatter, linter, typecheck, and test configuration for each stack, and any umbrella command (
check,ci,validate,lint:all, a Makefile target). - Existing
CODING_STANDARDS.md,CLAUDE.md,AGENTS.md,.claude/settings.json,.claude/hooks/.
Existing configuration is merged into, never overwritten. Show the diff of every config change.
Done when the stacks, their current tooling, and the umbrella command (or its absence) are listed.