Skip to content

Work

Execute an implementation plan systematically — phase by phase, with TDD discipline where applicable, continuous verification, and automatic commits.

Terminal window
/act:workflow:work <plan-file> [type]

Arguments:

  • plan-file (required): path to the plan file
  • type (optional, default: lite):
    • official — load official Flutter rules only
    • lite — load essential patterns, principles, and breaking changes
    • full — load all knowledge including setup guides
Terminal window
/act:workflow:work ai_specs/feature-plan.md
/act:workflow:work ai_specs/feature-plan.md full
/act:workflow:work ai_specs/feature-plan.md official

Loads the plan file and any referenced spec for full requirements context.

If the plan has uncommitted changes, commits it before starting work.

If no pubspec.yaml exists, creates a new Flutter or Dart project based on the plan’s content using /flutter-create or /dart-create.

Primes the AI with patterns, principles, and breaking changes based on the type parameter. Also loads TDD and robot testing guidance if the plan requires them.

For each phase in the plan:

  • Reads referenced files and looks for similar patterns in the codebase
  • Implements with TDD discipline — for TDD: tasks, follows strict RED → GREEN → REFACTOR cycles (one test at a time)
  • Commits frequently — small, conventional commits at logical checkpoints
  • Tests continuouslyflutter analyze and flutter test after each phase
  • Updates progress — marks tasks - [x] in the plan file as they’re completed

After all phases complete:

  • Runs full test suite and analysis
  • Creates a pull request with summary and testing notes

Phase 1 proves the critical path across all layers. Never build entire layers in isolation (all models, then all services, then all UI).

For TDD: tasks: write one failing test → minimal implementation → refactor → repeat. Never batch tests.

Every commit must be in a working state — no compile errors, no analysis failures, all tests passing.

All tasks marked - [x] before creating the PR. A finished feature that ships beats a perfect feature that doesn’t.

  • Compilation errors — fixed immediately before proceeding
  • Test failures — investigated and fixed at the root cause
  • Unexpected complexity — subtasks broken down further, user informed
  • Blocked progress — documented in the plan, user asked for clarification