implement-subtask-rules

Define subtask implementation rules with TDD and quality gates.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/takemo101/compose-workflow --skill implement-subtask-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-subtask-rules
Source: https://github.com/takemo101/compose-workflow/tree/main/.opencode/skill/implement-subtask-rules
Command: npx skills add https://github.com/takemo101/compose-workflow --skill implement-subtask-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill standardizes and optimizes the process of implementing subtasks by defining strict rules for referencing design documents, code granularity, testing, and quality reviews, thereby reducing token consumption and improving efficiency.

Core Features & Use Cases

  • Token Optimization: Enforces rules to only read necessary sections of design documents, significantly cutting down on token usage.
  • Granularity Control: Sets limits on code volume and file count per subtask to maintain manageable code chunks.
  • TDD Enforcement: Mandates the Test-Driven Development cycle (Red-Green-Refactor).
  • Quality Gates: Defines clear criteria for code review and quality scoring.
  • Structured Output: Specifies mandatory JSON output formats for success and failure states.
  • Use Case: When a container-worker is tasked with implementing a specific code module (a subtask), this Skill provides the precise guidelines it must follow to ensure consistency, efficiency, and adherence to project standards, especially concerning how it interacts with design documentation.

Quick Start

Follow the detailed rules defined in this skill for implementing subtasks, focusing on token-optimized design document referencing and strict adherence to granularity and quality standards.

Frequently Asked Questions about implement-subtask-rules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize token usage when referencing design documents during subtask implementation?

Subtask implementation rules enforce strict token optimization by requiring developers to reference only necessary sections of design documents. This approach significantly cuts down token usage while maintaining necessary context for code generation.

How do I enforce Test-Driven Development (TDD) cycles for software subtasks?

You can enforce Test-Driven Development for subtasks by mandating the strict Red-Green-Refactor cycle. This ensures tests are written first, code is implemented to pass them, and then refactored for quality before completion.

What is the best way to maintain code granularity limits for modular development?

The best way to maintain code granularity is to set strict limits on code volume and file creation count per subtask. This approach maintains manageable code chunks and ensures consistent module sizing across the development workflow.

How do I structure output formats for successful and failed subtask implementations?

You can structure subtask implementation outputs by specifying mandatory JSON formats for both success and failure states. This standardizes reporting, ensuring clear quality scoring criteria and code review gate results are captured.

Why do I need quality review gates for my developer workflow?

Quality review gates are needed in a developer workflow to define clear criteria for code review and quality scoring. They ensure that subtask implementations adhere to project standards before being marked as complete.

Does this subtask implementation approach work without dependencies?

Yes, this subtask implementation approach works without external dependencies. It relies entirely on defining precise internal rules for design document referencing, granularity control, and TDD enforcement to standardize the workflow.