Implement a feature following its plan
/plugin marketplace add asermax/claude-plugins/plugin install katachi@asermax-pluginsFEATURE-IDImplement a feature following its plan.
Feature ID: $ARGUMENTS (e.g., "CORE-001")
Skills to load:
katachi:framework-core - Workflow principleskatachi:working-on-feature - Per-feature workflowFeature inventory:
@planning/FEATURES.md - Feature definitions
@planning/DEPENDENCIES.md - Feature dependencies
Feature documents:
@specs/$ARGUMENTS.md - What to build (requirements)
@designs/$ARGUMENTS.md - Why/how (design rationale)
@plans/$ARGUMENTS.md - Implementation steps to follow
Project decisions:
@docs/architecture/README.md - Architecture decisions (ADRs)
@docs/design/README.md - Design patterns (DES)
Read dependency code as specified in plan's pre-implementation checklist.
Verify all documentation exists:
Update status:
python ${CLAUDE_PLUGIN_ROOT}/scripts/features.py status set $ARGUMENTS "⧗ Implementation"
plans/$ARGUMENTS.md)Work through all steps in the plan without asking questions. Documentation is the source of truth.
For each step:
// See ADR-003 for why we use X instead of YUse scratchpad /tmp/implement-$ARGUMENTS-state.md:
Dispatch the code-reviewer agent:
Task(
subagent_type="katachi:code-reviewer",
prompt=f"""
Review this implementation.
## Feature Spec
{spec_content}
## Feature Design
{design_content}
## Implementation Plan
{plan_content}
## Implemented Code
{code_diff_or_files}
## Relevant ADR/DES Documents
{adr_des_content}
Provide structured critique covering:
- Acceptance criteria satisfaction
- Design alignment
- Pattern compliance with ADRs/DES
- Production code purity (no test-specific logic)
- Code quality
- Decision references in comments
- Documentation sync
"""
)
Automatically address ALL issues identified in validation:
Re-run tests after fixes. Do NOT ask user - fix everything autonomously.
Show complete implementation to user:
Invite feedback: "What needs adjustment in this implementation?"
Apply user corrections or changes. Re-test after changes. When user rejects code changes: Update documents consistently. Repeat until user approves.
Present discovered patterns to user for selection.
Suggest new DES if:
Suggest updating existing DES if:
User selects which patterns to document. Create/update DES documents as approved.
Update status:
python ${CLAUDE_PLUGIN_ROOT}/scripts/features.py status set $ARGUMENTS "✓ Implementation"
Offer to commit: "Ready to commit this implementation?"
Using ADRs and DES:
Referencing in Code:
// See [DECISION-ID]: [brief reason]Pattern Detection:
This is an autonomous implementation process: