/samocode:implementationfrom samocode
Executes implementation tasks using direct, dual-agent, or plan-based approaches. Manages session context, linting, commits, and readiness checks.
Ships in samocode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Executes implementation tasks using different approaches: direct execution, dual-agent comparison, or plan-based execution.
When Samocode invokes this skill, the injected Session Context already contains the authoritative workflow phase and execution routing. For implementation iterations it also contains the authoritative plan file and active plan phase.
do2/dop2 must use model: inherit and must not
override effort, so they follow the routed parent model and effort.Explicit second-opinion skills remain separate and may cross providers when the task calls for them.
These steps apply to ALL actions after implementation is complete.
Follow the comment-hygiene skill. Write the fewest comments possible; a comment
earns its place only by carrying non-obvious WHY the code cannot — a constraint,
invariant, tradeoff, workaround, or surprising ordering — in one short line. Before
committing, delete any comment or docstring that restates the code, echoes a field
name, records process history (ticket / Q- / PR / phase / gate references), or narrates
mechanics. See the comment-hygiene skill for the full cut/keep rules and the
code-unchanged safety check.
_overview.md.samocode file for MAIN_REPO, or use git root, or ask usernpx tsc --noEmit (it OOMs on large codebases)pr-readiness phase before done
_review_debt.md has undecided blocking/important rows_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).
model: inherit and no effort override when the Task tool is availableDO NOT implement directly with Edit/Write until the comparison step is complete.
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
Create 2 independent solution proposals. If the Task tool is available, spawn 2 sub-agents in parallel with model: inherit and no effort override. If the Task tool is not available, run the two proposal passes yourself sequentially and keep them independent.
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.
avoncore only when there are 2+ current Python service consumers. A frontend mirror does not count; a future consumer belongs in a ticket/TODO, not a premature shared abstraction.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 two independent proposal passes before editing code.
Execute a plan phase using dual-agent comparison, with automatic solution selection weighted toward clean approach.
CRITICAL: If the Task tool is available, use it to spawn sub-agents. If it is not available, create the two proposal documents yourself in separate passes. DO NOT implement directly before comparing the proposals.
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:
Create 2 independent proposals with the context below. If the Task tool is available, spawn 2 sub-agents in parallel with model: inherit and no effort override. If the Task tool is not available, do the minimal proposal first, then the clean proposal, without letting the second proposal optimize around the first.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (yuvasee/samocode) — no native marketplace selected
npx claudepluginhub p/yuvasee-samocode20 skills in this plugin
/claudeRun Anthropic Claude CLI as a subagent for second opinions, code reviews, and questions. Use from a Codex (or other) session when you want Claude's perspective./code-clarityReview changed code for human comprehension cost — names, local reasoning, hidden state, working-memory load — and report findings with an impact/cost/risk assessment table. Review-only; never modifies code. Use when asked for a clarity review, readability review, comprehension-cost analysis of a diff/PR, or when running /code-clarity. Works in Claude Code and Codex./codexRun OpenAI Codex CLI as a subagent for second opinions, code reviews, and questions. Use when you want a different AI model's perspective./comment-hygieneCurate source-code comments and docstrings — delete AI-slop and stale comments, keep only the non-obvious WHY, and never change executable code. Use when cleaning up comments/docstrings, during a samocode cleanup or quality-review step, when running /comment-hygiene, or when reviewing a diff for comment quality. Works in Claude Code and Codex./companionStart and supervise Samocode while the parent does independent scoped work and maintains a human-readable HTML explanation in the session. Use when asked to run Samocode with a live walkthrough, companion, or parallel parent work; not for a standalone status query./create-pr-commentsCreate GitHub PR review comments from review findings. Use after running a code review to post findings as line-bound comments.Other plugins' skills for the same job