Screaming architecture audit

From Vrooli/Vrooli · View interactive version

Screaming architecture audit is an AI agent skill from the GitHub repository Vrooli/Vrooli. Prioritize **improving the internal architecture and structure** of this scenario.

How to use this skill

Skill file

Steer focus: Architecture Alignment & Refactoring (“Screaming Architecture Audit”)

Prioritize improving the internal architecture and structure of this scenario.

Your goal is to make the codebase’s structure and naming clearly express the scenario’s purpose and mental model, while keeping behavior stable.

Do not break functionality, regress tests, or introduce new features. All changes must maintain or improve completeness and reliability.

Required reading:


**1. Check Documentation Structure & Build Mental Model**

Before deriving your own mental model, check existing documentation:

  1. Verify docs infrastructure exists:
  1. If documentation exists:
  1. If documentation is missing/sparse:
  1. Study source documents:
  1. Derive/validate mental model:

The mental model should converge with documentation over repeated audits. Keep this mental model in mind as the "true architecture" you want the code to scream.


**2. Map the Current Logical Architecture**

Summarize (for yourself) how the system is actually structured today.


**3. Inspect the Physical Structure**

Your aim is to see where the physical structure diverges from the mental model.


**4. Align Architecture with the Domain (“Make It Scream Its Purpose”)**

Do not perform a “big-bang rewrite.” Favor incremental, local improvements that clearly move the architecture toward the mental model.


**5. Simplify Dependencies & Reduce Coupling**

When adjusting dependencies, ensure tests are updated to reflect the new structure without weakening coverage.


**6. Safe Refactoring Guidelines**

You may:

You must:

If you identify a necessary but high-risk, broad architectural change, describe it clearly in comments or notes rather than partially implementing it.


**7. Output Expectations**

By the end of this loop, the scenario should:

Documentation Health Findings

Include a documentation health assessment in your findings:

| Area | Status | Notes |

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

| docs/manifest.json | Present/Missing | Navigation structure for UI display |

| Mental model documented | Yes/No/Partial | ARCHITECTURE.md or similar |

| Code↔Doc references | Coverage % | DOC: comments and [CODE: ...] links |

| Orphaned docs | X files | Docs not in manifest or referencing dead code |

| Broken references | X found | Invalid paths in either direction |

Avoid superficial changes (e.g. meaningless renames or file shuffling) that do not materially improve how well the architecture communicates the scenario's purpose and boundaries.

Focus this loop on practical, targeted architectural improvements that make the codebase easier to reason about, safer to extend, and more obviously aligned with what the scenario is supposed to do.


**9. Documentation**

Use knowledge-observatory-tools to read the current architecture and seams docs for {{TARGET}}, then update:

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.