architecture-guardian
Skill2 starsChanged 27 days agoMITView on GitHub
Inspect .NET architecture policy and validate or correct changes with Architecture Guardian MCP tools or CLI. Use when implementing a change under an existing architecture.guardian.yaml or investigating its findings; not as a replacement for normal builds, tests or CI.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- imMamdouhaboammar/riqortheir own version, first seen Aug 9, 2026
- imMamdouhaboammar/agent-kerneltheir own version, first seen Jul 26, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- imMamdouhaboammar/agent-kernel★ 5same name
- imMamdouhaboammar/riqor★ 4same name
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 repository4 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use repository-owned architecture policy to guide a requested .NET change and verify its dependency boundaries.
- Very specific: line 15
Read repository instructions, the YAML policy and the normal build/test/CI commands.
- Distinctive: line 20
If neither is available, report the setup requirement.
- Very specific: line 36
Add --framework <tfm> where required.
- Distinctive: line 58
Do not weaken policy, suppress diagnostics, remove projects from analysis or refresh accepted-debt baselines just to obtain a passing …
- Distinctive: line 67
Run a fresh full solution scan after editing, keeping the input, policy, configuration and framework consistent.
- Very specific: line 86
If the repository requires a new-finding gate, use its reviewed baseline or explicit Git base in addition to the full-scan result.
- Distinctive: line 91
Run the repository's normal build/tests.
≈ “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
Architecture Guardian
Use repository-owned architecture policy to guide a requested .NET change and
verify its dependency boundaries. Architecture constraints belong in
architecture.guardian.yaml, not in this skill or copied agent instructions.
The compiler analyzer is complementary feedback; it cannot establish solution coverage.
Inspect
- Read repository instructions, the YAML policy and the normal build/test/CI commands.
Discover the intended
.sln,.slnxor C#.csproj, explicit policy path, configuration and any required target framework. Reuse an established gate's context; do not silently select a smaller input or fewer rules to get a pass. - Locate a configured Architecture Guardian MCP server or installed
archguard. If neither is available, report the setup requirement. Do not invent results or install tools/change client configuration without authorization from the task. - MCP workspace paths are relative to the operator's
Workspace:Root; CLI paths resolve from the command's working directory. Tool arguments cannot grant trust. Confirm authorization before restore or workspace loading: repository-controlled MSBuild tasks and generators can execute code. If trust is unavailable, inspect policy only and report workspace validation as blocked. - Restore the input explicitly through ordinary command tools in the intended configuration/framework when authorized. MCP and full CLI scans do not restore it. Re-restore after project/package/build changes. Comparison scans instead prepare both snapshots using cache-only restore and require cached dependencies.
- With MCP, call
list_ruleswithpolicyPath, thenget_architectureandanalyze_solutionwithinputPath,policyPath,configurationand optionaltargetFramework. Read ownership, contracts, effective rules and coverage. - With CLI, run
archguard inspect <input> --policy <policy> --configuration <config> --trusted, thenarchguard scanwith the same arguments and--format json. Add--framework <tfm>where required. Use the installed command's full path when PATH does not expose it. Save the initial findings and operational issues so pre-existing debt remains distinguishable from the requested change.
Requested onboarding or policy review
For first-time discovery, ownership review and incremental policy adoption, use
architecture-guardian-onboarding when installed. It works independently with
MCP or CLI, including manual proposals when installed discovery is unavailable.
An onboarding request does not authorize activating policy or accepting debt;
review a separate candidate and require an explicit adoption decision.
See the onboarding guide
for installation. If that skill is unavailable, retain the same proposal/review
boundary and report setup limitations rather than inventing discovery commands.
Implement
Implement the requested change through the agent's ordinary file and command tools. Respect resolved ownership, allowed directions and declared public contracts. Inspect a candidate contract's actual API and permissions before using it; a suggested contract is not proof that it is a suitable replacement.
Do not weaken policy, suppress diagnostics, remove projects from analysis or refresh accepted-debt baselines just to obtain a passing result. Policy changes require the task to authorize an intentional architecture change. If compiler integration is present, use the same YAML policy with its packaged build metadata targets. During the XML transition, synchronize any still-configured legacy snapshot with authorized YAML or assembly-ownership changes.
Validate and correct
- Run a fresh full solution scan after editing, keeping the input, policy, configuration and framework consistent. Complete each independently required build context; one configuration does not prove coverage of another.
- Interpret completion before compliance. MCP needs
status: "completed"; inspectgateOutcomeseparately. CLI exit0is a completed passing gate,1is a completed failing gate, and2leaves compliance unresolved. CLI JSON spells an unevaluated gatenotEvaluated; MCP usesnot-evaluated. Warnings below the threshold can pass. Zero findings cannot establish success without completion. - For an actual MCP finding, pass its exact fresh
idasdiagnosticIdtoexplain_violation, with the same input/policy/build context. Inspect evidence, dependency path, constraints and remediation. Do not manufacture IDs or diagnostic objects. An unknown/stale ID requires a new scan and a current ID. CLI fallback uses scan evidence andarchguard explain <rule-id>for rule metadata; CLIexplaindoes not resolve diagnostic instances. - Correct relevant source/project dependencies, then restore again if build inputs changed and rescan. MCP tools are read-only; edits and restore happen outside MCP. Address operational issues instead of interpreting partial findings as a complete result. Report a blocker if the required context cannot complete or the correction exceeds the authorized task.
- If the repository requires a new-finding gate, use its reviewed baseline or
explicit Git base in addition to the full-scan result. CLI
--baseand--baselineare mutually exclusive. MCPanalyze_changesrequiresbaseReferenceandscope: "solution". Base and candidate must both complete; a passing comparison can retain existing errors. Do not claim those are fixed. - Run the repository's normal build/tests. Keep its independent CLI CI gate; agent checks and compiler diagnostics do not replace it.
Report
State the input, policy and build context; coverage status; gate outcome; relevant findings corrected and remaining; operational blockers; and build/test results. Separate full-scan compliance from a new-finding gate and local verification from hosted CI. Never report approval from an incomplete, failed or cancelled scan.
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.

