coding-rules
coding-rules — session loader
This skill loads the coding-rules guardrails into the current session and provides per-project install utilities. The skill does not contain the rules themselves — those live under ./resources/ (BOOTSTRAP.md plus references/, workflows/, hooks/, scripts/, templates/), bundled inside this skill folder.
Locating the bundled rule content
The skill is self-contained — BOOTSTRAP.md lives at ./resources/BOOTSTRAP.md relative to this SKILL.md. Resolve the absolute path via the first method that succeeds:
- Glob discovery (preferred). Use the
Globtool with pattern**/skills/coding-rules/resources/BOOTSTRAP.md. Common install locations are~/.claude/skills/coding-rules/resources/BOOTSTRAP.md(global) or<project>/.claude/skills/coding-rules/resources/BOOTSTRAP.md(project-local). Use the first match that exists. CODING_RULES_DIRenv var. If set, use${CODING_RULES_DIR}/resources/BOOTSTRAP.md.- Ask the user. If both fail: "Where is your coding-rules install? (Could not auto-locate BOOTSTRAP.md.)"
Once the BOOTSTRAP.md path is resolved, all other resource paths follow the same prefix — <install-root>/resources/references/..., <install-root>/resources/workflows/..., etc.
Harness engineering connection
coding-rules is the canonical implementation of harness-engineering primitives in this repo. The vocabulary lives in CLAUDE.md → "Harness vocabulary"; the working machinery lives here. Map: