Initialize or update CLAUDE.md files at all core nodes in the workspace
Scans workspace to identify core nodes and generates concise CLAUDE.md files at each location.
/plugin marketplace add Uniswap/ai-toolkit/plugin install development-productivity@uniswap-ai-toolkit(no arguments - scans entire workspace automatically)/claude-init-plus - Intelligent CLAUDE.md GenerationScan the workspace to identify "core nodes" and generate/update CLAUDE.md files at each node. Works with any workspace type: monorepos (Nx, Turborepo, Lerna, npm/yarn/pnpm workspaces), single-repo projects, or any language ecosystem.
This creates documentation that helps future Claude Code sessions understand the project without reading every file.
A directory is a core node if it meets either criterion:
Has a package manifest (Always a core node)
package.jsonCargo.tomlpyproject.toml, setup.pygo.modpom.xml, build.gradle, build.gradle.ktsPackage.swiftGemfile, .gemspeccomposer.jsonIs a working directory:
/claude-init-plus
Step 1: Use Git for Fast Discovery (Preferred)
# Get all files tracked by git (automatically excludes ignored files)
git ls-files
# Find all package manifests
git ls-files | grep -E '(package\.json|Cargo\.toml|pyproject\.toml|...)$'
Step 2: Identify Core Nodes Using BFS
Traverse workspace using BFS (breadth-first search):
Exclusion List:
.git, node_modules, .nx, .expo, dist, build, .next, .vercel, .yarn, coverage, .turbo, .cache, logs, target, __pycache__, venv, .venv
Step 3: Categorize Core Nodes
Group by:
REQUIRED: Get user confirmation before any file creation/modification
Present summary:
<!-- AUTO-GENERATED - DO NOT EDIT -->CRITICAL: All generated CLAUDE.md files MUST be concise and focused.
# {Directory or Package Name}
## Overview
{1-2 sentence description of purpose}
## {Commands|Scripts|Tasks} (if package manifest exists)
{List available commands/scripts/tasks from manifest}
## {Dependencies|Requirements} (if package manifest exists)
<!-- AUTO-GENERATED - Updated by /update-claude-md -->
- **{package}** ({version}) - {purpose in 5-10 words}
## Key Files (if working directory without manifest)
- `{filename}` - {purpose}
## Structure (optional - if >5 subdirectories)
{Brief overview of subdirectory organization}
## Auto-Update Instructions
After changes to files in this directory, run `/update-claude-md`
After generation, verify (REQUIRED):
Mark as FAILURE if:
Generate markdown report with: