"Orchestrate the full lifecycle of work items from creation through finalization. Use when: (1) Starting new tracked work with proper structure, (2) Progressing work items through status transitions, (3) Completing and archiving finished work. Composes: creating-work-item, updating-work-item, finalizing-work-item."
Install
npx skillscat add squirrel289/pax/managing-work-items Install via the SkillsCat registry.
Managing Work Items
Orchestrate the complete lifecycle of backlog work items from creation to archival. This workflow skill composes three atomic tools to ensure consistent structure, tracking, and completion of work items.
When to Use
Use this skill when:
- Starting new work that needs tracking (features, bugs, spikes)
- Progressing through the work item lifecycle (status transitions)
- Completing and archiving finished work items
- Managing work items end-to-end in one session
- Ensuring proper work item governance and structure
When NOT to Use
Skip this skill for:
- Single-phase operations (use the specific tool directly)
- Reading or querying work items (no lifecycle action needed)
- Auditing work item quality (use
auditing-backloginstead)
Composed Skills
This workflow delegates to three atomic tools:
- `creating-work-item`: Create new work items with proper structure
- `updating-work-item`: Update status, effort, commits, and notes
- `finalizing-work-item`: Complete and archive finished items
Do not duplicate implementation details here. Delegate to source skills for field validation, status transitions, and archival rules.
Work Item Lifecycle
┌─────────────────────────────────────────────────────────────┐
│ Work Item Lifecycle │
└─────────────────────────────────────────────────────────────┘
1. Creation (creating-work-item)
├─ Auto-number next ID
├─ Generate frontmatter structure
├─ Define goal, tasks, acceptance criteria
└─ Status: not_started
2. Implementation (updating-work-item)
├─ Transition to in_progress
├─ Create feature branch
├─ Record commits
├─ Track actual hours
├─ Add test results
└─ Transition to ready-for-review
3. Completion (updating-work-item)
├─ Validate dependencies closed
├─ Verify acceptance criteria
├─ Record final metrics
└─ Transition to closed
4. Finalization (finalizing-work-item)
├─ Complete all fields
├─ Set state_reason
├─ Clean up feature branch
├─ Archive to /backlog/archive/
└─ Link successor itemsWorkflow
Phase 1: Creation
Inputs Required:
- Work item description or goal
- Priority (low/medium/high/critical)
- Complexity (low/medium/high)
- Estimated hours
- Dependencies (optional)
Workflow:
- Invoke
creating-work-itemwith required inputs - Verify next available ID
- Generate structured work item file
- Validate frontmatter schema
- Return work item path and ID
Output:
- Created work item file path:
/backlog/{id}_{slug}.md - Work item ID for reference
Decision Rules:
- If duplicate work exists, prompt to update existing instead
- If dependencies are not closed, note blockers in frontmatter
- If scope is unclear, recommend spike first
Phase 2: Progression
Inputs Required:
- Work item ID or file path
- Status transition (e.g., not_started → in_progress)
- Updates: commits, notes, test results, actual hours
Workflow:
- Invoke
updating-work-itemwith current status and target status - Apply status transition validations:
- Validate dependency states before closing
- Auto-create feature branch on in_progress
- Auto-create PR on ready-for-review
- Update effort tracking and commit references
- Add timestamped notes if provided
- Validate frontmatter schema
Output:
- Updated work item with new status
- Feature branch name (if created)
- PR URL (if created)
Decision Rules:
- Cannot move to closed if dependencies are not closed
- Cannot skip required status transitions
- Must record actual hours before closing
- Must validate acceptance criteria before ready-for-review
Phase 3: Finalization
Inputs Required:
- Work item ID or file path (must be status: closed)
- State reason (success/obsolete/redundant/superseded/cancelled)
- Final metrics: actual_hours, completed_date, test_results
Workflow:
- Verify work item status is closed
- Invoke
finalizing-work-itemwith state reason - Validate completion checklist:
- All acceptance criteria checked
- All commits recorded
- Test results documented
- Actual hours finalized
- Archive to
/backlog/archive/ - Clean up feature branch
- Link successor work items if provided
Output:
- Archived work item path:
/backlog/archive/{id}_{slug}.md - Cleanup summary (branches deleted, commits recorded)
Decision Rules:
- Must have state_reason when finalizing
- Cannot finalize if status is not closed
- Must have test_results for state_reason: success
- Must have successor links for state_reason: superseded
Deterministic Decision Rules
Creation Phase
- ID Assignment: Always use max(existing IDs) + 1 from
/backlog/(not archive) - Duplicate Detection: Search for similar titles/goals before creating
- Dependency Validation: Verify all dependency files exist
- Schema Validation: Run frontmatter linter before committing
Progression Phase
Status Transitions: Follow strict state machine:
not_started → ready → in_progress → ready-for-review → closedBranch Creation: Auto-create on first transition to in_progress
PR Creation: Auto-trigger on transition to ready-for-review
Dependency Blocking: Cannot close if any dependency is not closed
Effort Tracking: Must record actual_hours before closing
Finalization Phase
- Completion Gate: All acceptance criteria must be checked
- Metrics Gate: Must have actual_hours, completed_date, test_results
- State Reason: Required for all finalizations
- Archive Move: Only move to archive/ after full validation
- Branch Cleanup: Delete feature branch after successful finalization
Cross-Phase Validations
- Schema Compliance: Run
pnpm run lint:frontmatterat each phase - Git Integration: Ensure feature branch exists and is clean
- Dependency Chain: Validate dependency links at creation and closing
- Audit Trail: Timestamped notes required for major transitions
Integration with Other Skills
Complementary Workflows
executing-backlog: Implements work items; usesupdating-work-itemandfinalizing-work-itemauditing-backlog: Validates work item quality; may recommend using these tools to fix issuesfeature-branch-management: Auto-invoked byupdating-work-itemfor branch operations
Execution Aspects
guarding-branches: Applied during status transitions to merge pointsprevalidating-bulk-operations: Called if updating multiple work itemsparallel-execution: Used when implementing multiple work items concurrently
Tool Integration
- GitHub PR: Auto-integration via
updating-work-itemon ready-for-review - Git Commits: Tracked in
related_commitviaupdating-work-item - Test Results: Recorded via
updating-work-itemwith CI URLs
Output Contract
For each phase, produce:
- Creation: Work item file path and validation status
- Progression: Updated fields summary and any auto-triggered actions (branch, PR)
- Finalization: Archive path and cleanup summary
Always return concrete values, never placeholders.
Examples
Example 1: Complete Lifecycle
# Phase 1: Create
@agent Use managing-work-items to create a work item for implementing
JSON schema validation in the template linter. Priority: high,
Complexity: high, Estimated: 20 hours.
# Phase 2: Progress
@agent Use managing-work-items to move WI-057 to in_progress
@agent Use managing-work-items to record commits 6d8c044, f00459b for WI-057
@agent Use managing-work-items to move WI-057 to ready-for-review
with test results: https://github.com/org/repo/actions/runs/12345
# Phase 3: Close and Finalize
@agent Use managing-work-items to close WI-057 with actual hours: 22
@agent Use managing-work-items to finalize WI-057 with state_reason: successExample 2: Bulk Progression
@agent Use managing-work-items to move WI-055, WI-056, WI-057 to closed
after validating their dependenciesExample 3: Spike to Implementation
# Create spike
@agent Create spike WI-058: Evaluate expression engines. Estimated: 16h
# Complete spike
@agent Finalize WI-058 with state_reason: success, successor: WI-059
# Create follow-up implementation
@agent Create WI-059: Implement JMESPath engine, depends on WI-058Anti-Patterns
- ❌ Skip creation, update ad-hoc: Always use
creating-work-itemfor proper structure - ❌ Manual archiving: Use
finalizing-work-itemto ensure cleanup - ❌ Force status transitions: Respect state machine and validation gates
- ❌ Ignore dependencies: Always validate dependency closure before closing
- ❌ Missing metrics: Record actual hours and test results before finalizing
Related Skills
creating-work-item: Atomic tool for creation (composed here)updating-work-item: Atomic tool for progression (composed here)finalizing-work-item: Atomic tool for completion (composed here)executing-backlog: Higher-level workflow for implementing work itemsauditing-backlog: Quality validation for work itemsfeature-branch-management: Git branch automation for work items