Eject katachi plugin into self-contained project structure
Copies all katachi plugin components into the current project, making it self-contained and independent of the plugin.
/plugin marketplace add asermax/claude-plugins/plugin install katachi@asermax-pluginsCopy all katachi plugin components (commands, agents, scripts, docs) into the current project, making it self-contained and independent of the plugin.
.claude/commands/.claude/agents/scripts/ (features.py, backlog.py)docs/ (framework.md, command-guidance.md)docs/templates/docs/architecture/README.md, docs/design/README.mdCheck if .claude/commands/ directory already exists:
ls -la .claude/commands/ 2>/dev/null
If it exists, ask user:
"Warning: .claude/commands/ directory already exists.
This will overwrite all existing commands with katachi commands.
Do you want to:
A) Continue and overwrite
B) Cancel
"
If user chooses cancel, stop here.
Check if docs/planning/ already exists:
ls -la docs/planning/ 2>/dev/null
If it exists, note that framework docs structure already exists (no action needed).
Create all necessary directories:
mkdir -p .claude/commands .claude/agents scripts docs/templates docs/planning docs/feature-specs docs/feature-designs docs/feature-plans docs/architecture docs/design
For each command in ${CLAUDE_PLUGIN_ROOT}/commands/*.md (except eject.md itself):
${CLAUDE_PLUGIN_ROOT}/scripts/ with scripts/**Skill to load:** and the Load instruction)katachi:framework-core → @docs/framework.md@docs/command-guidance.md reference where appropriatekatachi: prefix → no prefix (e.g., katachi:spec-reviewer → spec-reviewer).claude/commands/<command-name>.mdTransformation Examples:
Script paths:
# Before:
python ${CLAUDE_PLUGIN_ROOT}/scripts/features.py deps tree
# After:
python scripts/features.py deps tree
Skill loading sections (REMOVE):
# Before:
**Skill to load:**
Load the `katachi:framework-core` skill for workflow principles and state detection.
# After:
(removed entirely)
Framework references (ADD where skill was removed):
# After skill removal, add:
**Framework reference:**
@docs/framework.md - Development workflow principles
@docs/command-guidance.md - Collaborative workflow guidance
Agent dispatch:
# Before:
Task(subagent_type="katachi:spec-reviewer", ...)
# After:
Task(subagent_type="spec-reviewer", ...)
Commands to copy:
For each agent in ${CLAUDE_PLUGIN_ROOT}/agents/*.md:
name: katachi:agent-name, change to name: agent-namekatachi: prefix from name field.claude/agents/<agent-name>.mdAgents to copy:
Copy scripts directly without transformations:
cp ${CLAUDE_PLUGIN_ROOT}/scripts/features.py scripts/features.py
cp ${CLAUDE_PLUGIN_ROOT}/scripts/backlog.py scripts/backlog.py
chmod +x scripts/features.py scripts/backlog.py
Create docs/framework.md:
Combine content from skill files to create comprehensive framework documentation:
${CLAUDE_PLUGIN_ROOT}/skills/framework-core/SKILL.md${CLAUDE_PLUGIN_ROOT}/skills/iterative-development/SKILL.md${CLAUDE_PLUGIN_ROOT}/skills/working-on-feature/SKILL.md${CLAUDE_PLUGIN_ROOT}/skills/retrofit-existing/SKILL.mdCreate docs/command-guidance.md:
Extract collaborative workflow principles from the skills:
This file should provide guidance on how commands interact with users.
Copy template files from skills to docs/templates/:
From ${CLAUDE_PLUGIN_ROOT}/skills/framework-core/references/:
From ${CLAUDE_PLUGIN_ROOT}/skills/working-on-feature/references/:
Copy these files directly to docs/templates/ without transformations.
Create docs/architecture/README.md:
# Architecture Decision Records (ADRs)
This directory contains Architecture Decision Records documenting significant architectural choices.
## Quick Reference
| ADR | Title | Status | Tags |
|-----|-------|--------|------|
| (none yet) | | | |
## What is an ADR?
Architecture Decision Records document significant architectural choices that affect the system's structure, behavior, or development process.
**When to create an ADR:**
- Choosing between major architectural patterns
- Selecting core technologies or frameworks
- Defining system boundaries
- Making decisions with long-term consequences
**Template:** See `@docs/templates/ADR-template.md`
## ADR Lifecycle
- **Proposed**: Under consideration
- **Accepted**: Approved and active
- **Superseded**: Replaced by a newer decision
- **Deprecated**: No longer recommended but not replaced
Create docs/design/README.md:
# Design Patterns (DES)
This directory contains Design Pattern documents describing reusable solutions to common problems.
## Quick Reference
| DES | Pattern | Context | Tags |
|-----|---------|---------|------|
| (none yet) | | | |
## What is a DES?
Design Patterns document reusable solutions to recurring problems. Unlike ADRs, patterns can evolve over time.
**When to create a DES:**
- Solving a recurring problem
- Establishing a code pattern
- Defining conventions
- Documenting best practices
**Template:** See `@docs/templates/DES-template.md`
## DES Evolution
DES documents can evolve:
- Add "Evolution" section with date and rationale
- Preserve original content for history
- Update examples and guidance
After all files are copied and transformed:
## Eject Complete!
The katachi plugin has been ejected into your project. Here's what was created:
### Commands (.claude/commands/)
- All commands copied and transformed
- All plugin references updated to local paths
- Agent namespaces updated (katachi:* → local)
### Agents (.claude/agents/)
- All reviewer agents copied
- spec-reviewer, design-reviewer, plan-reviewer
- code-reviewer, impact-analyzer, codebase-analyzer
### Scripts (scripts/)
- features.py - Feature dependency and status management
- backlog.py - Backlog tracking
### Framework Docs (docs/)
- framework.md - Core workflow principles
- command-guidance.md - Collaborative workflow guidance
### Templates (docs/templates/)
- Template files for specs, designs, plans, decisions
### Index Files
- docs/architecture/README.md - ADR index
- docs/design/README.md - DES index
### Next Steps
1. **Uninstall the katachi plugin** (optional but recommended):
/plugin uninstall katachi
2. **Test a command**:
/vision
3. **Verify scripts work**:
python scripts/features.py --help
Your project is now self-contained and doesn't need the katachi plugin!
${CLAUDE_PLUGIN_ROOT} references are replaced with local pathskatachi: agent namespace prefixes are removedAfter ejection, verify:
.claude/commands/ has all command files.claude/agents/ has all agent filesscripts/ has features.py and backlog.pydocs/ has framework.md and command-guidance.mddocs/templates/ has all template files${CLAUDE_PLUGIN_ROOT} references in copied fileskatachi: agent namespace references in commands/vision command runs successfullypython scripts/features.py --help runs successfullyThis is an automated process: