mason-skills: Instructions file for Codex

AGENTS.md

mason-skills AGENTS.md is an instructions file for Codex, OpenCode from hxy91819/mason-skills. It costs 1,732 tokens per session, scanned A, original, MIT.

Repository rules for creating, moving, or changing skills for coding agents. They explain how to classify a skill, decide whether it runs automatically or only when requested, and update its configuration.

In plain words
What is it for?
Use them when developing or migrating skills, editing their configuration, or deciding whether a skill should be automatic or explicitly invoked.
Why use it?
They prevent skills from being triggered inappropriately and require the project’s invocation policy to be made clear.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: $skill-name invocation.

This is hxy91819/mason-skills's own configuration. It tells Codex and OpenCode how to work on mason-skills itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mason-skills configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hxy91819/mason-skills. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hxy91819/mason-skills/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/hxy91819/mason-skills

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mason-skills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hxy91819/mason-skills/agents-md/github.svg)](https://agentmods.dev/instructions/hxy91819/mason-skills/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/hxy91819/mason-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/hxy91819/mason-skills/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mason-skills AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hxy91819/mason-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/hxy91819/mason-skills/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,732 This file is loaded in full into every session.
When invoked 1,732 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01732 $0.01732
Opus 5.5 $0.00693 $0.00693
Sonnet 5.5 $0.00346 $0.00346
Haiku 4.5 $0.00173 $0.00173

Measured 1mo ago against content hash c8592fc52c30, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mason-skills AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository Agent Rules

Skill invocation policy

修改 Skill 时先读取 skill-authoring-gate。按用户维护偏好,新技能默认手动;只有当前任务中 Agent 必须自行选用的能力,或已启动流程确实依赖的自动下游,才开放自动发现并说明调用上下文。

不以步骤数、审批或写入分支直接分类;DB/TAPD 查询等能力不能因包含鉴权流程而误设为手动。保留未要求调整的既有策略,配置一致性与执行授权按门禁检查。

Skill 清单维护

config/skill-symlinks.yaml 是本仓库推荐 user-scope 软链的单一事实源:记录哪些 skill 推荐软链到全局(~/.agents/skills)。外部项目(如 mattpocock-skills)经 sources: 按项目名登记,条目加 source: 指向项目;项目位置按 $SKILL_SOURCE_<NAME>_DIR > $SKILL_SOURCES_DIR/<项目名> > 本仓库同级目录解析,清单里绝不写机器绝对路径。其他电脑拉取本仓库后,依据它即可复现同一套 skill 配置,无需口口相传。

  • 在 common-skills/ 新增 skill 且用户要求软链到 user scope 时,必须同步登记清单: python3 common-skills/skill-manifest-sync/scripts/sync_skill_symlinks.py --mode register --skill <name> [--note "..."]
  • 登记外部项目 skill 用 --mode register --source <项目名> --skill <name>;项目须已在 sources: 声明(缺省自动补一条)。
  • 删除或重命名 skill 时用 --mode remove --skill <name> 同步清单,避免留下悬空条目。
  • 交付涉及 skill 增删的改动前,跑一次 --mode check 确认清单与本机实际软链一致。
  • 本机同步入口是 $skill-manifest-sync:--mode check 预览、--mode apply 执行。apply 对「指向本仓库或已声明来源项目但不在清单里」的软链逐个提示删除;用户明确说保留时写入本机白名单 ~/.agents/skill-sync-whitelist.yaml。白名单属于本机环境偏好,不提交 Git,也不得加进仓库的 .gitignore 之外的任何清单文件。
  • 脚本只管理直接指向本仓库或已声明来源项目的软链:真实目录和经其他工作区中转的链接一律不碰,冲突只报告。

非开源 Skill

有些 skill 含内部账号映射、内网系统信息等明显不适合开源的内容(如 tccli 账号选择器)。这类 skill:

  • 不得提交到本仓库或推送到远程;发现已落在 common-skills/ 时,交付前移出。
  • 直接以真实目录放在 ~/.agents/skills/<name>/:触发行为与软链版一致,且天然在仓库、清单(config/skill-symlinks.yaml)和 git add -A 之外。
  • 分类与触发策略仍按「Skill invocation policy」执行;若发现此类内容已进入 Git 历史,停止并报告用户,不得自行改写历史。

复杂 Skill 的可观测设计

新建或大改难以观测的 skill 时,必须按本仓库标准内置可观测设计。难以观测的判定:调用外部引擎/子进程、长时运行且内部有重试/fallback 状态迁移、输出是建议性结果且依赖人工裁决、或失败难以事后定位。参考实现:droid-config 的 scripts/droid_config_audit.py、autoreview 的 review history(--history-summary)。

标准组件(六项,全部落在已验证的两个参考实现上)。例外:当外部系统已经持久化同等事实(如 BB 线程记录)时,可以不建独立账本,但必须在 SKILL.md 写明用什么命令回看以及剩余缺口:

  1. 单一事实源:本地、Git-ignored 的运行历史缓存,只由脚本维护,不用手改;存放在被审仓库或用户主目录之外,永不提交。
  2. 最小事实:只记复盘必需字段(engine/model/耗时/outcome/稳定 id);prompt、正文、diff、日志、密钥一律不入库。
  3. 决策回环:主 Agent 的裁决(接受/拒绝等)用稳定 id 回写,使结果质量可度量;重复回写同一 id 是覆盖而非追加。
  4. 聚合复盘:提供只读聚合命令,输出按固定维度的统计与确定性复盘 hook(如低接受率、高 fallback 率),复盘基于明确的分子/分母。
  5. 保留上限与折算:滚动窗口 + 固定维度 rollup,防止无限增长;live 窗口与 rollup 不得重复计数。
  6. 旁路失败:记录失败只警告、绝不改变主流程结果;self-test 必须覆盖记账语义(滚动、覆盖、双计、未知 id 拒绝)。

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -3 lines · -83 tokens per session c8592fc52c30
  2. 1mo ago Changed · -14 lines · -504 tokens per session 9f9613e38838
  3. 1mo ago Changed · +36 tokens per session 4963fb8e52f7
  4. 1mo ago Changed · +47 tokens per session ab3d4ca48095
  5. 2mo ago Changed · +7 tokens per session c2e21aec7036
  6. 2mo ago Changed · +1 lines · +128 tokens per session 062952f8a058
  7. 2mo ago Changed · +29 tokens per session b5b5702037ae
  8. 2mo ago Changed · +43 lines · +1,262 tokens per session 17de8928f629
  9. 2mo ago First seen · 31 lines · 810 tokens per session scan A 449bd8e1e19c

Subscribe to this mod's changes

mason-skills AGENTS.md is an instructions file published in the GitHub repository hxy91819/mason-skills (3 stars, last pushed today), licensed MIT. It adds 1,732 tokens to every session, about $0.0069 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

mason-skills AGENTS.md compared with instructions from other repositories

mason-skills AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mason-skills AGENTS.mdhxy91819/mason-skillsInstructions file3todayMITA1,732Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot