Skip to content
Documentation
Command

/init

Analyses your codebase and generates a starter `CLAUDE.md` file. This is the fastest way to give Claude persistent context about your project.

From plugin
explore-claude-code
26212 skills8 agents12 commands
Install
$ npx -y skills add LukeRenton/explore-claude-code --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/init

Context preview

What this command does when you run it.

Analyses your codebase and generates a starter `CLAUDE.md` file. This is the fastest way to give Claude persistent context about your project.

Command definition

init.md

/init

Analyses your codebase and generates a starter `CLAUDE.md` file. This is the fastest way to give Claude persistent context about your project.

Usage

/init

No arguments. Claude examines your project and drafts the file.

How It Works

1. Claude scans your project structure, config files, READMEs, and build scripts 2. It drafts a `CLAUDE.md` covering: project overview, tech stack, build and test commands, code conventions, and common workflows 3. The draft opens for your review 4. You edit, approve, and commit it to version control

What It Generates

A typical `/init` output includes:

  • **Project overview**: what the project is, its tech stack, key directories
  • **Build and test commands**: how to build, test, lint, and deploy
  • **Code conventions**: naming, imports, error handling patterns it detected
  • **Common workflows**: branch naming, PR process, deploy steps
  • **Gotchas**: quirks or requirements it noticed

On Existing Projects

`/init` works on projects that already have a `CLAUDE.md`. Instead of overwriting, it:

  • Analyses what is already there
  • Suggests additions and improvements
  • Preserves your existing instructions

This makes it useful for periodic maintenance: run `/init` after major changes to see if Claude spots new conventions or workflows worth documenting.

When to Use It

  • Setting up Claude Code on a new project for the first time
  • Onboarding a team member who wants a quick `CLAUDE.md` starting point
  • After a major refactor or tech stack change, to refresh project context
  • When Claude keeps making the same mistake and you want to add a rule

Tips

  • Review what `/init` generates carefully. It is a starting point, not a final product
  • Add what Claude cannot infer on its own: deployment URLs, team conventions, known pitfalls
  • Keep `CLAUDE.md` under 200 lines. Move detailed material to `@imported` files
  • Commit to version control so your whole team shares the same context
Read more
Ships withexplore-claude-code

Learn Claude Code by exploring it as it was designed - interactive IDE-style docs for commands, MCP, skills, CLAUDE.md and more.

Get the whole plugin, auto-invoked
Stats
262
Stars
0
Views
30
Forks
Active
Maintenance
JavaScript
Language
MIT
License
15d ago
Last commit
5mo ago
Created

Repo: LukeRenton/explore-claude-code