Skip to content

Latest commit

 

History

History
180 lines (123 loc) · 5.28 KB

File metadata and controls

180 lines (123 loc) · 5.28 KB

FLOW — mcpbridge-wrapper Documentation Workflow

Version: 1.0.0

Overview

mcpbridge-wrapper uses a documentation-driven workflow: select a task, plan it fully, execute with validations, and archive the PRD when done. Each major step ends with a commit.

BRANCH → SELECT → PLAN → EXECUTE → ARCHIVE → REVIEW → FOLLOW-UP → ARCHIVE-REVIEW
   ↓        ↓       ↓        ↓         ↓         ↓          ↓             ↓
 COMMIT   COMMIT  COMMIT   COMMIT    COMMIT    COMMIT     COMMIT        COMMIT

Direct command links used by this workflow: SELECT, PLAN, EXECUTE, ARCHIVE, REVIEW, FOLLOW_UP.


Changelog

  • 1.0.0 — Initial Python project workflow (adapted from Puzzle Framework workflow)

Steps

1. BRANCH

Create a new feature branch from main for the task.

Actions:

  • Ensure you're on main: git checkout main
  • Pull latest changes: git pull origin main
  • Create feature branch: git checkout -b feature/{TASK_ID}-{short-description}

Commit via COMMIT:

Branch for {TASK_ID}: {short description}

Choose the next task from the workplan.

Actions:

  • Read SPECS/Workplan.md for available tasks
  • Use SPECS/TASK_TEMPLATE.md as the canonical status/entry format reference
  • Run python scripts/pick_next_task.py or manually select
  • Update SPECS/INPROGRESS/next.md with chosen task metadata

Commit via COMMIT:

Select task {TASK_ID}: {TASK_NAME}

3. PLAN

Create the task PRD following documentation rules.

Actions:

  • Create SPECS/INPROGRESS/{TASK_ID}_{TASK_NAME}.md
  • Define deliverables, acceptance criteria, dependencies

Commit via COMMIT:

Plan task {TASK_ID}: {TASK_NAME}

Implement the task per the PRD.

Actions:

  • Implement code changes per PRD specifications
  • Run quality gates:
    • pytest — all tests pass
    • ruff check src/ — no linting errors
    • mypy src/ — type checking (if configured)
    • pytest --cov — coverage ≥90%
  • Create validation report: SPECS/INPROGRESS/{TASK_ID}_Validation_Report.md

See EXECUTE for detailed quality gate documentation.

Commit via COMMIT:

Implement {TASK_ID}: {brief description of changes}

Note: For large tasks, commit incrementally after each logical unit of work.


Move completed task to archive (run periodically or at milestones).

Actions:

  • Execute ARCHIVE command
  • Verify task moved to SPECS/ARCHIVE/{TASK_ID}_{TASK_NAME}/
  • Confirm next.md updated
  • Mark task as ✅ in SPECS/Workplan.md using SPECS/TASK_TEMPLATE.md conventions

Commit via COMMIT:

Archive task {TASK_ID}: {TASK_NAME} ({VERDICT})

Run a structured review after archiving to capture findings and follow-ups.

Actions:

  • Execute REVIEW
  • Save report under SPECS/INPROGRESS/ as REVIEW_{subject}.md

Commit via COMMIT:

Review {TASK_ID}: {short subject}

Create subtasks for issues discovered during review.

Actions:

Commit via COMMIT:

Follow-up {TASK_ID}: {short subject}

Note: Skip this step if review found no actionable issues.


8. ARCHIVE-REVIEW

Archive the REVIEW artifact after FOLLOW-UP is complete.

Actions:

  • Move REVIEW_{subject}.md to SPECS/ARCHIVE/_Historical/ (or the relevant task folder) using git mv so the deletion from SPECS/INPROGRESS/ is staged automatically
  • Update SPECS/ARCHIVE/INDEX.md

Commit via COMMIT:

Archive REVIEW_{subject} report

Note: If FOLLOW-UP is skipped, archive the review immediately after REVIEW.

Quick Reference

Step Output Commit Message Pattern
BRANCH Feature branch created Branch for {TASK_ID}: {short description}
SELECT next.md updated Select task {TASK_ID}: {TASK_NAME}
PLAN {TASK_ID}_{TASK_NAME}.md created Plan task {TASK_ID}: {TASK_NAME}
EXECUTE Code + validation report Implement {TASK_ID}: {DESCRIPTION}
ARCHIVE Task in archive folder + workplan updated Archive task {TASK_ID}: {TASK_NAME} ({VERDICT})
REVIEW REVIEW_{subject}.md created Review {TASK_ID}: {SUBJECT}
FOLLOW-UP New tasks in workplan Follow-up {TASK_ID}: {SUBJECT}
ARCHIVE-REVIEW Review report archived Archive REVIEW_{subject} report

Extensions

  • PROGRESS — Note temporary checkpoints inside next.md
  • Primitives — See SPECS/COMMANDS/PRIMITIVES/ for helper steps
  • WorkflowSPECS/Workplan.md is the master task tracker