Complete workflow for implementing a single subsection from the implementation plan. Orchestrates all project skills to ensure consistent, high-quality implementation with full test coverage...
This skill provides a complete, automated workflow for implementing a single subsection from docs/implementation-plan.md. It orchestrates all project skills to ensure consistent, high-quality implementation.
To implement a subsection (e.g., 5.1.1):
/subsection-implementation 5.1.1
This will execute the entire workflow automatically.
Goal: Start with a clean slate to avoid context pollution and ensure focused implementation.
Actions:
Why: Long conversations accumulate context that may interfere with focused implementation. Starting fresh ensures clarity.
Goal: Understand what needs to be implemented.
Actions:
docs/implementation-plan.md for the specified subsectionOutput: Clear understanding of requirements and test expectations.
Goal: Break down the subsection into actionable tasks.
Actions:
TaskCreate to track implementation tasks:- Read and understand requirements
- Implement code changes
- Write subsection tests
- Run quality checks
- Update documentation
- Commit and push
in_progress when startingcompleted when donePattern: Follow @skills/phase-implementation/SKILL.md workflow
Goal: Write production code following project patterns.
Actions:
@skills/error-handling/SKILL.md)@skills/api-endpoint-implementation/SKILL.md)Patterns:
Result[T] types with error codes@skills/error-handling/SKILL.mdUpdate task: Mark "Implement code changes" as completed
Goal: Verify implementation meets all subsection test requirements.
Actions:
@skills/test-writing/SKILL.md:tests/unit/<module>/test_<component>.pyclass Test<ComponentName>def test_subsection_X_Y_Z_requirement(self) -> None:-> NoneExample:
def test_subsection_5_1_1_calls_llm_when_enabled(self) -> None:
"""Test subsection 5.1.1: Scout calls LLM when enabled."""
# Arrange
scout = ScoutAgent(llm_enabled=True)
game_state = create_test_game_state()
# Act
result = scout.analyze(game_state)
# Assert
assert result.success is True
assert result.data.llm_used is True
Update task: Mark "Write subsection tests" as completed
Goal: Ensure code meets all quality standards before committing.
Actions:
ruff check src/ tests/
black --check src/ tests/
mypy --strict --explicit-package-bases src/
pytest tests/ -v
pytest tests/ --cov=src --cov-report=term-missing
CRITICAL: All checks must pass before proceeding. If any fail:
Pattern: Follow @skills/pre-commit-validation/SKILL.md
Update task: Mark "Run quality checks" as completed
Goal: Mark subsection as complete and document implementation.
Actions:
docs/implementation-plan.md:**Implementation Notes:**
- [Key implementation detail 1]
- [Key implementation detail 2]
- [Any deviations from plan]
**Subsection Tests** ā
:
- ā
[Test 1 description]
- ā
[Test 2 description]
**Test Coverage** ā
:
- **Subsection Tests**: ā
X tests implemented and passing
- **Test File**: ā
`tests/unit/<module>/test_<component>.py`
Update task: Mark "Update documentation" as completed
Goal: Save work with a clear, descriptive commit message.
Actions:
git add <files>
@skills/commit-format/SKILL.md:<type>(<scope>): <Subsection X.Y.Z> - <description>
- [Implementation detail 1]
- [Implementation detail 2]
Tests:
- [List of subsection tests added]
Files:
- <file1>: <description>
- <file2>: <description>
feat: New feature/functionalityfix: Bug fixtest: Test-only changesrefactor: Code restructuringdocs: Documentation onlyExample:
feat(agents): Subsection 5.1.1 - Scout LLM enhancement
- Integrate Pydantic AI for board analysis
- Add LLM fallback to rule-based logic
- Implement retry mechanism (3 attempts with exponential backoff)
- Add LLM call metadata logging
Tests:
- ā
8 subsection tests covering LLM integration
- ā
Test LLM calls, fallback, retries, and logging
Files:
- src/agents/scout.py: Add LLM integration with fallback
- tests/unit/agents/test_scout_llm.py: Add subsection tests
- docs/implementation-plan.md: Mark 5.1.1 as complete
git push origin main
CRITICAL: Only commit after:
Update task: Mark "Commit and push" as completed
1. Clear Context ā Start fresh
2. Read Requirements ā Understand subsection
3. Create Plan ā Track with TaskCreate
4. Implement Code ā Follow project patterns
5. Write Tests ā Verify requirements
6. Run Quality Checks ā Ensure standards (MUST PASS)
7. Update Docs ā Mark complete with notes
8. Commit & Push ā Save work with clear message
Subsections are identified by their numbering in the implementation plan:
5.1.1, 5.2.3, 6.0.1Before committing, all of these MUST be ā :
If any quality gate fails: Fix issues and re-validate. Do not proceed.
This skill orchestrates these existing skills:
Follow all patterns from these skills during implementation.
User: /subsection-implementation 5.1.1
AI Response:
"Starting fresh implementation of subsection 5.1.1..."
"Reading docs/implementation-plan.md section 5.1.1..."
"Creating task list..." [Creates TaskCreate with 6 tasks]
"Implementing Scout LLM enhancement..." [Modifies src/agents/scout.py with LLM integration]
"Writing subsection tests..." [Creates tests/unit/agents/test_scout_llm.py with 8 tests]
ruff check src/ tests/ # ā
Pass
black --check src/ tests/ # ā
Pass
mypy --strict src/ # ā
Pass
pytest tests/ -v # ā
8/8 passed
[Updates docs/implementation-plan.md]:
git add src/agents/scout.py tests/unit/agents/test_scout_llm.py docs/implementation-plan.md
git commit -m "feat(agents): Subsection 5.1.1 - Scout LLM enhancement
- Integrate Pydantic AI for board analysis
- Add LLM fallback to rule-based logic
- Implement retry mechanism (3 attempts)
- Add LLM call metadata logging
Tests:
- ā
8 subsection tests covering LLM integration
Files:
- src/agents/scout.py: Add LLM integration with fallback
- tests/unit/agents/test_scout_llm.py: Add subsection tests
- docs/implementation-plan.md: Mark 5.1.1 as complete"
git push origin main
ā Subsection 5.1.1 Complete!
Implement a specific subsection:
/subsection-implementation 5.1.1
With specific branch:
/subsection-implementation 5.1.1 --branch feature/scout-llm
With dry-run (show plan without executing):
/subsection-implementation 5.1.1 --dry-run
docs/implementation-plan.md5.1.1, not 5-1-1)