claude-init
Make any repo AI-native in one command.
Quick Start ·
What Gets Generated ·
Stack Detection ·
Contributing
Point claude-init at any existing codebase, run /claude-init, and get a complete Claude Code configuration — CLAUDE.md, agents, skills, rules, and hooks — all tailored to your stack, framework, and patterns.
Why
Every time you open Claude Code on an existing repo, you start from zero. Claude doesn't know your architecture, conventions, test commands, or deployment flow. You burn context re-explaining the same things every session.
claude-init fixes the cold start. One command analyzes your codebase, bootstraps a test suite if none exists, and generates everything Claude needs to work effectively from the first message.
No tests? No problem. If your repo has no test framework, claude-init picks the right one for your stack, installs it, and writes a baseline test suite covering your existing code. Tests are the trust layer — without them, AI coding is just vibes.
Quick Start
Install globally (recommended):
curl -fsSL https://raw.githubusercontent.com/yash-gadodia/claude-init/main/scripts/install.sh | bash
Then in any repo:
cd /path/to/your-repo
claude
/claude-init
What Happens When You Run /claude-init
- Analyze — Scans your codebase in parallel: stack, framework, architecture, tests, CI, conventions
- Bootstrap tests — If no test framework exists, installs one and writes a baseline test suite
- Generate ARCHITECTURE.md — Creates AI-facing architecture documentation (system map, data flow, design decisions, module boundaries) if none exists
- Generate
.claude/ config — CLAUDE.md, agents, skills, rules, and hooks — all tailored to what was found
- Report — Shows what was generated and suggests next steps
After setup, Claude automatically follows a development workflow (clarify → plan → TDD → verify → review → finish) scaled to task size. No slash commands needed — but you can invoke any step manually:
| Command | When to use |
|---|
/clarify | Turn vague requests into testable specs |
/plan | Before starting any non-trivial feature |
/tdd | Enforce test-first development |
/review | Two-stage review: spec compliance → code quality |
/verify | Prove completion claims with fresh evidence |
/finish | Land work: merge, PR, keep branch, or discard |
/subagent-dev | Execute plans with fresh subagent per task |
/onboard | When you or a teammate joins the repo |
/update | After your codebase evolves — refresh config |
/doctor | Validate your .claude/ setup |
Or install as a plugin (from inside Claude Code):
/plugin marketplace add yash-gadodia/claude-init
/plugin install claude-init@claude-init
Or install manually:
git clone [email protected]:yash-gadodia/claude-init.git ~/claude-init
cp -r ~/claude-init/.claude/skills/{claude-init,onboard,update,doctor} ~/.claude/skills/
cp -r ~/claude-init/templates ~/.claude/claude-init-templates
Or load as a plugin (skills arrive namespaced as /claude-init:claude-init etc.):
git clone [email protected]:yash-gadodia/claude-init.git ~/claude-init
claude --plugin-dir ~/claude-init
Commands
| Command | Description |
|---|
/claude-init | Analyze a repo and generate the full .claude/ configuration |
/onboard | Get oriented on any codebase — architecture, patterns, how to run things |
/update | Re-analyze and refresh config without overwriting your customizations |
/doctor | Validate your .claude/ setup — verify commands, paths, hooks, and agents |
What Gets Generated
ARCHITECTURE.md
AI-facing architecture documentation at the repo root. Not loaded every conversation (that would waste tokens), but read on demand by /plan, /onboard, and the architect agent when deep context is needed. Contains system overview, directory map, data flow, design decisions, module boundaries, and entry points. Under 120 lines.
CLAUDE.md
A lean (under 80 lines) project file containing actual commands, architecture, conventions, and patterns found in your codebase. Every line earns its place. References ARCHITECTURE.md for deeper context.
Agents
Model-tiered personas that know your stack: