Guides implementation of code tasks using test-driven development in an Explore, Plan, Code, Commit workflow. Acts as a Technical Implementation Partner and TDD Coach — following existing patterns, avoiding over-engineering, and producing idiomatic, modern code.
Guides implementation of code tasks using test-driven development in an Explore, Plan, Code, Commit workflow. Balances automation with user collaboration while adhering to existing package patterns and prioritizing readability and extensibility.
.code-task.md, or URLConstraints:
Apply these patterns throughout all steps:
Interactive Mode: Present actions for confirmation. Explain pros/cons when multiple approaches exist. Ask clarifying questions. Pause at key decision points. Provide educational context.
Auto Mode: Execute autonomously. Document all decisions and reasoning in progress.md. Select the most appropriate approach and document why. Provide comprehensive summaries at completion.
Separation of Concerns:
Documentation goes in {documentation_dir}. Code (tests and implementation) goes in repo_root. Never mix them. Documentation should guide implementation with high-level concepts — not provide it. When including code snippets in documentation, keep them brief and clearly label them as examples or references.
CODEASSIST.md Integration: If CODEASSIST.md exists in repo_root, read it and apply its constraints throughout.
Initialize the project environment and create necessary directory structures.
Constraints:
{documentation_dir}/implementation/{task_name}/ (with logs subdirectory) and verify it exists before proceeding.code-task.md with YAML frontmatter, update status: in_progress and started: <date> (if not already set)💬 See Mode Behavior for mode-specific interaction guidance
Analyze the task description and existing documentation to identify core functionality, edge cases, and constraints.
Constraints:
💬 See Mode Behavior for mode-specific interaction guidance
Search for similar implementations and identify interfaces, libraries, and components the implementation will interact with.
Constraints:
💬 See Mode Behavior for mode-specific interaction guidance
Create test scenarios covering normal operation, edge cases, and error conditions.
Constraints:
💬 See Mode Behavior for mode-specific interaction guidance
Outline the high-level structure and create an implementation plan.
Constraints:
💬 See Mode Behavior for mode-specific interaction guidance
Phase-wide constraints:
{documentation_dir}/implementation/{task_name}/logs/ and search for success/failure indicatorsWrite test cases following strict TDD principles.
Constraints:
💬 See Mode Behavior for mode-specific interaction guidance
Write implementation code to pass the tests, focusing on simplicity and correctness first.
Constraints:
💬 See Mode Behavior for mode-specific interaction guidance
Review the implementation for simplification, improvement, and convention alignment.
Constraints:
💬 See Mode Behavior for mode-specific interaction guidance
Verify the implementation is complete and correct.
Constraints:
💬 See Mode Behavior for mode-specific interaction guidance
Draft a conventional commit message and perform the git commit.
Constraints:
.code-task.md, update frontmatter to status: completed and completed: <date> before committing💬 See Mode Behavior for mode-specific interaction guidance
{documentation_dir}/implementation/{task_name}/ (context.md, plan.md, progress.md, logs/)Input:
task_description: "Create a utility function that validates email addresses"
mode: "interactive"
Expected Process:
Directory/Permission Issues: Create directories if possible, inform user of permission issues, suggest alternatives.
Build Failures: Check CODEASSIST.md for guidance, verify correct directory, try clean builds, check dependencies.
Multi-Package Coordination: Verify dependency order, build in order, create separate commits per package.
Task File Frontmatter Issues: Skip frontmatter updates if missing/malformed. Don't fail the task due to frontmatter issues.
Implementation Challenges: Document in progress.md, propose alternatives. In interactive mode ask for guidance; in auto mode select the most promising approach and document the decision.
• {documentation_dir}/implementation/{task_name}/context.md — Workspace structure, requirements, patterns, dependencies, implementation paths
• {documentation_dir}/implementation/{task_name}/plan.md — Test scenarios, implementation strategy
• {documentation_dir}/implementation/{task_name}/progress.md — Execution tracking, TDD cycles, commit status, challenges
• {documentation_dir}/implementation/{task_name}/logs/ — Build outputs
Query Google Places API (New) via the goplaces CLI for text search, place details, resolve, and reviews. Use for human-friendly place lookup or JSON output for scripts.
Delegate coding tasks to Codex, Claude Code, or Pi agents via background process. Use when: (1) building/creating new features or apps, (2) reviewing PRs (spawn in temp dir), (3) refactoring large codebases, (4) iterative coding that needs file exploration. NOT for: simple one-liner fixes (just edit), reading code (use read tool), thread-bound ACP harness requests in chat (for example spawn/run Codex or Claude Code in a Discord thread; use sessions_spawn with runtime:"acp"), or any work in ~/clawd workspace (never spawn agents here). Claude Code: use --print --permission-mode bypassPermissions (no PTY). Codex/Pi/OpenCode: pty:true required.
iMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
ElevenLabs text-to-speech with mac-style say UX.
Capture and automate macOS UI with the Peekaboo CLI.
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
Category:developer