bootstrap-cc-setuplisted
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