Execute implementation tasks with different approaches (single, dual-agent, plan-based).
Executes coding tasks by comparing minimal and clean solutions, then implementing the best approach with linting and commits.
/plugin marketplace add https://www.claudepluginhub.com/api/plugins/yuvasee-samocode/marketplace.json/plugin install yuvasee-samocode@cpd-yuvasee-samocodeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Executes implementation tasks using different approaches: direct execution, dual-agent comparison, or plan-based execution.
These steps apply to ALL actions after implementation is complete.
_overview.md.samocode file for MAIN_REPO, or use git root, or ask usernpx tsc --noEmit (it OOMs on large codebases)_overview.md: Add Flow Log entry and Files entrycd [SESSION_DIR] && git add . && git commit -m "[action]: [description]"- [x]**Phase completed** ([TIMESTAMP_ITERATION])IMPORTANT: For implementation phases, use dop2 (dual-agent comparison).
DO NOT implement directly with Edit/Write - spawn sub-agents to propose solutions first.
Rule of thumb: If you're considering dop, ask "Could there be a cleaner way?" If yes -> use dop2.
Execute a task directly with full implementation and documentation.
Session path: [SESSION_PATH from working memory] Task: $ARGUMENTS
Investigate and implement:
Document work - Create [SESSION_PATH]/[TIMESTAMP_FILE]-do-[task-slug].md:
# Task: [brief title]
Date: [TIMESTAMP_LOG]
## What was done
[Description of changes]
## Files Changed
- [file] - [what changed]
## Testing
[How verified]
## Notes
[Any important observations]
Complete common steps (see above)
Report back: Summary of what was done
Spawn two agents with different philosophies to solve the same task independently. Compare solutions and present options.
Session path: [SESSION_PATH from working memory] Task: $ARGUMENTS
Spawn 2 sub-agents in parallel (model: sonnet). Do NOT tell them about each other.
Both agents solve the entire task independently with different philosophies.
Agent 1: Minimal Footprint
Session path: [SESSION_PATH] Task: $ARGUMENTS
Approach: Smallest possible change surface.
Deliverables:
Create [SESSION_PATH]/[TIMESTAMP_FILE]-solution-minimal.md:
# Solution: Minimal Footprint
Task: [description]
## Approach
[High-level strategy]
## Proposed Changes
### File: [path]
```[language]
[code]
Why: [rationale]
[What we accept]
DO NOT edit actual code files - proposals only
Report summary
Agent 2: Clean Foundation
Session path: [SESSION_PATH] Task: $ARGUMENTS
Approach: The "right way" with time to do it properly.
Deliverables:
Create [SESSION_PATH]/[TIMESTAMP_FILE]-solution-clean.md:
# Solution: Clean Foundation
Task: [description]
## Approach
[High-level strategy]
## Proposed Changes
### File: [path]
```[language]
[code]
Why: [rationale]
[New patterns, benefits]
DO NOT edit actual code files - proposals only
Report summary
After both agents complete:
Review both solutions
Create [SESSION_PATH]/[TIMESTAMP_FILE]-comparison.md:
# Comparison: [task]
## Minimal Footprint
**Pros:** [list]
**Cons:** [list]
## Clean Foundation
**Pros:** [list]
**Cons:** [list]
## Recommendation
[Which approach and why]
## Hybrid Possibility
[Can we combine best of both?]
Complete common steps for session files
Present to user:
Which approach?
1. Minimal footprint
2. Clean foundation
3. Hybrid
4. Neither (rethink)
Execute a specific phase from the plan without comparing approaches.
Only for TRIVIALLY SIMPLE 1-2 line changes. For anything else, use dop2.
Session path: [SESSION_PATH from working memory] Phase: $ARGUMENTS
IMPORTANT: Only work on this specific part. Don't do other parts of the plan.
Find the plan:
_overview.md -> Plans section for plan fileImplement:
Document work - Create [SESSION_PATH]/[TIMESTAMP_FILE]-dop-[phase-slug].md:
# Phase: [phase name]
Date: [TIMESTAMP_LOG]
Plan: [plan filename]
## Completed Items
- [x] [Item from plan]
- [x] [Item from plan]
## Changes Made
- [file] - [what changed]
## Testing
[How verified]
## Notes
[Any issues or observations]
Complete common steps (lint, commit code, update plan, update session, commit session)
Report back: Summary of completed items
DEFAULT IMPLEMENTATION STRATEGY - Use Task tool to spawn 2 sub-agents.
Execute a plan phase using dual-agent comparison, with automatic solution selection weighted toward clean approach.
CRITICAL: You MUST use the Task tool to spawn sub-agents. DO NOT implement directly.
Session path: [SESSION_PATH from working memory] Task: $ARGUMENTS
IMPORTANT: Only work on this specific task. Don't do other parts of the plan.
Before spawning agents, assess phase complexity:
Spawn 2 sub-agents in parallel (model: sonnet) with the context below. Do NOT tell them about each other.
CRITICAL: Both agents solve the entire task independently. This is NOT task splitting - each agent produces a FULL solution with their own philosophy.
Agent 1: Minimal Footprint
Session path: [SESSION_PATH] Task: $ARGUMENTS
Your approach: Solve with the smallest possible change surface.
Guidelines:
Deliverables:
Create [SESSION_PATH]/[TIMESTAMP_FILE]-solution-minimal.md:
# Solution: Minimal Footprint
Date: [TIMESTAMP_LOG]
Task: [description]
## Approach
[High-level strategy]
## Proposed Changes
### File: [path]
```[language]
[code]
Why: [rationale]
[What we accept with this approach]
[Potential issues]
Update _overview.md: Flow Log and Files entries
DO NOT edit actual code files - suggestions only
Report back with summary
Agent 2: Clean Foundation
Session path: [SESSION_PATH] Task: $ARGUMENTS
Your approach: Solve the "right way" assuming time to do it properly.
Guidelines:
Deliverables:
Create [SESSION_PATH]/[TIMESTAMP_FILE]-solution-clean.md:
# Solution: Clean Foundation
Date: [TIMESTAMP_LOG]
Task: [description]
## Approach
[High-level strategy]
## Proposed Changes
### File: [path]
```[language]
[code]
Why: [rationale]
[New patterns, refactorings]
[Long-term advantages]
Update _overview.md: Flow Log and Files entries
DO NOT edit actual code files - suggestions only
Report back with summary
After both agents complete:
Create [SESSION_PATH]/[TIMESTAMP_FILE]-comparison-[task-slug].md:
# Comparison: [task]
## Key Differences
[What's fundamentally different]
## Solution 1: Minimal
**Pros:** [list]
**Cons:** [list]
**Risk:** [Low/Medium/High]
## Solution 2: Clean
**Pros:** [list]
**Cons:** [list]
**Risk:** [Low/Medium/High]
## Recommendation
[Which approach and why]
## Hybrid Possibility
[Can we combine best of both?]
Auto-Selection Logic:
Complete common steps for session files
Present comparison and ask:
Which approach?
1. Minimal footprint
2. Clean foundation
3. Hybrid
4. Neither (rethink)
- [x], add completion note)IMPORTANT! If unsure about something, ask first.
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.