repo-refresh SKILL.md skillA

repo-refresh from skymanbp/cc-enforcer is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add skymanbp/cc-enforcer/repo-refresh@git:20261002.89de553

Pins git:20261002.89de553 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
skymanbp/cc-enforcer
Path
skills/repo-refresh/SKILL.md
Versions recorded
3
Latest version
git:20261002.89de553, committed Oct 2, 2026
First version recorded
Aug 7, 2026
Size
7,079 bytes
Repository stars
6
License
MIT

全库更新扫描器。在用户要求"全库更新"、"扫一遍仓库"、"检查文档是否过时"、"repo refresh"、"stale scan"、"audit the repo"、"哪些文档跟代码对不上"、"清理冗余"、"找漂移" 等语境下自动唤起。对整个仓库(md 文档 + 代码一视同仁)做系统式扫描,找出并修复"陈旧、过时、冗余、错误、漂移"五类内容;每条 finding 必须带 file:line 证据。它是 rules/12-repo-wide-sync.md 主动半区的执行入口。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# repo-refresh — 全库更新扫描

> 你(主代理)已被本 skill 接管。这是 [`rules/12-repo-wide-sync.md`](rules/12-repo-wide-sync.md)
> **主动半区**的强制执行入口:对整个仓库做一次"陈旧 / 过时 / 冗余 / 错误 / 漂移"
> 五类缺陷的系统式清扫。规则 01(验证)、04(完整阅读)、05(引用)、06(收敛)
> 全程适用:**每条 finding 必须有 `file:line` 证据;每次修复必须走收敛验证**。

## 五类缺陷(扫描目标的定义)

| 类别 | 定义 | 典型证据形态 |
|---|---|---|
| **陈旧 (stale)** | 引用了已不存在的文件 / 符号 / 路径 / 命令;早已完成或废弃却仍挂着的 TODO / FIXME;针对已移除工作流的操作说明 | 引用处 `file:line` + 被引对象不存在的证明(`ls` / Grep 0 命中) |
| **过时 (outdated)** | 在某个历史版本为真、在 HEAD 已为假的数量、版本号、日期、行为描述、结构树 | 文档陈述 `file:line` + 当前权威源的相反证据 |
| **冗余 (redundant)** | 同一事实在多处重复且无单一源标注;死代码 / 无引用的导出;被新文档取代却未删除的旧文档 | 各重复处 `file:line` + 引用图(谁还在用) |
| **错误 (wrong)** | 与当前代码直接矛盾的断言:错误默认值、错误 CLI 标志、错误 `file:line` 引用、错误示例输出 | 断言处 + 权威源两个 `file:line` 对照 |
| **漂移 (drift)** | 本应互为镜像的成对物已分叉:文档 ↔ 代码、英文骨架 ↔ 翻译、配置 ↔ 消费方、注释 ↔ 实现 | 成对两侧 `file:line` + diff 要点 |

## 强制流程(按顺序,不允许跳步)

### Step 1 · 建立仓库清单与权威源

1. 枚举全部待扫文件(`git ls-files` 或等价;排除 lockfile / 生成物 / vendored)。
2. 确定**权威源清单**:版本号以哪个文件为准?行为以哪层代码为准?结构树以磁盘为准。
   之后所有"过时/错误"判定都以权威源为基准,不做两两互比(一对可以一起漂——
   rule 06 验证 2b)。
3. 向用户报告扫描范围(文件数、目录划分);范围有裁剪必须显式说明裁掉了什么。

### Step 2 · 逐类扫描(五类都要过,不允许只挑好找的)

对每一类:先用 Grep/Glob **定位**候选,再 Read 上下文**确认**(规则 04:
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add skymanbp/cc-enforcer/repo-refresh@sha256:846a89afe80ec77e

The line at the top of this page pins the label git:20261002.89de553, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_3ubxb6joo2kk4diz.svg)](https://markdownregistry.com/a/art_3ubxb6joo2kk4diz)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Aug 7, 2026 and Oct 2, 2026, about one every 28 days.

versioncommittedcommitsizeaudit
git:20261002.89de553 latest2026-10-02 89de553 7,079 BA view · diff
git:20260817.772e8842026-08-17 772e884 7,094 BA view · diff
git:20260807.714c91f2026-08-07 714c91f 6,082 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7079 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

skymanbp/cc-enforcer · 6 stars · license MIT · pushed 2026-11-04 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_3ubxb6joo2kk4diz
GET https://markdownregistry.com/api/v1/resolve?ref=skymanbp/cc-enforcer/repo-refresh
GET https://markdownregistry.com/api/v1/blob/846a89afe80ec77ecbe6e249c46c9c756d30178c7e81264cdf0d4a2552cd1551

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from skymanbp/cc-enforcer

systematic-debug SKILL.md skill
skymanbp/cc-enforcer · skills/systematic-debug/SKILL.md · 在 debug / 修 bug / 异常排查 / "为什么不工作" 等语境下自动唤起。强制 agent 先走完根因分析的 7 问与 5 步骤,禁止直接给出反应式修补。当用户描述:bug、错误、stack trace、异常行为、"为什么 X…
git:20260924.632ab6b · audit A · 6 stars

Every file in skymanbp/cc-enforcer

Browse by kind, by grade A, or by owner.