agent-infra: Skill for Claude Code

.agents/skills/entropy-check/SKILL.md

entropy-check is a skill for Claude Code from fitlab-ai/agent-infra. It costs 65 tokens per session (843 once invoked), scanned A, original, MIT.

A review process for finding accumulated complexity in the agent-infra repository, such as overlapping rules, bloated documentation, or obsolete conventions.

In plain words
What is it for?
Use it before a release or during maintenance to inspect rules, skills, templates, scripts, versions, and compatibility notes, then produce a structured report.
Why use it?
It gives maintainers evidence about where the repository has become harder to understand or maintain without automatically changing files.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is fitlab-ai/agent-infra's own configuration. It tells Claude Code how to work on agent-infra 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 agent-infra configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fitlab-ai/agent-infra. 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/fitlab-ai/agent-infra/main/.agents/skills/entropy-check/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/fitlab-ai/agent-infra

Made for: Claude Code.

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 entropy-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/entropy-check/github.svg)](https://agentmods.dev/skills/fitlab-ai/agent-infra/entropy-check)
Your own site
<a href="https://agentmods.dev/skills/fitlab-ai/agent-infra/entropy-check"><img src="https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/entropy-check/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 entropy-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/fitlab-ai/agent-infra/entropy-check"><img src="https://agentmods.dev/badge/skills/fitlab-ai/agent-infra/entropy-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 843 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00065 $0.00843
Opus 5 $0.00032 $0.00421
Sonnet 5 $0.00013 $0.00169
Haiku 4.5 $0.00006 $0.00084

Measured 10d ago against content hash 49831de8feda, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

entropy-check 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 10d 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/skills/entropy-check/SKILL.md · 89 lines

What it actually says

熵减审查

行为边界 / 关键规则

  • 本技能是 agent-infra 仓库本地维护技能,不属于 update-agent-infra 分发模板。
  • 本技能不修改业务代码、规则、skill 或文档;只创建一份审查报告。
  • 报告写入 .agents/workspace/logs/entropy-check/entropy-check-YYYYMMDD-HHMMSS.md
  • 发现项只给出证据与建议,不自动创建任务、不自动改文件。
  • 不确定的边界选择写入报告的 ## 人工裁决待办,不中途向用户提问。

执行步骤

1. 创建报告目录并做状态核对

创建输出目录:

mkdir -p .agents/workspace/logs/entropy-check

运行并记录以下命令,原文写入报告 ## 状态核对

git status -s
git branch --show-current
date "+%Y-%m-%d %H:%M:%S%z" | sed 's/\([+-][0-9][0-9]\)\([0-9][0-9]\)$/\1:\2/'

2. 读取审查参考

执行审查前先读取:

  • reference/checklist.md
  • reference/report-template.md

3. 收集证据

按 checklist 收集证据,至少覆盖:

  • .agents/rules/issue-sync.md
  • .agents/rules/issue-pr-commands.md
  • .agents/rules/issue-fields.md
  • .agents/rules/pr-sync.md
  • .agents/rules/pr-checks-commands.md
  • .agents/rules/create-issue.md
  • .agents/skills/*/SKILL.md
  • templates/.agents/skills/**
  • 仓库源码、规则、Skill 与模板中的 TODO(compat)
  • package.json
  • .agents/.airc.json
  • 版本发布相关文档与脚本

使用 rgfindwc -lgit status 等可复现命令收集证据,并把关键命令原文写入报告。

4. 执行语义审查

根据 reference/checklist.md 逐项判断是否存在软熵增:

  • 规则职责重叠或边界漂移
  • SKILL.md 膨胀且应拆分到 reference/
  • over-design、死约定或重复规则
  • 临时兼容 TODO 缺少删除对象、可验证条件,或删除条件已经满足
  • bilingual 命名约定混用且缺少边界说明
  • version 号散落导致漂移风险

每条发现必须包含证据、影响、建议和严重度。只有发版前必须处理的问题才标记为 release-blocking

5. 写入报告

reference/report-template.md 创建报告:

report=".agents/workspace/logs/entropy-check/entropy-check-$(date "+%Y%m%d-%H%M%S").md"

报告必须保留结构化章节,便于发版流程引用报告路径并让维护者裁定后续任务。

6. 输出结论

输出报告路径和发现统计。若存在 release-blocking 发现,明确提示当前发版流程应先处理或由维护者裁定后继续。

Files

What ships with it

2 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. 10d ago First seen · 89 lines · 65 tokens per session scan A 49831de8feda

Subscribe to this mod's changes

entropy-check is a skill published in the GitHub repository fitlab-ai/agent-infra (83 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 843 once invoked, about $0.0003 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-30.