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 kopp0510/claude-dd --skill dd-loopgit clone --depth 1 https://github.com/kopp0510/claude-ddWrote 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/kopp0510/claude-dd/dd-loop)<a href="https://agentmods.dev/skills/kopp0510/claude-dd/dd-loop"><img src="https://agentmods.dev/badge/skills/kopp0510/claude-dd/dd-loop/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/kopp0510/claude-dd/dd-loop"><img src="https://agentmods.dev/badge/skills/kopp0510/claude-dd/dd-loop.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.00141 | $0.08018 |
| Opus 5.5 | $0.00056 | $0.03207 |
| Sonnet 5.5 | $0.00028 | $0.01604 |
| Haiku 4.5 | $0.00014 | $0.00802 |
Grade B, and why
dd-loop scanned grade B with 1 finding 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 5d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
用 `grep -q -- --start-segment ~/.claude/scripts/check-claude-md.sh || echo 舊版` 確認(少了 `--` 會被當成 grep 的選項)。 How it starts
The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DD Loop — 8 步開發迴圈的做法細則
全域 CLAUDE.md §3.9 列出 8 步與不能跳的關卡;這份寫各步怎麼做。兩邊講法不同時,以全域 §3.9 的關卡為準。
段落起點與 <起點>
段落開始前先跑 ~/.claude/scripts/check-claude-md.sh --start-segment,印出「段落起點:…」才算記好。
⚠️ 這個指令有兩個擋點:①起點以來有 SKIP_DOC_CHECK=1 欠下、還沒補的 CLAUDE.md
②專案有 docs/reviews/ 目錄時(= 採用了 review 留痕慣例),上一段的 commit 範圍內
沒有新增 docs/reviews/S*.md。兩者都會 exit 1 並印出該怎麼做 —— 照它印的做,不要繞過。
剛採用第二個慣例、而且上一段的起點檔存在又不是空樹時,第一次會被擋(上一段本來就沒報告;從沒記過起點、或上一段從空樹開始的專案不會被擋)。
出路是補一份 docs/reviews/S<上一段>-SKIP.md(沒有段落編號就用 S1,理由寫「採用 review 留痕之前的段落」)並連同 trailer 一起 commit —— 只建檔不 commit 還是會被擋。
印的是「迴圈暫停中」(使用者用 /dd-stop on 暫停了這個專案;這時 exit 0)也算沒記好,但不用修:照它印的只做步驟 1、2(commit 照平常下,不加 SKIP_DOC_CHECK=1),不跑步驟 3–8,不要為了記起點去清旗標,
回報時講一句這個工作因為暫停沒跑步驟 3–8;恢復由使用者下 /dd-stop off,恢復之後再跑 --start-segment 時照常查(暫停期間欠的 CLAUDE.md 沒補完會被擋)。
其他沒印出「段落起點:…」的情況就是沒記好。舊版 gate 的徵兆是什麼都不印、exit 0(沒有 staged 時)或印「commit 已擋下」(有 staged 時);
用 grep -q -- --start-segment ~/.claude/scripts/check-claude-md.sh || echo 舊版 確認(少了 -- 會被當成 grep 的選項)。
是舊版就不要照它印的補檔或 commit:到本機的 claude-dd clone(沒有就 git clone https://github.com/kopp0510/claude-dd)跑 git pull && ./install-dd-pipeline.sh --force,再重跑一次 --start-segment。
一段常有好幾個 commit,
步驟 3、4、8 都要看「起點到現在」的整段,下文的 <起點> = ~/.claude/scripts/check-claude-md.sh --segment-base
的輸出(exit 非 0 或輸出是空的 = 範圍沒算出來,不是範圍為空)。只看最後一個 commit 會漏(實測)。
--segment-base exit 非 0 時,不要順手重跑 --start-segment:起點會移到現在的 HEAD,這一段已經 commit 的就全部不在範圍裡(git diff <起點> 變成 0 行,實測)。
有進度表 → 用表上這段的起點(見下方)。沒有進度表 → 看它印在 stderr 的那一句:
「沒記過」→ 範圍不明,問使用者這一段從哪個 commit 開始;
印出「共同祖先是 <sha>」(起點被 amend、rebase 掉,或換過分支)→ <起點> 用那個 sha,不用問:目前分支上這一段的 commit 不會漏,只會多審;
「找不到共同祖先」或「內容不是 commit」→ 問使用者;
這幾句都沒有(錯誤印在 stdout:dd.docfile 不合法、不在 git repo 內)→ 照它印的先修好,再重跑 --segment-base。
問到或取到起點之後,這一段剩下的步驟(3、4、8)都用同一個值,不要中途改回 --segment-base。
忘了記下一段的起點時,範圍會連上一段一起算 —— SKIP 欠下、還沒補的 CLAUDE.md 只會多審,不會漏;
但「上一段有沒有附 review 報告」那個檢查會漏一整段(上一段的報告會把這一段的要求頂掉,見下方「報告一律落地」那條)。
但這只在「起點檔已經存在」時成立:從來沒跑過 --start-segment 的專案(例如剛照 UPGRADING 改用段落起點的舊專案),
要等第一個 SKIP_DOC_CHECK=1 commit 才會自動補記,起點就落在段落中間,它前面的 commit 步驟 3、4、8 全部看不到。
這時 gate 印的是「記下段落起點 …」、--segment-base 也正常 exit 0,兩個訊號都看不出範圍已經縮水。所以段落開始前一定要自己跑一次。
有進度表時 --segment-base 不是最終答案:專案有 task-planner 產的進度表
(docs/designs/… 的「進度表」)時,<起點> 以表上這段 commits 欄的起點為準,只取 .. 前面那段(4b71e3b.. 填 4b71e3b)。
連 .. 一起代入會靜靜出錯:git diff 4b71e3b.. 等於 4b71e3b..HEAD,漏掉工作目錄還沒 commit 的改動且 exit 0;
git diff 4b71e3b.. HEAD 回 exit 129,放在管線裡整條仍 exit 0。
兩者在「回頭做 BLOCKED 過的段落」時會不一樣 —— 中間插做別段會把 --segment-base 往後推,
用它就漏掉這段先前已經寫好的部分;表上那個較舊、較寬,只會多審。
半號段落(S2.5 這種插在兩段之間的 hotfix)有自己的 commit 且改了人工邏輯 → 算新段落,要走步驟 3–8;
只是把前一段漏掉的檔案補進同一個 commit、或純文件/資料改動,才算前一段的小任務(只走 1、2)。不管有沒有進度表、用哪種 task 工具都一樣
What ships with it
4 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.
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.
- 5d ago Changed · +19 lines 77b570c18f7e
- 8d ago Changed · -4 lines 62c94350f800
- 15d ago Changed 578c1bee704d
- 18d ago Changed · +12 lines bacef5785606
- 1mo ago First seen · 145 lines · 141 tokens per session scan B a226e1ca27ec
dd-loop is a skill published in the GitHub repository kopp0510/claude-dd (12 stars, last pushed 4d ago), licensed MIT. It adds 141 tokens to every session and 8,018 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-31.
dd-loop compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dd-loopkopp0510/claude-dd | Skill | 12 | 4d ago | MIT | B | 141 | Claude Code, Codex |
| autoreviewopenclaw/clawhub | Skill | 9.6k | today | MIT | A | 17 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.4k | yesterday | MIT | A | 18 | Claude Code |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 13d ago | MIT | A | 115 | Claude Code, Codex |
| asplos-writing-stylebrycewang-stanford/Awesome-Journal-Skills | Skill | 1.5k | 3d ago | MIT | A | 65 | Claude Code |
| revdiff-planumputun/revdiff | Skill | 977 | 3d ago | MIT | A | 84 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | today | MIT | A | 51 | Claude Code, Codex |