/aide:implementfrom aide
Guides TDD implementation by making failing tests pass with minimal code. Runs tests, reads test expectations, checks design decisions, and implements incrementally until all tests pass.
Ships in aide. 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.
Recommended model tier: smart (opus) - this skill requires complex reasoning
Focused TDD implementation: make failing tests pass with minimal code.
This is the DEV stage of the SDLC pipeline. Tests already exist from the TEST stage. Your job is to write the minimal implementation that makes them pass.
Before starting:
# Run the tests - they MUST fail initially
npm test -- path/to/feature.test.ts
# or
go test ./pkg/feature/...
If tests pass: The work is already done. Mark complete and move on.
If tests don't exist: This is wrong - go back to TEST stage.
Understand what the tests expect:
# If a large test file is unfamiliar, an outline can help locate relevant tests
mcp__plugin_aide_aide__code_outline file="path/to/feature.test.ts"
# Read relevant test sections directly when their ranges are known
Read path/to/feature.test.ts offset=<start> limit=<count>
# Read the full file when it is small or most tests are relevant
Read path/to/feature.test.ts
For related source, read known ranges or symbols directly. Use code_outline when unfamiliar
large-file structure would help select relevant code; read the full file when most contents are needed.
Batch known symbols with code_read_symbol (symbols, up to 10) when useful. Extra retrieval rounds
can outweigh smaller responses, so an outline is not a prerequisite to reading or editing.
Use mcp__plugin_aide_aide__decision_get with the feature topic to review decisions from DESIGN stage.
Use mcp__plugin_aide_aide__decision_list to see all project decisions.
Write code to make tests pass one at a time:
# Run specific test
npm test -- --grep "should create user"
# or
go test -run TestCreateUser ./pkg/...
You CANNOT proceed until ALL tests pass.
# Full test run
npm test -- path/to/feature.test.ts
# or
go test -v ./pkg/feature/...
BLOCKING RULE: If any test fails:
DO NOT skip failing tests. DO NOT proceed with red tests.
# Ensure it compiles
npm run build
# or
go build ./...
git add -A
git commit -m "feat: implement <feature> - tests passing"
// Read test expectations
describe("UserService", () => {
it("should create user with email and name", async () => {
const user = await service.createUser({
email: "[email protected]",
name: "Test",
});
expect(user.id).toBeDefined();
expect(user.email).toBe("[email protected]");
});
});
// Implement to match
export class UserService {
async createUser(input: CreateUserInput): Promise<User> {
return {
id: crypto.randomUUID(),
email: input.email,
name: input.name,
createdAt: new Date(),
};
}
}
// Read test expectations
func TestCreateUser(t *testing.T) {
svc := NewUserService()
user, err := svc.CreateUser(context.Background(), CreateUserInput{
Email: "[email protected]",
Name: "Test",
})
require.NoError(t, err)
assert.NotEmpty(t, user.ID)
assert.Equal(t, "[email protected]", user.Email)
}
// Implement to match
func (s *UserService) CreateUser(ctx context.Context, input CreateUserInput) (*User, error) {
return &User{
ID: uuid.New().String(),
Email: input.Email,
Name: input.Name,
CreatedAt: time.Now(),
}, nil
}
./.aide/bin/aide memory add --category=blocker --tags=project:<name>,session:<id>,source:discovered "Cannot pass test X: <reason>"
./.aide/bin/aide memory add --category=abandoned \
--tags=reason:<why>,approach:<what>,project:<name>,session:<id>,source:discovered \
"ABANDONED: <what was tried>. REASON: <why>. ALTERNATIVE: <new direction>. CONTEXT: <details>"
./.aide/bin/aide memory add --category=issue --tags=project:<name>,session:<id>,source:discovered "Implementation of X could be improved: <how>"
Binary location: The aide binary is at .aide/bin/aide. If it's on your $PATH, you can use aide directly.
Before completing:
When all tests pass:
# Final verification
npm test -- path/to/feature.test.ts && npm run build
# Or Go
go test -v ./pkg/feature/... && go build ./...
Output: "Implementation complete. All tests passing. Ready for VERIFY stage."
When storing memories from this skill (blockers, issues, abandoned approaches), always:
source: tag — Use source:discovered for things you found, source:inferred for deductionsproject:<name>,session:<id> (get project name from git remote or directory; session ID from $AIDE_SESSION_ID or $CLAUDE_SESSION_ID)memorise skill for the full verification workflow.scope:global unless storing a user preferenceThis skill is designed for the DEV stage:
[DESIGN] → [TEST] → [DEV/IMPLEMENT] → [VERIFY] → [DOCS]
↑
YOU ARE HERE
What SKILL.md sets; muted values are Claude Code's defaults
26 skills in this plugin
/code-searchLocate definitions, investigate callers and change impact, explore file structure, and read selected sourcenpx claudepluginhub jmylchreest/aide --plugin aideOther plugins' skills for the same job