
Verify contract
Lets an agent author a per-repo verification contract for scoped post-turn checks
Verify contract is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 7
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Verify contract
This skill guides the agent through writing a verification contract for the repository it is working in. The contract is a short JSON file that names the commands proving a change is done, such as typecheck, lint, test and format, and it is read by the Stop-hook gate and other delivery skills so they do not hardcode any repo's commands.
The workflow has the agent read the repo's existing scripts, build files and CI config, scope each check to changed files or directories with placeholders, and propose an optional block describing how to start a local app. The user reviews the proposed JSON and exact commands before anything is written, and the agent then proves each check passes on a correct change and fails on a broken one.
It calls an external ai-verify command and expects the setup to be installed. Contracts are stored outside the target repo, and a repo-owned contract is only used after explicit trust.
When your agent uses it
Author the verification contract for the repo you are working in, so the Stop-hook gate and every delivery skill know which scoped checks prove a change is done. Invoke when a task starts in a repo with no contract, when the user says "set up verification", "verify contract", or when a check command in the contract is wrong or missing.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (6 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the ai-essentials plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add tonyghiani/ai-essentials
/plugin install ai-essentials@ai-essentialsOr copy only this skill to ~/.claude/skills/verify-contract:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/verify-contract &&
cp -R "$tmp/skills/verify-contract" ~/.claude/skills/verify-contract &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/verify-contract inside it instead.
Copy the skill folder to ~/.agents/skills/verify-contract to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/verify-contract &&
cp -R "$tmp/skills/verify-contract" ~/.agents/skills/verify-contract &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/verify-contract inside it instead.
Copy the skill folder to ~/.cursor/skills/verify-contract to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/verify-contract &&
cp -R "$tmp/skills/verify-contract" ~/.cursor/skills/verify-contract &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/verify-contract inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/tonyghiani/ai-essentials.git --path skills/verify-contractOr copy the folder to ~/.gemini/skills/verify-contract yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/verify-contract:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/verify-contract &&
cp -R "$tmp/skills/verify-contract" ~/.copilot/skills/verify-contract &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/verify-contract inside it instead.
Get the folder:
git clone --depth 1 https://github.com/tonyghiani/ai-essentials.gitThen copy ai-essentials/skills/verify-contract into your agent's skills folder as verify-contract. Agents that support SKILL.md read one folder per skill.
What it does
- Repo command discovery
- Finds typecheck, lint, test and format commands from package files, Makefiles, CI config and docs.
- Scoped check placeholders
- Maps changed files and directories into check commands so each run stays fast.
- User-approved drafting
- Shows the proposed contract and commands to the user and waits for approval before writing.
- Two-direction proof
- Verifies each check passes on a correct change and fails on a deliberately broken one.
- Optional app block
- Proposes how to start, reach and health-check a local app when the repo has one.
Good for
- Set up verification commands for a new repository
- Fix a check command in an existing verification contract that is wrong or missing
- Scope the lint and test checks so they run only on changed files
- Add a local app start command and health check for a web project
Verify contract FAQ
When does Verify contract trigger?
When a task starts in a repo with no contract, when the user says "set up verification" or "verify contract", or when a check command in the contract is wrong or missing.
Does Verify contract write into the target repository?
No. The setup stores contracts outside the repo, and the path is printed by ai-verify --where.
Does Verify contract run commands without asking?
No. The proposed JSON and exact commands are shown to the user, and the skill waits for approval before writing.
What does Verify contract need installed?
It calls the ai-verify command. If that command is not found, the skill tells the user the setup is not installed and stops.
How do I install Verify contract in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/verify-contract to use it in all your projects, or to .claude/skills/verify-contract in one project. Or install the ai-essentials plugin, which includes it: /plugin marketplace add tonyghiani/ai-essentials, then /plugin install ai-essentials@ai-essentials.
Does Verify contract run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Verify contract?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Verify contract?
The closest alternatives to Verify contract are Create verification skill, Principle prove it works, Verification, Principle build the lever and Create formal verification skill.
Where this comes from
- Description: from the skill's own SKILL.md.
More from tonyghiani/ai-essentials

Lets an agent read your GitHub queue at day's end and draft a morning triage report
- Open source
- 7 GitHub stars
- Developer tools

Finds untranslated UI strings and i18n patterns that break translation in code
- Open source
- 7 GitHub stars
- Developer tools

Writes pull request descriptions from a fixed summary, screenshots and testing template
- Open source
- 7 GitHub stars
- Developer tools

Guides an agent through resolving merge conflicts by intent, then verifying and pushing
- Open source
- 7 GitHub stars
- Developer tools

Triages PR review comments, then implements, replies to and resolves them
- Open source
- 7 GitHub stars
- Developer tools

Guides the agent through a test-first loop: failing test, then minimal implementation
- Open source
- 7 GitHub stars
- Developer tools



