Skip to content
Back to skills

Pre Edit Governance

ASecurity

Use before an AI coding agent modifies code, or whenever someone asks whether a planned change is safe to make. This is the checkpoint meant to run first: in one call Garuda returns the target's caller fan-in, its criticality tier, the active YAML policies that apply, and the MUST and MUST NOT rules from ADRs and agent instruction files. It also flags metrics or calculations with competing implementations across teams and any surface frozen against unreviewed edits. The result is a proceed, r...

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
developmentgobashtestinggitsecurity

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add myshra777-ai/garuda --skill pre-edit-governance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pre Edit Governance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pre Edit Governance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/myshra777-ai-pre-edit-governance/badge)](https://www.skillsdirectory.com/skills/myshra777-ai-pre-edit-governance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pre-edit-governance
description: "Use before an AI coding agent modifies code, or whenever someone asks whether a planned change is safe to make. This is the checkpoint meant to run first: in one call Garuda returns the target's caller fan-in, its criticality tier, the active YAML policies that apply, and the MUST and MUST NOT rules from ADRs and agent instruction files. It also flags metrics or calculations with competing implementations across teams and any surface frozen against unreviewed edits. The result is a proceed, revise or escalate decision, so the agent knows what to respect, or when to ask a human, before writing any code. Read-only by default."
version: "1.9.16"
license: "Apache-2.0"
read_only_default: true
---

# 03 — Garuda Pre-Edit Governance Gate

Acts as the pre-change checkpoint before an AI coding agent modifies code, returning a proceed, revise, or escalate decision.

## 1. Purpose & Triggers
Invoke this skill when the user or coding workflow asks:
- "Before modifying this code, check Garuda's policies"
- "Run pre-edit governance for my planned change"
- "Can an AI agent safely edit this package?"

## 2. Required Context
- `workspace`: Target Garuda workspace name (default: `"default"`).
- `repo_dir`: Repository root path (default: `"."`).
- `diff` / `target`: Git revision range (e.g. `"HEAD"`) or symbol/package name.

## 3. Ordered MCP Workflow
1. `garuda.preflight_bundle` (or `garuda.talon_pre_edit`) — Fetch caller fan-in, package criticality tier, active YAML policies, and applicable `MUST` / `MUST_NOT` ADR claims in one call.
2. `garuda.disambiguate_logic` — If the target symbol implements a domain metric or calculation, check for competing cross-team variants (`0.0–1.0` weights) and `FROZEN_SEVERE_DO_NOT_TOUCH` locks.
3. Evaluate whether the target surface is `HIGH_SEVERE` or governed by a `BLOCK` policy before writing code.

**CLI Fallback (when MCP stdio is not attached)**:
```bash
garuda talon brief <SymbolOrFile> && garuda audit criticality
```

## 4. Decision & Epistemic Rules
- **Epistemic States**: Always distinguish `SUPPORTED` (backed by compiler/AST + runtime evidence where required), `UNVERIFIED` (statically extracted, awaiting runtime trace), and `CONTRADICTED` (violates ADR, policy, or static boundary).
- **Governance Verdicts**: `ALLOW` (proceed), `WARN` (proceed with note), `REVIEW` (requires human architectural review), `BLOCK` (halt and remediate net-new violation), `INCONCLUSIVE` (0 entities matched policy scope; never treat as vacuous `ALLOW`).

## 5. Output Contract
Format every report using this six-part structure:
`Finding -> Evidence (file:line & match_method) -> Affected Components (callers & tier) -> Policy / ADR -> Confidence / Status -> Recommended Action`

## 6. Safety & Limitations
- **Read-Only by Default**: Public installations run with `GARUDA_MCP_READ_ONLY=true`. Never invoke mutating tools (`garuda.approve_base_rulebook`, `garuda.decide_logic_variant`, `garuda.reconcile_data_audit`) without explicit human authorization (`GARUDA_MCP_APPROVER`).
- **Scope Qualification**: RFC 6962 Merkle proofs (`H_leaf = SHA256(0x00 || data)`) establish tamper-evident integrity and inclusion of recorded governance evaluations; they do not replace unit, integration, or dynamic security testing.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.