# norma - one task loop and verification gate, enforced by git

> Sets up and drives norma, the open-source task harness that makes every coding agent follow the same loop and refuses commits that did not pass the same verification gate - enforced by a git hook, not by the agent.

norma - one task loop and verification gate, enforced by git is a free AI agent skill on Agensi by Juan Carlos Rodicio, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Juan Carlos Rodicio](https://www.agensi.io/creators/jcarlosrodicio)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-16
- Security: scan passed (2026-10-16); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/norma-one-task-loop-and-verification-gate-enforced-by-git
- Tags: automation, git, devops, code-review, testing

## About this skill

norma installs a task harness into a git repository: a verification gate that
runs the project's own checks and the tests for what changed, a pre-commit hook
that refuses a commit without a fresh stamp from that gate, and a library of
procedures - orient, enrich, branch, plan, implement, verify, review, document,
hand over - that any agent follows by file path.

This skill is the entry point. It lets an agent:

- detect whether norma and its harness are already in the repository, and
  whether the hook is actually armed;
- install the CLI and add the harness through norma's official routes - Homebrew,
  a tagged release, or the install script shown to you before it runs - and
  **only after you say yes**;
- work through the repository's own loop and gate instead of improvising one;
- explain why a commit was refused and what fixes it, without bypassing anything.

What it does **not** do: enforce anything by itself. The guarantees come from
the git hook, the gate and your CI; the skill forbids the agent to fake them -
no `--no-verify`, no hand-written stamp, no edits to the gate - and tells it to
say so when your CI does not run the gate, because then the hook is the only
check.

Free and open source (MIT). POSIX sh, no runtime dependencies beyond git.

## Requires

- Git
- POSIX sh
- Optional: Homebrew
- Optional: OpenSpec

Homebrew is one install route. OpenSpec is for the full task loop.

## Known limitations

No native Windows support (WSL untested). Needs git and a POSIX sh. Installing norma needs network access to github.com, or Homebrew. The skill enforces nothing by itself: the guarantees come from norma's git hook, its verification gate and your CI - git commit --no-verify skips the hook unless CI runs the gate. The gate is only as strong as the checks configured in scripts/harness/config.sh. The full loop uses OpenSpec. Not tested in every agent listed.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the norma - one task loop and verification gate, enforced by git skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Norma differ from simply prompting an agent to run tests before committing?

A prompt is a request the agent may forget. norma installs a git pre-commit hook that refuses a commit unless the repository's verification gate passed after the last edit to the staged files. The gate runs the project's own checks and the tests named for the change. The hook can still be skipped with git commit --no-verify, so run the same gate in CI to close that gap. The skill sets norma up and drives it; the guarantee comes from the hook and CI, not from the skill.

### What are the technical requirements and agent compatibility for this skill?

Git and a POSIX sh on macOS or Linux; native Windows is not supported. The agent must be able to run shell commands and read and write files. Installing norma needs network access to github.com, or Homebrew. The full task loop also uses OpenSpec. Written for Claude Code, Codex and OpenCode; not tested in every agent listed.

### How does the skill handle troubleshooting and environment drift?

It reads the refusal norma printed and maps it to its cause and fix: a commit on the default branch, a missing or stale verification, a docs-only run with code staged, a broken config. It never fixes a refusal by bypassing it. norma doctor reports what is missing or misconfigured and changes nothing; to see whether a repository is behind, compare scripts/harness/VERSION with norma version.

### Can this skill be used to manage workflows for human developers, or is it strictly for AI agents?

Both. The skill is for agents, but what it installs is plain git: the pre-commit hook and the verification gate apply to every commit, whoever or whatever makes it, and the procedures are Markdown files a person can read and follow. Merging through norma's land script is opt-in, per project.

### What specific components are installed into my repository when I use this skill?

Nothing until you approve it. With your yes, norma install adds the verification gate, the run context and the land script under scripts/harness/, the pre-commit hook in .githooks/, the task procedures in .agents/skills/, a project-owned config.sh and docs/harness/ templates, an AGENTS.md section, a few .gitignore lines, and sets git config core.hooksPath. Run norma install --dry-run first to see the exact plan.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
