← ClaudeAtlas

bootstrap-cc-setuplisted

Write the always-loaded rules layer that a plugin cannot ship into the current repo: a CLAUDE.md skeleton (purpose + gotchas only) and a generic workflow.md rule (model notes only). Optionally vendors the pre-commit gate hooks into .claude/hooks/ for git-tracked, collaborator-visible enforcement. Run once per new repo after installing the sam-cc-setup plugin. NOT for repos rendered by the Loam Copier template (they already have this layer).
SamyakJhaveri/loam · ★ 0 · AI & Automation · score 68
Install: claude install-skill SamyakJhaveri/loam
# bootstrap-cc-setup Plugins cannot inject always-loaded context (`CLAUDE.md`, `.claude/rules/*.md`). This skill writes that layer. Everything else in sam-cc-setup (skills, agents, the gate hooks) already works the moment the plugin is enabled - do not copy it. ## Invariants 1. **Never overwrite silently.** If a target file exists, show a diff of what would change and ask before touching it. 2. **Report everything written, with the undo command, at the end.** ## Steps ### 1. Detect what is already there ```bash ROOT="$(git rev-parse --show-toplevel)" || { echo "Not a git repo - run git init first"; exit 1; } ls -la "$ROOT/CLAUDE.md" "$ROOT/.claude/rules/workflow.md" 2>/dev/null ``` If the repo looks Loam-rendered (`.copier-answers.yml` present), stop and say so - this skill would fight the template. ### 2. Write `CLAUDE.md` (skeleton) Copy `templates/CLAUDE-skeleton.md` from this skill's directory to `$ROOT/CLAUDE.md`, filling `{{PROJECT_NAME}}` from the directory name. The skeleton is purpose + gotchas only - explicitly NOT a directory tour; the codebase is the README. Do not pad it. If a CLAUDE.md exists, offer to append only the "Pipeline gate" section instead. ### 3. Write `.claude/rules/workflow.md` (model notes only) Copy `templates/workflow-model-notes.md` to `$ROOT/.claude/rules/workflow.md`. It contains the model-notes section only - the Fable 5 / Opus 5 guides invert on subagent use and self-verification, and following the wrong one is costly both ways