AgentSkillsCN

monoco_workflow_issue_management

Issue生命周期工作流(Flow Skill)。从Issue的创建到关闭,全程定义Issue管理的标准化流程,确保任务追踪到位、流程合规有据。

SKILL.md
--- frontmatter
name: monoco_workflow_issue_management
description: Issue Lifecycle Workflow (Flow Skill). Defines the complete Issue management process from creation to closure, ensuring task tracking and process compliance.
type: workflow
domain: issue
version: 1.0.0

Issue Lifecycle Workflow

Standardized workflow for Issue lifecycle, ensuring "Open → Start → Develop → Submit → Review → Close" process.

Workflow State Machine

mermaid
stateDiagram-v2
    [*] --> Open: Create Issue
    
    Open --> Start: Prepare Development
    Open --> Open: Requirements Unclear<br/>(Wait for Clarification)
    
    Start --> Develop: Branch Created
    Start --> Start: Branch Conflict<br/>(Resolve Conflict)
    
    Develop --> Submit: Development Complete
    Develop --> Develop: Tests Fail<br/>(Fix Code)
    
    state "Oracle Loop" as ReviewLoop {
        Submit --> Review: Submit for Review
        Review --> Fix: Rejected
        Fix --> Submit: Resubmit
    }
    
    Review --> Close: Approved for Merge
    
    Close --> [*]: Cleanup Complete

Execution Steps

1. Open

  • Goal: Create clear, actionable Issue
  • Input: Requirement description, type, priority
  • Output: Issue Ticket file
  • Checkpoints:
    • Use monoco issue create <type> -t "Title"
    • Select appropriate type (epic/feature/chore/fix)
    • Write clear description and acceptance criteria
    • Set dependency relationships (if needed)
    • Ensure at least 2 Checkboxes

2. Start

  • Goal: Prepare development environment, create feature branch
  • Checkpoints:
    • Run monoco issue start <ID> --branch
    • Confirm branch is created and switched
    • Verify not currently on main/master branch
    • Check if dependency Issues are completed

3. Develop

  • Goal: Implement feature or fix bug
  • Strategy: Iterative development, continuous testing
  • Checkpoints:
    • Follow project code standards
    • Write/update unit tests
    • Run test suite, ensure it passes
    • Commit code regularly (small commits)
    • Update file tracking (monoco issue sync-files)

4. Submit

  • Goal: Prepare for code review
  • Checkpoints:
    • Run monoco issue lint to check compliance
    • Fix all Lint errors
    • Update task list status
    • Run monoco issue submit <ID>
    • Write change summary

5. Review

  • Goal: Code quality and process compliance check
  • Checkpoints:
    • Is functionality correctly implemented
    • Does code meet design specifications
    • Are tests sufficient
    • Is documentation updated
    • Does it follow project standards

6. Close

  • Goal: Complete Issue, cleanup environment
  • Checkpoints:
    • Code is merged to main branch
    • Run monoco issue close <ID> --solution completed --prune
    • Verify branch is cleaned up
    • Update Review Comments (if needed)

Decision Branches

ConditionAction
Requirements unclearReturn to Open, request clarification
Branch creation failsCheck Git status, resolve conflicts
Tests failReturn to Develop, fix code
Lint failsFix compliance issues, resubmit
Review rejectedReturn to Develop, modify per feedback
Review passedEnter Close, merge and cleanup

Compliance Requirements

  • Prohibited: Directly modify code on main/master branch
  • Required: Use monoco issue start --branch to create feature branch
  • Required: All unit tests must pass before Submit
  • Required: Each Issue must have at least 2 Checkboxes
  • Required: Review/Done phase must include Review Comments
  • Recommended: Small commits, frequently sync file tracking

Related Commands

bash
# Create Issue
monoco issue create feature -t "Title"

# Start development
monoco issue start FEAT-0001 --branch

# Sync file tracking
monoco issue sync-files

# Check compliance
monoco issue lint

# Submit for review
monoco issue submit FEAT-0001

# Close Issue
monoco issue close FEAT-0001 --solution completed --prune

Issue Type Guide

TypePurposePrefixMindset
EpicGrand goals, vision containerEPIC-Architect
FeatureUser value incrementFEAT-Product Owner
ChoreEngineering tasksCHORE-Builder
FixBug fixesFIX-Debugger

Relationship with flow_engineer

This workflow complements flow_engineer:

  • issue-lifecycle-workflow: Focuses on Issue management process
  • flow_engineer: Focuses on code implementation process

Engineers should follow flow_engineer's Investigate → Code → Test → Report → Submit process during the Develop phase.