| name | define-architectural-drivers |
| description | WHEN/WHERE/WHO: [Scheduling: System analysts or architects analyzing raw product requirements before design begins.] HOW: [Structural: Use this SKILL to extract and formalize unstructured requirements into the four types of architectural drivers.] WHY: [Scheduling: Architecture cannot be designed without clear constraints and prioritized quality attribute scenarios.]
|
Define Architectural Drivers
Who
System analysts, product owners, and architects. The agent uses this skill to translate business language into architectural constraints.
What
This skill extracts and formalizes unstructured product requirements into strict Architectural Drivers. It outputs a structured document detailing Design Purpose, Quality Attribute Scenarios, Primary Functionality, and Architectural Concerns.
When
Invoke this skill at the very beginning of a project, before any architectural design (ADD 3.0) occurs. Trigger phrases include: "extract drivers," "formalize requirements," "write quality attribute scenarios," or "prepare for architecture design."
Where
Applies to raw Product Requirements Documents (PRDs), user story backlogs, and stakeholder interview transcripts.
Why
If an architect tries to design a system based purely on "it needs to be fast and secure," the resulting architecture will be flawed. This skill forces those vague requirements into testable Quality Attribute Scenarios (e.g., "Under peak load, 99% of requests complete in <200ms").
Inputs
- Raw requirements documents (PRD, user stories).
- Business goals.
Output (Logical Evidence)
- A completed Architectural Drivers Document.
Optimization Readiness
- Failure Signals: Drivers are invented instead of inferred, quality attributes stay vague, response measures remain untestable, or prioritization is disconnected from business risk.
- Evidence To Collect: Source requirements, extracted driver lists, quality attribute scenarios, prioritization rationale, and reviewer feedback on missing or ambiguous drivers.
- Safe Mutation Boundaries: Refine extraction prompts, scenario templates, and prioritization guidance without changing the core requirement to derive measurable drivers from provided inputs.
- Acceptance Criteria: Accept revisions only if the skill produces explicit drivers, formal quality attribute scenarios with measurable response measures, and a ranking tied to business value or architectural risk.
- Rejected Revision Handling: Record weak scenario phrasings, invented constraints, and non-measurable driver patterns so they are not reused blindly.
- Transfer Check: Verify the workflow still works for both greenfield architecture design and legacy-extension planning.
- Stop Rule: If the inputs cannot support measurable response measures, stop and ask for explicit targets before drafting the drivers document.
Constraints (Logical Boundaries)
- Do not invent drivers; infer them only from the provided inputs.
- Quality Attributes must be written as 6-part scenarios (Source, Stimulus, Artifact, Environment, Response, Response Measure).
One More Thing
If the input lacks sufficient detail to create testable response measures (e.g., "fast"), stop and ask the user to provide specific SLA targets.
How (Structural Workflow)
Phase 1: Context Extraction
- Extract the Design Purpose: Why are we designing this architecture? (e.g., greenfield project, extending a legacy system, improving performance).
- Extract the Primary Functionality: Identify the top 3-5 core use cases the system must support.
Phase 2: Constraint and Concern Identification
- Identify Constraints: List technical, business, and timeline limitations (e.g., "Must use AWS," "Must launch by Q3").
- Identify Architectural Concerns: Note internal technical goals (e.g., "Establish a CI/CD pipeline," "Use microservices").
Phase 3: Formalizing Quality Attributes
- Scan for non-functional requirements (speed, safety, uptime, adaptability).
- Convert vague statements into formal Quality Attribute Scenarios. Each scenario must have a measurable response.
Phase 4: Prioritization
- Rank the scenarios and use cases based on business value and architectural risk.
Resources
Validation
- Verify that at least one Quality Attribute Scenario is defined.
- Ensure that every scenario has a quantifiable "Response Measure".