
AI编码代理的共享护栏、技能和自备脚本
概览
共享护栏、技能和自控脚本,用于在Codex和Claude上运行严肃的代理工作流。 这个仓库是以下内容的真实来源:- 一个全局同步 AGENTS.md 两个工具 - 共享命令/提示 - 按需重复工作流程技能 - 仓库引导和同步脚本 - docs/agent-philosophy.md 中的主观代理操作模型 当全局提示、技能和仓库文档中出现相同的规则时,代理设置就会显得臃肿。 该仓库保持一个简单的操作模型:- 先读取代码;- 定义并运行真实的验证路径;- 使正确的存储库路径成为最简单的路径;- 防止重要错误再次发生;- 清晰报告重要结果和证明。 如果这个框架有共鸣,可以从 AGENTS.md 和docs/agent-philosophy.md开始。 - 特工们。
概述(AI 翻译)
共享护栏、技能和自控脚本,用于在Codex和Claude上运行严肃的代理工作流。
该仓库是以下数据的真实来源:
- 一个全局同步于两个工具的
AGENTS.md - 共享命令/提示符
- 针对重复工作流程的按需技能
- 仓库引导和同步脚本
- [[T1]中的主张代理操作模型
为什么会有这样的存在
当全局提示、技能和仓库文档中出现相同的规则时,代理设置就会显得臃肿。
该仓库保留了一个简单的操作模型:
- 先阅读代码;
- 定义并运行真实验证路径;
- 使正确的存储库路径成为最简单的路径;
- 防止重要错误再次发生;
- 清晰报告重要结果和证明。
如果这种框架有共鸣,可以从AGENTS.md和docs/agent-philosophy.md开始。
你得到了什么
AGENTS.md:一个全局护栏文件,与Codex和Claude都关联skills/:可重用的工作流程,用于验证、仓库设置、防止重复、审查及专业工作commands/:可在两个生态系统中运行的共享提示文件- '脚本/同步。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
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.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
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 Claudeskills/: reusable workflows for verification, repository setup, recurrence prevention, review, and specialized workcommands/: shared prompt files that work in both ecosystemshooks/: the poteto-reminder hook for Claude Code and Codexscripts/sync.sh: syncs guardrails, commands, and skills into the right user-level locationsscripts/new-repo.sh: bootstraps a fresh git repo with optional repo-localAGENTS.md/CLAUDE.mdtemplates/: 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 |
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 |
Builds a code-grounded mental model through components, interfaces, and end-to-end steps |
architect |
Designs changes through explicit code ownership, dependency boundaries, data models, and caller interfaces |
explain-report |
Produces focused self-contained HTML reports for important project knowledge, research, code changes, learning, decisions, and accepted findings |
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 |
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add minghinmatthewlam/agent-guards