The end-to-end development workflow — requirements, planning, issue tracking, branching, implementation, verification, PR completion, docs, and diagnosis — and which skill or agent to use at each step. Apply when deciding what to do next on a feature, or which cloud-app-blueprint skill fits the task.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Workflow?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/makigjuro-workflow)
---
name: workflow
description: The end-to-end development workflow — requirements, planning, issue tracking, branching, implementation, verification, PR completion, docs, and diagnosis — and which skill or agent to use at each step. Apply when deciding what to do next on a feature, or which cloud-app-blueprint skill fits the task.
user-invocable: false
---
# Development Workflow
This is the workflow that builds and ships the cloud-app-blueprint reference architecture: from requirements to a reviewed PR, then to a deployed change. Each step has a corresponding skill.
## Workflow Overview
```
PRD → Issues → Branch → Implement → Verify → Review → Docs → PR
│ │ │ │ │ │ │ │
/prd /create /start /add-* /check /code /docs /complete
-tasks -work -arch -review -task
/lint
/run-tests
```
For simple features without PRD:
```
Plan → Issues → Branch → Implement → ...
│ │ │
/plan /create /start
-feature -tasks -work
```
## 1. Requirements (`/prd`)
For complex features, start with a Product Requirements Document:
- Answer structured discovery questions
- Analyze existing codebase for patterns
- Generate comprehensive PRD with acceptance criteria
- Output: `docs/prd/{feature-slug}.md`
Skip for simple bug fixes or small enhancements.
## 2. Plan (`/plan-feature`)
Break down the feature into implementation tasks:
- Identify affected services and acceptance criteria
- Create tasks ordered by layer (e.g., Domain -> Application -> Infrastructure -> Endpoints -> Frontend -> Tests)
- Call out open questions and out-of-scope items
## 3. Track (`/create-tasks`)
Use `/create-tasks` — it automatically decides the right structure:
- **Small features** (3 or fewer tasks, single service): creates a single issue with checklist
- **Large features** (multiple tasks/services): creates an epic + individual task issues
The issue(s) become the single source of truth for scope.
## 4. Branch (`/start-work {issue-number}`)
Create a feature branch from latest main:
- Naming convention: `{username}/{issue-number}-{short-slug}`
- Always start from a clean working tree
- Print acceptance criteria as a reminder
## 5. Implement
Follow the layer order appropriate for your architecture. For hexagonal/.NET projects: Domain -> Application -> Infrastructure -> Endpoints -> Frontend -> Tests.
Use scaffolding skills when available:
- `/add-entity` — New domain entity with value object ID (**includes migration**)
- `/add-command` — New CQRS command with handler and validator
- `/add-query` — New CQRS query with handler
- `/add-event-handler` — Event handler for domain/integration events
- `/add-migration` — Database migration after model changes
- `/add-feature` — Frontend feature module (page, components, API service)
Create a database migration right after adding or modifying entities, configurations, or DbSets, and commit it with the model change — without it the service fails at startup with `PendingModelChangesWarning`.
Run the local environment with `/run-local` to test as you build.
Commit logically — one commit per logical change, not one giant commit.
## 6. Verify
Run verification checks during development:
| Skill | Purpose | When to Use |
|-------|---------|-------------|
| `/check-architecture` | Layer violations, Result pattern, pending migrations | Before committing |
| `/run-tests` | Unit and integration tests | After each change |
| `/lint` | Format, ESLint, Helm, Terraform | Before PR |
| `/verify-feature` | Browser verify changed frontend routes | After frontend changes |
| `/screenshot` | Quick screenshot of a route | Visual confirmation |
### Lint Responsibility Boundaries
Formatting is handled at three levels — understand which does what:
| Level | What | When | Auto-fix? |
|-------|------|------|-----------|
| **Hooks** (`format-on-save.sh`) | Format individual files after Edit/Write | Automatic on every edit | Yes |
| **Hooks** (`pre-commit-lint.sh`) | Format staged files before commit | Automatic on git commit | Yes (re-stages) |
| **`/lint`** | Full codebase verification | Explicit, before PR | Optional (`--fix`) |
| **`/infra-lint`** | Terraform + Helm only | Explicit, infra-only changes | Optional (`--fix`) |
Hooks handle day-to-day formatting automatically. The `/lint` skill is for explicit verification that nothing was missed across the full codebase — run it before creating a PR or when the `/complete-task` workflow runs it as a gate.
### Parallel Execution in Orchestrators
Both `/complete-task` and `/complete-infra` use parallel execution to maximize throughput. Understanding the patterns helps when debugging failures or extending the pipeline.
**Change detection** — Phase 0 of `/complete-task` analyzes `git diff origin/main...HEAD --name-only` to determine what changed:
| Flag | Trigger | Gates |
|------|---------|-------|
| `HAS_BACKEND` | Files under `src/` (backend code) | Backend build, lint, unit tests, migrations check |
| `HAS_FRONTEND` | Files under frontend directory | Frontend type-check, lint, browser verification |
| `HAS_INFRA` | Files under `infra/`, `deploy/`, `.github/workflows/` | Helm lint, Terraform fmt, infra-reviewer agent |
| `HAS_ENDPOINTS` | Files under endpoint/controller directories | doc-checker agent |
| `HAS_ENTITIES` | Files under entity/model directories | doc-checker agent |
| `HAS_EVENTS` | Files under event directories | doc-checker agent |
**Parallel tracks in build and lint phases** — Independent tracks are launched as multiple Bash tool calls in a single response:
- **Build phase:** backend build and frontend type-check run in parallel
- **Lint+test phase:** backend lint+unit-tests, frontend lint, and infra lint run as three parallel tracks
**Dynamic agent composition** — Phase 4 spawns agents based on what changed:
| Agent | When | Purpose |
|-------|------|---------|
| `dotnet-architect:reviewer` | Always | Security, architecture, quality review |
| `dev-workflow:verifier` | Always | Acceptance criteria verification |
| `dev-workflow:doc-checker` | `HAS_ENDPOINTS` or `HAS_ENTITIES` or `HAS_EVENTS` or `HAS_INFRA` | Stale documentation detection |
| `cloud-infra:infra-reviewer` | `HAS_INFRA` | Terraform/Helm/CI-specific review |
| `react-developer:frontend-reviewer` | `HAS_FRONTEND` | Accessibility, performance, React patterns, frontend security review |
**No worktree isolation for reviewers** — Review agents only read the diff, so they run in parallel against the current working tree. Reserve `isolation: "worktree"` for agents that edit files in parallel.
**Scoped fix loop** — When agents report issues:
1. Fix the issues
2. Determine which files the fix touched
3. Re-run only affected tracks (e.g., fix in `src/` re-runs backend build+lint, fix in frontend dir re-runs frontend lint)
4. Re-run only agents that reported issues, not all agents
5. Max 3 iterations before stopping
## 7. Complete Task (`/complete-task`)
When implementation is done, run the full completion workflow:
1. **Pre-flight + Change Detection** — Verify branch, clean tree, detect what changed
2. **Parallel Build** — Backend build and frontend type-check in parallel
3. **Migrations Check** — Pending database migrations (if backend changed)
4. **Parallel Lint + Unit Tests** — Backend, frontend, and infra lint as parallel tracks
5. **Integration Tests** — Sequential (needs Docker)
6. **Browser Verification** — Conditional on frontend changes
7. **Parallel Agent Review** — Dynamic composition based on change detection; reviewers share the working tree
8. **Scoped Fix Loop** — Fix issues, re-run only affected tracks (max 3 iterations)
9. **Create PR** — Push and create pull request
This replaces manually running `/check-architecture`, `/lint`, `/run-tests`, and `/create-pr`.
## Infrastructure Workflow
For infrastructure-only changes (Terraform, Helm, CI/CD), use the dedicated infra workflow. This skips application build/tests and frontend lint entirely.
```
Plan → Issues → Branch → Implement → Verify → PR → Apply
│ │ │ │ │ │ │
/infra /create /start /add-* /infra /complete /infra
-plan -tasks -work -lint -infra -apply
```
After the PR merges, `/cloud-infra:infra-apply {env}` shows the plan and `--apply` applies exactly that reviewed plan.
### Infra Skills
| Skill | Description |
|-------|-------------|
| `/infra-plan` | Plan infrastructure changes (Terraform, Helm, CI/CD) |
| `/add-terraform-module` | Scaffold new Terraform module with Terragrunt wiring |
| `/add-helm-chart` | Scaffold new Helm chart with standard templates |
| `/infra-lint` | Lint Terraform/Helm only (fast, skips application/frontend) |
| `/infra-apply` | Run `terraform plan` and optionally apply |
| `/complete-infra` | Infra-specific completion: lint, validate, review, PR |
### When to Use Infra Workflow vs Standard Workflow
- **Infra workflow:** Changes only touch `infra/`, `deploy/`, or `.github/workflows/`
- **Standard workflow:** Changes touch application code (`src/`, frontend, `tests/`)
- **Both:** If a feature needs app code + infra changes, use standard workflow with `/infra-lint` for validation
## 8. Document (`/docs`)
The `/complete-task` workflow detects when endpoints, entities, events, or infrastructure changed and suggests which docs to update. You can also run `/docs` proactively.
Keep documentation in sync with code changes:
```bash
/docs service {service-name} # Full service doc (endpoints, events, config)
/docs api {service-name} # API endpoint reference only
/docs architecture # Update technical architecture overview
/docs domain # Update domain model (entities, value objects, events)
/docs runbook {service-name} # Operational runbook (health, alerts, troubleshooting)
/docs quickstart # Update getting started guide
/docs all # Detect stale docs and regenerate
/docs # Auto-detect what needs updating
```
**When to run:**
- After adding/modifying endpoints -> `/docs api {service}`
- After adding entities or events -> `/docs domain`
- After changing infra/deploy -> `/docs architecture`
- Before a release -> `/docs all`
Output paths follow `docs/services/{service-name}/`, `docs/architecture/`, or `docs/quickstart.md`. Generated sections are marked with `<!-- BEGIN GENERATED -->` / `<!-- END GENERATED -->` so manual content is preserved on regeneration.
## 9. Diagnose (`/diagnose`)
When something goes wrong:
- Structured evidence gathering
- Hypothesis generation and testing
- Root cause analysis (5 Whys)
- Solution proposals with trade-offs
## Quick Reference
| Skill | Description |
|-------|-------------|
| `/prd` | Generate PRD through discovery |
| `/plan-feature` | Break feature into tasks (simple features) |
| `/create-tasks` | Create GitHub issues (auto: single or epic + tasks) |
| `/start-work N` | Create feature branch |
| `/add-entity` | Scaffold domain entity |
| `/add-command` | Scaffold CQRS command |
| `/add-query` | Scaffold CQRS query |
| `/add-event-handler` | Event handler for domain/integration events |
| `/add-migration` | Create database migration |
| `/add-feature` | Scaffold frontend feature module |
| `/run-local` | Start local dev environment |
| `/check-architecture` | Verify architecture rules |
| `/run-tests` | Run unit/integration tests |
| `/lint` | Run all linters |
| `/code-review` | Review code changes |
| `/task-check` | Verify acceptance criteria |
| `/complete-task` | Full completion workflow |
| `/create-pr` | Create pull request |
| `/docs` | Generate/update documentation from code |
| `/diagnose` | Investigate problems |
| `/screenshot` | Capture screenshot of a URL/route |
| `/verify-feature` | Browser verify changed frontend routes |
| `/smoke-test` | Browser smoke test running app |
| `/infra-plan` | Plan infrastructure changes |
| `/add-terraform-module` | Scaffold Terraform module |
| `/add-helm-chart` | Scaffold Helm chart |
| `/infra-lint` | Lint Terraform/Helm only |
| `/infra-apply` | Terraform plan/apply |
| `/complete-infra` | Infra completion workflow |
## Agents
Specialized agents that run in isolated contexts:
| Agent | Purpose | Model |
|-------|---------|-------|
| `dotnet-architect:reviewer` | Security, architecture, quality review (deep PR gate) | inherits session model |
| `dev-workflow:verifier` | Acceptance criteria verification | inherits session model |
| `dev-workflow:investigator` | Evidence gathering for diagnosis | inherits session model |
| `dev-workflow:analyzer` | Codebase analysis for new features | inherits session model |
| `dev-workflow:doc-checker` | Detect stale docs relative to code changes | Haiku |
| `cloud-infra:infra-reviewer` | Terraform/Helm/CI review (infra-specific gate) | inherits session model |
| `react-developer:frontend-reviewer` | Frontend review (accessibility, performance, React patterns, security) | inherits session model |
Review and verification agents intentionally have no `model:` pin — they inherit the session model so the quality gate is never weaker than the model that wrote the code. Only `dev-workflow:doc-checker` pins Haiku: it is a fast advisory check, not a blocker.
## Pre-PR Checklist
Before `/complete-task` or `/create-pr`:
- [ ] All acceptance criteria addressed
- [ ] Architecture check passes (including no pending migrations)
- [ ] All unit tests pass
- [ ] All integration tests pass (if applicable)
- [ ] Backend format is clean
- [ ] Frontend lint is clean
- [ ] Frontend type-check is clean
- [ ] Helm charts lint clean
- [ ] Terraform validates and format is clean
- [ ] No uncommitted changes
- [ ] Commits are logically organized
- [ ] Documentation updated if endpoints, entities, or events changed (advisory)