archgate-governance

archgate-governance is a cursor rule for Cursor from archgate/cli. It costs 195 tokens per session, scanned A, original, Apache-2.0.

A set of project rules that enforces architecture decision records, or ADRs: written decisions describing how a codebase should be designed. It requires checking relevant decisions before coding and validating compliance afterward.

In plain words
What is it for?
Use it to find applicable ADR guidance for changed files and run compliance checks before considering work complete. Violations must be fixed.
Why use it?
It prevents changes from quietly conflicting with decisions the project has already made about its architecture.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to find applicable ADR guidance for changed files and run compliance checks before considering work complete. Violations must be fixed.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/archgate/cli/archgate-governance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/archgate/cli

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for archgate-governance

README.md
[![agentmods](https://agentmods.dev/badge/rules/archgate/cli/archgate-governance/github.svg)](https://agentmods.dev/rules/archgate/cli/archgate-governance)
Your own site
<a href="https://agentmods.dev/rules/archgate/cli/archgate-governance"><img src="https://agentmods.dev/badge/rules/archgate/cli/archgate-governance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for archgate-governance

Your own site · 80×15
<a href="https://agentmods.dev/rules/archgate/cli/archgate-governance"><img src="https://agentmods.dev/badge/rules/archgate/cli/archgate-governance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 This file is loaded in full into every session.
When invoked 195 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00195 $0.00195
Opus 5.5 $0.00078 $0.00078
Sonnet 5.5 $0.00039 $0.00039
Haiku 4.5 $0.00019 $0.00019

Measured 1mo ago against content hash d7304eddf493, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

archgate-governance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/archgate-governance.mdc · 30 lines

What it actually says

Archgate Governance

This project uses Archgate to enforce Architecture Decision Records (ADRs).

Before writing code

  • Use the review_context MCP tool to get applicable ADR briefings for changed files
  • Review the Decision and Do's/Don'ts sections of each applicable ADR

After writing code

  • Run the check MCP tool to validate compliance with all ADR rules
  • Fix any violations before considering work complete

ADR commands

  • list_adrs — List all active ADRs with metadata
  • check — Run automated compliance checks (use staged: true for pre-commit)
  • review_context — Get changed files grouped by domain with ADR briefings

Key principle

Architectural decisions are enforced, not suggested. If check reports violations, they must be fixed.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 30 lines · 195 tokens per session scan A d7304eddf493

Subscribe to this mod's changes

archgate-governance is a cursor rule published in the GitHub repository archgate/cli (72 stars, last pushed 2d ago), licensed Apache-2.0. It adds 195 tokens to every session, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.