simplify SKILL.md skillA

simplify from riot-org/riot is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add riot-org/riot/simplify@git:20260817.d4dfa41

Pins git:20260817.d4dfa41 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
riot-org/riot
Path
crates/riot-kernel/builtin/skills/simplify/SKILL.md
Versions recorded
1
Latest version
git:20260817.d4dfa41, committed Aug 17, 2026
Size
2,077 bytes
Repository stars
22
License
a license file GitHub does not identify

功能跑通之后、交付之前的收尾清理。按复用、质量、效率三张清单过一遍刚改的代码并修掉发现的问题。只碰这次改动的范围,不搞漫游式重构。.

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

# 收尾清理

时机:功能已经工作、验证已经过了。先圈范围:

```bash
git diff --stat        # 这次到底动了哪些文件
```

`[约束]` 只清理**这次改动碰过的**代码。别处的烂代码记下来告诉用户,
不要顺手改——收尾变漫游重构,diff 就没法审了。

## 清单一:复用

- 新写的函数仓库里是不是已经有了?搜同名、同义词、相邻目录的 utils。
  手搓的字符串处理、路径拼接、防抖节流、类型守卫是重灾区。
- 复制粘贴改两行的代码块,统一成一个带参数的。

## 清单二:质量

- **冗余状态**:能从现有状态推导的值不要再存一份——存两份就要同步
  两份,忘了同步就是 bug。
- **参数蔓延**:给函数加到第 5、6 个参数时,该重构签名了。
- **字符串当类型用**:仓库里已有常量、枚举、union 的地方不要写裸
  字符串。
- **废话注释**:解释「代码做了什么」的删掉(命名已经说了);叙述
  本次改动的删掉(那是 commit message 的事)。只留「为什么这么做」
  和代码表达不了的约束。
- **只为这次改动服务的兼容垫片**:没人用的旧签名、多余的重导出、
  「以防万一」的分支。

## 清单三:效率

- 重复计算、循环里的重复 IO、N+1 查询;
- 相互独立的异步操作在串行等待(能并发的并发);
- 无界增长:只进不出的缓存、数组、事件监听器;
- 读整个文件只为用一小段、拉全量列表只为过滤出一条。

## 修的时候

- 一次一类,每改完一批跑一次测试——清理**不该改变行为**,测试是
  唯一的证明。
- 发现不值得修的就跳过并说一句为什么(比如要大动干戈)。清单是
  工具,不是任务。

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add riot-org/riot/simplify@sha256:cbb772316318f86e

The line at the top of this page pins the label git:20260817.d4dfa41, 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_brmhkh3t3hqiy2fj.svg)](https://markdownregistry.com/a/art_brmhkh3t3hqiy2fj)

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

Versions

The registry has recorded 1 version of this file, committed on Aug 17, 2026.

versioncommittedcommitsizeaudit
git:20260817.d4dfa41 latest2026-08-17 d4dfa41 2,077 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 (2077 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

riot-org/riot · 22 stars · license a license file GitHub does not identify · pushed 2026-11-05 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_brmhkh3t3hqiy2fj
GET https://markdownregistry.com/api/v1/resolve?ref=riot-org/riot/simplify
GET https://markdownregistry.com/api/v1/blob/cbb772316318f86e58b7112a2c97631b07321d6943d6982a5cbc6b396fae1004

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 riot-org/riot

add-command SKILL.md skill
riot-org/riot · .riot/skills/add-command/SKILL.md · 给前端加一个 Tauri 命令时用。要改五处,漏了其中三处只表现为运行时「command not found」;权限文件还有个先后顺序的坑会让 build.rs 直接 panic。
git:20260817.d00a470 · audit A · 22 stars
add-tool SKILL.md skill
riot-org/riot · .riot/skills/add-tool/SKILL.md · 给 Riot 加一个模型能调的工具时用。Tool trait 的必答项、fail-closed 默认值的判据、注册位置、以及几条写错了不报错只是行为悄悄降级的规则。
git:20261011.281dcd7 · audit A · 22 stars
commit-batch SKILL.md skill
riot-org/riot · .riot/skills/commit-batch/SKILL.md · 工作区堆了多个不相关主题的改动、要整理成提交时用。按主题切分而不是拆成一堆小提交,并照这个仓库的消息风格写。
git:20260817.d00a470 · audit A · 22 stars
mutate SKILL.md skill
riot-org/riot · .riot/skills/mutate/SKILL.md · 动过权限决策链、Bash 分析、路径围栏、安全检查、文件工具或进程执行器之后用。跑变异测试,并正确解读存活的变异。
git:20260817.d00a470 · audit A · 22 stars
protocol-change SKILL.md skill
riot-org/riot · .riot/skills/protocol-change/SKILL.md · 改了 crates/riot-protocol 里的类型之后用。重新生成绑定,并检查 serde tag 撞名这类 Rust 类型层面看不出来的问题。
git:20260817.d00a470 · audit A · 22 stars
review SKILL.md skill
riot-org/riot · .riot/skills/review/SKILL.md · 审查一批改动时用。缺陷优先,并按这个仓库特有的失效方式去找问题——那些编译通过、类型正确、看起来合理的写法。
git:20260817.d00a470 · audit A · 22 stars
verify SKILL.md skill
riot-org/riot · .riot/skills/verify/SKILL.md · 改完代码要验证时用。按这个仓库的分层防线依次跑,并说明每一层拦的是什么。别只跑 cargo build 就当验证过了。
git:20260817.d00a470 · audit A · 22 stars
add-mcp SKILL.md skill
riot-org/riot · crates/riot-kernel/builtin/skills/add-mcp/SKILL.md · 用户想加、改、排查 MCP 服务器,或从 Cursor / Claude Desktop / VS Code 搬 MCP 配置过来时用。用户级只认 stdio(远程走 mcp-remote 桥)、config.json…
git:20261014.9c3854a · audit B · 22 stars
commit SKILL.md skill
riot-org/riot · crates/riot-kernel/builtin/skills/commit/SKILL.md · 要把改动提交成 git commit 时用。先看清工作区里有几件事、按主题分组、只暂存这一组,以及消息里该写什么不该写什么。
git:20261014.9c3854a · audit A · 22 stars
create-plugin SKILL.md skill
riot-org/riot · crates/riot-kernel/builtin/skills/create-plugin/SKILL.md · 用户想写一个 Riot 插件、把已有的技能/命令/hooks/MCP 打包分发、或把 Claude Code / Cursor 插件搬到 Riot 时用。目录布局、三种清单格式、dev.riot 扩展字段、本地链接调试流程和市场发布。
git:20261014.9c3854a · audit A · 22 stars
debug SKILL.md skill
riot-org/riot · crates/riot-kernel/builtin/skills/debug/SKILL.md · 排查 bug 时用。顺序是硬的:先复现、再让证据淘汰假设、修根因、用原始复现路径验证。不要看到第一个可疑点就动手改。
git:20260817.d4dfa41 · audit A · 22 stars
extend-riot SKILL.md skill
riot-org/riot · crates/riot-kernel/builtin/skills/extend-riot/SKILL.md · 用户想加技能、斜杠命令、hook、项目约定(AGENTS.md),或要给命令配 API key、密码这类机密时用。各扩展点的目录、格式限制和优先级规则。MCP 服务器转 add-mcp,打成可分发的插件转 create-plugin。
git:20261014.9c3854a · audit B · 22 stars

Every file in riot-org/riot

Other files named simplify

simplify SKILL.md skill
qwenlm/qwen-code · packages/core/src/skills/bundled/simplify/SKILL.md · Review recent code changes for reuse, code quality, and efficiency, then directly apply straightforward cleanup…
git:20260718.d4db5fc · audit A · 29,081 stars
simplify SKILL.md skill
fcakyon/claude-codex-settings · plugins/simplify/skills/simplify/SKILL.md · This skill should be used when the user asks to "simplify", "clean up the diff", "run simplify", "simplify the…
git:20261107.0574bbb · audit A · 1,200 stars
simplify SKILL.md skill
cowork-os/cowork-os · resources/skills/simplify/SKILL.md · Improve existing work with focused simplification passes across code, writing, research, operations, or general tasks.
v1.0.0 · audit A · 535 stars
simplify SKILL.md skill
sd0xdev/sd0x-harness · skills/simplify/SKILL.md · Wrap-up refactoring — simplify code, eliminate duplication, preserve behavior
git:20260404.1c6641c · audit A · 194 stars
simplify SKILL.md skill
genai-io/san · .san/personas/software-engineer/skills/simplify/SKILL.md · Review changed code for reuse, quality, and efficiency, then clean up what you find — duplicated logic that could reuse…
git:20260717.120e9bb · audit A · 147 stars
simplify SKILL.md skill
haacked/dotfiles · ai/codex/skills/simplify/SKILL.md · Simplify recently changed code for clarity, consistency, and maintainability while preserving behavior. Use after…
git:20260827.f7bfa75 · audit A · 133 stars
simplify SKILL.md skill
sneg55/agent-starter · skills/simplify/SKILL.md · Review changed code for reuse, quality, and efficiency, then fix any issues found.
git:20260615.d335473 · audit A · 74 stars
simplify SKILL.md skill
maquina-app/rails-claude-code · rails-simplifier/skills/simplify/SKILL.md · Simplifies and refines Ruby on Rails code following 37signals patterns and the One Person Framework philosophy, while…
git:20260714.12902ab · audit A · 48 stars

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