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.mdsynced 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
Most agent setups get bloated fast: long global prompts, duplicated config across tools, and too much workflow guidance inline.
This repo takes the opposite approach:
- keep global instruction files lean
- move repeated workflows into skills
- keep product context in the main session
- use parallel agents for research, implementation, cleanup, and review
- optimize for tools + success criteria, not micromanaged step-by-step prompts
If that framing resonates, start with AGENTS.md and docs/agent-philosophy.md.
AGENTS.md: one global guardrail file, symlinked to both Codex and Claudeskills/: reusable workflows like planning, self-test, review loops, CI repair, and iOS release workcommands/: shared prompt files that work in both ecosystemsscripts/sync.sh: syncs guardrails, commands, and skills into the right user-level locationsscripts/new-repo.sh: bootstraps a fresh repo with optional repo-localAGENTS.md/CLAUDE.mdtemplates/repo-agents.md: lightweight pointer template for repo-local instruction files
Core workflow skills:
| Skill | What it does |
|---|---|
orchestrator |
Runs the full clarify -> plan -> implement -> simplify -> review flow with agent teams |
plan-loop |
Hardens plans with parallel review before execution |
review-loop |
Reviews completed changes with multiple agents before shipping |
self-test |
Forces the agent to prove the real surface works before closing |
simplify |
Cleanup pass after implementation to remove unnecessary complexity |
audit-loop |
Read-only investigation with cross-checking and confidence gates |
Task-specific skills:
| Skill | What it does |
|---|---|
fix-ci |
Waits for checks, inspects failures, fixes issues, and loops until CI is green |
ios-dev |
Simulator-first iOS development and debugging workflow |
ios-release |
Preflight-gated TestFlight / App Store release workflow |
mcporter |
Calls MCP tools via CLI without loading server schemas into context |
oracle |
Bundles repo context for second-model consultation |
skills-audit |
Audits a repo's skills against practical quality checks |
One source repo fans out to both ecosystems:
| Source | Codex destination | Claude destination |
|---|---|---|
AGENTS.md |
~/.codex/AGENTS.md |
~/.claude/CLAUDE.md |
commands/*.md |
~/.codex/prompts/ |
~/.claude/commands/ |
skills/*/ |
~/.agents/skills/ |
~/.claude/skills/ |
scripts/sync.sh also:
- validates every
SKILL.mdbefore syncing - skips command sync when a same-name skill exists
- prunes stale agent-guards-managed commands and skills by default
- skips
agent-onlyskills for Claude - installs external skills from
external-skills.jsonwhennpxandjqare available
Prerequisites:
bashrsyncrubyfor./scripts/validate-skills.shjqandnpxif you want external skills installed fromexternal-skills.jsonghif you wantnew-repo.shto create a GitHub repo
git clone https://github.com/minghinmatthewlam/agent-guards.git
cd agent-guards
./scripts/sync.shUseful sync commands:
./scripts/sync.sh --dry-run
./scripts/sync.sh --no-pruneUse the setup wizard:
./scripts/new-repo.sh <repo-name>It is interactive and will:
- create the repo directory
- run
git init - create
.gitignoreanddocs/.gitkeep - create an initial commit
- optionally create and push a GitHub repo with
gh
If you want repo-local pointer files too:
./scripts/new-repo.sh --with-agents <repo-name>--with-agents additionally creates:
AGENTS.mdfromtemplates/repo-agents.mdCLAUDE.mdas a symlink toAGENTS.mdwhen possible, with a copy fallback otherwise
The template currently contains:
Always read the global `AGENTS.md` (synced to `~/.claude/CLAUDE.md` and `~/.codex/AGENTS.md`) before any repo-specific instructions.Source of truth:
- global guardrails:
AGENTS.md - skills:
skills/ - commands:
commands/ - philosophy:
docs/agent-philosophy.md
After changes:
./scripts/validate-skills.sh
./scripts/sync.sh --dry-run
./scripts/sync.sh
git statusagent-guards/
├── AGENTS.md
├── commands/
├── docs/
├── external-skills.json
├── scripts/
├── skills/
└── templates/