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 skills add magic3007/dotfiles --skill repo-industrializegit clone --depth 1 https://github.com/magic3007/dotfilesWrote 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/magic3007/dotfiles/repo-industrialize)<a href="https://agentmods.dev/skills/magic3007/dotfiles/repo-industrialize"><img src="https://agentmods.dev/badge/skills/magic3007/dotfiles/repo-industrialize/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.
<a href="https://agentmods.dev/skills/magic3007/dotfiles/repo-industrialize"><img src="https://agentmods.dev/badge/skills/magic3007/dotfiles/repo-industrialize.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00169 | $0.03221 |
| Opus 5.5 | $0.00068 | $0.01288 |
| Sonnet 5.5 | $0.00034 | $0.00644 |
| Haiku 4.5 | $0.00017 | $0.00322 |
Grade A, and why
repo-industrialize 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 16d 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.
How it starts
The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repo Industrialize
把一个长期有人用、但积累了重复文档、死代码和口头约定的仓库,整理成"新人不靠 agent 也能改对"的状态。
核心判断:约定只写进文档就等于没有。文档会漂、会被绕过、不会在改坏时报警。所以本 skill 的产物重心不是更多文字,而是一组会失败的检查,加上一份不复述代码的索引型规范。
产物层级(先定这个,后面每一步都靠它防止双真相源)
| 层 | 位置 | 只放什么 | 禁止 |
|---|---|---|---|
| 强制层 | .repo-std/checks/ + CI |
能跑、能失败的检查 | 无法执行的建议 |
| 台账层 | .repo-std/corrections.yml |
每条纠正 → 哪个检查守它 | 以"写进文档了"结案 |
| 规范层 | docs/REPO_GUIDE.md |
流程、spec、决策理由、改动路径 | 复述代码里已有的事实 |
| 索引层 | AGENTS.md、本地 skill |
指针与命令 | 规范正文的第二份副本 |
同一事实只在一层出现。规范层要陈述代码事实时,写路径指过去,不抄内容。
适用与不适用
适用:有真实历史、有人继续维护、已经出现"同一件事两种说法"的仓库。 不适用:一次性脚本、临时实验目录、vendored 的第三方源码树(只管边界,不整改内部)。
按规模裁剪,不要对小仓库做大阵仗:百来个文件的仓库,阶段 1 与 2 合成一轮(盘点报告直接读、不落盘),检查先做三五条最常犯的;上千文件的仓库按 references/edge-cases.md 分片,并且先把闸门接上再整改,防止一边整理一边回潮。阶段 5 的纠正台账在任何规模下都不省——它是这套流程唯一不可替代的部分。
阶段 0:建立绿基线
没有可复现的绿状态,后面每一次删除都是赌博。
- 输入:仓库根目录、README/CI 配置里的构建与测试命令。
- 操作:找出构建、测试、lint 的真实命令并实跑一次;记录耗时与失败项;确认工作区干净(
git status)、确认当前分支与远端关系。命令跑不起来时,先修到能跑,这本身就是第一批整改。 - 产物:一行可复制的基线命令清单(后面写进
docs/REPO_GUIDE.md的"验证"节);基线运行结果。 - 验收:基线命令全绿,或已明确记录"原本就红"的用例清单;工作区干净。
阶段 1:仓库现状盘点
-
输入:阶段 0 的干净工作区。
-
操作:
python <skill-dir>/scripts/inventory.py --root . \ --out .tmp/docs/repo-inventory.md --json .tmp/docs/repo-inventory.json脚本给出:分类统计、体量离群、内容完全重复、同名不同路径、文档标题跨文件重复、悬挂引用、无人引用文件、陈旧标记。它只产生线索,不产生结论。把线索逐条读完,并补上脚本看不到的东西:谁在用这个仓库、哪些目录是生成物、哪些是 vendored。
-
产物:
.tmp/docs/repo-inventory.md(临时工作文档,整理结束即删)。 -
验收:报告里每个非空小节都被人读过,并在清理计划里有对应裁决或显式"保留"。
阶段 2:过时内容清理与单一真相源
- 输入:盘点报告。
- 操作:对每个候选走 references/ssot.md 的三问判据(谁在引用、哪份更新、删掉会不会有人发现)。文档冲突时按该文件的仲裁顺序定唯一真相源,其余改成指针或删除。删除走独立提交,与功能改动分开,便于回滚。
- 产物:一组"只删不改"的提交;被选定的真相源文件;指针替换后的文档。
- 验收:阶段 0 的基线命令仍全绿;
inventory.py重跑后重复项、悬挂引用归零或每项有记录的豁免理由。
阶段 3:工业级代码整改
- 输入:清理后的代码树。
- 操作:按 references/quality-bar.md 逐条对照:错误处理、边界与失败路径、命名、模块职责与体量、依赖收敛、测试是否覆盖会出事的分支。先修"会让人改错"的结构问题,再修风格问题。每修一类问题立刻问:这类问题能不能变成检查?能就进阶段 5。
- 产物:结构整改提交(每个提交单一关切、可独立回滚、可编译可运行)。
- 验收:基线命令全绿;新增或修改的行为有对应测试;没有留下 TODO 占位、注释掉的旧实现、被绕过的兼容分支。
What ships with it
14 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.
- assets/templates/check_example.py 1.8 KB runs code
- assets/templates/corrections.yml 1.3 KB
- assets/templates/REPO_GUIDE.md 2.7 KB
- assets/templates/repo-skill.md 1.5 KB
- evals/evals.json 2.2 KB
- evals/fixture.py 3.0 KB runs code
- evals/grade.py 6.9 KB runs code
- references/correction-to-check.md 5.4 KB
- references/edge-cases.md 3.5 KB
- references/quality-bar.md 4.0 KB
- references/ssot.md 3.5 KB
- scripts/corrections.py 11 KB runs code
- scripts/inventory.py 13 KB runs code
- tests/test_scripts.py 4.9 KB runs code
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.
- 16d ago First seen · 150 lines · 169 tokens per session scan A 526b01661b78
repo-industrialize is a skill published in the GitHub repository magic3007/dotfiles (11 stars, last pushed 5d ago), licensed MIT. It adds 169 tokens to every session and 3,221 once invoked, about $0.0007 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-11-14.
repo-industrialize compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| repo-industrializemagic3007/dotfiles | Skill | 11 | 5d ago | MIT | A | 169 | Claude Code, Codex |
| assess-qualityurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 120 | Claude Code |
| merge-readyurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 208 | Claude Code |
| check-projecturmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 82 | Claude Code |
| review-diffurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 170 | Claude Code |
| sync-ecosystemurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 101 | Claude Code |
| review-designurmzd/dotfiles | Skill | 6 | 4d ago | Apache-2.0 | A | 102 | Claude Code |