code-simplifier SKILL.md skillA
code-simplifier from kopp0510/claude-dd is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add kopp0510/claude-dd/code-simplifier@git:20260912.708b336Pins git:20260912.708b336 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- kopp0510/claude-dd
- Path
skills/code-simplifier/SKILL.md- Versions recorded
- 7
- Latest version
- git:20260912.708b336, committed Sep 12, 2026
- First version recorded
- Jul 23, 2026
- Size
- 2,856 bytes
- Repository stars
- 12
- License
- MIT
調用官方 code-simplifier agent 簡化程式碼。當使用者要求簡化、降低複雜度、清理冗餘,或執行 8 步開發迴圈步驟 3 時啟用。不適用於 PR 審查(用 code-reviewer)。.
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
# Code Simplifier — 官方 agent 包裝器
本 skill 只負責介面層:定範圍 → 調用官方 code-simplifier agent → 呈現結果。
簡化邏輯全在 agent 內,不在此重複。
## 範圍決定
- **8 步開發迴圈步驟 3**(最常見):範圍 = 該功能段落從起點到現在的變更(`git diff <起點>`,
起點 = `~/.claude/scripts/check-claude-md.sh --segment-base` 的輸出),**不詢問**,直接執行。
一段常有好幾個 commit,`HEAD~1` 只看得到最後一個;取不到起點(指令 exit 非 0 或輸出是空的)時當成「範圍不明」問一題,不要退回 `HEAD~1`。
**專案有 `task-planner` 進度表時例外**:起點改用表上這段 commits 欄的起點。
表在哪不用問 —— 根目錄 CLAUDE.md 第一個 `##` 之前的指路句會寫明檔名(通常在 `docs/designs/`);
沒有那句指路就是沒有進度表,照 `--segment-base` 走。回頭做 `BLOCKED` 過的段落時,
中間插做別段會把 `--segment-base` 往後推,用它會漏掉這段先前已寫好的部分
- **使用者指明檔案/目錄/片段**:照指示,不追問
- **範圍不明**:問一題 —「要簡化哪個範圍?(預設:最近修改的檔案)」,其餘參數用預設
預設不含測試檔;使用者要求才包含。
## Agent 調用
依序嘗試 `subagent_type`:
1. `code-simplifier:code-simplifier`(plugin 命名空間)
2. `code-simplifier`(本地 `~/.claude/agents/code-simplifier.md`)
兩者皆回 `Agent type not found` → 停下,請使用者跑 `./install-dd-pipeline.sh` 補齊。
Prompt 模板:
```
請簡化以下程式碼,提高可讀性與可維護性,保留所有功能:
範圍:{檔案清單或片段}
重點:降低圈複雜度、改善命名、移除冗餘、簡化條件(early return、減少巢狀)。
約束:不改公開 API 簽名;有測試必須全過。
輸出:簡化摘要 + 關鍵變更的 Before/After 對比。
```
## 結果呈現
轉述 agent 的簡化摘要與 Before/After 對比。統計數字**只引用 agent 實際回報的**,
沒有就不列 — 禁止自行估算複雜度指標。
…Read the whole file at its exact version.
How to install
mdr add kopp0510/claude-dd/code-simplifier@sha256:69f36f438e730978The line at the top of this page pins the label git:20260912.708b336, 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.
[](https://markdownregistry.com/a/art_3wgq6zydabc7vugo)
6 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 7 versions of this file, between Jul 23, 2026 and Sep 12, 2026, about one every 9 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260912.708b336 latest | 2026-09-12 | 708b336 | 2,856 B | A | view · diff |
| git:20260912.9ee3372 | 2026-09-12 | 9ee3372 | 2,653 B | A | view · diff |
| git:20260911.4ba34c3 | 2026-09-11 | 4ba34c3 | 2,403 B | A | view · diff |
| git:20260911.6a9addd | 2026-09-11 | 6a9addd | 2,361 B | A | view · diff |
| git:20260831.bc204d3 | 2026-08-31 | bc204d3 | 2,159 B | A | view · diff |
| git:20260830.51ad5d7 | 2026-08-30 | 51ad5d7 | 2,159 B | A | view · diff |
| git:20260723.ee57bf2 | 2026-07-23 | ee57bf2 | 2,159 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2856 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
kopp0510/claude-dd · 12 stars · license MIT · pushed 2026-10-30 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_3wgq6zydabc7vugo GET https://markdownregistry.com/api/v1/resolve?ref=kopp0510/claude-dd/code-simplifier GET https://markdownregistry.com/api/v1/blob/69f36f438e730978db6f41c79897b16dac57006f65c56c1e32cb4eaa65631013
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 kopp0510/claude-dd
Every file in kopp0510/claude-dd