ai-sdlc-governance

ai-sdlc-governance is a skill for Claude Code from ai-sdlc-framework/ai-sdlc. It costs 31 tokens per session (928 once invoked), scanned A, original, Apache-2.0.

A set of rules for how an AI coding agent should manage software projects, including checks before saving changes. It also blocks certain risky Git actions.

In plain words
What is it for?
For setting project rules, restricting unsafe Git commands, and checking builds or other required steps before code is committed.
Why use it?
It reduces accidental merges, branch deletion, forced updates, and other hard-to-undo changes. It also gives the agent a repeatable checklist before each commit.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-sdlc plugin — 3 skills, 25 commands, 14 agents shipped together

Good fit For setting project rules, restricting unsafe Git commands, and checking builds or other required steps before code is committed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-sdlc-framework/ai-sdlc/ai-sdlc-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.

Any agent
npx skills add ai-sdlc-framework/ai-sdlc --skill ai-sdlc-governance
Clone the repo
git clone --depth 1 https://github.com/ai-sdlc-framework/ai-sdlc

Made for: Claude Code.

Or install ai-sdlc, the plugin that ships this one along with the rest of its 3 skills, 25 commands, 14 agents.

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 ai-sdlc-governance

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-sdlc-framework/ai-sdlc/ai-sdlc-governance/github.svg)](https://agentmods.dev/skills/ai-sdlc-framework/ai-sdlc/ai-sdlc-governance)
Your own site
<a href="https://agentmods.dev/skills/ai-sdlc-framework/ai-sdlc/ai-sdlc-governance"><img src="https://agentmods.dev/badge/skills/ai-sdlc-framework/ai-sdlc/ai-sdlc-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 ai-sdlc-governance

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai-sdlc-framework/ai-sdlc/ai-sdlc-governance"><img src="https://agentmods.dev/badge/skills/ai-sdlc-framework/ai-sdlc/ai-sdlc-governance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 928 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 14
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 16
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00031 $0.00928
Opus 5.5 $0.00012 $0.00371
Sonnet 5.5 $0.00006 $0.00186
Haiku 4.5 $0.00003 $0.00093

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

Security

Grade A, and why

ai-sdlc-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.

ai-sdlc-plugin/skills/ai-sdlc-governance/SKILL.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI-SDLC Governance Rules

Critical Rules — NEVER violate these

  1. Merging follows governance.allowMerge in .ai-sdlc/agent-role.yaml, rendered into the session hard rules; when it permits merging, the only path is cli-merge-if-eligible; never run the raw merge command. Do not run git merge into main or any other merge operation.
  2. Dismiss PR reviews only with documented reason. You may dismiss reviews when they failed due to infrastructure issues (e.g., API credit exhaustion) or when findings are documented false positives. Always include a clear explanation in the dismissal message. Prefer updating .ai-sdlc/review-policy.md for recurring false positives.
  3. NEVER close issues or PRs. Do not run gh pr close or gh issue close. The human decides what to close.
  4. NEVER plain force push. Do not run git push --force or git push -f. A --force-with-lease push after a rebase is governed by allowForcePush (DEC-0264): lease = any non-protected branch, leaseOnOwnBranch (adopter default) = the task's own worktree only, never = no lease push. Do it without asking the operator when permitted, and never to main/master/protected branches.
  5. NEVER delete branches. Do not run git branch -D or git branch -d.
  6. NEVER run destructive git operations. No git reset --hard, git checkout -- ., git restore ..

These rules are also enforced technically via ai-sdlc-plugin/hooks/enforce-blocked-actions.sh and .ai-sdlc/agent-role.yaml blockedActions.

Pre-Commit Checklist

Before EVERY commit, run these checks and fix any failures:

pnpm build          # TypeScript compilation — catches type errors
pnpm test           # All tests must pass
pnpm lint           # ESLint — no errors allowed
pnpm format:check   # Prettier — run `pnpm format` to fix
# Coverage is CI-only, not a local gate (AISDLC-726)

Test File Check

Before committing new .ts modules, verify:

  • Every new src/**/*.ts file (not types.ts, index.ts) has tests somewhere
  • Tests can be in a co-located .test.ts file OR in another test file that imports it
  • Run the relevant tests and confirm they pass before staging

Read the full file on GitHub · 56 lines

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 Changed · -40 lines 5927e8ccaf8d
  2. 1mo ago Changed 64b70d9c6e0a
  3. 1mo ago Changed e2a566a5a92b
  4. 1mo ago Changed 8e821c79ba48
  5. 2mo ago Changed ff7ce1c08c2a
  6. 3mo ago First seen · 96 lines · 31 tokens per session scan A a9e9067d2787

Subscribe to this mod's changes

ai-sdlc-governance is a skill published in the GitHub repository ai-sdlc-framework/ai-sdlc (464 stars, last pushed yesterday), licensed Apache-2.0. It adds 31 tokens to every session and 928 once invoked, about $0.0001 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.

Related

ai-sdlc-governance compared with skills from other repositories

ai-sdlc-governance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-sdlc-governanceai-sdlc-framework/ai-sdlcSkill464yesterdayApache-2.0A31Claude Code
martinloop-governKeesan12/martin-loopSkill2635d agoApache-2.0A29Claude Code, Codex
deploy-registry-server-with-cnpgstacklok/toolhive-registry-serverSkill32todayApache-2.0A46Claude Code
deploy-registry-server-with-otelstacklok/toolhive-registry-serverSkill32todayApache-2.0A40Claude Code
air-blackbox-sales-agentairblackbox/airblackboxSkill259d agoApache-2.0A248Claude Code, Codex
interpret-resultsairblackbox/airblackboxSkill259d agoApache-2.0A49Claude Code
compliance-scanairblackbox/airblackboxSkill259d agoApache-2.0A51Claude Code