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 joris887/exosuit --skill refine-loopgit clone --depth 1 https://github.com/joris887/exosuitWrote 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/joris887/exosuit/refine-loop)<a href="https://agentmods.dev/skills/joris887/exosuit/refine-loop"><img src="https://agentmods.dev/badge/skills/joris887/exosuit/refine-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/joris887/exosuit/refine-loop"><img src="https://agentmods.dev/badge/skills/joris887/exosuit/refine-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.00000 | $0.01430 |
| Opus 5.5 | $0.00000 | $0.00572 |
| Sonnet 5.5 | $0.00000 | $0.00286 |
| Haiku 4.5 | $0.00000 | $0.00143 |
Grade A, and why
refine-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 3mo 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.
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.
How it starts
The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.
refine-loop
Refining: $ARGUMENTS
Argument Parsing
| Argument | Required | Default | Description |
|---|---|---|---|
<task> |
Yes | - | What to produce or improve |
--until "<criteria>" |
Yes | - | Completion condition (must be verifiable) |
--max <N> |
No | 5 (50 if --autonomous) |
Maximum iterations before stopping |
--autonomous |
No | false | Extended unattended mode: higher iteration cap, TSV logging, diminishing-returns auto-stop |
Failure State Persistence
At loop entry, write docs/sessions/.failure-state.md with YAML frontmatter so the Stop hook and /continue can programmatically detect incomplete workflows.
At loop entry (before first execution):
---
status: active
skill: refine-loop
phase: "1"
phase_name: "Initial Execution"
started_at: "[ISO-8601 timestamp from date -u +%Y-%m-%dT%H:%M:%SZ]"
story: "[from $ARGUMENTS — the task description]"
branch: "[from git branch --show-current]"
next_action: "Execute task and produce first draft"
autonomous: [true|false]
files_modified: []
---
## Context
Task: [task description]
Criteria: [completion criteria]
Iteration: 1 of [max]
Mode: [standard | autonomous]
At each iteration: Update phase to the iteration number, phase_name to "Iteration N", next_action to the specific improvement being applied, and append to files_modified. Update the Context section with iteration progress and remaining gaps.
When criteria are met (or max iterations reached): Delete .failure-state.md — clean state means no failure to recover from.
Process
1. Initial Execution
Execute the task to produce the first draft/version.
If --autonomous: Initialize the iteration log file:
docs/sessions/.refine-log.tsv:
iteration criteria_met criteria_total gap_description action_taken timestamp
0 0 <total> Initial execution Produced first draft <ISO-8601>
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.
- 3mo ago First seen · 162 lines · 0 tokens per session scan A 1445e64c5480
refine-loop is a skill published in the GitHub repository joris887/exosuit (12 stars, last pushed 28d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,430 tokens. 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-08-31.
refine-loop compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refine-loopjoris887/exosuit | Skill | 12 | 28d ago | MIT | A | 0 | Claude Code |
| build-teaql-appteaql/teaql-agent-kit | Skill | 2.8k | 21d ago | MIT | A | 112 | Codex |
| context-exclusionteaql/teaql-agent-kit | Skill | 2.8k | 21d ago | MIT | A | 41 | Claude Code |
| eval-agentsFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | yesterday | CC-BY-SA-4.0 | A | 80 | Claude Code |
| land-and-deployFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | yesterday | CC-BY-SA-4.0 | A | 41 | Claude Code |
| source-command-methodology-advisorFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | yesterday | CC-BY-SA-4.0 | A | 27 | Claude Code, Codex |
| methodology-advisorFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | yesterday | CC-BY-SA-4.0 | A | 61 | Claude Code |