SKILL.md--- name: code-assist description: 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. type: anthropic-skill version: "1.1" metadata: internal: true --- # Code Assist ## Overview 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. ## Parameters - **task_description** (required): Task specification, rough idea, file path to `.code-task.md`, or URL - **additional_context** (optional): Supplementary information for implementation context - **documentation_dir** (optional, default: ".sop/planning"): Directory for planning documents - **repo_root** (optional, default: current working directory): Repository root for code implementation - **task_name** (optional): Short descriptive name (auto-generated if not provided) - **mode** (optional, default: "auto"): "interactive" (confirmation at each step) or "auto" (autonomous execution) **Constraints:** - You MUST ask for all parameters upfront in a single prompt to avoid repeated interruptions - You MUST validate inputs: normalize mode to "interactive"/"auto", verify paths, generate task_name if needed ## Mode Behavior 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. ## Important Notes **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. ## Steps ### 1. Setup Initialize the project environment and create necessary directory structures. **Constraints:** - You MUST create `{documentation_dir}/implementation/{task_name}/` (with logs subdirectory) and verify it exists before proceeding - You MUST discover instruction files (CODEASSIST.md, README.md, CONTRIBUTING.md, ARCHITECTURE.md, etc.) and summarize relevant information in context.md - You MUST create context.md (project structure, requirements, patterns, dependencies) and progress.md (execution tra