/claude-code-expert:cc-stack-setupfrom claude-code-expert
Deploys or audits the full 5-layer Claude Code stack (CLAUDE.md, skills, hooks, agents, memory) in a repository. Detects project shape and generates configuration presets.
Ships in claude-code-expert. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Deploys all five layers of the modern Claude Code stack. Detects the project's shape, picks defaults from the detection matrix, and generates configuration that hits the ground running.
| Layer | Artifact | Loaded |
|---|---|---|
| L0 — MCP reference | plugin's MCP tools (queryable) | on demand |
| L1 — CLAUDE.md | CLAUDE.md (≤120 lines, routing) | always |
| L2 — Skills | .claude/skills/*/SKILL.md | frontmatter always; body on trigger |
| L3 — Hooks | .claude/hooks/*.sh + .claude/settings.json | on lifecycle events |
| L4 — Agents | .claude/agents/*.md | on invocation |
| L5 — Memory | engram (tier 1) + Obsidian vault (tier 2) + .claude/rules/ (tier 3) | tier 3 always; others on demand |
Run in order; short-circuit on first hit per category.
| Category | Checks | MCP tool for config |
|---|---|---|
| Language | package.json, tsconfig.json, pyproject.toml, go.mod, Cargo.toml, *.csproj, pom.xml | cc_kb_lsp_config(language) |
| Framework | next.config.*, nuxt.config.*, vite.config.*, fastapi/flask imports, manage.py | — |
| Infra | Dockerfile, docker-compose*, kubernetes/, helm/, terraform/, .github/workflows/ | — |
| DB | prisma/, drizzle.config.*, knexfile.*, .env*DATABASE_URL*, supabase/ | — |
| Test | jest.config*, vitest.config*, pytest.ini, cypress.config*, playwright.config* | — |
| Monorepo | turbo.json, nx.json, pnpm-workspace.yaml, lerna.json, rush.json | — |
Build a project fingerprint. Count LOC, list detected stacks, identify existing .claude/ contents.
| Preset | Profile |
|---|---|
developer (default) | Permissive for local dev, 4 layers configured, standard hooks |
power-user | Full 5 layers, all detected MCPs, comprehensive hooks, model cascading |
ci-cd | Restrictive, audit-only hooks, Haiku model |
secure | Strict read-only default, deny network tools |
minimal | CLAUDE.md only |
team | Shared conventions, no local overrides |
Template: routing table + build commands + "don't touch" list. ≤120 lines. See MCP cc_docs_resolve_task for task-routing rows.
Add an Obsidian routing block if the vault is detected (existing Obsidian MCP or path C:/Users/MarkusAhling/obsidian/ readable). Content from memory/rules/cc-obsidian-intro.md.
Small set of skills tied to detected stack. Prefer delegating to the plugin's MCP KB rather than inlining large skill bodies.
Install 2-3 baseline hooks from MCP KB:
protect-sensitive-files (fetch via cc_kb_hook_recipe)auto-format-after-editsession-init, on-stop, lessons-learned-captureCopy role-based agents that match the repo's work type. Always include audit-reviewer. Include security-compliance-advisor if auth/payment detected.
Copy plugin baseline rules into target:
.claude/rules/cc-always.md ← plugin memory/rules/cc-always.md
.claude/rules/cc-obsidian-intro.md ← plugin memory/rules/cc-obsidian-intro.md
.claude/rules/cc-patterns.md ← plugin memory/rules/cc-patterns.md (latest snapshot)
CLAUDE.md references all three via @.claude/rules/*.md notation (auto-loaded every session).
Phase 10 audit: 0–100 score across 5 layers + MCP + LSP + memory + cost optimization. Output markdown report.
/cc-setup --audit)Skips generation; scores the existing setup. Reports gaps and suggests next steps. Does not modify any file.
| Need | Tool |
|---|---|
| Hook recipe | cc_kb_hook_recipe(name) |
| LSP config | cc_kb_lsp_config(language) |
| Topology kit | cc_kb_topology_kit(name) |
| Workflow pack | cc_kb_workflow_pack(name) |
| Autonomy profile | cc_kb_autonomy_profile(profile) |
| Pattern template | cc_kb_pattern_template(name) |
| Channel server | cc_kb_channel_server(name) |
| Model recommendation | cc_docs_model_recommend(task, budget?) |
| Hook pack shortlist | cc_docs_hook_pack_recommend(signals) |
| Topology shortlist | cc_docs_team_topology_recommend(task, complexity, team_size) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub thelobbi/claude --plugin claude-code-expert21 skills in this plugin
/cc-agentic-patternsSelect and wire an agentic design pattern (reflection, prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer, ReAct, blackboard) into the 5-layer Claude Code stack. Use this skill whenever deciding how to structure a multi-step task, whether to spawn subagents, how to run parallel review, or when to use which pattern. Triggers on: "which pattern", "orchestrate", "parallel review", "self-review", "chain of thought", "eval-optimizer loop", "blackboard", "ReAct", "how to decompose this task"./cc-agent-teamsSelect and coordinate multi-agent teams (topology kits, role-based squads, lifecycle, worktree isolation). Use this skill whenever launching parallel agents, designing a review board, running a debug council, scheduling an orchestrator-workers team, configuring agent tool restrictions, or deciding between solo and team execution. Triggers on: "launch a team", "parallel agents", "review board", "debug council", "architect-implementer-reviewer", "swarm", "multi-agent", "subagents for X", "team topology", "agent lifecycle"./cc-auto-modeAuto mode permission handling — classifier-based approvals, PermissionDenied hook, defer permissionDecision, and autonomy profiles for hands-off Claude Code usage/cc-autonomy-modeConfigure Claude Code's autonomous operating mode — profile selection (conservative, balanced, aggressive, unattended-review), permission blocks, and the three gate agents (planner, verifier, reviewer). Use this skill whenever enabling autonomous mode, switching profiles, tightening permissions for production branches, or setting up unattended execution. Triggers on: "autonomy", "unattended mode", "auto-approve", "permission mode", "autonomy profile", "gates", "/cc-autonomy", "planner verifier reviewer", "let claude run on its own"./cc-context-budgetingManage Claude Code's context window — token arithmetic, /compact strategy, anchor preservation, progressive loading, session analytics. Use this skill whenever a session gets long, context approaches limits, after /compact, when deciding what to load into CLAUDE.md vs leave in references, or when analyzing session cost/token usage. Triggers on: "context full", "compact", "too many tokens", "budget", "session analytics", "save tokens", "context window", "/compact strategy"./cc-deep-code-intelligenceEvidence-driven deep analysis for hard coding problems — architecture decisions, root-cause investigation, high-stakes refactor planning, performance bottleneck isolation. Use this skill whenever the user asks for "the best approach", a "deep analysis", "root cause", "principal engineer review", or runs /cc-intel. Also triggers on hard debugging questions, major architectural choices, tricky performance problems, or any task where a hypothesis tree and evidence table matter more than a fast answer.Other plugins' skills for the same job