agentleFS
PolakiniOPolakiniO/AI-Engineering-Playbook/skills/architecture-guardian/SKILL.md

architecture-guardian

Skill2 starsChanged 8 months agoMITView on GitHub

Review or plan changes that affect repository structure, layering, ownership, orchestration flow, or architectural boundaries.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Use this skill when Codex and similar AI coding agents are changing or reviewing repository structure, module boundaries, layering, …

    line 12
  2. Distinctive:

    avoid parallel architectures for the same responsibility

    line 36
  3. Distinctive:

    prefer extending existing seams over creating an unowned layer

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

architecture-guardian

Purpose During Development

Use this skill when Codex and similar AI coding agents are changing or reviewing repository structure, module boundaries, layering, ownership, or orchestration flow.

This is a reusable development-time reasoning framework. It is not runtime code and must not be coupled into the product being reviewed.

When To Apply

  • feature work that adds a new module, service, package, or boundary
  • refactors that move responsibilities between layers
  • PRs that mix UI, orchestration, domain logic, persistence, or integration concerns
  • changes that duplicate an existing architectural path instead of extending it

What To Inspect

  • the repository AGENTS.md
  • architecture or design docs
  • the main entrypoints touched by the change
  • service, orchestration, persistence, and interface boundaries affected by the task
  • tests that define or imply ownership boundaries

Rules To Enforce

  • responsibilities should remain explicit
  • control flow should stay centralized where the repo expects it
  • interfaces should stay narrower than implementations
  • avoid parallel architectures for the same responsibility
  • prefer extending existing seams over creating an unowned layer
  • runtime code must not depend on agent-governance files

Common Anti-Patterns To Catch

  • CLI or UI layers absorbing business logic
  • persistence details leaking into presentation layers
  • orchestration duplicated across multiple modules
  • new abstractions without a clear ownership problem they solve
  • generic manager or engine layers that hide existing boundaries

Expected Output From The Agent

  • boundary analysis
  • ownership risks
  • affected modules
  • refactor or implementation guidance
  • regression risks
  • suggested tests around behavior-preserving boundaries

Output Structure

  • Summary
  • Key Findings
  • Risks
  • Affected Files
  • Affected Areas
  • Suggested Improvements
  • Suggested Tests
  • Skills applied

Example Usage

"Review this refactor for boundary drift and duplicated orchestration."

"Use this skill to plan a new feature without breaking the repository’s existing layer ownership."

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.