Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/ccdawn/codex-skills/briefbound-code-structure-guardnpx skills add CCDawn/codex-skills --skill briefbound-code-structure-guardgit clone --depth 1 https://github.com/CCDawn/codex-skillsWrote 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.
[](https://agentmods.dev/skills/ccdawn/codex-skills/briefbound-code-structure-guard)<a href="https://agentmods.dev/skills/ccdawn/codex-skills/briefbound-code-structure-guard"><img src="https://agentmods.dev/badge/skills/ccdawn/codex-skills/briefbound-code-structure-guard.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00086 | $0.00973 |
| Opus 5 | $0.00043 | $0.00487 |
| Sonnet 5 | $0.00017 | $0.00195 |
| Haiku 4.5 | $0.00009 | $0.00097 |
Grade A, and why
briefbound-code-structure-guard 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 4d 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.
What it actually says
Briefbound 代码结构守卫
目标
防止本轮开发继续制造多职责巨型文件。只提取稳定职责,不为压低行数制造薄包装、转发层或碎片目录。
Briefbound task contract
- Context Boundary: 已对齐结果、当前开发 owner、目标文件、相邻模块、调用方、测试和允许写入范围。
- Output Contract:
STAY / CHECK / SPLIT判断;必要时完成最小职责拆分,并保持公共行为和验证证据。 - Allowed Action: 读取目标、调用方和测试;在授权 scope 内提取代码并验证;不重写模块、改变公共行为或全仓扫描。
- Success Evidence: 目标行为保持,提取单元具有可说明的职责和依赖边界,相关测试/类型/构建检查通过,且没有新增无价值抽象。
- Stop Condition: 行数是唯一信号、文件仍保持单一内聚职责、拆分会扩大用户范围、缺少行为保护,或需要公共 API/架构取舍。
- Route Out: 当前开发 owner、
briefbound-planning、briefbound-pr-review、briefbound-simplification-review、briefbound-development-cleanup、briefbound-router或 BLOCKED。
统一调用契约
- 只处理 Briefbound task contract 范围;不匹配时回
briefbound-router或当前 owner,不接管功能、Bug、性能或普通审查。 - 用户可见内容默认中文,只报结构决策、修改、证据和风险;保留代码、命令、路径、API、skill 名和枚举;Route Out 仅以 Briefbound task contract 为准,末行写
下一步建议: <一个具体动作>。
三档结构闸门
STAY:职责内聚且修改位于同一行为边界。继续开发,不输出结构报告。CHECK:接近项目阈值、修改跨远距离区段或可能形成第二职责。检查 imports/exports、状态所有权、调用方和测试;证据不足即STAY。SPLIT:至少存在两个独立信号,例如多个领域/层/生命周期混在一起、不同部分独立变化或复用、测试与所有权边界可分、反复修改造成导航或合并冲突。由本 skill 完成最小拆分。
优先使用项目规则;没有规则时,函数约 75 行、类/组件约 300 行、源文件约 500 行 只能触发 CHECK,不能单独触发 SPLIT。手写源文件超过约 800 行时优先检查,仍按职责判断。
默认排除 generated、vendor、migration、schema、fixture、快照、声明式数据和明确的单文件产物。
最小拆分
- 读目标、直接调用方和最近测试,只定位本次职责,不扫描全仓排行榜。
- 候选单元须能用一句话说明职责;仍共享大量私有状态时不拆。
- 优先提取完整行为、领域服务、独立组件或适配边界。类型、常量和 helper 只有独立消费者或所有权时才成文件。
- 保持公共 API、导入路径、错误语义和顺序;一次只移动解除当前风险的部分。
- 运行最近行为测试及必要类型/构建检查;纯移动也检查 imports、初始化和 mock/patch 路径。
拆分没有降低耦合、认知负担或未来冲突时,撤销本轮自己的结构修改并保持 STAY。
低噪声约束
- 不默认生成规划文档、结构评分、长度榜、worktree、子 Agent 或严格 TDD。
- 不设统一行数硬门槛;普通 PR 仍由
briefbound-pr-review主责。
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 4d ago First seen · 51 lines · 86 tokens per session scan A 9f7f4398ab95
briefbound-code-structure-guard is a skill published in the GitHub repository CCDawn/codex-skills (4 stars, last pushed 22d ago), licensed MIT. It adds 86 tokens to every session and 973 once invoked, about $0.0004 per session on Opus 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.
Other skills, from other repositories
chinese-documentation
中文文档排版参考——中英文空格、全半角标点、术语保留、链接格式、中文文案排版指北约定。仅在用户显式 /chinese-documentation 时调用,不要根据上下文自动触发。.
chinese-git-workflow
国内 Git 平台配置参考——Gitee、Coding.net、极狐 GitLab、CNB 的 SSH/HTTPS/凭据/CI 接入差异与镜像同步配置。仅在用户显式 /chinese-git-workflow 时调用,不要根据上下文自动触发。.
chinese-code-review
中文 review 沟通参考——话术模板、分级标注(必须修复/建议修改/仅供参考)、国内团队常见反模式应对。仅在用户显式 /chinese-code-review 时调用,不要根据上下文自动触发。.
chinese-commit-conventions
中文 commit 与 changelog 配置参考——Conventional Commits 中文适配、commitlint/husky/commitizen 中文模板、conventional-changelog 中文配置。仅在用户显式 /chinese-commit-conventions 时调用,不要根据上下文自动触发。.
mcp-builder
MCP 服务器构建方法论 — 系统化构建生产级 MCP 工具,让 AI 助手连接外部能力.
systematic-debugging
Skill "systematic-debugging" from jnMetaCode/superpowers-zh, covering 系统化调试, 概述, 铁律, 何时使用 and 四个阶段.