How this skill is triggered — by the user, by Claude, or both
Slash command
/cds-prevention:cds-initThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Initialize the Context Degradation System prevention framework in a project. This creates the `.context/` directory structure, `CLAUDE.md` bootloader (for Claude Code), and `.github/copilot-instructions.md` bootloader (for GitHub Copilot), then analyzes your codebase to fill in project-specific details.
Initialize the Context Degradation System prevention framework in a project. This creates the .context/ directory structure, CLAUDE.md bootloader (for Claude Code), and .github/copilot-instructions.md bootloader (for GitHub Copilot), then analyzes your codebase to fill in project-specific details.
When the user runs /cds-init:
Check if already initialized — Look for existing .context/ directory, CLAUDE.md, and .github/copilot-instructions.md
Create the directory structure:
.context/
├── CURRENT_STATUS.md
├── ARCHITECTURE.md
├── CONVENTIONS.md
├── DECISIONS.md
├── MASTER_PLAN.md
├── SETUP.md
└── CHECKPOINTS/
Create files from templates — Read each template from the plugin's templates/ directory and copy it to the target project location. The mapping is:
| Template source | Target location |
|---|---|
templates/context/CLAUDE.md | CLAUDE.md (project root) |
templates/context/copilot-instructions.md | .github/copilot-instructions.md |
templates/context/CURRENT_STATUS.md | .context/CURRENT_STATUS.md |
templates/context/ARCHITECTURE.md | .context/ARCHITECTURE.md |
templates/context/CONVENTIONS.md | .context/CONVENTIONS.md |
templates/context/DECISIONS.md | .context/DECISIONS.md |
templates/context/MASTER_PLAN.md | .context/MASTER_PLAN.md |
templates/context/SETUP.md | .context/SETUP.md |
Analyze the codebase to detect:
Fill in placeholders — Replace [PLACEHOLDER] markers in the created files with detected values
Suggest a commit:
git add CLAUDE.md .github/copilot-instructions.md .context/
git commit -m "Initialize CDS prevention context framework"
Once files are created and placeholders filled:
CLAUDE.md and .github/copilot-instructions.md were created:
CLAUDE.md is read by Claude Code.github/copilot-instructions.md is read by GitHub CopilotCLAUDE.md and .github/copilot-instructions.md — Update the Current Focus sectionMASTER_PLAN.md — Define implementation phasesCONVENTIONS.md — Verify detected conventionsARCHITECTURE.md — Refine system designnpx claudepluginhub xanderscannell/claude-cds-prevention --plugin cds-preventionUse this skill for "initialize project", "set up project", "scaffold project", "create CLAUDE.md", "set up rules", "create context directory", "vibe rules", "project templates", "init new project", "set up development structure", "create .rules", "create .context", "project scaffolding", "set up pre-commit hooks", or when the user wants to initialize a new project with Claude/Cursor development templates and structured documentation.
Automatically configure Claude Code best practices for new projects: directory skeleton, AGENTS.md, hooks, and interactive placeholders fill. Invoke via `/init-project`.
Guides project setup through 6 phases: detects tech stack from package.json/requirements.txt/etc., creates CLAUDE.md, configures MCP memory and auto-loop hooks. For new/existing Claude Code projects.