Dev instructions for the lead-dev-os repository itself.
lead-dev-os is a Claude Code plugin — a spec & context-driven framework for Claude Code development on large projects. It provides structured skills for product planning, spec writing, task scoping, and context-aware implementation.
The plugin lives in the lead-dev-os/ subdirectory. Everything outside that directory is repository-level supporting infrastructure (tests, docs, legacy code) and is not part of the distributed plugin.
MIT License
- plugin — the
lead-dev-os/directory; this is what users point--plugin-dirat or install via a marketplace - target project — the project where the
lead-dev-osplugin is installed/enabled - spec — a feature specification (created in the target project)
- task — a scoped unit of work to be executed by the AI agent
- skill — a directory under
lead-dev-os/skills/containing aSKILL.mdfile; invoked as/lead-dev-os:<skill-name>
This project follows the Claude Code plugin structure:
- Manifest:
lead-dev-os/.claude-plugin/plugin.json— defines plugin metadata (name,version,description,author, etc.). Thenamefield (lead-dev-os) is the namespace prefix for all skills. - Skills:
lead-dev-os/skills/— flat directory of skill folders, each containing aSKILL.mdentrypoint. Skills may include supporting files (templates, examples, scripts) alongsideSKILL.md. Claude Code auto-discovers skills from this directory. - Marketplace:
.claude-plugin/marketplace.jsonat the repository root — thecaptainme-aimarketplace catalog listing the plugin with a relative-path source ("./lead-dev-os"). This must live at the repo root (not inside the plugin) so/plugin marketplace add CaptainMe-AI/lead-dev-osfinds it. See Plugin marketplaces. - Inside the plugin, only
plugin.jsongoes inlead-dev-os/.claude-plugin/. All other directories (skills/, etc.) are at the plugin root level. Never putmarketplace.jsonthere — it would make Claude Code treat the plugin directory as a marketplace.
Users install the plugin from the marketplace:
/plugin marketplace add CaptainMe-AI/lead-dev-os
/plugin install lead-dev-os@captainme-ai
Or load it during development with:
claude --plugin-dir ./lead-dev-osNote: users only receive updates when the version in plugin.json changes — bump it on every release. See Discover and install plugins.
lead-dev-os/ # Repository root
├── .claude-plugin/
│ └── marketplace.json # Marketplace catalog (name: captainme-ai)
├── lead-dev-os/ # THE PLUGIN (this is what gets distributed)
│ ├── .claude-plugin/
│ │ └── plugin.json # Plugin manifest (name, version, author, etc.)
│ └── skills/ # Flat skill directories (plugin requirement)
│ ├── configure-project/ # Project configuration
│ │ ├── SKILL.md
│ │ ├── templates/ # Templates for target project files
│ │ │ ├── agents.md # → agents-context/AGENTS.md
│ │ │ ├── claude.md # → CLAUDE.md framework section
│ │ │ ├── readme.md # → agents-context/README.md
│ │ │ └── workflow.md # → agents-context/guides/workflow.md
│ │ ├── examples/
│ │ │ └── readme-filled.md # Example of a mature README.md
│ │ ├── standards-global/ # Global standards (always copied)
│ │ │ ├── coding-style.md
│ │ │ ├── commenting.md
│ │ │ ├── conventions.md
│ │ │ ├── error-handling.md
│ │ │ └── validation.md
│ │ └── standards-testing/ # Testing standards (always copied)
│ │ └── test-writing.md
│ ├── plan-product/ # Strategic: product mission
│ ├── plan-roadmap/ # Strategic: feature roadmap
│ ├── define-standards/ # Strategic: coding standards
│ ├── create-or-update-concepts/ # Strategic: codebase → concept files
│ ├── step1-write-spec/ # Tactical: requirements → spec
│ ├── step2-scope-tasks/ # Tactical: spec → task groups
│ ├── step3-implement-tasks/ # Tactical: task execution
│ └── step4-archive-spec/ # Tactical: archive completed spec
│
├── tests/ # Test suites for the plugin
├── docs/ # GitHub Pages documentation
├── app/ # DEPRECATED (legacy installer source)
├── scripts/ # DEPRECATED (legacy installer scripts)
├── CLAUDE.md # This file — dev instructions for this repo
├── INITIAL_PLAN.md # Detailed design plan
├── LICENSE
└── README.md
lead-dev-os/is the plugin root — it contains.claude-plugin/plugin.jsonandskills/- Skills are flat under
lead-dev-os/skills/— no nesting of skill directories (this is a plugin requirement) - All skill cross-references use the
/lead-dev-os:namespace (e.g.,/lead-dev-os:step1-write-spec). The namespace comes from thenamefield inplugin.json. - Each skill is a directory with a
SKILL.mdentrypoint and optional supporting files (templates, examples, scripts). See Skills docs. - Templates are co-located with their skills (e.g.,
step1-write-spec/template.md) - Standards files are bundled inside
lead-dev-os/skills/configure-project/(no separate content/ directory)
- Specs go into
lead-dev-os/specs/directory in the target project - No
config.ymlin the plugin — stack selection is handled interactively by/lead-dev-os:configure-project
app/andscripts/are deprecated but still functional for backwards compatibility
/lead-dev-os:step1-write-spec— Interactive Q&A to gather requirements, then formalize into structured spec/lead-dev-os:step2-scope-tasks— Break into task groups with explicit context directives/lead-dev-os:step3-implement-tasks— Context-aware execution of task groups/lead-dev-os:step4-archive-spec— Archive completed spec tospecs-archived/and block agent access
Concept files (agents-context/concepts/) are general guidance, not code:
- Describe approaches, conventions, and decision rationale
- Reference file paths instead of duplicating code
- Each file covers one concept/feature domain
- Composable — load only what's needed for the current task