Issue Management
Use this skill to create and manage Issues (Universal Atoms) in Monoco projects.
Core Ontology
1. Strategy Layer
- •🏆 EPIC: Grand goals, vision containers. Mindset: Architect.
2. Value Layer
- •✨ FEATURE: Value increments from user perspective. Mindset: Product Owner.
- •Atomicity Principle: Feature = Design + Dev + Test + Doc + i18n. They are one.
3. Execution Layer
- •🧹 CHORE: Engineering maintenance, no direct user value. Mindset: Builder.
- •🐞 FIX: Correcting deviations. Mindset: Debugger.
Workflow Policies
1. Strict Git Workflow
Monoco enforces a Feature Branch model.
- •Start: Agents MUST use
monoco issue start <ID> --branchto start working.- •This creates and switches to a standard
<ID>-<slug>branch (e.g.,FEAT-0123-login-page). - •Do NOT manually create branches using
git checkout -b.
- •This creates and switches to a standard
- •Protected Main: NO direct modification on
main,master, orproductionbranches. Linter will block this. - •Submit: Run
monoco issue submit <ID>when work is ready for review.- •This moves the issue to
Reviewstage and generates a Delivery Report. - •Note: This does not merge the code. You (or the user) must handle the Merge/PR process.
- •This moves the issue to
Standardized Workflow
Workflow Diagram
stateDiagram-v2
[*] --> Plan
Plan --> Build: monoco issue start
Build --> Submit: monoco issue submit
state "Oracle Loop" as Oracle {
Submit --> Review: Auto/Manual Review
Review --> Fix: Reject
Fix --> Submit: Retry
}
Review --> Merge: Approve
Merge --> [*]: monoco issue close
Action Steps
- •
Plan Phase:
- •Ensure Issue exists and is in
Openstatus. - •Verify requirements and tasks.
- •Ensure Issue exists and is in
- •
Build Phase:
- •Run
monoco issue start <ID> --branch(Verification: ensures branch is created). - •Implement features/fixes.
- •Run
monoco issue sync-filesto track changes.
- •Run
- •
Submit Phase (Oracle Loop):
- •Run tests to ensure quality.
- •Run
monoco issue lint. - •Run
monoco issue submit <ID>. - •IF errors/feedback received:
- •Fix issues.
- •Re-run tests.
- •Re-submit.
- •
Merge Phase:
- •Once approved:
- •Run
monoco issue close <ID> --solution completed --prune.
2. File Tracking
Agents must track modified files to maintain Self-Contained Context.
- •Mechanism: Issue Ticket Front Matter contains a
files: []field. - •Automated (Recommended): Run
monoco issue sync-filesinside the Feature Branch. It diffs against the base branch. - •Manual (Fallback): If working without branches, Agent MUST actively append modified paths to the
fileslist.
Guidelines
Directory Structure & Naming
Issues/{CapitalizedPluralType}/{lowercase_status}/
- •Types:
Epics,Features,Chores,Fixes - •Statuses:
open,backlog,closed
Structural Integrity
Issues are validated via monoco issue lint. key constraints:
- •Mandatory Heading:
## {ID}: {Title}must match front matter. - •Min Checkboxes: At least 2 checkboxes (AC/Tasks).
- •Review Protocol:
## Review Commentsrequired forreviewordonestages.
Path Transitions
Use monoco issue:
- •
Create:
monoco issue create <type> --title "..."- •Params:
--parent <id>,--dependency <id>,--related <id>,--sprint <id>,--tags <tag>
- •Params:
- •
Transition:
monoco issue open/close/backlog <id> - •
View:
monoco issue scope - •
Validation:
monoco issue lint - •
Modification:
monoco issue start/submit/delete <id> - •
Sync:
monoco issue sync-files [id](Sync code changes to Issue file) - •
Validation:
monoco issue lint(Enforces compliance)
Validation Rules (FEAT-0082)
To ensure data integrity, all Issue tickets must follow these strict rules:
1. Structural Consistency
- •Must contain a Level 2 Heading matching exactly:
## {ID}: {Title}. - •Example:
## FEAT-0082: Issue Ticket Validator
2. Content Completeness
- •Checkboxes: Minimum of 2 checkboxes required (one for AC, one for Tasks).
- •Review Comments: If
stageisreviewordone, a## Review Commentssection is mandatory and must not be empty.
3. Checkbox Syntax & Hierarchy
- •Use only
- [ ],- [x],- [-], or- [/]. - •Inheritance: If nested checkboxes exist, the parent state must reflect child states (e.g., if any child is
[/], parent must be[/]; if all children are[x], parent must be[x]).
4. State Matrix
The status (folder) and stage (front matter) must be compatible:
- •open: Draft, Doing, Review, Done
- •backlog: Draft, Doing, Review
- •closed: Done
5. Environment Policy
Linter includes environment-aware guardrails:
- •🛑 Dirty Main Protection: Fails if uncommitted changes are detected on protected branches (
main/master).
6. ID Format & Hierarchy
- •ID Specification: Issue IDs must strictly follow the
TYPE-XXXXformat, whereXXXXare 4 digits (e.g.,FEAT-0001,FIX-9999). - •No Suffixes: IDs with suffixes like
FEAT-0001-1are strictly prohibited. - •Hierarchy Expression: Sub-features or sub-tasks must be expressed using the
parentfield in the Front Matter. Do NOT use ID naming conventions (like hierarchical suffixes) to express relationships.