Skip to content
Back to skills

Stack Bootstrap

ASecurity

Set up or re-sync the agent-stack optimization layer (CLAUDE.md, skills, hooks, code graph, shell compression, Cursor mirror) for a repo. Use when onboarding a repo, right after cloning, or when the agent context feels bloated/unoptimized. Runs `agent-stack init` under the hood — detect, install adapters, generate files, wire hooks, verify, and capture a token baseline — then reports exactly what changed.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added August 30, 2026
ai-agentsshell

Works with

  • cursor
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned August 30, 2026

npx -y skills add drmahdikazempour/agent-stack --skill stack-bootstrap --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stack Bootstrap?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Stack Bootstrap
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/drmahdikazempour-stack-bootstrap/badge)](https://www.skillsdirectory.com/skills/drmahdikazempour-stack-bootstrap)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: stack-bootstrap
description: Set up or re-sync the agent-stack optimization layer (CLAUDE.md, skills, hooks, code graph, shell compression, Cursor mirror) for a repo. Use when onboarding a repo, right after cloning, or when the agent context feels bloated/unoptimized. Runs `agent-stack init` under the hood — detect, install adapters, generate files, wire hooks, verify, and capture a token baseline — then reports exactly what changed.
---

# stack-bootstrap

Bootstrap or re-sync this repo's optimization layer. **Skills decide *when*; the CLI decides *how*** — always shell out to `agent-stack` for file writes so the hook merger stays the sole writer of `settings.json`.

## When to use
- First time working in a repo that should have agent-stack configured.
- After pulling changes that touched `.claude/`, `.cursor/`, or `integrations/`.
- When startup context feels heavy and you suspect the setup drifted.

## What to do
1. Run `npx @drmahdikazempour/agent-stack doctor` to see current state and whether anything is configured.
2. If unconfigured or drifted, run `npx @drmahdikazempour/agent-stack init`. It:
   - detects host(s), profile, package manager, and existing config,
   - backs up anything it will touch into `.agent-stack.bak.<ts>/`,
   - installs the profile's pinned adapters (or runs config-only with `--no-install`),
   - generates `CLAUDE.md`, skills, agents, commands, `.claudeignore`, the Cursor mirror, and MCP scaffold,
   - wires hooks in a single merged write,
   - verifies every skill loads and every hook is present (rolls back on failure),
   - captures a `ccusage` token baseline.
3. Report the chosen profile, adapters installed, hooks wired, and baseline tokens.

## Flags worth knowing
- `--dry-run` — print the plan, write nothing.
- `--profile <code|review|multimodal|spec>` — override auto-detection.
- `--no-install` — write configs only; skip binary installs.
- `--yes` — skip the single confirm prompt.

## Idempotency
Running `init` twice is a no-op unless `--force`. Safe to re-run anytime.

Files in this skill

  • SKILL.md2 KB
  • references/compatibility.md953 B
  • references/profiles.md800 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.