/skill-loop:bootstrap [subdir to focus on, optional]from Skill Loop
One-time crawl of the current repo to generate the judgment-level coding skills and the linter/formatter config needed so Claude doesn't fail on the next PR. Run once per repo.
Ships in Skill Loop. Installing the plugin adds it to Claude Code.
You are performing the one-time bootstrap of skill-loop for this repository.
Goal: read the codebase and emit exactly the conventions Claude needs so it
won't violate them on the next PR. This is the only expensive, high-capability
pass — make it count, but stay disciplined and conservative. Optional focus
path: $ARGUMENTS
Project root: ${CLAUDE_PROJECT_DIR}
Plugin scripts: ${CLAUDE_PLUGIN_ROOT}/bin
If ${HOME}/.skill-loop/config has no model_reflect= line, the
user hasn't chosen models yet. Before crawling, settle it:
/skill-loop:configure does — apply the same
preset table and write the same keys (profile, model_bootstrap,
model_promote, model_reflect, model_ci).balanced.The configured model_reflect governs the recurring automatic learning, so this
choice is the main cost lever. After writing it: if model_bootstrap (default
opus) is not opus, relaunch the rest of this bootstrap via the Task
tool (general-purpose agent) at that model and relay its result; otherwise
continue here on Opus.
Use Bash/Glob/Grep, not guesswork:
package.json, pyproject.toml/requirements*.txt, go.mod, Cargo.toml,
Gemfile, pubspec.yaml, *.csproj, composer.json).*_test.go, *.test.ts, tests/,
*_spec.rb, test/), and how tests are named/structured..prettierrc*, .eslintrc*, eslint.config.*, ruff.toml/[tool.ruff],
.flake8, .rubocop.yml, .editorconfig, rustfmt.toml, .golangci.yml,
dprint.json, biome.json, analysis_options.yaml.Read a handful of representative, recently-changed source files plus 2–3 tests. Identify concrete, recurring conventions in these buckets:
For every convention you found, classify it:
Deterministic — anything a formatter/linter can mechanically enforce: indentation, quote style, import ordering, line length, trailing commas, semicolons, spacing. DO NOT create a skill for these. Instead:
.editorconfig always; .prettierrc for JS/TS; [tool.ruff]
in pyproject.toml or ruff.toml for Python; rustfmt.toml; etc.).Judgment-level — anything requiring taste/intent (the buckets in Step 2). These become skills. Each rule MUST come with a shell command that verifies compliance (a grep, a test invocation, a script). If you cannot write a verification command and the rule isn't enforceable by a linter, keep it only if it's clearly high-value; otherwise drop it.
When in doubt, prefer FEWER, higher-signal rules. Bloat is paid for in tokens on every future session.
First resolve where it goes (personal, per-project, never in the repo):
"${CLAUDE_PLUGIN_ROOT}/bin/sl-where.sh" # prints STATE_DIR, SKILL_NAME, SKILL_DIR, SKILL_FILE, SKILL_PATHS
Built for large codebases: ONE folder per project (<SKILL_DIR>) containing a
small SKILL.md that ROUTES to one supporting file per concern. The router's
description auto-loads; each concern file loads on demand only when relevant, so
the always-on cost stays tiny even as the skill grows.
(1) Write the router <SKILL_FILE>:
---
name: <SKILL_NAME>
description: <one precise line covering this repo's conventions, so it auto-loads when working here>
paths: <SKILL_PATHS>
---
# <project> conventions
Read the file for the area you're touching:
- **Naming** — `naming.md`
- **Layering** — `layering.md`
- **Error handling** — `error-handling.md`
List only the concerns you actually write a file for.
(2) Write one supporting file per concern at <SKILL_DIR>/<concern>.md
(naming.md, layering.md, testing.md, error-handling.md, domain.md):
# Error handling
- <imperative rule>
- <imperative rule>
**Verify:** `<command that checks compliance>`
Only create files for concerns with a real, verifiable rule. paths scopes the
whole skill to THIS repo so it never bleeds into your other projects.
Personal prefs (the model keys from Step 0 + the promotion threshold) live in the
GLOBAL ${HOME}/.skill-loop/config:
promote_min=2
Per-project signals/candidates live in the STATE_DIR printed by sl-where.sh
(already created). Never write anything into the repo or the plugin folder.
Show the user:
description, the rules, and
the verify command..skill-loop/config you wrote.Finally, record one line in the live activity log so the run shows in
/skill-loop:logs:
"${CLAUDE_PLUGIN_ROOT}/bin/event.sh" BOOTSTRAP "generated <N> skill(s) + <M> config(s)"
Keep skills minimal and every rule verifiable. After this runs once, the hooks take over and the skills improve on their own.
What the command file sets; muted values are Claude Code's defaults
opus7-day visitors to each command page
npx claudepluginhub joeljohn159/skill-loop --plugin skill-loop6 commands in this plugin
/configureskill-loop: CONFIGURE MODELSChoose which Claude models skill-loop uses for each stage (bootstrap, promote, the automatic reflect/learn loop, and CI). Pick a preset like "Opus everywhere" or set each stage yourself./learnskill-loop: LEARN NOWLearn right now from the current chat — flush everything captured this session (corrections, failures, new patterns, approvals) through the reflect pipeline immediately, instead of waiting for the session to end. Optionally pass a lesson to remember./learn-from-ciskill-loop: LEARN FROM CILearn from a failing CI build (any provider). Paste the red build's log into the chat (or pass a saved file); skill-loop turns it plus your local fix into a candidate rule — entirely locally. Nothing runs in your CI./logsskill-loop: LIVE LOGSOpen skill-loop's live activity log in a new terminal tab/window next to this session — a clean, readable stream of what it captures, learns, and updates (not the verbose debug log)./promoteskill-loop: PROMOTE (Layer 5)Promote recurring skill-loop candidate rules into your personal per-project skills, generalize them, prune stale entries, and keep a backup so every change is revertable. Run occasionally, when candidates have accrued.Other plugins' commands for the same job