nextclaw: Skill for Claude Code

.agents/wiki/skills/process/agent-instructions-governance/SKILL.md

agent-instructions-governance is a skill for Claude Code, Codex from Peiiii/nextclaw. It costs 55 tokens per session (1,028 once invoked), scanned A, original, MIT.

A governance guide for maintaining AI instructions, skills, references, scripts, and project rules.

In plain words
What is it for?
Use it when changing AGENTS.md, commands, skills, references, governance scripts, or the structure of an AI-assisted development system.
Why use it?
It helps prevent conflicting, duplicated, oversized, outdated, or misplaced instructions from shaping agent work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is Peiiii/nextclaw's own configuration. It tells Claude Code and Codex how to work on nextclaw 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 nextclaw configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Peiiii/nextclaw. 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/Peiiii/nextclaw/master/.agents/wiki/skills/process/agent-instructions-governance/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Peiiii/nextclaw

Made for: Claude Code, Codex.

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 agent-instructions-governance

README.md
[![agentmods](https://agentmods.dev/badge/skills/peiiii/nextclaw/agent-instructions-governance/github.svg)](https://agentmods.dev/skills/peiiii/nextclaw/agent-instructions-governance)
Your own site
<a href="https://agentmods.dev/skills/peiiii/nextclaw/agent-instructions-governance"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/agent-instructions-governance/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 agent-instructions-governance

Your own site · 80×15
<a href="https://agentmods.dev/skills/peiiii/nextclaw/agent-instructions-governance"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/agent-instructions-governance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,028 The whole file, excluding the scripts and references it only reads on demand.
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.00055 $0.01028
Opus 5.5 $0.00022 $0.00411
Sonnet 5.5 $0.00011 $0.00206
Haiku 4.5 $0.00006 $0.00103

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

Security

Grade A, and why

agent-instructions-governance 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/wiki/skills/process/agent-instructions-governance/SKILL.md · 49 lines

What it actually says

AI 指令系统治理

目标

保持规则可靠、单一 owner、渐进加载和低 token 成本。修改前先对齐当前项目目标、检查工作区和规则体积,并识别真正根因是缺失、重复、过宽、过长、过期还是放错层。外部写入授权仍以用户和当前项目的明确合同为准。

分层

  1. AGENTS.md:每轮必须知道的安全与高层边界。
  2. .agents/skills/*/SKILL.md:需要参与初始发现的工作流、阶段或独立任务入口。
  3. skill references/:仅由一个入口拥有、在子场景成立时读取的合同。
  4. .agents/wiki/skills/<group>/<skill>/SKILL.md:按领域分组、被上层显式加载的完整下级 Skill;不参与初始发现。
  5. .agents/wiki/knowledge:事实、背景、案例与权威来源索引;不拥有流程或授权。
  6. scripts/ / tests:高信号、低误报、可确定执行的检查。
  7. docs/:人类设计、计划和历史;除非入口明确链接,不承担自动硬规则。

每次触发 skill 都必需的内容保留在入口;单 owner 条件内容进 references;两个以上真实入口共享同一独立合同、或能力需要保留可复用 Skill 身份时进入分组 Wiki Skill。不要用 Wiki 隐藏默认必读合同,也不要把只被一个入口使用的材料升级为共享库。

修改顺序

  1. 区分个案、重复模式和稳定规则;沉淀层级不得高于证据。找 owner 和相邻规则,优先删除、合并、收窄或移动。
  2. 每个稳定工作域只有一个 workflow root;普通开发由唯一 lifecycle owner 管理。阶段不直接调用其它阶段或回链,独立 skill 不回链上游。
  3. description 只描述一个稳定意图,不堆“实现/方案/深入/最佳实践”等泛词抢占触发。
  4. 一个判断分支最多要求一个直接下游;阶段 Skill、下级 Wiki Skill 与知识都只在当前节点加载。
  5. 规则影响脚本或命令时同步更新;脚本变化也同步 owning 文本。
  6. 核心阶段使用统一的 development-<stage> 命名;产品、仓库命令或发布合同的 Skill 保留项目自己的命名空间。
  7. 大型重构写设计并在同批迭代记录中留痕,小措辞不建日志。

条件方法

  • 新增、修订、合并或退役意图宏时,读取意图宏维护;调用只读命中定义,不加载维护合同。
  • 用户明确要求优化 AI 驱动开发体系,或有效反馈暴露重复、系统性、高影响机制缺口时,读取开发体系演进闭环。
  • 修改、提升、下沉、合并或删除规则资产,或者要标记/复核模型能力补丁时,读取规则资产生命周期。
  • 任务明确涉及常驻上下文膨胀、渐进加载、重复读取或 Token 成本时,读取上下文与 Token 治理。
  • 新增、删除、合并、分组或下沉 Skill,或改变 workflow/阶段/独立入口拓扑时,读取Skill 拓扑与创建门。

普通局部措辞修正不机械加载多份参考;每次只读取当前判断确实需要的方法,不批量预读。

检查

完成前运行项目已有的 Skill 渐进加载与链接检查;修改本框架上游时运行 npm run check,确认 manifest、frontmatter、相对链接和项目身份边界。再按改动风险运行项目治理检查。纯指令 Markdown 不运行产品 build/tsc/冒烟。

最终报告 AGENTS、skill 数、description、discovery 字符和入口体积变化,说明 Wiki、command/script/baseline 是否适用,以及设计/迭代落点。

Files

What ships with it

5 files 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.

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 First seen · 49 lines · 55 tokens per session scan A 13c239fe3692

Subscribe to this mod's changes

agent-instructions-governance is a skill published in the GitHub repository Peiiii/nextclaw (263 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 1,028 once invoked, about $0.0002 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-09-25.

Related

agent-instructions-governance compared with skills from other repositories

agent-instructions-governance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-instructions-governancePeiiii/nextclawSkill263yesterdayMITA55Claude Code, Codex
ha-skill-creatorshiwenwen/hope-agentSkill1.9kyesterdayMITA106Claude Code
ha-browsershiwenwen/hope-agentSkill1.9kyesterdayMITA140Claude Code
ha-logsshiwenwen/hope-agentSkill1.9kyesterdayMITA183Claude Code, Codex
ha-pet-importshiwenwen/hope-agentSkill1.9kyesterdayMITA109Codex
ha-skill-installershiwenwen/hope-agentSkill1.9kyesterdayMITA82Claude Code, Codex
email-draftshiwenwen/hope-agentSkill1.9kyesterdayMITA46Claude Code, Codex