escapeboy/claude-code-kit/init-project
Claude Code and agent skill by escapeboy/claude-code-kit
- community
Checking that the SKILL.md file is still in the repository.
Initialize Claude Code optimization for a new project — detect stack, create memories, generate constitution, configure settings. Use when starting in a fresh/uninitialized project or the user says "init project"/"set up Claude Code here"; skip on an already-initialized project.
Install
npx vskill@latest install escapeboy/claude-code-kit/init-projectSKILL.md
/init-project — Project Initialization
Sets up Claude Code optimization for a new project in 10-15 minutes. Detects the tech stack, fetches best practices, creates Serena memories, generates a project constitution, and configures optimization settings.
Run once per project. After init, use /optimize and /ctx load for all subsequent work.
When to Use This Skill (and When NOT to)
| Use this skill for | Use a simpler approach for | |
|---|---|---|
| A project you'll work in repeatedly and want optimized from the start | A repo you'll touch once — just read what you need and go | |
| First-time setup of Serena memories + constitution + optimization config | Re-running work on an already-initialized project — use /ctx load + /optimize instead | |
| A codebase whose conventions/architecture Claude should learn once and reuse | Adding a single memory or tweaking one setting — edit the file directly | |
Standing up the .claude/ + .serena/ scaffold in a fresh clone | A throwaway spike or scratch directory |
Start simple. Reach for this skill only when the project is one you'll return to and the up-front setup pays back across many sessions. Run it once per project — it is initialization, not a per-session command.
Usage
Quick Examples
Quick Start: Full Initialization
This runs all steps in sequence and produces a fully configured project. Takes 10-15 minutes. After completion you'll have:
.serena/memories/architecture.md.serena/memories/codebase-conventions.md.serena/memories/testing-strategy.md.claude/settings/constitution.json.claude/settings/token-optimization.json(project-level).claude/CLAUDE.md(if it doesn't exist)
Actions
Each action is a step of --full and can also be run on its own. High-level decision core below; deep detail lives in references/ — read the linked file only when running that action.
detect — Auto-detect project type and stack
Scans the project directory to identify the tech stack, frameworks, test runner, CI, and conventions, then recommends which memories and constitution rules to create.
For the full list of files scanned and the sample output format, read references/detection.md.
fetch [framework] — Fetch best practices for your stack
Fetches current best practices, conventions, and anti-patterns for the detected or specified framework, summarized into memory-ready format.
For the supported-stack table, the fetch process, and per-framework CLAUDE.md templates, read references/frameworks.md.
constitution — Generate project constitution
Creates .claude/settings/constitution.json with architectural rules tailored to the detected stack.
For the constitution JSON anatomy and the per-framework rule sets, read references/constitution.md.
memories — Initialize Serena memories
Creates the initial Serena memories by analyzing the codebase: architecture.md, codebase-conventions.md, and testing-strategy.md in .serena/memories/. Requires Serena MCP.
For the exact contents of each memory file, read references/memories.md.
optimize — Configure project-level optimization settings
Creates .claude/settings/token-optimization.json with project-specific overrides of the global token optimization settings:
- Which memories to always load
- Constitution rules to enforce
- Model selection overrides (e.g., always use Haiku for migrations)
- Project-specific checkpoint locations
CLAUDE.md Generation
If no CLAUDE.md exists, --full will create one:
The generated CLAUDE.md includes:
- Project overview and stack summary
- Development workflow (setup, testing, deployment)
- Key conventions (based on constitution)
- Common commands
- Links to Serena memories for architecture details
After Initialization
Once init is complete, start working:
Time Estimate
| Action | Time | |
|---|---|---|
detect | ~30 sec | |
fetch [framework] | ~2 min | |
constitution | ~2 min | |
memories (3 files) | ~8 min | |
optimize | ~1 min | |
--full (all steps) | 10-15 min |
Troubleshooting for failed detection, missing Serena, and constitution conflicts: references/troubleshooting.md.
Boundaries
Always
- Run
detectbefore generating a constitution or memories — the output is tailored to the detected stack. - Reflect the codebase's actual conventions in
codebase-conventions.md, not just framework defaults. - Treat init as a one-time setup; on an already-initialized project use
/ctx load+/optimizeinstead of re-running.
Ask first
- Overwriting an existing
CLAUDE.md,constitution.json, ortoken-optimization.json— these may hold hand-tuned rules. Confirm before replacing; prefer merging. - Committing the generated
.claude//.serena/files to a shared/team repo (they become visible in diffs and to teammates). - Generating a
--strictconstitution that conflicts with the current codebase — surface the conflict and offer--lenientrather than imposing rules the code already violates.
Never
- Fabricate stack details the scan didn't find — if detection fails, ask or use
fetch [framework] --force, don't guess. - Silently discard a user's existing memories or settings.
- Re-run
--fullon an initialized project as a shortcut instead of loading its existing context.
See Also
- `/ctx` — Load memories after init
- `/optimize` — Start optimized work sessions
- Project Activation Guide
- Custom Skills Guide
- References: detection · frameworks · constitution · memories · troubleshooting
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking01-global-optimization/skills/init-project/SKILL.md
Popularity
- Repository stars
- 92
- Repository forks
- 14
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/escapeboy/claude-code-kit/init-project)