By ultish
Generate and maintain a lean, project-specific CLAUDE.md. Derives verified facts from an existing codebase or interviews for a new one, keeps the shared behavioral rules importable so many repos stay in sync, and merges into an existing CLAUDE.md instead of clobbering it.
npx claudepluginhub ultish/init-claudeGenerate and maintain a lean, project-specific CLAUDE.md: analyze an existing codebase (verify facts, merge without clobbering) or interview for a new one, with shared behavioral rules kept importable to avoid drift across repos.
A Claude Code plugin that generates and maintains a lean, project-specific
CLAUDE.md — the file coding agents read on every task.
The thesis: the highest-value thing a CLAUDE.md does, especially across a large
team with many services, is encode verified facts an agent cannot infer — how
to build/test/run, service boundaries, what's off-limits, what "done" means. Generic
behavioral coaching is useful but portable; it should be a minority of the file and,
across many repos, shared rather than copy-pasted (which drifts). init-claude
produces roughly 60% project facts / 40% shared behavior, facts first.
One command, /init-claude:init, in two auto-detected modes:
CODEOWNERS, schema
dirs), verifies every command exists before writing it, confirms with you,
then writes. If a CLAUDE.md already exists it merges — preserving hand-written
intent and showing a diff — instead of clobbering.Pass --profile <DIR | URL | git-url> to seed the CLAUDE.md from a reusable
profile: a JSON file of org/team-level facts for a class of service (stack,
commands, deploy, release mechanism, conventions, don't-touch). Keep one per
archetype in a GitLab repo and every service of that archetype pre-fills a
consistent CLAUDE.md instead of drifting. init-claude matches an archetype to the
repo, then confirms and verifies before writing — a profile is a head start, not
gospel. Git-hosted catalogs are fetched via a host-aware skill or a shallow clone.
See skills/init-claude/assets/profile.example.json.
CLAUDE.md that names a missing command trains
distrust of the whole file. Commands are existence-checked (--help/-n), never
run as full builds.init-claude/
├── .claude-plugin/
│ ├── plugin.json
│ └── marketplace.json
├── commands/
│ └── init.md # /init-claude:init — thin orchestrator
└── skills/
└── init-claude/
├── SKILL.md # the methodology (deep guidance)
├── references/
│ ├── analyzer-checklist.md # existing-project: find, verify, merge
│ ├── interview-guide.md # new-project: question groups + pre-fill
│ └── claudemd-anatomy.md # what belongs, failure modes, roll-out
└── assets/
├── claude-md-template.md # the per-repo skeleton
└── claude-behavioral-rules.md # shared, importable rules
Commands are thin; the methodology lives in the skill.
Add the marketplace and install (from a local checkout):
/plugin marketplace add /Users/jxhui/Developer/init-claude
/plugin install init-claude
Then run /init-claude:init in any repo.
7-day visitors to each marketplace page
Matt Pocock's skills for real engineering, as an installable Claude Code plugin.
Development marketplace for Superpowers core skills library
Harness-native ECC skills, hooks, rules, MCP conventions, and operator workflows