norma-check-before-commit

norma-check-before-commit is a skill for Cursor from qualityclouds/norma-mcp. It costs 67 tokens per session (441 once invoked), scanned A, original, MIT.

A pre-commit checking workflow for Norma, a service that reviews changed code against quality rules before it is committed, pushed, or submitted for review.

In plain words
What is it for?
It checks changed files before commits, pushes, and pull requests, repeats checks after fixes, and stops when unresolved findings remain.
Why use it?
It catches and fixes reported problems before they reach a shared branch or pull request, and records which findings were prevented.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the norma plugin — 3 skills, 1 MCP server shipped together

Good fit It checks changed files before commits, pushes, and pull requests, repeats checks after fixes, and stops when unresolved findings remain.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/qualityclouds/norma-mcp/norma-check-before-commit
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 qualityclouds/norma-mcp --skill norma-check-before-commit
Clone the repo
git clone --depth 1 https://github.com/qualityclouds/norma-mcp

Made for: Cursor.

Or install norma, the plugin that ships this one along with the rest of its 3 skills, 1 MCP server.

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 norma-check-before-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/qualityclouds/norma-mcp/norma-check-before-commit/github.svg)](https://agentmods.dev/skills/qualityclouds/norma-mcp/norma-check-before-commit)
Your own site
<a href="https://agentmods.dev/skills/qualityclouds/norma-mcp/norma-check-before-commit"><img src="https://agentmods.dev/badge/skills/qualityclouds/norma-mcp/norma-check-before-commit/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 norma-check-before-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/qualityclouds/norma-mcp/norma-check-before-commit"><img src="https://agentmods.dev/badge/skills/qualityclouds/norma-mcp/norma-check-before-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 441 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.
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.00067 $0.00441
Opus 5.5 $0.00027 $0.00176
Sonnet 5.5 $0.00013 $0.00088
Haiku 4.5 $0.00007 $0.00044

Measured 3d ago against content hash 85f0f9e73e13, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

norma-check-before-commit 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 3d 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.

skills/norma-check-before-commit/SKILL.md · 43 lines

What it actually says

Check with Norma before a commit

A change is checked before it leaves the workspace, not after a reviewer or the Norma Quality Gate finds the problem on the pull request.

When to use

  • Before each git commit.
  • Before a push or a pull request that contains commits not yet checked.

Steps

  1. List the files of the change: the files this commit adds or modifies (git status --porcelain). For a pull request, also the files that the branch changes against its base (git diff --name-only --diff-filter=AM origin/<base>...HEAD). Leave out deleted files and the files that the Norma server instructions exclude from checks.
  2. Read the remote once (git remote get-url origin) and call live_check with all those files and their current content.
  3. Fix each violation. Call live_check again on the files you changed. Repeat until the result is clean.
  4. Commit, push or open the pull request.
  5. Call register_applied_actions: the violations that live_check found and you fixed before the commit go in violations_prevented, with the rule IDs that live_check returned.

When the check cannot finish

  • A violation that you cannot fix without a change the user did not ask for: do not hide it. Commit, and state the rule ID, the file and the reason in the commit message or the pull request description, so a person decides.
  • The server says the repository is not imported in Norma: commit as usual, and tell the user that Norma did not check this change and that the repository must be imported in the Norma app.
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. 3d ago First seen · 43 lines · 67 tokens per session scan A 85f0f9e73e13

Subscribe to this mod's changes

norma-check-before-commit is a skill published in the GitHub repository qualityclouds/norma-mcp (6 stars, last pushed 4d ago), licensed MIT. It adds 67 tokens to every session and 441 once invoked, about $0.0003 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-11-27.

Related

norma-check-before-commit compared with skills from other repositories

norma-check-before-commit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
norma-check-before-commitqualityclouds/norma-mcpSkill64d agoMITA67Cursor
work-unit-commitsGentleman-Programming/gentle-aiSkill9.7kyesterdayMITA31Claude Code, Codex
ring:generating-pr-descriptionsLerianStudio/ringSkill21829d agoApache-2.0A61Claude Code, Cursor
git-workflowevent4u-app/agent-configSkill20todayMITA47Claude Code
shiplogdevallibus/shiplogSkill572d agoMITA44Claude Code
reviewgreglas75/zuvoSkill7todayMITA70Claude Code
commitmickeyyaya/evolve-loopSkill8todayApache-2.0A105Claude Code