npx skills add https://github.com/duongdev/ccpm --skill workflow-state-trackingSKILL.md
Workflow State Tracking
This skill provides real-time visibility into your CCPM workflow progress, prevents invalid state transitions, and guides you toward task completion through intelligent next action suggestions.
State Machine Overview
CCPM uses a structured 8-state workflow that progresses from concept to completion. Understanding these states helps you know exactly where you are and what to do next.
The 8 Workflow States
IDEA (š”)
ā
PLANNED (š)
ā
IMPLEMENTING (š) āā BLOCKED (š«)
ā
VERIFYING (š)
ā
VERIFIED (ā
)
ā
COMPLETE (š)
CANCELLED (ā) - Terminal, can branch from any state
State Definitions
| State | Phase | Description | Linear Status | Progress |
|---|---|---|---|---|
| IDEA | Ideation | Initial concept, not yet planned | Backlog | 0% |
| PLANNED | Planning | Requirements gathered, plan created | Planned, Todo | 25% |
| IMPLEMENTING | Implementation | Active development in progress | In Progress, In Development | 50% |
| BLOCKED | Implementation | Cannot proceed due to blocker | Blocked | 50% |
| VERIFYING | Verification | Quality checks and review in progress | In Review, Testing | 75% |
| VERIFIED | Verification | Verified and ready to finalize | Verified, Approved | 90% |
| COMPLETE | Completion | Task finalized and closed | Done, Completed | 100% |
| CANCELLED | Cancelled | Task cancelled or abandoned | Cancelled, Archived | 0% |
State Properties
- Terminal States: COMPLETE and CANCELLED (no transitions out)
- Blocking States: BLOCKED (prevents progression to VERIFYING)
- Gating States: VERIFIED (required before COMPLETE)
- Reversible States: IMPLEMENTING can return to PLANNED if re-planning needed
State Detection
When you ask "Where am I?", this skill detects your current state by checking:
1. Linear Custom Fields
Most accurate: Reads CCPM custom fields directly from Linear issue
- ccpmPhase: Current state (IDEA, PLANNED, etc.)
- ccpmLastCommand: Last CCPM command executed
- ccpmLastUpdate: Timestamp of last update
- ccpmAutoTransitions: Whether state auto-updates
2. Linear Status Inference (Fallback)
If custom fields missing, infers from Linear status:
- "Backlog" ā IDEA
- "Planned", "Todo", "Ready" ā PLANNED
- "In Progress", "In Development" ā IMPLEMENTING
- "Blocked" ā BLOCKED
- "In Review", "Testing" ā VERIFYING
- "Verified", "Approved" ā VERIFIED
- "Done", "Completed" ā COMPLETE
- "Cancelled", "Archived" ā CANCELLED
3. Checklist Completion Analysis
Analyzes implementation checklist progress:
- 0-25% complete ā Early IMPLEMENTING
- 50-75% complete ā Mid IMPLEMENTING
- 80-99% complete ā Near VERIFYING
- 100% complete ā Ready to VERIFY
4. Git State Detection
Checks for uncommitted changes:
- Changes detected ā Still IMPLEMENTING
- No changes ā Ready for VERIFYING
Valid Transitions
Each state has specific allowed transitions. Attempting an invalid transition will be prevented with helpful suggestions.
Transition Matrix
IDEA ā PLANNED, CANCELLED
PLANNED ā IMPLEMENTING, IDEA, CANCELLED
IMPLEMENTING ā VERIFYING, PLANNED, BLOCKED
BLOCKED ā IMPLEMENTING, CANCELLED
VERIFYING ā VERIFIED, IMPLEMENTING
VERIFIED ā COMPLETE, IMPLEMENTING
COMPLETE ā (terminal - no transitions)
CANCELLED ā (terminal - no transitions)
Confidence Levels
Each transition has a confidence score (0-100) indicating how certain the system is:
- 95%: High confidence (plan ready to implement)
- 85%: Good confidence (checks passing)
- 70%: Medium confidence (re-planning during implementation)
- 50%: Low confidence (requires explicit user confirmation)
Invalid Transition Prevention
The skill prevents invalid workflows and provides helpful corrections:
Common Invalid Transitions
ā IDEA ā IMPLEMENTING (skip planning)
Suggestion: Run /ccpm:plan first
ā IDEA ā VERIFYING (skip planning + implementation)
Suggestion: Follow workflow: IDEA ā PLANNED ā IMPLEMENTING ā VERIFYING
ā PLANNED ā VERIFYING (skip implementation)
Suggestion: Run /ccpm:work to start implementation
ā IMPLEMENTING ā COMPLETE (skip verification)
Suggestion: Run /ccpm:verify first
ā VERIFYING ā COMPLETE (skip verified state)
Suggestion: Fix issues and re-verify, then transition to VERIFIED
ā COMPLETE ā IMPLEMENTING (reopen completed task)
Suggestion: Create new issue for follow-up work
Pre-Condition Checks
Before allowing transitions, the skill validates pre-conditions:
Transition to PLANNED requires:
- ā Implementation checklist exists in issue description
- ā Basic requirements documented
Transition to IMPLEMENTING requires:
- ā Plan exists (checklist section)
- ā Linear status allows (not in terminal state)
Transition to VERIFYING requires:
- ā Checklist 100% complete (or bypassed)
- ā No uncommitted git changes
- ā Code review initiated
**Transition to VERIFIED requi
...