Skip to content
Agentmart
Submit a tool

implement

Implements a single task from the plan using TDD discipline.

Skill by xoai

IndexedMIT★ 30
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/xoai-implement

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Implements a single task from the plan using TDD discipline. Reads the task spec, writes tests first, writes minimal passing code, refactors, and commits. Use when executing a planned task, writing code for a feature, or when the user says "implement this", "write the code", "build this task", or "execute the plan".

Use cases: testing, writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/implement

What's inside

Skill name
implement
Description
Implements a single task from the plan using TDD discipline. Reads the task spec, writes tests first, writes minimal passing code, refactors, and commits. Use when executing a planned task, writing code for a feature, or when the user says "implement this", "write the code", "build this task", or "execute the plan".
License
MIT
Instructions
147 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

<!-- sage-metadata
cost-tier: sonnet
activation: auto
tags: [implementation, coding, development]
inputs: [task-spec, plan, codebase-context, constitution]
outputs: [implementation, test-suite]
requires: [tdd, scope-guard]
-->

# Implement

Write code for one task. Follow TDD. Stay in scope. Commit.

**Core Principle:** Implementation is the mechanical part. The thinking was done
in the spec and plan. Your job now is to faithfully translate the plan into working,
tested code — not to redesign, optimize, or "improve" beyond what was specified.

## When to Use

During the execution phase of any workflow, when a task from the plan is ready
for implementation.

## Process

### Step 1: Read the Task Completely

Read the full task specification from the plan. Understand:
- What files to create or modify
- What the code should do
- What test to write
- How to verify completion
- What this task depends on (verify dependencies are complete)

If anything is unclear, ASK before proceeding. Guessing at requirements
causes rework. It is always faster to ask one question than to rewrite
200 lines of code.

### Step 2: Check Conventions

Reference the codebase-scan output and `.sage/conventions.md`:
- What patterns are used for similar code in this project?
- What naming conventions apply?
- What test patterns are established?
- What import style is used?

Your implementation MUST follow existing conventions unless the task
explicitly requires deviating from them.

### Step 3: Implement Using TDD

Follow the `tdd` skill strictly:

1. **Write the test first.** The test describes the behavior from the task spec.
   Watch it fail. Verify it fails for the right reason.
2. **Write minimal code to pass.** Only enough to make the test green.
   Don't add error handling, edge cases, or optimizations not required by the task.
3. **Refactor if needed.** Clean up duplication. Improve names. Keep tests green.
4. **Repeat** for each behavior in the task.

### Step 4: Self-Review Before Committing

Before declaring the task complete, check:

- [ ] Every piece of the task spec is implemented
- [ ] Every behavior has a test that was written FIRST
- [ ] All tests pass (run them, don't assume)
- [ ] No code outside the task scope was changed (scope-guard)
- [ ] Code follows project conventions (from codebase-scan)
- [ ] No TODO/FIXME/HACK comments added (fix it now or don't do it)

### Step 5: Update Plan Progress

**This is the critical persistence step.** After committing, update the plan file
to record completion. This is NOT optional — it IS the state persistence mechanism.

In the plan file (`.sage/work/<feature>/plan.md`):
1. Check the task's checkbox: `- [ ]` → `- [x]`
2. Add the completion marker after the task name: `✅ DONE (commit: <hash>)`
3. Fill in the gate results in the Gate Log table (after gates run)
4. Update the plan's `**Last updated:**` timestamp
5. If this was the last task, update `**Status:**` to `complete`

**Why this matters:** If the session ends unexpectedly — terminal closed, context
window full, connection dropped — the plan file on disk shows exactly which tasks
are done. The next session reads the plan file, sees the checkboxes, and resumes
from the right place. This works because artifacts are the source of truth.

### Step 6: Commit

Write a semantic commit message:
```
<type>(<scope>): <short description>

<what was done and why, referencing the task>
```

Types: `feat`, `fix`, `refactor`, `test`, `docs`, `chore`

## Rules

**MUST (violation = broken code or lost work):**
- MUST NOT implement multiple tasks without committing between them.
  Each task = one commit (or a small sequence of commits).
- MUST NOT skip TDD. The `tdd` skill is mandatory and has no exceptions.
- MUST NOT expand scope. The `scope-guard` skill is active. Do what the task says.
- MUST NOT guess at unclear requirements. Ask the human.
- MUST update plan checkboxes in bulk at the completion checkpoint (Rule 7).

**SHOULD (violation = suboptimal but working):**
- SHOULD follow existing project conventions over personal preference.
- SHOULD report if a task is harder than expected. Don't silently
  spend 30 minutes on a "5-minute task" without communicating.
- SHOULD use semantic commit messages following the type(scope): description format.

**MAY (context-dependent):**
- MAY split a commit into multiple smaller commits if the task has natural breakpoints.
- MAY ask the human to clarify conventions when existing code is inconsistent.

## Subagent Mode

From xoai/sage, MIT.

More from xoai/sage

Signals

Stars
30
Forks
7
Open issues
0
Last commit (this folder)
Mar 22, 2026 (7 months ago)
Last release
Sep 28, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from xoai

Cite this page

implement skill. Agent Mart. https://agentmart.dev/skills/xoai-implement (last updated 2026-10-24)