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 gabrielmoreira/agent-skills-mirror --skill refinegit clone --depth 1 https://github.com/gabrielmoreira/agent-skills-mirrorWrote 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/gabrielmoreira/agent-skills-mirror/refine)<a href="https://agentmods.dev/skills/gabrielmoreira/agent-skills-mirror/refine"><img src="https://agentmods.dev/badge/skills/gabrielmoreira/agent-skills-mirror/refine/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/gabrielmoreira/agent-skills-mirror/refine"><img src="https://agentmods.dev/badge/skills/gabrielmoreira/agent-skills-mirror/refine.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.00050 | $0.00624 |
| Opus 5.5 | $0.00020 | $0.00250 |
| Sonnet 5.5 | $0.00010 | $0.00125 |
| Haiku 4.5 | $0.00005 | $0.00062 |
Grade A, and why
refine 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 16d 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.
This is a copy
100% identical to refine — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Refine
Refinement consolidates existing harness entries and applies small, evidence-backed
updates to the continual harness (prompts, memories, skills, subagent specs).
The implementation lives in the host (the same one behind the user's /refine
command); this skill is the kernel-side interface to it. Call it directly from
the Python REPL:
await refine.status()
await refine.run()
await refine.run("create a memory about always checking git status before committing")
await refine.run("distill reusable session lessons into global memories", global_=True)
API
await refine.status()— current refine state as a dict:pending(whether a requested refine is already queued for this turn) andin_flight(whether a refine is currently planning or applying).await refine.run(instructions=None, global_=False)— schedule refinement. Returns{"scheduled": True}immediately, or{"scheduled": False, "reason": ...}when refinement cannot start. Optionalinstructionsfocus the refinement on a specific observation. Setglobal_=Trueto target the global harness store (cross-session); omit for local (session-scoped) refinement. Global requests also review bounded session-memory candidates, preserving the local entries. Only stable, qualified lessons become global memories; temporary progress and unverified trajectory candidates are excluded. Empty edits are valid.
Rules
- Refinement never runs mid-cell. A scheduled refinement runs when the current
turn ends; the harness applies changes and rebuilds the system prompt for
your next turn. Continue working normally after calling it —
runreturns immediately and the turn itself stays ended afterwards. - One request per turn is enough; calling
runagain before the turn ends only updates the instructions. - Use refinement after observing a repeated failure, a reusable tactic, a repeated delegation role, or a behavior policy worth persisting. Do not rewrite the whole harness when a focused memory, skill, prompt note, or subagent spec is enough.
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.
- 16d ago Changed · +3 lines bc93b55c738c
- 23d ago Changed · +37 lines · +12 tokens per session 5110d0074825
- 1mo ago First seen · 23 lines · 38 tokens per session scan A ebbe4f248410
refine is a skill published in the GitHub repository gabrielmoreira/agent-skills-mirror (23 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 624 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to refine, differing in 0 lines, and is treated as a copy.
refine compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refinegabrielmoreira/agent-skills-mirror | Skill | 23 | yesterday | MIT | A | 50 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 330k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |