agentleFS
vasceannievasceannie/slopgate/.agents/skills/oma-architecture/SKILL.md

oma-architecture

Skill1 starsChanged 51 days agoMITView on GitHub

Architecture specialist for software/system design, module and

We split this skill into the rules it gives an agent

19 rules. 15 are common, 0 are distinctive, and 4 are very specific to this project.

  • 15

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When oma diagram resolve reports engine: archify (the normal case — oma auto-fetches the latest archify release), an interactive sibling …

    line 49
  2. Very specific:

    Read prior decisions in .agents/results/architecture/ — new decisions supersede old ones explicitly, never contradict them silently.

    line 83
  3. Common:

    ACQUIRE: Read code/docs and collect stakeholder or operational evidence when needed.

    line 88
  4. Common:

    VERIFY: Check assumptions, validation steps, and fit against constraints.

    line 90
  5. Common:

    If the request is vague, use Diagnostic Mode before recommending.

    line 94
  6. Common:

    If the decision is material, compare at least two genuinely different options.

    line 95
  7. Common:

    If risk/quality attributes dominate, use ATAM-style analysis.

    line 96
  8. Common:

    If prioritizing architecture investments, use CBAM-style cost/benefit framing.

    line 97
  9. Common:

    If the decision is final, format it as an ADR.

    line 98
  10. Common:

    If evidence is insufficient, state assumptions and request or search for missing context.

    line 101
  11. Common:

    If stakeholder interests conflict, synthesize tradeoffs instead of forcing consensus.

    line 102
  12. Common:

    If the task belongs to another domain, route to the relevant skill.

    line 103
  13. Common:

    Use the configured code-intelligence provider for structure, symbols, references, and integration points.

    line 128
  14. Common:

    Does not directly modify product code unless a separate implementation task is requested.

    line 152
  15. Common:

    Use the lightest sufficient methodology for the current decision.

    line 156
  16. Common:

    Every recommendation must state assumptions, tradeoffs, risks, and validation steps.

    line 160
  17. Common:

    When a decision is material, compare at least two genuinely different options before recommending one.

    line 162
  18. Very specific:

    Read prior artifacts in .agents/results/architecture/ before deciding.

    line 164
  19. Very specific:

    When a durable artifact is finalized, emit the architecture.adr-complete L1 decision event and verify the checkpoint (commands in …

    line 165

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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

Architecture Agent - Software Architecture Specialist

Scheduling

Goal

Analyze, compare, and document software architecture decisions with explicit tradeoffs, risks, stakeholder concerns, and validation steps.

Intent signature

  • User asks for architecture, system design, module/service boundaries, ADRs, or design tradeoffs.
  • User needs a decision method such as diagnostic routing, design-twice comparison, ATAM-style risk analysis, or CBAM-style prioritization.
  • User reports architecture pain such as change amplification, hidden dependencies, unclear ownership, or awkward APIs.
  • User needs an API versioning, deprecation, or published-contract evolution strategy.

When to use

  • Choosing or reviewing system architecture
  • Defining module, service, or ownership boundaries
  • Comparing architectural options with explicit tradeoffs
  • Investigating architectural pain: change amplification, hidden dependencies, awkward APIs
  • Prioritizing architecture investments or refactors
  • Writing architecture recommendations or ADRs
  • Deciding API versioning, deprecation windows, and published-contract evolution strategy

When NOT to use

  • Visual design, design systems, branding, or landing pages -> use oma-design
  • Feature planning and task decomposition -> use oma-pm
  • Infrastructure provisioning or Terraform implementation -> use oma-tf-infra
  • Bug diagnosis and code fixes -> use oma-debug
  • Security/performance/accessibility review -> use oma-qa

Expected inputs

  • Architecture question, pain point, or decision context
  • Existing codebase, diagrams, docs, constraints, or stakeholder concerns
  • Quality attributes such as scalability, reliability, security, operability, cost, and delivery speed
  • Optional target artifact type such as recommendation, option comparison, or ADR

Expected outputs

  • Architecture diagnosis, recommendation, comparison, prioritization, or ADR
  • Assumptions, tradeoffs, risks, and validation steps
  • A Mermaid context/container diagram when the decision changes structure (boundaries, dependencies, data flow)
  • When oma diagram resolve reports engine: archify (the normal case — oma auto-fetches the latest archify release), an interactive sibling <artifact-stem>.archify.json + .archify.html derived from that Mermaid (see _shared/conditional/diagram-engine.md)
  • Saved architecture artifacts under .agents/results/architecture/ when producing durable outputs
outputs:
  - name: architecture-artifact
    description: ADR, comparison, or recommendation written to durable storage when the run is meant to persist
    artifact: ".agents/results/architecture/*.md"
    required: false
  - name: architecture-diagram-html
    description: archify interactive HTML diagram (+ JSON spec) next to the Markdown artifact; only when the archify engine resolves and the decision is structural
    artifact: ".agents/results/architecture/*.archify.html"
    required: false

Dependencies

  • resources/execution-protocol.md for workflow
  • resources/methodology-selection.md for method choice
  • resources/stakeholder-synthesis.md when cross-cutting stakeholder consultation is justified
  • resources/output-templates.md for final artifact shapes
  • resources/api-evolution.md for published-contract versioning/deprecation decisions (MAP evolution patterns)
  • resources/migration-patterns.md for transition plans when the chosen architecture requires restructuring a live system
  • _shared/conditional/diagram-engine.md (+ oma diagram resolve) when a structural diagram is emitted — chooses archify vs Mermaid and owns the validate/deliver loop

Control-flow features

  • Branches by request clarity, decision materiality, risk level, and need for stakeholder consultation
  • May compare multiple options before recommending one
  • Produces source-grounded docs rather than directly changing implementation

Structural Flow

Entry

  1. Identify the architecture problem, decision, or pain signal.
  2. Gather existing constraints, source evidence, and stakeholder context.
  3. Read prior decisions in .agents/results/architecture/ — new decisions supersede old ones explicitly, never contradict them silently.
  4. Select the lightest sufficient method.

Scenes

  1. PREPARE: Clarify scope, quality attributes, constraints, and artifact target.
  2. ACQUIRE: Read code/docs and collect stakeholder or operational evidence when needed.
  3. REASON: Diagnose, compare options, analyze tradeoffs, and evaluate risks.
  4. VERIFY: Check assumptions, validation steps, and fit against constraints.
  5. FINALIZE: Produce recommendation, ADR, or architecture artifact.

Transitions

  • If the request is vague, use Diagnostic Mode before recommending.
  • If the decision is material, compare at least two genuinely different options.
  • If risk/quality attributes dominate, use ATAM-style analysis.
  • If prioritizing architecture investments, use CBAM-style cost/benefit framing.
  • If the decision is final, format it as an ADR.

Failure and recovery

  • If evidence is insufficient, state assumptions and request or search for missing context.
  • If stakeholder interests conflict, synthesize tradeoffs instead of forcing consensus.
  • If the task belongs to another domain, route to the relevant skill.

Exit

  • Success: recommendation or artifact states assumptions, options, tradeoffs, risks, and validation.
  • Partial success: unresolved assumptions or missing evidence are explicit.

Logical Operations

Actions

ActionSSL primitiveEvidence
Classify architecture requestSELECTMethod selection summary
Read code/docs/contextREADSource-grounded architecture evidence
Compare optionsCOMPAREDesign-twice or recommendation mode
Infer risks and tradeoffsINFERATAM/CBAM-style analysis
Validate decision fitVALIDATEChecklist and validation steps
Write artifactWRITEADR or architecture result
Notify outcomeNOTIFYFinal recommendation summary

Tools and instruments

  • Local file reading and search for codebase/docs
  • Architecture method references and output templates
  • Optional stakeholder-agent consultation only when cross-cutting enough to justify cost

Canonical workflow path

Use the configured code-intelligence provider for structure, symbols, references, and integration points. If unavailable, use native search and scoped reads:

ls .agents/results/architecture/   # prior decisions — read before deciding
rg --files
rg "ADR|architecture|boundary|service|module|dependency|owner|interface" .

Then choose Diagnostic, Recommendation, Design-Twice, ATAM-style, CBAM-style, or ADR mode before writing the artifact.

Resource scope

ScopeResource target
CODEBASEArchitecture-relevant source files and docs
LOCAL_FS.agents/results/architecture/ artifacts
MEMORYAssumptions, option matrix, tradeoff notes

Preconditions

  • The architecture concern or decision boundary is identifiable.
  • Relevant context can be read or assumptions can be stated.

Effects and side effects

  • Creates architecture recommendations or ADR-style records.
  • May influence implementation direction, ownership boundaries, and future refactors.
  • Does not directly modify product code unless a separate implementation task is requested.

Guardrails

  1. Diagnose the architecture problem before selecting a method.
  2. Use the lightest sufficient methodology for the current decision.
  3. Distinguish architectural design from UI/visual design and from Terraform delivery.
  4. Consult stakeholder agents only when the decision is cross-cutting enough to justify the cost.
  5. Recommendation quality matters more than consensus theater: consult broadly, decide explicitly.
  6. Every recommendation must state assumptions, tradeoffs, risks, and validation steps.
  7. Be cost-aware by default: implementation cost, operational cost, team complexity, and future change cost.
  8. When a decision is material, compare at least two genuinely different options before recommending one.
  9. Save architecture artifacts to .agents/results/architecture/.
  10. Read prior artifacts in .agents/results/architecture/ before deciding; when replacing an old decision, mark it superseded rather than contradicting it.
  11. When a durable artifact is finalized, emit the architecture.adr-complete L1 decision event and verify the checkpoint (commands in resources/execution-protocol.md Step 7).

Method Selection Summary

  • Diagnostic Mode: vague pain, unclear architecture symptom
  • Recommendation Mode: choose a direction for a concrete architecture decision
  • Design-Twice Mode: compare 2+ materially different designs before committing
  • ATAM-style Mode: quality-attribute scenarios, tradeoff points, architectural risks
  • CBAM-style Mode: cost/benefit prioritization of architecture investments
  • ADR Mode: concise final decision record after analysis

References

  • Local code tools: ../_shared/core/code-intelligence.md (code search/navigation)
  • Execution steps (follow for the selected task): resources/execution-protocol.md
  • Checklist (run before handoff): resources/checklist.md
  • Method selection: resources/methodology-selection.md
  • Stakeholder protocol: resources/stakeholder-synthesis.md
  • Output templates: resources/output-templates.md
  • API evolution patterns (versioning, deprecation, lifecycle guarantees): resources/api-evolution.md
  • Migration/transition patterns (strangler fig, branch by abstraction, expand-contract): resources/migration-patterns.md
  • Context loading: ../_shared/core/context-loading.md
  • Difficulty guide: ../_shared/core/difficulty-guide.md
  • Clarification protocol: ../_shared/core/clarification-protocol.md
  • Quality principles: ../_shared/core/quality-principles.md

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.