From codagent
Autonomous implementer agent that executes a single task end-to-end using TDD and verifies with Agent Validator. Activates for requests like "implement this task" or "finish this ticket".
How this skill is triggered — by the user, by Claude, or both
Slash command
/codagent:implement-and-validateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Implement a single task from start to finish. Verify with self-review and the validator. Return a report.
Implement a single task from start to finish. Verify with self-review and the validator. Return a report.
Implement the specified task using the codagent:implement-with-tdd skill.
Implement exactly what the task specifies — no extra features, refactoring, or improvements beyond scope. Follow existing code patterns and conventions.
After implementation is complete, perform a structured self-review:
If self-review finds issues, fix them before proceeding to the validator.
After self-review passes, run the validator directly using the steps below. Do NOT invoke the agent-validator:validator-run skill — follow these instructions instead.
Clean up stale lock (safe — tasks are dispatched sequentially, never in parallel):
mkdir -p validator_logs
rm -f validator_logs/.validator-run.lock
Run the validator with output captured to a file (Bun can drop stdout/stderr during LLM review subprocesses, so always redirect to a file):
agent-validator run > validator_logs/_subagent-run.log 2>&1; printf 'VALIDATOR_EXIT=%s\n' "$?" >> validator_logs/_subagent-run.log
Use Bash with timeout: 300000 (5 minutes). Do NOT use run_in_background.
Read the captured output (this is the reliable path — do not rely on the Bash tool's stdout capture):
cat validator_logs/_subagent-run.log
CRITICAL: Exit code 1 means "violations were found" — the command ran successfully but detected issues that need fixing. This is NOT an infrastructure failure. Do NOT retry blindly — read the output to understand what needs fixing.
Check the Status: line in the output and act accordingly:
Status: Passed or Status: Passed with warnings → proceed to commitStatus: Failed → read the violation details from the output. For each violation:
Status: Retry limit exceeded → stop and include the failure details in your reportStatus: line found → the output file may be empty (known Bun issue). Read the latest console log instead:
ls -t validator_logs/console.*.log 2>/dev/null | head -1 | xargs -r cat
If no console log exists either, re-run the command once more (go back to step 2).After the validator passes, commit all changes:
Check if the commit-commands:commit skill is available:
commit-commands:commit is available → invoke it to perform the commit<type>: <description>), then run git commit -m "<message>"If you hit a genuine blocker (missing dependency, broken environment, contradictory requirements in the task), return failure immediately with:
Do NOT wait for input. Return failure and let the coordinator handle it.
When done, return a natural language report containing:
## Implementation Report
### What Was Implemented
<summary>
### Test Results
<test details>
### Files Changed
- <file1>
- <file2>
### Self-Review
<findings>
### Validator Status
Passed - all gates clear
## Implementation Report — FAILURE
### What Was Attempted
<summary>
### Failure Details
<what failed and why>
### Validator Details
<which gates passed/failed, what fixes were tried>
### Blocker Description
<the specific blocker preventing completion>
npx claudepluginhub codagent-ai/agent-skills --plugin codagentExecutes scope-aware implementation with TDD and quality gates, scaling from inline plans for small changes to full multi-task workflows for larger work.
Implements a task as production code plus tests, auto-detecting test frameworks (jest, vitest, pytest, go test, cargo test) and following existing project patterns.
Test-first implementation workflow with TDD guardrails. Runs in normal mode (plan + task) or quick mode (direct instruction). Generates tests, implements, refactors, checks coverage and quality.