/attacca-init:retrofitfrom attacca-init
Retrofit an existing project with Attacca. Audit project structure, generate CONTEXT.md from what you find, merge settings safely, suggest plugins. Never touches source code or existing deployments.
Ships in attacca-init. 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.
None: SKILL.md is the whole skill.
Integrate Attacca into an existing codebase. Audits the project, generates CONTEXT.md, merges settings safely, and suggests plugins.
/retrofit on an existing codebaseRead the workspace and answer:
Project basics:
package.json / pyproject.toml / go.mod / Gemfile / Cargo.toml)File structure — scan and document:
project-root/
src/ or app/ or lib/ ← source code
tests/ or __tests__/ ← tests
node_modules / venv ← dependencies
package.json / pyproject.toml ← manifest
.github/workflows/ ← CI/CD
docker-compose.yml ← deployment
Build & test commands — verify what works:
npm run build # or: python -m build, go build
npm test # or: pytest, go test
npm run lint # or: ruff check, golangci-lint
Document what works and what fails.
Deployment pipeline:
Existing code quality practices:
Two files, split by rate of change (see docs/CONTEXT-SCHEMA.md). What you inferred about the codebase is stable; what you inferred from recent branches is not.
CONTEXT.md at project root:
# [Project Name]
[One paragraph: what it is, who uses it, why it matters]
## Stack
- Language: [detected from package.json / manifest]
- Framework(s): [detected]
- Database: [if applicable]
- Testing: [detected test framework]
- Deployment: [detected CI/deployment target]
## Key Decisions
[Architectural patterns you observed. Mark each as OBSERVED, not decided —
you're inferring intent from code and may be wrong. The team can confirm or
correct; either way the bullet stays as the record.]
.attacca/focus.md:
# Focus
## Current Focus
[Based on recent commits and branches, what's being worked on now]
## Next Steps
[Based on open issues and project stage]
## Blockers
[If any. "None" if clear.]
If CONTEXT.md already exists: merge new findings, never overwrite. Ask the user if any detected facts should update it.
If it exists in the pre-4.3 single-file layout (has Current Focus / Next Steps / Blockers): migrate it — move those three sections into .attacca/focus.md, drop them from CONTEXT.md, leave Project / Stack / Key Decisions untouched. Say that you did it. This is the one case where retrofit edits an existing CONTEXT.md structurally, and it is lossless.
Gitignore:
.gitignore.attacca/ line must become .attacca/audits/ + .attacca/sbom/, or the committed focus.md silently never reaches the remote. Narrowing an ignore is not deleting an entry; say you did it.Project config (CLAUDE.md, etc.):
CLAUDE.md exists, show diff and ask before changingBased on audit findings, recommend:
Plugins for detected stack:
Skills for common patterns:
Quality integration:
npm test — quality-gate can run that pre-push"Present to user before any changes:
## Retrofit Plan for [Project Name]
Stack: [detected]
Current status: [Active / Maintenance / Legacy]
What will be added:
✅ CONTEXT.md with project documentation
✅ Merged .gitignore (existing + boilerplate, no conflicts)
✅ Updated CLAUDE.md with project conventions
✅ Suggested plugins and skills
What will NOT change:
❌ Source code (untouched)
❌ Existing deployments (untouched)
❌ Existing CI/CD workflows (untouched)
❌ Existing settings (merged safely)
Recommended next steps:
1. Review CONTEXT.md for accuracy
2. Install suggested plugins
3. Add skills relevant to your workflow
Ready to proceed?
When user confirms:
Write CONTEXT.md (or update if exists)
Merge .gitignore (combine both files)
Update CLAUDE.md with project conventions found in audit
Git commit:
git add CONTEXT.md .attacca/focus.md .gitignore CLAUDE.md
git commit -m "chore: retrofit Attacca documentation and settings
- Added CONTEXT.md with project overview
- Merged .gitignore (boilerplate + existing)
- Updated CLAUDE.md with project conventions
No changes to source code or deployments."
Show installation path for plugins/skills they picked
.gitignore — always mergeCLAUDE.md exists, show diff firstWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adihebbalae/attacca --plugin attacca-init6 skills in this plugin
/init-projectInitialize a new project from scratch. Read spec from CONTEXT.md or ask interactively, scaffold directories, set up .gitignore and basic configs, create CONTEXT.md, commit. Use when starting a new project./interrogateDisambiguate vague build requests through structured questioning. Triggers when user says 'build me X' implying 2+ unresolved dimensions (auth/payments/data/integrations), has new-project or major-feature scope with unresolved decisions, or user says /interrogate. Simple single-page or script requests pass through unchanged./mvpShip a working MVP as fast as possible. Ruthless scope, aggressive defaults, skip non-essential gates. For speed-first projects where 'done' beats 'perfect'./quickstartWelcome guide for new users. Assesses your setup, explains what Attacca does, points to first action. Run this first if you're new./validate-ideaFalsification-first validation for a product, startup, feature, or side-project idea. Decomposes the idea into load-bearing assumptions, pre-registers kill criteria before looking at evidence, runs cost-ordered disqualifiers, gathers cited evidence into a ledger, red-teams it in an independent context, and issues a traceable verdict with one concrete next experiment. Trigger when the user says "validate this idea", "is this worth building", "should I build X", "will anyone pay for this", asks for market research or competitor analysis on a concept, wants to know if an idea is any good, or wants to resume a previous validation.