agentleFS
bruuuuucebruuuuuce/mana/skills/architecture-guard-detector/SKILL.md

architecture-guard-detector

Skill2 starsChanged 4 months agoMITView on GitHub

Compares branch or PR changes against .mana/global/engineering-guards.md to detect protected files, forbidden packages, disallowed patterns, required owner approvals, and architecture guard violations.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When .mana/global/engineering-guards.md contains protected paths, owner gates, forbidden packages, or forbidden patterns.

    line 41
  2. Distinctive:

    Before claiming a guarded change is safe or review-ready.

    line 45
  3. Very specific:

    Read .mana/global/engineering-guards.md.

    line 53

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

Purpose

Detect whether a diff violates project engineering guards before review, merge, or implementation continues.

When To Use It

  • When .mana/global/engineering-guards.md contains protected paths, owner gates, forbidden packages, or forbidden patterns.
  • During branch-ready, pr-ready, or requested-pr-review when changed files may touch architecture-sensitive areas.
  • Before claiming a guarded change is safe or review-ready.

Outputs

  • architecture_guard_report
  • guard_violations
  • approval_requirements

Execution Logic

  1. Read .mana/global/engineering-guards.md. If missing or placeholder-only, report degraded evidence.
  2. Extract explicit protected paths, forbidden dependencies, forbidden packages, disallowed patterns, required owners, and approval gates.
  3. Compare changed files and relevant diff snippets against those guards.
  4. Separate actual violations from "needs owner confirmation".
  5. Produce approval requirements with owner role and evidence path.

Decision Rules

  • blocker: explicit guard violation, protected file changed without approval, forbidden package/dependency introduced, or required owner approval missing.
  • warning: guard is ambiguous, context missing, or path appears near a protected boundary.
  • info: no guard hit, or documented approval present.

Output Standard

Follow docs/standards/agent-skill-output-standard.md. Internal reasoning must use compact caveman mode: terse fragments, evidence-first notes, no long narrative, and no private chain-of-thought in final artifacts. Maintain a context budget: keep a short working summary and avoid accumulating raw diffs, repeated file dumps, or copied tool output.

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.