analyze-repo
Analyze an existing repository's structure, conventions, and guardrails.
Analyze the current project's structure **and** your past routing history, then recommend a per-project routing profile — e.g. a small, low-risk project can send everything through one cheap model (like `glm-5.2`), while security-sensitive files always escalate to Claude.
$ npx -y skills add alinaqi/claude-bootstrap --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/route-evalContext preview
What this command does when you run it.
Analyze the current project's structure **and** your past routing history, then recommend a per-project routing profile — e.g. a small, low-risk project can send everything through one cheap model (like `glm-5.2`), while security-sensitive files always escalate to Claude.
Analyze the current project's structure **and** your past routing history, then recommend a per-project routing profile — e.g. a small, low-risk project can send everything through one cheap model (like `glm-5.2`), while security-sensitive files always escalate to Claude.
The profile is stored **privately, per-machine** at `~/.claude/projects/<encoded-cwd>/routing.yaml` (never committed) and overrides the global `~/.maggy/routing.yaml` for work in this project. It stays fully hand-editable.
---
`/route-eval` — evaluate + show a recommendation, write only after you confirm `/route-eval show` — print the project's current profile (if any) `/route-eval --model <id>` — use a different cheap default for the `simple` profile
---
Resolve the Maggy package from the bootstrap pointer and evaluate:
BOOTSTRAP_DIR="$(cat ~/.claude/.bootstrap-dir)" RUN="PYTHONPATH=$BOOTSTRAP_DIR/maggy python3 -m maggy.route_eval"
eval "$RUN plan --cwd \"$(pwd)\" --model glm-5.2"
Present the JSON to the user in plain language:
`critical` (security surface / large repo → premium tiers).
and the dominant tier in your routing history.
Explain the trade-off in one line (cost vs. safety), then ask: **write this profile?**
eval "$RUN apply --cwd \"$(pwd)\" --model glm-5.2"
Report the written path and remind the user it is private (not committed) and can be edited by hand — profile, default model, and escalation rules are all adjustable.
cat "$HOME/.claude/projects/$(pwd | tr '/' '-')/routing.yaml" 2>/dev/null \ || echo "No profile yet — run /route-eval to create one."
---
`decide_model(profile, task)` applies the profile at task time:
1. **Security first** — if the task is flagged security-sensitive, is an auth/billing/security task type, or touches a file matching an `escalate_paths` glob → route to the escalation model (Claude), regardless of profile. 2. **`simple`** → everything else goes to `default_model` (e.g. `glm-5.2`). 3. **`balanced` / `critical`** → fall through to the normal complexity ladder in `model_router` (with `critical` biased toward premium tiers).
Edit `~/.claude/projects/<encoded-cwd>/routing.yaml` directly. Common tweaks:
new backend — GLM, a local endpoint, anything.
---
structure + history and proposes an updated profile (still confirm-before-write).
recommendation; a Claude/Codex-heavy history nudges away from `simple`.
`~/bin` wrapper or a `providers:` `base_url`; the profile decides *which* model, the provider layer executes it.
Turn Claude Code into a self-reviewing, test-enforced engineering system that remembers context across sessions — then route work across 13 models from a single dashboard.
Repo: alinaqi/claude-bootstrap
Analyze an existing repository's structure, conventions, and guardrails.
Full dynamic analysis of workspace topology, dependencies, and contracts.
Build-in-Public — generate posts from your engineering work, anonymize, and schedule via Buffer
Checks who's working on the project and optionally converts to a multi-person project with team state management.
Infer ReasonNodes from existing git commit history. One-time setup for existing codebases.
Run a full drift scan and display all unresolved drift events, grouped by dimension and sorted by severity.