verify-setup
Give a project checks the agent can run itself (tests, build, screenshot), a gate that stops it finishing while they fail, and hooks for three hard rules. Use when someone asks to make their work verifiable, add tests or a verify step, stop the agent saying done too early, or block secrets, force pushes or surprise deploys.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- verify-setup
- description
- Give a project checks the agent can run itself (tests, build, screenshot), a gate that stops it finishing while they fail, and hooks for three hard rules. Use when someone asks to make their work verifiable, add tests or a verify step, stop the agent saying done too early, or block secrets, force pushes or surprise deploys.
03 SKILL.md 正文
Make it verifiable
The agent should prove a change works, not say it does. This pack gives a project four things.
1. Checks it can run
From the project folder:
aios-verify init
It writes, and never overwrites:
.aios/verify.json: the checks, guessed frompackage.json, Python tests or a Makefile. Open it and make eachruncommand right for this project..claude/skills/verify/SKILL.md: a project skill namedverify. Claude Code (2.1.286 or later) runs a project skill with that name right before each commit.REVIEW.md: what a review checks, and who approves by risk..github/pull_request_template.md: What changed, Testing, Risk, How to revert. Then runaios-verify run. Every check must print PASS before you rely on the gate. Add--git-hookto also install a git pre-commit hook, which works for Codex, Cursor and people.
2. The Stop gate
With this plugin enabled, a project that has .aios/verify.json gets a gate: when the agent
tries to finish a turn after changing files, the checks run, and if one fails the agent is
sent back with the failure output. It skips unchanged files, ignores projects without the
file, and gives up after 3 failed attempts on the same files, telling the person the work
is not done. Checks marked "gate": false (such as the screenshot) run only in aios-verify run.
3. Three hard rules as hooks
Always on while the plugin is enabled, in every project:
| Rule | What happens |
|---|---|
| No secrets in commits | git commit is denied if the staged change adds a key, token, private key or .env file |
| No destructive git | force push, reset --hard, clean -f, checkout -- ., branch -D, stash drop and history rewrites are denied |
| Confirm before live production | deploys and publishes (Vercel --prod, npm publish, push to main, Terraform apply and more) ask the person first |
Test any command without running it: aios-verify try "git push --force". |
|
Add the project's own deploy commands as regular expressions in production_commands in .aios/verify.json. |
|
| The hooks act on the agent's Bash tool only. A person can still run anything in their own terminal. |
4. Review in layers
Checks first, then an AI review (module 7's code-reviewer), then a person approving by risk
as REVIEW.md says. Use the pr-ready skill to write the pull request.
Codex and Cursor
aios-verify init --git-hook gives them the same secret scan and checks at commit time.
The Stop gate and the PreToolUse hooks are Claude Code features.
Never
- Never weaken a test to make the gate pass. Fix the code, or say plainly that it fails.
- Never call work done while
aios-verify runfails. - Never print a secret's value; the scanner reports only the file and the kind.
Finish with the result of aios-verify run and one next action. British English.
04 同仓库更多 Skills
your-voice
Help them build THEIR voice skill from their recordings and line edits. Use when they type /your-voice. Never install daniel-voice.
your-ops
Help them componentize THEIR invoice or ops template from a real document they sent. Use when they type /your-ops. Never ship NavAIgate letterhead or KG register facts.
your-brain
Help them start THEIR memory and keep it in step across machines. Use when they type /your-brain. Never install brain-sync or turso-search.
writing-style
Scrub AI slop from prose they are about to ship. Use when they type /writing-style, or when they ask to de-slop a draft. Voice itself is /your-voice — this skill is the editor.
web-scrape
Search the web semantically and pull clean content from pages, including JavaScript-heavy ones. Use whenever you need live web data during a task: finding docs, API references, code examples, articles, papers, or current info (Exa semantic search), or extracting the readable content of a specific URL — especially a JS-rendered, dynamic, or paywalled-by-script page a plain fetch returns empty (Firecrawl). Trigger even when the tools aren't named: "scrape this page", "search the web for", "pull the content from this URL", "find docs/articles about", "extract data from this site", "what does this page say", "research X online", "get me the latest on". Also bundles source clients — keyless Reddit (practitioner sentiment), Academic (OpenAlex papers + Unpaywall free PDFs, citations), Substack (newsletters, long-form), and paid Supadata (YouTube search + multi-platform transcripts) — plus a multi-source deep-research method: reach here for "what do people on Reddit say", "find research papers / citations on", "read this Substack / newsletter", "YouTube transcript", "video transcript", or "do a rigorous deep research pass on X".
transcripts
Pull YouTube, TikTok, Instagram or file transcripts via Supadata. Use when they type /transcripts or paste a video URL and want the words.