project-standalo-note-to-app/.claude/commands/workflow/complete.md

1.6 KiB

description allowed-tools
Mark approved task as completed Read, Write, Bash

Complete Task

Mark task "$ARGUMENTS" as completed.

Prerequisites

  • Task must have status: approved
  • All acceptance criteria verified by reviewer

Steps

1. Read Task

First, get the version-specific tasks directory:

TASKS_DIR=$(python3 skills/guardrail-orchestrator/scripts/version_manager.py tasks-dir)

Read $TASKS_DIR/$ARGUMENTS.yml

2. Verify Status

  • If status is NOT approved: STOP and report error
  • If status is approved: proceed

3. Update Task

Update the task file with:

status: completed
completed_at: <current timestamp>

4. Update Workflow State

python3 skills/guardrail-orchestrator/scripts/workflow_manager.py task <task_id> completed
python3 skills/guardrail-orchestrator/scripts/workflow_manager.py progress --tasks-completed <count>

5. Update Manifest (if applicable)

For each entity in entity_ids:

  • Update entity status to IMPLEMENTED in project_manifest.json

6. Check Workflow Completion

Check if all tasks are now completed:

python3 skills/guardrail-orchestrator/scripts/workflow_manager.py status

If all tasks completed, transition to implementation approval:

python3 skills/guardrail-orchestrator/scripts/workflow_manager.py transition AWAITING_IMPL_APPROVAL

7. Report

✅ Task completed: $ARGUMENTS

Entities implemented:
  - <entity_id_1>
  - <entity_id_2>

Next: /workflow:status to see remaining tasks
      /workflow:complete --all to complete all approved tasks