Ai workflow
Run a durable project-backed plan-execute-review workflow only when the user explicitly names ai-workflow, supplies a PRD and asks for a tracked delivery lifecycle, references an existing REQ/BUG work item, or asks to resume, revise, audit, or inspect recorded workflow state. Do not use for ad-hoc code edits, simple same-session fixes, ordinary code review, one-off planning, unrelated status questions, or defect diagnosis already handled by a dedicated bug-fix workflow.From its SKILL.md
npx -y skills add xiao-huixing/xhx-skills --skill ai-workflowAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.1 KB, as published. Nobody here has run it
AI Workflow
Use scripts/workflow.py as the only writer of workflow state. Run it from this
Skill directory with python3; pass the target repository's .ai-workflow
path through --root.
Admission gate
Durable tracking is opt-in. Initialize storage only when the user explicitly
selects ai-workflow or asks for tracked PRD delivery, or when continuing an
existing REQ/BUG item. If a request is a clear, local, reversible change that
can be completed and verified in the current session, exit this Skill and
handle it normally. Do not initialize .ai-workflow merely because an edit has
multiple steps or needs tests.
The light track is the smallest tracked workflow after admission; it is not a
reason to record ordinary quick fixes.
Route first
Resolve one mode: plan, execute, review, all, status, resume,
revise, or history. Ask one short question only when the mode or a
materially different risk choice is genuinely ambiguous.
Fast paths do not initialize storage or scan the repository:
status: runworkflow.py status --root <repo>/.ai-workflow [--work-item ID].history: runworkflow.py history --root <repo>/.ai-workflow <query>.
For other modes, read storage-protocol.md, then only the applicable reference:
planorrevise: plan.mdexecuteorresume: execute.mdreview: review.mdall: read each reference immediately before that phase and stop at every human gate.
Work depth
Choose the smallest sufficient track and store it in work-item.yaml:
light: local, reversible, low-risk work; targeted discovery and tests.standard: multi-file or externally visible behavior; normal traceability, integration checks, and rollback.strict: security, auth, money, destructive migration, production control, or regulated data; explicit threat/risk review and stronger evidence.
Read repository rules plus only the modules, tests, and workflow slices needed for the current phase and task.
State rules
- Each requirement has exactly two persistent files:
work-item.yamlis the current snapshot andevents.jsonlis its ordered audit log. - Never edit those files by hand. Use
set-plan,plan-ready,approve-plan,task, andreview; mutating commands validate under the writer lock. - The planning gate uses
phase: plan,state: waiting_input, andnext_action: approve_plan. Only explicit user approval permitsworkflow.py approve-plan. - Passing a task requires a redacted evidence reference. External issues, commits, pushes, PRs, merges, deploys, service restarts, and production changes require their own authorization.
Mode outcomes
plan: create a temporary input, plan, and task list; import them withset-plan; mark ready; never modify product code; stop for approval.execute: require an approved plan, work one eligible task at a time, run its declared validation, and record evidence through the CLI.resume: resolve and validate stored state plus Git facts, then continue the recorded next task; do not reconstruct state from chat.review: default to read-only; trace requirements to diff and evidence; import findings and any remediation tasks withreview, then record one result.all: plan, approval, execute, review; remediation returns to execute.
Response
Report the work-item ID, mode, track, phase/state, progress, changed files, evidence, blockers, and exact next command. Never claim a merge, deployment, or production verification without direct evidence.