Oma architecture

From first-fluke/fullstack-starter · View interactive version

Oma architecture is an AI agent skill from the GitHub repository first-fluke/fullstack-starter. Evaluate system boundaries and architectural tradeoffs. Use for architecture decisions, design reviews, and ADRs.

How to use this skill

Skill file

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

When to use

When NOT to use

Expected inputs

Expected outputs

outputs:
  - name: architecture-decision
    description: ADR or retained recommendation for a selected approach, with its actual authority status
    artifact: "docs/decisions/*.md"
    required: false
  - name: architecture-artifact
    description: Run-specific review, diagnosis, CBAM analysis, or unselected comparison draft
    artifact: ".agents/results/architecture/*.md"
    required: false
  - name: architecture-decision-diagram-html
    description: archify interactive HTML diagram (+ JSON spec) beside a retained structural decision; only when the archify engine resolves
    artifact: "docs/decisions/*.archify.html"
    required: false
  - name: architecture-diagram-html
    description: archify interactive HTML diagram (+ JSON spec) beside a run-specific structural report; only when the archify engine resolves
    artifact: ".agents/results/architecture/*.archify.html"
    required: false

Dependencies

Control-flow features

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 docs/decisions/; use .agents/results/architecture/, docs/design-docs/, and docs/plans/designs/ as legacy context until migration. 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

Failure and recovery

Exit

Logical Operations

Actions

| Action | SSL primitive | Evidence |

|--------|---------------|----------|

| Classify architecture request | SELECT | Method selection summary |

| Read code/docs/context | READ | Source-grounded architecture evidence |

| Compare options | COMPARE | Design-twice or recommendation mode |

| Infer risks and tradeoffs | INFER | ATAM/CBAM-style analysis |

| Validate decision fit | VALIDATE | Checklist and validation steps |

| Write artifact | WRITE | ADR or architecture result |

| Notify outcome | NOTIFY | Final recommendation summary |

Tools and instruments

Canonical workflow path

Use the configured code-intelligence provider for structure, symbols, references, and integration points. If unavailable, use native search only for paths outside this project or ignored paths:

1. Read prior decisions in docs/decisions/; read old result/design directories as legacy fallback until migration.
2. Discover the configured provider's file, symbol, reference, and pattern tools.
3. Inspect architecture-relevant modules, ownership, and integration points within the selected scope.

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

Resource scope

| Scope | Resource target |

|-------|-----------------|

| CODEBASE | Architecture-relevant source files and docs |

| LOCAL_FS | docs/decisions/ decisions and .agents/results/architecture/ run reports |

| MEMORY | Assumptions, option matrix, tradeoff notes |

Preconditions

Effects and side effects

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 ADRs and retained recommendations for a selected approach to docs/decisions/ and update its index. Keep run reviews, diagnoses, CBAM analyses, and unselected drafts in .agents/results/architecture/. Promotion into docs/ leaves a destination link in the source report.
  10. Read prior decisions in docs/decisions/ before deciding; read legacy locations until migration. When replacing an old decision, mark it superseded rather than contradicting it. Dispatched result-*.md reports always go to .agents/results/, preserving their task/run/session filenames.
  11. When a durable artifact is finalized in an active OMA workflow, record its actual recommendation, authority status, rationale, revision, and evidence with architecture.adr-complete (execution protocol Step 7). A completed proposal does not supply user approval or authorize implementation.

Method Selection Summary

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.