agent-guards
Shared guardrails, skills, and bootstrap scripts for running serious agent workflows across Codex and Claude.
This repo is the source of truth for:
- one global
AGENTS.md synced to both tools
- shared commands/prompts
- on-demand skills for repeated workflows
- repo bootstrap and sync scripts
- an opinionated agent operating model in
docs/agent-philosophy.md
Why This Exists
Agent setups get bloated when the same rules appear in global prompts, skills, and repository documentation.
This repo keeps one simple operating model:
- read the code first;
- define and run a real verification path;
- make the correct repository path the easiest path;
- prevent important mistakes from recurring;
- report the important result and proof clearly.
If that framing resonates, start with AGENTS.md and docs/agent-philosophy.md.
What You Get
AGENTS.md: one global guardrail file, symlinked to both Codex and Claude
skills/: reusable workflows for verification, repository setup, recurrence prevention, review, and specialized work
commands/: shared prompt files that work in both ecosystems
scripts/sync.sh: syncs guardrails, commands, and skills into the right user-level locations
scripts/new-repo.sh: bootstraps a fresh git repo with optional repo-local AGENTS.md / CLAUDE.md
templates/: repo bootstrap files plus reusable loop contracts for recurring automations
Notable Skills
Core workflow skills:
| Skill | What it does |
|---|
create-verification-skill | Builds and proves a repo-local guide for running and checking the real product |
maintain-verification-skill | Checks that guide against current code and live behavior, then repairs drift |
create-architecture-audit-skill | Builds and proves a repo-local audit of what each crate or package owns, which way dependencies may point, and where the code breaks those rules |
repo-setup | Makes the intended architecture obvious and important violations fail mechanically |
learn-from-mistake | Diagnoses an agent failure, strengthens the owning system, and retries the task |
concisely | Keeps reports concise while surfacing important outcomes, evidence, and project learning |
teach | Wraps pstack teach for code: a system map, then interfaces, schemas, and signature chains, with visuals in an HTML page |
architect | Designs changes through explicit code ownership, dependency boundaries, data models, and caller interfaces |
review-loop | Runs an independent review loop on non-trivial changes before merging until no high-priority findings remain |
Task-specific skills:
| Skill | What it does |
|---|
skills-audit | Audits a repo's skills against practical quality checks |
find-bugs | Finds high-confidence correctness bugs and edge cases in existing code |
find-quick-wins | Finds low-risk, high-confidence fixes an agent can make and prove alone, and optionally ships each as a small PR |
perry-review | Matthew runs /perry-review on an openrouter-web PR he has approved: perry review once CI is green, GraphQL merge-queue enqueue, within quiet hours |
new-task | Aligns on the goal and asks only questions that could change the outcome |
record-screen | Records a UI change as a small MP4 proof: the private virtual display in Linux cloud sessions, only the app window on macOS |
mycomp | Drives the user's own Mac: signed-in Chrome (Gmail, Workspace) through the Anthropic-logged-in Claude CLI, native apps through Codex computer use |
Cross-Tool Sync Model
One source repo fans out to Codex, Claude, Cursor, and Antigravity:
| Source | Codex destination | Claude destination | Cursor destination | Antigravity destination |
|---|
AGENTS.md | ~/.codex/AGENTS.md | ~/.claude/CLAUDE.md | — | ~/.gemini/AGENTS.md |
commands/*.md | ~/.codex/prompts/ | ~/.claude/commands/ | — | — |
skills/*/ | ~/.agents/skills/ | ~/.claude/skills/ | ~/.cursor/skills/ | ~/.gemini/config/skills/ |
Antigravity (agy) does not read ~/.agents/skills/. T3 Code runs agy with a private GEMINI_HOME under ~/.t3/userdata/providers/antigravity/, and on each launch links that profile's config/skills and config/skills.json to ~/.gemini/config/. sync.sh also exposes pstack's teach as pstack-teach (avoiding a name: teach collision with skills/teach) and registers pstack's how, why, and unslop via ~/.gemini/config/skills.json. Start a new agy thread after syncing.
To use these skills in Cursor Cloud Agents, enable Settings → Agents → Context and Tools → Sync Skills for Cloud Agents in Cursor after running the script. Cursor uploads personal skills from ~/.cursor/skills/; it does not upload ~/.agents/skills/. The script copies the full skill folders, including supporting files, into Cursor's sync directory.