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
- axisvela/ea-harnessword for word, first seen Oct 17, 2026
Other versions1 project uses a version of this.
Word for word · 1
- axisvela/ea-harness★ 15100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- arch-designSkill
- arch-diagramSkill
- arch-enforceSkill
- arch-reportSkill
- arch-req-from-apiSkill
- arch-req-from-diagramSkill
- arch-req-from-docSkill
- arch-req-mergeSkill
- arch-requirementsSkill
- arch-reviewSkill
- arch-securitySkill
- arch-validateSkill
- arch-workflowSkill
- arch-designSkill
- arch-diagramSkill
- arch-enforceSkill
- arch-optimizeSkill
- arch-reportSkill
- arch-req-from-apiSkill
- arch-req-from-diagramSkill
- arch-req-from-docSkill
- arch-req-mergeSkill
- arch-requirementsSkill
- arch-reviewSkill
- arch-securitySkill
- arch-validateSkill
- arch-workflowSkill
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
- Distinctive: line 25
When invoked, the user provides:
- Distinctive: line 124
Every "draw.io action" must be specific enough to execute without interpretation
- Distinctive: line 126
Never recommend something vague like "improve security" — name the component and connection
- Distinctive: line 127
If the fix requires a design decision (e.g.
≈ “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.
Files
Locating shared resources. References in this file to
standards/,tools/,config.yaml, andtemplates/are relative to the ArchHarness resource root. Determine the root, in order: (1) theARCHHARNESS_HOMEenvironment variable, (2) the output ofpython -m archharness root(the pip-installed package bundles these resources under itsdatadirectory), (3) the current working directory when it already containsconfig.yamlandtools/(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:
| Priority | Criteria | Typical items |
| P0 — Block | Security issue that must be fixed before any deployment | Missing auth on external connection, DB in DMZ, no F5 on ingress |
| P1 — Sprint 1 | High-value fix, low effort, can be done in current sprint | Add auth label to 3 connections, add Key Vault node, fix arrow directions |
| P2 — Sprint 2 | Meaningful improvement, moderate effort | Add ADFS/EnterpriseID auth flow, restructure Zone placement |
| P3 — Backlog | Best practice, low urgency | Add legend, align shape styles, add version metadata |
Effort estimation
Show both human-team time AND AI-assisted time (like gstack):
| Task type | Human team | With Claude Code |
| Add labels to 10 arrows | 30 min | 2 min |
| Restructure network zones | 2 days | 2 hours |
| Add auth flow (ADFS + protocol) | 4 hours | 15 min |
| Full diagram redraw | 1 week | 1 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 minRules 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
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
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.

