Workflows Reference
All 10 development workflows β from feature delivery to code audits.
Table of contents
- What Are Workflows?
- π Feature Workflow (
/orchestrator) - Phase 1: Research (
/1-research) - Phase 2: Implement (
/2-implement) - Phase 3: Integrate (
/3-integrate) - Phase 3.5: E2E Test (
/e2e-test) - Phase 4: Verify (
/4-verify) - Phase 5: Ship (
/5-commit) - π§ Quick-Fix Workflow (
/quick-fix) - π§ Refactor Workflow (
/refactor) - π§ Audit Workflow (
/audit)
What Are Workflows?
Workflows are structured, multi-phase development processes defined in .agent/workflows/. They chain rules and skills together into repeatable, quality-enforced development cycles.
Each workflow is invoked as a slash command (e.g., /orchestrator, /quick-fix) and guides the agent through specific phases with completion criteria at each step.
Choosing the Right Workflow
| Situation | Workflow |
|---|---|
| Building a new feature | /orchestrator |
| Fixing a known bug (<50 lines) | /quick-fix |
| Restructuring code | /refactor |
| Reviewing code quality | /audit |
| Running a single phase | /1-research, /2-implement, etc. |
π Feature Workflow (/orchestrator)
File: .agent/workflows/orchestrator.md
The primary workflow for building features. Treats the development lifecycle as a state machine β no phase can be skipped.
Flow
Research β Implement (TDD) β Integrate β E2E (conditional) β Verify β Ship
Phases
| Phase | Gate | Output |
|---|---|---|
| Research | Research log created | task.md + docs/research_logs/*.md |
| Implement | Unit tests pass | Production code + unit tests |
| Integrate | Integration tests pass | Integration tests (Testcontainers) |
| E2E (conditional) | E2E tests pass + screenshots | E2E tests + screenshots |
| Verify | All linters pass | Coverage report |
| Ship | Committed | Git commit |
Key Rules
- FORBIDDEN from skipping phases β each phase must complete before the next starts
- Agent acts as a βSenior Principal Engineer with a mandate for strict protocol adherenceβ
- Pre-implementation: scan
.agent/rules/, identify applicable rules, READ them - Tasks marked
[x]only after Phase 4 (Verify) passes
Error Handling
If a phase fails:
- Document the failure in task summary
- Do not proceed to next phase
- Fix the issue within current phase
- Re-run phase completion criteria
- Then proceed
Phase 1: Research (/1-research)
File: .agent/workflows/1-research.md
Understand the request context and gather knowledge before writing any code.
Steps
- Analyze Request β parse requirements, identify scope
- Review Current Implementation β understand existing architecture
- Build Mental Model β requirements, constraints, integration points
- Define Scope β create
task.mdwith atomic tasks - Identify Research Topics β list all technologies involved
- Search Documentation β use Qurio or web search for each topic
- Document Findings β create
docs/research_logs/{feature}.md - Document Architecture Decisions β create ADRs using ADR Skill if needed
- Fallback β web search if documentation search fails
Skills Used
- Sequential Thinking β for complex design decisions
- ADR β for significant architecture decisions
Phase 2: Implement (/2-implement)
File: .agent/workflows/2-implement.md
Write production code following Test-Driven Development (TDD).
TDD Cycle
- Red β write a failing test
- Green β write minimal code to make it pass
- Refactor β improve structure while keeping tests green
Unit Test Requirements
- Mock all dependencies (interfaces)
- Test happy path, error paths, AND edge cases
- Target >85% coverage on domain logic
Skills Used
- Sequential Thinking β for complex refactoring
- Debugging Protocol β for non-obvious test failures
- Guardrails β pre-flight checklist before writing code
Phase 3: Integrate (/3-integrate)
File: .agent/workflows/3-integrate.md
Test adapter implementations with real infrastructure using Testcontainers.
When Required
- Code that touches database (storage implementations)
- Code that calls external APIs
- Code that uses message queues, caches, etc.
Steps
- Setup Testcontainers (PostgreSQL, Redis, NSQ, etc.)
- Write integration tests (
*_integration_test.goor*.integration.spec.ts) - Run integration tests
- Optional manual verification
Phase 3.5: E2E Test (/e2e-test)
File: .agent/workflows/e2e-test.md
Validate complete user journeys through the full system using Playwright MCP.
When Required
- UI components were added or modified
- API endpoints interact with frontend
- Critical user-facing flows were changed
When to Skip
- Pure backend/infrastructure changes
- Internal library refactoring
- Test-only changes
Steps
- Start services (docker compose or local dev)
- Create E2E test plan
- Execute with Playwright MCP (navigate, interact, screenshot)
- Document results with screenshots in
docs/e2e-screenshots/
Phase 4: Verify (/4-verify)
File: .agent/workflows/4-verify.md
Run all linters, static analysis, and tests to ensure code quality.
Backend Validation (Go)
gofumpt -l -e -w . && go vet ./... && staticcheck ./... && gosec -quiet ./... && go test -race ./...
Frontend Validation (TypeScript/Vue)
pnpm run lint --fix && npx vue-tsc --noEmit && pnpm run test
Build Check
# Backend
go build ./...
# Frontend
pnpm run build
Coverage Target
85% on domain logic.
If This Phase Fails
- Do NOT proceed to Ship
- Fix the issue (go back to Phase 2 or 3)
- Re-run full verification
- Only proceed when ALL checks pass
Phase 5: Ship (/5-commit)
File: .agent/workflows/5-commit.md
Commit completed work with proper conventional commit format.
Conventional Commit Format
<type>(<scope>): <description>
Types
| Type | Purpose | | βββ- | βββββββββββ | | feat | New feature | | fix | Bug fix | | docs | Documentation only | | refactor | Code change (no new feature/fix) | | test | Adding or updating tests | | chore | Maintenance, dependencies | | perf | Performance improvement | | ci | CI/CD configuration changes |
π§ Quick-Fix Workflow (/quick-fix)
File: .agent/workflows/quick-fix.md
Fast-track bug fixes and small changes (<50 lines) that donβt require full research or integration phases.
When to Use
- Bug fixes with a known root cause
- Small, isolated changes
- Hotfixes for production issues
- Addressing review findings from
/audit
Phases
- Diagnose β identify the bug, locate affected code, optionally use Debugging Protocol skill
- Fix + Test (TDD) β write failing test, apply fix, verify existing tests pass
- Verify + Ship β full validation suite, commit with
fixtype
π§ Refactor Workflow (/refactor)
File: .agent/workflows/refactor.md
Safely restructure existing code while preserving behavior.
When to Use
- Code restructuring (moving, renaming, splitting modules)
- Pattern migration (e.g., callbacks β async/await)
- Dependency upgrades with breaking changes
- Addressing tech debt or architectural improvements
Requires a Specific Goal
- β
/refactor extract storage interface in task feature - β
/refactor split user handler into separate auth handler - β
/refactor apps/backend(too vague β use/auditfirst)
Phases
- Impact Analysis β map blast radius, document existing behavior, identify risks
- Incremental Change (TDD) β one change at a time, tests pass at each step
- Parity Verification β full validation, compare coverage (equal or better)
- Ship β commit with
refactortype
Key Principle
Never break the build for more than one step at a time.
π§ Audit Workflow (/audit)
File: .agent/workflows/audit.md
Inspect existing code quality without writing new features. Produces structured findings for subsequent fix workflows.
When to Use
- After another agentβs feature is committed (cross-agent review)
- Periodic quality gates
- Before releases or deployments
- Verification without new code
Phases
- Code Review β invoke the Code Review Skill against specified files
- Automated Verification β full lint/test/build validation
- Findings Report β saved to
docs/audits/review-findings-{feature}-{date}-{HHmm}.md
Findings Triage
| Finding Type | Example | Follow-Up |
|---|---|---|
| Nit / minor | βRename x to userCountβ | Fix directly |
| Small isolated fix | βAdd input validationβ | /quick-fix in new conversation |
| Structural change | βStorage not behind interfaceβ | /refactor in new conversation |
| Missing capability | βNo auth on admin routesβ | /orchestrator in new conversation |
Best Practice
Run audits in a fresh conversation (not the one that wrote the code) to avoid confirmation bias.