Agent skill
implementing-issue
Implements a single issue with TDD, code review, and fix loop. Use when a specific issue needs implementation -- either standalone or as part of orchestrated spec execution.
Install this agent skill to your Project
npx add-skill https://github.com/bacchus-labs/wrangler/tree/main/skills/implementing-issue
SKILL.md
Implementing Issue
Overview
Implements a single MCP issue with TDD and automated code review. Designed for two use cases:
- Standalone -- user invokes directly for a specific issue
- Dispatched -- called as the unit of work from implementing-specs
Entry point: /wrangler:implementing-issue ISS-XXXXXX
When to Use
- Implementing a specific issue (ISS-XXXXXX)
- Invoked directly for standalone work
- Dispatched as a subagent from implementing-specs
When NOT to Use
- Implementing a full specification (use implementing-specs)
- Exploring code (use locating-code)
- Answering questions (just answer directly)
Input
- Issue ID (required): e.g.,
ISS-000042 - Working directory context (optional): defaults to current directory
Core Workflow
1. Setup
- Read issue via
issues_getMCP tool - Capture working directory and branch (see
references/working-directory-protocol.md) - Understand requirements and acceptance criteria from the issue description
2. Implementation (TDD)
Follow the practicing-tdd skill strictly:
- RED -- Write a failing test that captures the requirement
- GREEN -- Implement the minimum code to make the test pass
- REFACTOR -- Clean up implementation and tests
- Commit work with a descriptive message
Repeat for each distinct requirement in the issue.
3. Code Review
- Request code review using
requesting-code-reviewskill - Parse feedback into severity categories:
- Critical -- Must fix. Auto-fix with up to 2 attempts, escalate if both fail.
- Important -- Must fix. Same 2-attempt process as Critical.
- Minor -- Document only, do not fix.
- Verify all Critical/Important issues resolved before proceeding
See references/code-review-automation.md for the detailed process.
4. Completion
- Verify all tests pass
- Provide TDD Compliance Certification (from practicing-tdd)
- Verify git status (working tree clean, changes committed)
- Report results:
- Implementation summary (what was done)
- Test results (pass count, coverage if available)
- TDD Compliance Certification table
- Commit hash
- Any Minor issues noted for future cleanup
See references/verification-checklist.md for the full checklist.
Blocker Detection
Only stop for genuine blockers. See references/blocker-detection.md for the full decision flowchart.
Immediate escalation:
- Unclear requirements (do not guess)
- Git conflicts (do not auto-resolve)
Escalation after 2 attempts:
- Persistent test failures
- Fix subagent cannot resolve the issue
- Missing dependencies that cannot be auto-installed
Non-blockers (continue autonomously):
- First test failure -- auto-fix
- Code review feedback -- auto-fix (2 attempts)
- Warnings -- document and continue
Anti-Patterns
- Stopping to ask "should I continue?" when not blocked
- Guessing about unclear requirements instead of escalating
- Proceeding with failing tests
- Skipping code review
- Fixing Minor issues instead of documenting them
Integration with Other Skills
practicing-tdd-- TDD workflow (RED-GREEN-REFACTOR)verifying-before-completion-- Final verification checksrequesting-code-review-- Code review dispatch and feedback parsing
References
Detailed documentation in references/ subdirectory:
working-directory-protocol.md-- Location verification and command patternssubagent-prompts.md-- Subagent prompt templates (reviewer, fix agent)code-review-automation.md-- Review handling and fix loop processverification-checklist.md-- Completion verification stepsblocker-detection.md-- Decision flowchart and escalation criteriaexamples.md-- Workflow examples
For workflow checklists, see assets/workflow-checklist.md.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
locating-code
Finds specific code elements (functions, classes, patterns) using multiple search strategies. Use when searching for implementations, dependencies, or code requiring modification.
using-wrangler
Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists
creating-issues
For use when a new issue/task has been identified and needs to be formally captured using the Wrangler MCP issue management system. Use this skill to create new issues via the issues_create MCP tool with appropriate metadata and structured content.
validating-roadmaps
Validates roadmap completeness, phase coherence, and alignment with constitution. Use when creating roadmaps, reviewing planning documents, or ensuring strategic consistency.
refreshing-metrics
Auto-updates status metrics across governance documents from MCP issue counts. Use when governance metrics are stale or after significant issue status changes requiring documentation refresh.
updating-git-hooks
Updates existing git hook configurations for new requirements or tool changes. Use when hook requirements change, adding new quality checks, or modifying test commands.
Didn't find tool you were looking for?