agentleFS
EnigmaWUEnigmaWU/MyCodeAgentSkills/define-architectural-drivers/SKILL.md

define-architectural-drivers

Skill4 starsChanged 3 months agoMITView on GitHub

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.]

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When this skill is activated, first load skill-common and apply the shared conventions it defines: canonical section order, frontmatter …

    line 13
  2. Distinctive:

    If an architect tries to design a system based purely on "it needs to be fast and secure," the resulting architecture will be flawed.

    line 28
  3. Distinctive:

    Transfer Check: Verify the workflow still works for both greenfield architecture design and legacy-extension planning.

    line 43
  4. Distinctive:

    Stop Rule: If the inputs cannot support measurable response measures, stop and ask for explicit targets before drafting the drivers …

    line 44
  5. Distinctive:

    Do not invent drivers; infer them only from the provided inputs.

    line 47
  6. Distinctive:

    If the input lacks sufficient detail to create testable response measures (e.g., "fast"), stop and ask the user to provide specific SLA …

    line 51
  7. Distinctive:

    Verify that at least one Quality Attribute Scenario is defined.

    line 82
  8. Distinctive:

    Ensure that every scenario has a quantifiable "Response Measure".

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Define Architectural Drivers

Common Contract (Load First)

When this skill is activated, first load skill-common and apply the shared conventions it defines: canonical section order, frontmatter rules, anti-pattern guidance, and the Review In Mind loop in review-in-mind. This skill adds only domain-specific rules below.

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

  1. Extract the Design Purpose: Why are we designing this architecture? (e.g., greenfield project, extending a legacy system, improving performance).
  2. Extract the Primary Functionality: Identify the top 3-5 core use cases the system must support.

Phase 2: Constraint and Concern Identification

  1. Identify Constraints: List technical, business, and timeline limitations (e.g., "Must use AWS," "Must launch by Q3").
  2. Identify Architectural Concerns: Note internal technical goals (e.g., "Establish a CI/CD pipeline," "Use microservices").

Phase 3: Formalizing Quality Attributes

  1. Scan for non-functional requirements (speed, safety, uptime, adaptability).
  2. Convert vague statements into formal Quality Attribute Scenarios. Each scenario must have a measurable response.

Phase 4: Prioritization

  1. Rank the scenarios and use cases based on business value and architectural risk.

Resources

  • Driver Extraction Template

Review In Mind (ReviewInMindGenie)

Execute the common review loop in review-in-mind before delivering.

Review lens for this skill:

  • Are the four driver types (design purpose, QAS, functionality, concerns) explicitly separated?
  • Is each quality attribute scenario measurable with stimulus/response/measure?
  • Are implicit drivers in the raw text surfaced, not dropped?

Validation

  1. Verify that at least one Quality Attribute Scenario is defined.
  2. Ensure that every scenario has a quantifiable "Response Measure".

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.