with one click
implement
TDD implementation - make failing tests pass
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
TDD implementation - make failing tests pass
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Explore codebase structure, entry points, tech stack, hotspots, and call graphs
Search code symbols, find function calls, and analyze codebase
Run the instinct parser catalogue against this session's observe events to surface candidate patterns for promotion to memories. Two-pass: gather candidates, judge intent, write proposals.
Parallel agents with SDLC pipeline per story
Inspect a running swarm — show the agent tree, current tools, halts/pauses, and recent task/message activity for the orchestrator's own swarm.
Systematic debugging workflow for tracking down bugs and issues
| name | implement |
| description | TDD implementation - make failing tests pass |
| triggers | ["implement this","implement the","make tests pass","dev stage","development stage"] |
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:
# For large test files, get the structure first
mcp__plugin_aide_aide__code_outline file="path/to/feature.test.ts"
# Then read specific test sections with offset/limit
Read path/to/feature.test.ts offset=<start> limit=<count>
# For small test files (<100 lines), reading the full file is fine
Read path/to/feature.test.ts
When implementing, use code_outline on adjacent/related source files to understand
their structure before reading them fully. This preserves context for the implementation work.
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: "test@example.com",
name: "Test",
});
expect(user.id).toBeDefined();
expect(user.email).toBe("test@example.com");
});
});
// 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: "test@example.com",
Name: "Test",
})
require.NoError(t, err)
assert.NotEmpty(t, user.ID)
assert.Equal(t, "test@example.com", 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