Architectural Mode
STRIDE threat analysis, ADR security evaluation, trust boundary mapping, Azure compliance checks (Policy, RBAC, Well-Architected Framework).
Five agents handle the non-linear parts of delivery: code review, security assessment, sprint planning, backlog health, and framework customization.
Validate implementation against spec, ADRs, and plan with independent context.
| Produces | Review log with findings by severity |
| Handoff | to implement, specify, or plan |
| Skills | documentation-style, reasoning, quality-gate |
Key design principle: The review agent operates with clean context. It did not participate in implementation, reducing confirmation bias.
Coordinator execution model:
Three trigger scopes:
Self-correction loop: maximum 2 attempts before escalating findings.
Security assessment in two modes: architectural (design-time) and code (implementation-time).
| Produces | Security report with findings |
| Handoff | to implement or review |
| Skills | documentation-style, reasoning |
Architectural Mode
STRIDE threat analysis, ADR security evaluation, trust boundary mapping, Azure compliance checks (Policy, RBAC, Well-Architected Framework).
Code Mode
OWASP vulnerability checks, dependency scanning, GitHub security alerts (code scanning, secret scanning, Dependabot).
Six security principles applied:
Triggers: authentication/authorization, sensitive data, external integrations, exposed endpoints, data persistence.
Sprint planning with previous sprint closure, velocity analysis, and adaptive capacity.
| Produces | docs/sprints/sprint-N.md + scope options |
| Handoff | to plan, decompose, or specify |
| Skills | documentation-style, reasoning |
Five-step execution:
Operating principles: Options not recommendations. Dependencies visible. Gaps visible. Evidence-based.
Analyze backlog health and detect inconsistencies between specs, ADRs, and work items.
| Produces | Analysis report with fixes |
| Handoff | to specify, plan, decompose, or kickoff |
| Skills | documentation-style, reasoning, work-item-creation |
Six analysis categories:
Principles: Read-first with surgical edits. Facts, not opinions. No false positives. Configurable scope.
Execution model: devsquad.refine can fan out artifact analysis and backlog health checks into parallel workers, then merge the results into a single report.
Guide creation of extensions for the SDD framework.
| Produces | Custom instructions, skills, agents, or hooks |
| Handoff | varies |
| Skills | documentation-style, reasoning |
Decision tree for choosing the right mechanism:
| Criterion | Mechanism |
|---|---|
| Less than 50 lines, applies to file type | Instruction |
| 50-200 lines, reusable by agents | Skill |
| Over 200 lines or needs own tools | Agent |
| Deterministic post-action validation | Hook |
| Inject MCP tools into agents | Tool Extension |
| Access external API | MCP Server |
Process: Understand need, Recommend mechanism, Check name collision, Scaffold with reference example.