detail-loop

detail-loop is a skill for Claude Code from shimo4228/claude-harness. It costs 39 tokens per session (1,837 once invoked), scanned A, original, MIT.

A workflow that repeatedly improves a product's small details by reviewing its real output, turning findings into focused units, and freezing each fixed detail into a check. It continues in review rounds until no new issues are adopted.

In plain words
What is it for?
Use it after the basic product works to refine a CLI, library, API, app, web page, README, article, or documentation unit by unit.
Why use it?
It prevents quality fixes from being forgotten and checks that later changes do not undo them. It can be used for software, web pages, and writing.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it after the basic product works to refine a CLI, library, API, app, web page, README, article, or documentation unit by unit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shimo4228/claude-harness/detail-loop
Install

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.

Any agent
npx skills add shimo4228/claude-harness --skill detail-loop
Clone the repo
git clone --depth 1 https://github.com/shimo4228/claude-harness

Made for: Claude Code.

Wrote 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.

agentmods badge for detail-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/shimo4228/claude-harness/detail-loop/github.svg)](https://agentmods.dev/skills/shimo4228/claude-harness/detail-loop)
Your own site
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/detail-loop"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/detail-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.

agentmods 80×15 button for detail-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/detail-loop"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/detail-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,837 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01837
Opus 5.5 $0.00016 $0.00735
Sonnet 5.5 $0.00008 $0.00367
Haiku 4.5 $0.00004 $0.00184

Measured 22d ago against content hash 2b3f6974500f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

detail-loop 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 22d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/validate_units.py, tests/test_validate_units.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/detail-loop/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

detail-loop — refine a product unit by unit until review finds nothing new

Once the skeleton works, the difference left is in the details, and a model has more capacity to spend on them than a person does. The product can be code (a CLI, a library, an API, an app), a web page, or writing (an article, a README, documentation). This skill spends it: the product's details are split into units (one rule of the craft each), every fixed detail becomes a check that reruns on every change, and rounds continue until fresh reviewers find nothing new to adopt. The bar for every round is that the product holds up to an expert of each field, not that it works.

It runs three phases in turn and owns the order, the interference between units, and when to stop. Each phase has its steps in a reference. Read it when the phase starts:

  • ${CLAUDE_SKILL_DIR}/references/review.md — finds unfinished details and sorts them into the ledger
  • ${CLAUDE_SKILL_DIR}/references/units.md — folds findings into units in eval/units.yaml (the format's owner)
  • ${CLAUDE_SKILL_DIR}/references/freeze.md — freezes one unit into a check and proves it can fail

The references name other files by their path from ${CLAUDE_SKILL_DIR}, the directory holding this SKILL.md (references/units.md, scripts/validate_units.py); <skill dir> in a command is that directory. references/web.md adds the setup for a web product.

Invocation

  • No argument: run the loop from step 0.
  • review, units or freeze <unit-id>: run only that phase's reference on the product in the working directory, and end with that reference's hand-off or report.

0. Start

  • Start when the product's direction is decided and its skeleton builds without errors. Earlier, details get redone when the structure moves.
  • Confirm the version the product ships from (skill: repair-discipline, when installed and unclear), and work on a branch of it.
  • When eval/units.yaml exists, run its frozen checks first. Red checks are the first work.
  • Find out whether the author delegates the calls (「任せる」「全部あなたの推奨で」). Delegated, the author's touchpoints are the start and the finished product; follow Delegation below.
  • For writing, whether the text gets across to a reader is skill: persona-read-loop's job when it is installed; this loop works the craft details.

Read the full file on GitHub · 133 lines

Files

What ships with it

8 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.

Changes

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.

  1. 22d ago Changed 2b3f6974500f
  2. 29d ago Changed · +11 lines 7a13b85250dc
  3. 1mo ago First seen · 122 lines · 39 tokens per session scan A a91b7fe9fe0f

Subscribe to this mod's changes

detail-loop is a skill published in the GitHub repository shimo4228/claude-harness (4 stars, last pushed 7d ago), licensed MIT. It adds 39 tokens to every session and 1,837 once invoked, about $0.0002 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-10-22.

Related

detail-loop compared with skills from other repositories

detail-loop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
detail-loopshimo4228/claude-harnessSkill47d agoMITA39Claude Code
pi-parity-reviewsky-valley/piSkill94yesterdayMITA54Claude Code
pi-go-reviewsky-valley/piSkill94yesterdayMITA45Claude Code
coding-quality-loopzaingz/coding-quality-loopSkill61mo agoMITA33Claude Code, Codex
cleanRockielab/rockie-claudeSkill232mo agoApache-2.0A114Claude Code
agent-adoption-triageshimo4228/agent-adoption-triageSkill21mo agoMITA143Claude Code
self-criticRockielab/rockie-claudeSkill232mo agoApache-2.0A40Claude Code