From codagent
Implements single coding tasks end-to-end using TDD, self-review, and Agent Validator verification. Activates for 'implement this task', 'finish this ticket', or similar requests.
npx claudepluginhub codagent-ai/agent-skills --plugin codagentThis skill uses the workspace's default tool permissions.
Implement a single task from start to finish. Verify with self-review and the validator. Return a report.
Runs full validator workflow: executes agent-validate checks via Bash, extracts and reports failures from logs using Task, applies fixes before commit/push/PR. For 'run validator' requests.
Autonomously implements full changes end-to-end by dispatching subagents sequentially per task, running validators, and finalizing PRs. Activates for 'implement this change', 'ship it', or similar requests.
Dispatches implementer, spec reviewer, and quality reviewer subagents for code tasks in /dev workflow, enforcing TDD and task agent delegation.
Share bugs, ideas, or general feedback.
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>