一键导入
manage-work
Register work items, create feature branches, track and advance stages, close work items in the VibeFlow docs-first development workflow
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Register work items, create feature branches, track and advance stages, close work items in the VibeFlow docs-first development workflow
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Codebase discovery and analysis for Stage B of the VibeFlow docs-first workflow
Create Feature Specs for Stage E of the VibeFlow docs-first workflow
Create PRDs with success metrics for Stage A of the VibeFlow docs-first workflow
Create tech specs with architecture for Stage C of the VibeFlow docs-first workflow
Release preparation for Stages I-L of the VibeFlow docs-first workflow
Document ADRs for non-trivial choices at Stage D of the VibeFlow docs-first workflow
| name | manage-work |
| description | Register work items, create feature branches, track and advance stages, close work items in the VibeFlow docs-first development workflow |
| metadata | {"triggers":["start vibeflow","begin workflow","new feature","workflow status","where am I","what stage","what track","select track","register work item","advance work item"]} |
Register work items, create feature branches, track and advance stages, close work items in the VibeFlow docs-first development workflow.
This skill tracks multiple work items through the VibeFlow workflow by:
feat/<slug> branchesRegister Work Item
│
├── Assign ID, generate slug from description, and assign track
├── Create entry in docs/workflow-state.yaml (with branch field)
├── Create git branch: feat/<slug>
└── Determine starting stage from track
│
▼
Track Progress
│
├── Show status dashboard (all work items)
├── Show detailed status (single work item)
└── Cross-check manifest against artifacts
│
▼
Advance & Route
│
├── Mark work item as advancing to next stage
├── Recommend the appropriate skill command
└── Update manifest with new stage
│
▼
Close Work Item (after Checkpoint #4)
│
├── Validate CP#4, set stage: DONE in manifest
├── Commit all changes on feat/<slug>
├── Push branch, create PR (or find existing)
├── Present PR URL — ask user to review
│
├─► User accepts → Merge PR, delete branch, checkout main
└─► User declines → Leave PR open, stay on branch
/manage-work register "<description>" <ID> <track>
Registers a work item in docs/workflow-state.yaml, determines the starting stage, and creates a git branch feat/<slug>.
Steps:
branch: feat/<slug>git checkout -b feat/<slug>Example:
/manage-work register "Add anti-hallucination guardrails" 030 medium
# Creates branch: feat/add-anti-hallucination-guardrails
/manage-work register "Export data to CSV" 031 small
# Creates branch: feat/export-data-to-csv
/manage-work status
Shows all registered work items with their current stage, track, and last checkpoint.
Example output:
Work Item Track Stage Checkpoint Started
add-anti-hallucination-guardrails Medium G 3 2025-02-20
export-data-to-csv Small E 2 2025-02-22
/manage-work status <ID>
Shows detailed status for one work item including:
detect_track.py --workitem <ID>)/manage-work advance <ID>
Marks a work item as advancing to the next stage in its track:
stage in docs/workflow-state.yamlcheckpoint if a checkpoint boundary was crosseddocs paths with any documents produced at the completed stageadvance → proceed to Stage I (release track)close → mark as DONE (see Close command below)/manage-work close <ID>
Closes a work item with an interactive PR review and merge flow. Blocked if Checkpoint #4 validation fails.
Step 1 — Validate & mark DONE
validate_checkpoint.py 4 --json --project-root <root>)stage: DONE in docs/workflow-state.yamlStep 2 — Commit all changes
git status to check for uncommitted changes on feat/<slug>git add -A && git commit -m "chore(workflow): close <slug> (#ft-<ID>)"Step 3 — Push & create PR
gh pr list --head feat/<slug> --state open --json urlgit push -u origin feat/<slug>
gh pr create --title "[ft-<ID>] <Description>" --body "## Summary
Closes work item #ft-<ID>: <Description>
Track: <track>
Stages completed: <stages>"
Step 4 — Ask user to review
Step 5 — Merge or keep open
gh pr merge --merge --delete-branch
git checkout main
git pull
Delete the local branch if it still exists: git branch -d feat/<slug>feat/<slug>, inform the user the manifest is already DONEExample:
/manage-work close 030
# Validates CP#4 → commits → creates PR → asks for review → merges on approval
/manage-work next <ID>
Shows the recommended next action for a work item:
| Track | Scope | Stages | Release | Example |
|---|---|---|---|---|
| Micro | Bug fix, typo, small refactor | F → G → DONE | No | Fix typo, update config |
| Small | Single feature, no contracts | E → F → G → H → DONE | Optional (I-L) | Add form field, UI polish |
| Medium | Multi-component, no new services | B → C → D → E → F → G → H → DONE | Optional (I-L) | New API endpoint |
| Large | System change, new contracts/services | A → B → C → D → E → F → G → H → DONE | Optional (I-L) | New LLM integration |
Checkpoint #1: Planning Complete
Checkpoint #2: Design Complete
Checkpoint #3: Tests Complete (after F) Checkpoint #4: Implementation Complete (after H)
Checkpoint #5: Release Ready (after J) Checkpoint #6: Deployed (after L)
The manifest file docs/workflow-state.yaml is the single source of truth for work item lifecycle state:
workitems:
add-anti-hallucination-guardrails:
id: 030
description: "Add anti-hallucination guardrails"
track: medium # micro | small | medium | large
stage: G # current stage letter (A-L) or DONE
branch: feat/add-anti-hallucination-guardrails # git branch
started: 2025-02-20 # date work item was registered
checkpoint: 3 # last checkpoint passed (1-6)
docs:
prd: docs/prds/prd.md
discovery: docs/discovery/disco-030.md
specs:
- docs/specs/spec-llm.md
adrs:
- docs/adrs/adr-030-prompt-strategy.md
feature: docs/features/ft-030-anti-hallucination.md
opnote: null
export-data-to-csv:
id: 031
description: "Export data to CSV"
track: small
stage: E
branch: feat/export-data-to-csv # git branch
started: 2025-02-22
checkpoint: 2
docs:
prd: null
discovery: null
specs: []
adrs: []
feature: docs/features/ft-031-export-csv.md
opnote: null
When registering a new work item:
docs/workflow-state.yaml if it doesn't exist (use assets/workflow-state-template.yaml)add-anti-hallucination-guardrails)id, description, track, stage (first stage for the track), branch (feat/<slug>), started (today), checkpoint: 0, and empty docs hierarchygit checkout -b feat/<slug>When advancing a work item:
docs/workflow-state.yamluv run --no-project .claude/skills/validate-checkpoint/scripts/validate_checkpoint.py <N> --json --project-root <root>
stage field to the next stage in the trackcheckpoint if a checkpoint boundary was crosseddocs with any document paths produced at the completed stageEach stage maps to a specific skill. After determining the current stage for a work item, recommend the appropriate command:
| Stage | Skill | Recommended Command |
|---|---|---|
| A | define-prd | /define-prd |
| B | analyze-codebase | /analyze-codebase <ID> |
| C | define-tech-spec | /define-tech-spec <name> |
| D | record-decision | /record-decision <ID> <slug> |
| E | create-feature-spec | /create-feature-spec <ID> <slug> |
| F | run-tdd | /run-tdd red |
| G | run-tdd | /run-tdd green |
| H | run-tdd | /run-tdd refactor |
| I | prepare-release | /prepare-release reconcile <ID> |
| J | prepare-release | /prepare-release opnote <slug> |
| K | prepare-release | /prepare-release check |
| L | prepare-release | /prepare-release check |
Checkpoint boundaries — recommend /validate-checkpoint <N> before advancing past:
Use detect_track.py to cross-check the manifest against actual artifacts:
# Verify a specific work item's artifacts match its manifest stage
python scripts/detect_track.py --workitem <ID> --verify
# Detect artifacts for a specific work item
python scripts/detect_track.py --workitem <ID>
# Detect artifacts for all registered work items
python scripts/detect_track.py --all-workitems
This catches drift between the manifest and actual project state.
After register or advance updates the manifest, ask the user for permission before committing:
git add docs/workflow-state.yaml
git commit -m "chore(workflow): update manifest for <slug> (#ft-<ID>)"
The close flow handles its own commits inline (see "Close a Work Item" above). It commits all files via git add -A as part of Step 2, then pushes and creates a PR in Step 3.
The close flow (Steps 3-5) manages the full PR lifecycle. Key commands and edge cases:
Commands used:
gh pr list --head feat/<slug> --state open --json url — check for existing PRgh pr create --title "..." --body "..." — create PR if none existsgh pr merge --merge --delete-branch — merge and delete remote branchgit checkout main && git pull — switch to main after mergegit branch -d feat/<slug> — clean up local branchEdge cases:
git status is clean → skip commit in Step 2See references/workflow-summary.md for a condensed workflow overview.