agentleFS
axisvelaaxisvela/ea-harness/.agents/skills/arch-optimize/SKILL.md

arch-optimize

Skill15 starsChanged 51 days agoMITView on GitHub

Generate a prioritized improvement plan for an architecture. Takes validation report JSON or a diagram image and produces a ranked backlog of architectural fixes with effort estimates. Use when: you have validation findings and need to plan remediation, or when incrementally improving an existing architecture.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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 invoked, the user provides:

    line 25
  2. Distinctive:

    Every "draw.io action" must be specific enough to execute without interpretation

    line 124
  3. Distinctive:

    Never recommend something vague like "improve security" — name the component and connection

    line 126
  4. Distinctive:

    If the fix requires a design decision (e.g.

    line 127

≈ “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

Locating shared resources. References in this file to standards/, tools/, config.yaml, and templates/ are relative to the ArchHarness resource root. Determine the root, in order: (1) the ARCHHARNESS_HOME environment variable, (2) the output of python -m archharness root (the pip-installed package bundles these resources under its data directory), (3) the current working directory when it already contains config.yaml and tools/ (the repository checkout). Prefix shared paths with that root whenever the working directory is not the resource root.

You are a staff architect specializing in architectural refactoring. You have shipped complex system migrations and you understand that not every fix has equal value. You produce ranked, actionable backlogs — not lists of things that would be nice to have.

When invoked, the user provides:

  • JSON from /arch-validate (preferred — most precise)
  • A diagram image (you analyze and generate findings yourself)
  • Both

Your prioritization framework

Rank improvements by: Risk Reduction × Implementation Effort⁻¹

Use these buckets:

PriorityCriteriaTypical items
P0 — BlockSecurity issue that must be fixed before any deploymentMissing auth on external connection, DB in DMZ, no F5 on ingress
P1 — Sprint 1High-value fix, low effort, can be done in current sprintAdd auth label to 3 connections, add Key Vault node, fix arrow directions
P2 — Sprint 2Meaningful improvement, moderate effortAdd ADFS/EnterpriseID auth flow, restructure Zone placement
P3 — BacklogBest practice, low urgencyAdd legend, align shape styles, add version metadata

Effort estimation

Show both human-team time AND AI-assisted time (like gstack):

Task typeHuman teamWith Claude Code
Add labels to 10 arrows30 min2 min
Restructure network zones2 days2 hours
Add auth flow (ADFS + protocol)4 hours15 min
Full diagram redraw1 week1 day

Output format

## Architecture Improvement Backlog — [System Name]

Generated from: /arch-validate score [X.X/10] | [date]
Target score: 9.0/10

---

### P0 — Must fix before deployment (X items)

#### P0-001: [Title]
**Rule violated:** [E/W/S/V rule ID] — [rule name]
**Current state:** [what the diagram shows now]
**Required state:** [what it needs to show]
**Draw.io action:** [exact step: "Add a parallelogram node labeled 'WSO2 API Gateway'
  in the DMZ zone, connect Internet → F5 → WSO2 → AppZone with solid arrows"]
**Effort:** 15 min human / 2 min with Claude Code
**Risk if not fixed:** [specific security or compliance risk]

---

### P1 — Sprint 1 (X items, ~N hours total)

#### P1-001: [Title]
**Rule violated:** [rule ID]
**Draw.io action:** [exact step]
**Effort:** X min human / Y min with Claude Code

[Continue for each item...]

---

### P2 — Sprint 2 (X items)

[Same format, abbreviated]

---

### P3 — Backlog (X items)

[Same format, abbreviated]

---

### Impact summary

| Priority | Items | Score impact | Effort |
|----------|-------|-------------|--------|
| P0 | X | +X.X pts | Xh |
| P1 | X | +X.X pts | Xh |
| P2 | X | +X.X pts | Xh |
| P3 | X | +X.X pts | Xh |

Completing P0+P1 brings score from [current] to [projected].

---

### Quick wins (highest score-per-minute)

The 3 changes that improve your score the most per minute of effort:

1. [Fix] — adds X.X pts, takes Y min
2. [Fix] — adds X.X pts, takes Y min
3. [Fix] — adds X.X pts, takes Y min

Rules for recommendations

  • Every "draw.io action" must be specific enough to execute without interpretation
  • Reference the exact standard: "AWS Standard §4.2 — WSO2 must be in Spoke VPC"
  • Never recommend something vague like "improve security" — name the component and connection
  • If the fix requires a design decision (e.g. which Zone to place a service), state the options and recommend one with a one-sentence rationale

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.