sa-architecture-design
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
SA design-mode procedure for producing docs/architecture.md, ADRs, and docs/instrumentation-contract.md from a signed-off SRS. Use when Solution Architect is dispatched in `design` mode after SRS sign-off to create or revise greenfield architecture, choose dependencies through the approval gate, define C4 C1-C3, API/data/async/cross-cutting sections, and establish format-boundary and gate-field contracts.
In this repository61 other files it gives its agents.
- rules/CLAUDE.mdCLAUDE.md
- acceptance-criteria-authorSkill
- adr-authorSkill
- api-contract-authorSkill
- backend-logging-traceabilitySkill
- ba-design-completenessSkill
- ba-ingestion-pipelineSkill
- ba-iteration-planningSkill
- ba-mode-augmentSkill
- ba-mode-external-sourceSkill
- ba-mode-multi-docSkill
- ba-mode-requirements-folderSkill
- ba-mode-reverse-engineerSkill
- ba-mode-single-docSkill
- ba-post-implementationSkill
- be-framework-coding-standardSkill
- c4-authorSkill
- codebase-inventorySkill
- data-lifecycle-contractsSkill
- design-system-authorSkill
- docker-deploymentSkill
- external-integration-adequacySkill
- fe-framework-coding-standardSkill
- figma-canvas-layoutSkill
- figma-design-handoffSkill
- figma-requirements-extractionSkill
- figma-srs-mappingSkill
- flutter-implementationSkill
- flutter-performanceSkill
- flutter-platform-integrationSkill
- format-boundary-contractsSkill
- git-commitSkill
- incident-debuggingSkill
- intent-archaeologySkill
- kubernetes-deploymentSkill
- local-deploymentSkill
- migration-safetySkill
- observability-readinessSkill
- playwright-authorSkill
- qa-author-by-taskSkill
- qa-author-by-usSkill
- qa-execution-runnerSkill
- react-native-implementationSkill
- react-native-performanceSkill
- react-native-platform-integrationSkill
- release-readinessSkill
- rollback-readinessSkill
- sa-brownfield-extractSkill
- secrets-config-auditSkill
- security-compliance-checklistSkill
- solution-defaultsSkill
- ssh-remote-operationsSkill
- staging-deploymentSkill
- task-sizingSkill
- <kebab-case-name-matching-folder>Skill
- test-case-authorSkill
- third-party-dependency-evaluationSkill
- ui-test-executionSkill
- ui-ux-page-scopingSkill
- user-story-authorSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 11 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Use this skill when SA is dispatched in design mode.
- Distinctive: line 34
Verify SRS is signed off. Halt if not.
- Distinctive: line 35
Read the SRS, every linked US/FR, external integration files, and prior ADRs.
- Distinctive: line 40
Do not author C4 Code; Dev roles own code-level artifacts.
- Very specific: line 48
Use format-boundary-contracts for fields crossing incompatible formats.
- Very specific: line 49
Use data-lifecycle-contracts for gate fields read by one component and written by another.
- Distinctive: line 56
Do not include the dependency in accepted architecture until approval is recorded.
- Distinctive: line 57
Run a self-containment check on produced artifacts.
- Very specific: line 58
Commit changes, then emit plan-update.json.
- Distinctive: line 66
Never propose architecture before SRS sign-off.
- Distinctive: line 67
Never write source code, tests, API contracts, or plan files.
- Distinctive: line 68
Never weaken SRS Security & Compliance.
- Distinctive: line 69
Never approve dependencies yourself.
- Very specific: line 70
Never skip docs/instrumentation-contract.md for UI-bearing SRSs.
- Distinctive: line 71
Never omit architecture §6 when format-boundary or gate-field conditions are present.
- Distinctive: line 72
Commit before signaling ready-to-finalize.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SA Architecture Design
Use
Use this skill when SA is dispatched in design mode. Do not use for brownfield extraction or external-integration adequacy; those have separate skills.
Inputs
docs/SRS.mdatStatus: Signed-offdocs/user-stories/,docs/frs/,docs/external-integrations/- Existing
docs/architecture.mdanddocs/decisions/when revising - SRS headers
Designated Dependency Approver,Frontend-Framework,Backend-Track,Backend-Framework solution-defaults,third-party-dependency-evaluation,adr-author,c4-author,data-lifecycle-contracts,format-boundary-contracts
Outputs
docs/architecture.mdusingagents/_templates/_artifacts/architecture-template.md.- ADRs under
docs/decisions/for every non-trivial choice. docs/instrumentation-contract.mdfor any SRS with a UI surface.docs/open-issues.mdentries for architectural gaps that cannot be resolved from the SRS.- Worktree
plan-update.jsonwithtrack: "sa".
Procedure
- Verify SRS is signed off. Halt if not.
- Read the SRS, every linked US/FR, external integration files, and prior ADRs.
- Build C4 levels:
- C1 Context: system boundary, actors, external systems.
- C2 Containers: runnable/deployable units, datastores, queues, clients.
- C3 Components: required for non-trivial containers; each component row carries
Linked FRs. - Do not author C4 Code; Dev roles own code-level artifacts.
- Fill architecture sections:
- §3.5 Data Models when persistent state exists.
- §3.6 API Inventory for REST/gRPC/GraphQL/WebSocket/events/queues, linking contract files.
- §3.7 Dependency & Call Graph for cross-container calls, internal packages, and production dependencies.
- §3.8 Async Workflows for event/queue flows.
- Cross-cutting concerns, failure modes, NFR posture, open risks, and observability.
- Apply data-contract skills:
- Use
format-boundary-contractsfor fields crossing incompatible formats. - Use
data-lifecycle-contractsfor gate fields read by one component and written by another.
- Use
- For UI-bearing SRSs, author
docs/instrumentation-contract.mddeclaring stable test IDs/accessibility identifiers for FE Dev and QA. - For every non-trivial architectural choice, author an ADR.
- For new third-party dependencies:
- Check
solution-defaultsfirst. - Reuse prior ADR approvals when valid.
- Otherwise evaluate 2-4 options with
third-party-dependency-evaluation, halt withNEEDS_CONTEXT, and wait for the Designated Dependency Approver. - Do not include the dependency in accepted architecture until approval is recorded.
- Check
- Run a self-containment check on produced artifacts.
- Commit changes, then emit
plan-update.json.
Quality Bar
The architecture must let TL break down tasks and Devs implement without reverse-engineering intent. Every SRS requirement must have an architectural home, or a documented open issue.
Hard Rules
- Never propose architecture before SRS sign-off.
- Never write source code, tests, API contracts, or plan files.
- Never weaken SRS Security & Compliance.
- Never approve dependencies yourself.
- Never skip
docs/instrumentation-contract.mdfor UI-bearing SRSs. - Never omit architecture §6 when format-boundary or gate-field conditions are present.
- Commit before signaling ready-to-finalize.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

