Skip to content

docs: add senior-sa and senior-sd to research phase orchestration#76

Merged
singyichen merged 2 commits into
mainfrom
docs/agent-team-sa-sd
Jun 12, 2026
Merged

docs: add senior-sa and senior-sd to research phase orchestration#76
singyichen merged 2 commits into
mainfrom
docs/agent-team-sa-sd

Conversation

@singyichen

Copy link
Copy Markdown
Owner

Summary

  • senior-sa and senior-sd existed in .claude/agents/ but were never referenced by any orchestration file, making them unreachable in the SDD pipeline
  • Both are now wired into the Research Phase (before /speckit.plan): SAAgent analyzes business flow from spec.md user scenarios → Mermaid flowchart; SDAgent designs class/sequence diagrams for the planned feature
  • Diagrams are returned as Mermaid text in findings and embedded into plan.md by team-lead during synthesis — research agents stay read-only, preserving the single-writer pattern
  • Scope annotations added to avoid overlap with ArchitectAgent (codebase structure) and APIDesignAgent (existing API contracts)

Changed Files

File Change
.claude/commands/agent-team.md Workflow diagram, Research Agents table, and spawn prompt template gain SAAgent/SDAgent entries
.claude/agents/team-lead.md SDD Phase Sequence and Synthesize responsibility now include senior-sa/senior-sd and Mermaid embedding

Test Plan

  • Docs-only change — no test suite applies (Step 3 skipped per /pr-flow)
  • Cross-reference consistency verified: agent names match .claude/agents/senior-sa.md and .claude/agents/senior-sd.md; both orchestration files describe the same flow
  • Code review (low effort) reported no findings

🤖 Generated with Claude Code

- senior-sa and senior-sd existed in .claude/agents/ but were never
  referenced by agent-team or team-lead, so they were unreachable in
  the SDD pipeline
- SAAgent analyzes business flow from spec.md scenarios; SDAgent
  designs class/sequence diagrams — scopes annotated to avoid overlap
  with ArchitectAgent and APIDesignAgent
- diagrams are returned as Mermaid text and embedded into plan.md by
  team-lead during synthesis, keeping research agents read-only and
  preserving the single-writer pattern

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This documentation change correctly integrates senior-sa and senior-sd agents into the Research Phase orchestration. The cross-references to .claude/agents/senior-sa.md and .claude/agents/senior-sd.md are valid, and the changes are consistent across both orchestration files. No defects found that block merge.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces two new research agents, SAAgent (senior-sa) and SDAgent (senior-sd), to generate business flowcharts and UML diagrams in Mermaid format, which are then embedded into plan.md by the Team Lead. The review comments correctly identify a sequencing issue where embedding these diagrams during the synthesis phase (before running /speckit.plan) would cause them to be overwritten when the plan is generated. The feedback suggests updating the instructions to perform the embedding after /speckit.plan has run, which is a necessary correction to prevent data loss.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread .claude/agents/team-lead.md Outdated
Comment thread .claude/agents/team-lead.md Outdated
Comment thread .claude/commands/agent-team.md Outdated
…i review)

- review found a sequencing error: plan.md is created by /speckit.plan
  from plan-template, so "embed during synthesis" referenced a file that
  does not exist yet
- corrected flow: SA/SD Mermaid diagrams are synthesized findings that
  feed into /speckit.plan and land in the template's existing diagram
  sections — no post-plan embedding pass needed
@singyichen singyichen merged commit 4ee48c3 into main Jun 12, 2026
9 checks passed
@singyichen singyichen deleted the docs/agent-team-sa-sd branch June 12, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant