Install command
Not provided
Use the built-in /init command to generate a project CLAUDE.md from your codebase, then refine it by hand. Covers /memory, file locations, @path imports, and .claude/rules/.
Open the source and read safety notes before installing.
Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.
Decision playbook
Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.
0
78
—
No baseline selected
No major trust-signal divergence detected in the current selection.
Confirm ownership and provenance before trusting install instructions.
Source link availableRequired
Open the canonical repository and verify ownership.
Source provenance statusRequired
Marked as source-backed.
Metadata reviewed
Registry metadata indicates a reviewed listing.
Validate risk disclosures before installation or API wiring.
Safety notes presentRequired
Review the listed safety guidance before running commands.
Privacy notes presentRequired
Review data handling notes before connecting accounts or secrets.
Trust level risk gateRequired
Trust level does not block evaluation.
Check package metadata and artifact integrity signals.
Install payload available
Install or copy payload is available for review.
Package verification flag
No package verification flag provided.
Checksum metadata
No checksum provided for downloaded artifact.
Use compare context to validate trade-offs before adoption.
Compare tray has multiple entries
Add at least one more entry to compare trust differences.
Baseline comparison available
No baseline peer selected yet.
Diverging trust signals identified
No major trust-signal divergence found.
Setup at a glance
Copy-ready — paste the snippet to get started.
Install command
Not provided
Config snippet
Not provided
Copy snippet
Provided
Prerequisites
None
Platforms
1 listed
Difficulty
100/100
Adoption plan
Current risk score 16/100. Use staged verification before broader rollout.
Validate source and review signals before any execution.
Confirm source provenanceRequired
Source URL/provenance metadata is present.
Confirm metadata review state
Listing has review metadata.
Verify install payload
Install/config payload exists and can be inspected.
Confirm safety, privacy, and package integrity signals.
Review safety notesRequired
Safety notes are present.
Review privacy notesRequired
Privacy notes are present.
Verify package integrity metadata
No package verification/checksum metadata.
Adopt in controlled steps based on the selected plan.
Run in isolated sandbox firstRequired
Use a constrained sandbox and observe behavior across multiple tasks.
Roll out graduallyRequired
Roll out to a small cohort before wider usage.
Set monitoring and fallback
Define rollback path and monitor errors after adoption.
Evidence readiness
Required evidence gates are covered (5/6 signals complete).
Source repository/provenance is listed.
Required in this preset
Review metadata is present.
Required in this preset
Safety notes are present.
Required in this preset
Privacy notes are present.
Optional in this preset
Package integrity metadata is missing.
Optional in this preset
Install payload is available.
Required in this preset
Required evidence gates are covered for this preset.
Decision timeline
5/6 steps complete with no blocking gaps for this preset.
triage
Source/provenance metadata is available.
triage
Review metadata is available.
verify
Safety notes are available.
verify
Privacy notes are available.
verify
Package integrity metadata is missing.
rollout
Install payload is available.
No required blockers for this timeline preset.
Safety & privacy surface
3 safety and 3 privacy notes across 3 risk areas. Review closely: credentials & tokens.
/initThere is no /claudemd-builder command in Claude Code. The built-in command that bootstraps a project CLAUDE.md is /init. This page describes the real, documented workflow for creating and maintaining CLAUDE.md memory files.
/init doesRun /init inside a project and Claude analyzes your codebase, then generates a starting CLAUDE.md containing build commands, test instructions, and the project conventions it discovers. From there you refine the file by hand with instructions Claude would not find on its own.
CLAUDE.md already exists, /init suggests improvements rather than overwriting it.AGENTS.md, /init reads it and incorporates the relevant parts into the generated CLAUDE.md. It also reads other tool configs like .cursorrules, .devin/rules/, and .windsurfrules./init
Set the environment variable CLAUDE_CODE_NEW_INIT=1 to enable an interactive flow. In this mode /init asks which artifacts to set up (CLAUDE.md files, skills, and hooks), explores your codebase with a subagent, fills gaps with follow-up questions, and presents a reviewable proposal before writing any files.
CLAUDE_CODE_NEW_INIT=1 claude
# then, inside the session:
/init
/init takes no flags such as --template, --validate, or --hierarchy. Those do not exist. You shape the output by editing the generated file and re-running /init to get improvement suggestions.
CLAUDE.md files can live in several locations, loaded from broadest scope to most specific:
| Scope | Location | Shared with |
|---|---|---|
| Managed policy | /Library/Application Support/ClaudeCode/CLAUDE.md (macOS), /etc/claude-code/CLAUDE.md (Linux/WSL), C:\Program Files\ClaudeCode\CLAUDE.md (Windows) |
All users on the machine |
| User instructions | ~/.claude/CLAUDE.md |
Just you, all projects |
| Project instructions | ./CLAUDE.md or ./.claude/CLAUDE.md |
Team, via source control |
| Local instructions | ./CLAUDE.local.md (gitignore it) |
Just you, this project |
Files in the directory hierarchy above the working directory load in full at launch. Files in subdirectories load on demand when Claude reads files in those directories. Across the tree, content is concatenated (not overridden), ordered from the filesystem root down to your working directory, so the most specific instructions are read last. Aim for under ~200 lines per file; longer files consume more context and reduce adherence.
CLAUDE.md files can pull in other files with @path/to/import syntax. Imported files are expanded into context at launch. Both relative and absolute paths work; imports can recurse up to four hops.
See @README for project overview and @package.json for npm commands.
# Additional Instructions
- git workflow @docs/git-instructions.md
If you already keep guidance in AGENTS.md, create a CLAUDE.md that imports it so both tools read one source of truth:
@AGENTS.md
## Claude Code
Use plan mode for changes under `src/billing/`.
.claude/rules/For larger projects, split instructions into .claude/rules/*.md. Rules without paths frontmatter load every session with the same priority as .claude/CLAUDE.md. Rules with a paths field load only when Claude works with matching files:
---
paths:
- "src/api/**/*.ts"
---
# API Development Rules
- All API endpoints must include input validation
- Use the standard error response format
This is the documented way to get directory- or filetype-specific context, in place of the fictional --hierarchy flag.
/memory/memory lists every CLAUDE.md, CLAUDE.local.md, and rules file loaded in the current session, lets you toggle auto memory, and opens the auto memory folder. Use it to confirm a file is actually being loaded when an instruction is being ignored, and to open any file in your editor.
/memory
If you want a repeatable, project-specific routine for editing CLAUDE.md (for example, "audit CLAUDE.md against the current stack and propose updates"), create a custom command, which is a user-authored file, not a built-in. Custom commands have been merged into skills: a file at .claude/commands/<name>.md and a skill at .claude/skills/<name>/SKILL.md both create /<name> and work the same way. Existing .claude/commands/ files keep working.
mkdir -p .claude/commands
cat > .claude/commands/refresh-claude-md.md <<'EOF'
Review the project's CLAUDE.md against the current dependencies in package.json
and the directory layout. Propose concise updates to build/test commands,
conventions, and architecture notes. Keep the file under 200 lines and do not
add secrets or frequently changing data.
EOF
Invoke it with:
/refresh-claude-md
This is a normal prompt template you maintain yourself. It has no special flags and no guaranteed behavior beyond the instructions you write in the file.
Keep it to facts Claude should hold every session: build and test commands, naming and code-style conventions, project layout, and "always do X" rules. Move multi-step procedures into a skill, and move filetype-specific guidance into a path-scoped rule. Do not store secrets, credentials, or data that changes often.
/init./init for suggestions, then edit by hand./memory..claude/commands/*.md command.The original version of this entry documented a /claudemd-builder command with --init, --template, --update, --validate, --hierarchy, and template/scope flags. None of those exist in Claude Code. Use /init, /memory, @path imports, and .claude/rules/ as documented above.
Show that Bootstrap CLAUDE.md with /init in Claude Code is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.
[](https://heyclau.de/entry/commands/claudemd-builder)Bootstrap CLAUDE.md with /init in Claude Code side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
Next steps differ across entries — use the actions in the table below to copy install commands and source links per resource.
| Field | Use the built-in /init command to generate a project CLAUDE.md from your codebase, then refine it by hand. Covers /memory, file locations, @path imports, and .claude/rules/. Open dossier | Intelligent code explanation with visual diagrams, step-by-step breakdowns, and interactive examples Open dossier | Claude Code slash command that generates a new .claude/commands/*.md file from a template, with optional arguments, frontmatter, and team-sharing support. Open dossier | Advanced debugging assistant with root cause analysis, step-by-step troubleshooting, and automated fix suggestions Open dossier |
|---|---|---|---|---|
| Next stepsDiffers | ||||
| Trust | ||||
| Review status | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed |
| Package trust | Package not verified | Package not verified | Package not verified | Package not verified |
| Source provenance | Source-backed | Source-backed | Source-backed | Source-backed |
| Submitter | — | — | — | — |
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Brand | — | — | — | — |
| Category | commands | commands | commands | commands |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | JSONbored | JSONbored | JSONbored | JSONbored |
| Added | 2025-10-25 | 2025-09-16 | 2025-10-25 | 2025-09-16 |
| Platforms | Claude Code | Claude Code | Claude Code | Claude Code |
| Source repo | — | — | — | — |
| Safety notes | ✓/init writes a CLAUDE.md file to your project (and, in the CLAUDE_CODE_NEW_INIT=1 flow, may also propose skills and hooks). It analyzes your codebase before writing; review the generated file before committing. CLAUDE.md, CLAUDE.local.md, and .claude/rules/ are loaded into Claude's context every session as behavioral guidance, not enforced configuration. For hard enforcement (blocking tools/commands), use a PreToolUse hook or managed settings instead. Custom commands in .claude/commands/*.md are prompt templates committed to the repo and run with your session's permissions; review any command file before invoking it. | ✓Review generated changes and commands before applying them; slash commands can ask the agent to read, write, edit, or run tools in the current project. Limit scope to the intended files and run in a trusted checkout when the command analyzes code, tests, security findings, or generated output. | ✓Creates .md files in .claude/commands/ in the current project directory; review generated content before committing. | ✓Review generated changes and commands before applying them; slash commands can ask the agent to read, write, edit, or run tools in the current project. Limit scope to the intended files and run in a trusted checkout when the command analyzes code, tests, security findings, or generated output. |
| Privacy notes | ✓CLAUDE.md and .claude/rules/ are committed to source control and shared with your team, so do not put secrets, credentials, or sensitive data in them. Use CLAUDE.local.md (gitignored) for personal, machine-local notes. /init reads files across your project (and existing AGENTS.md/.cursorrules/.windsurfrules) to generate context; do not let it copy secret values into the generated CLAUDE.md. Auto memory is stored locally under ~/.claude/projects/<project>/memory/ and is machine-local; review it with /memory if you are concerned about what was recorded. | ✓Prompts, source files, logs, errors, dependency metadata, and generated reports may be sent to the configured AI model during command execution. Redact secrets, customer data, private repository details, and proprietary code before sharing command output outside the workspace. | ✓Creates .md files in your local .claude/commands/ directory; no content is sent externally. | ✓Prompts, source files, logs, errors, dependency metadata, and generated reports may be sent to the configured AI model during command execution. Redact secrets, customer data, private repository details, and proprietary code before sharing command output outside the workspace. |
| Prerequisites | — none listed | — none listed | — none listed | — none listed |
| Install | — | | | |
| Config | — | — | — | — |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Source-backed guides for putting this to work.
Get productive with Claude Code if you're coming from ChatGPT.
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.