refine

refine is a skill for Codex from automagik-si/genie. It costs 37 tokens per session (1,271 once invoked), scanned A, original, Apache-2.0.

A prompt editor that rewrites instructions using official guidance from OpenAI or Claude. A prompt is the text given to an AI system to describe a task, and this skill rewrites it rather than executing it.

In plain words
What is it for?
Use it to improve prompts supplied as text or from a file for OpenAI or Claude systems.
Why use it?
It helps clarify a prompt while preserving its intent, audience, permissions, scope, language, and required output. Provider options select which guidance is used, not which model runs.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents.

Good fit Use it to improve prompts supplied as text or from a file for OpenAI or Claude systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/automagik-si/genie/refine
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 automagik-si/genie --skill refine
Clone the repo
git clone --depth 1 https://github.com/automagik-si/genie

Made for: Codex.

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 refine

README.md
[![agentmods](https://agentmods.dev/badge/skills/automagik-si/genie/refine/github.svg)](https://agentmods.dev/skills/automagik-si/genie/refine)
Your own site
<a href="https://agentmods.dev/skills/automagik-si/genie/refine"><img src="https://agentmods.dev/badge/skills/automagik-si/genie/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.

agentmods 80×15 button for refine

Your own site · 80×15
<a href="https://agentmods.dev/skills/automagik-si/genie/refine"><img src="https://agentmods.dev/badge/skills/automagik-si/genie/refine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,271 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.00037 $0.01271
Opus 5.5 $0.00015 $0.00508
Sonnet 5.5 $0.00007 $0.00254
Haiku 4.5 $0.00004 $0.00127

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

Security

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 15d 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.

skills/refine/SKILL.md · 52 lines

How it starts

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

Refine

Preserve the prompt’s intent, language, scope, audience, permissions, and explicit output contract. Rewrite the prompt; never execute it.

Providers and sources

Exactly two provider switches, plus one Claude-only target modifier, with model names used only as documentation baselines:

Switch Bundled guidance Baseline and official documentation
--for openai prompts/openai.md GPT-6 Astra: prompting best practices, prompt engineering
--for claude prompts/claude.md Claude Opus 5.5 (default baseline): Opus 5.5 guide, Claude best practices
--for claude --target sonnet prompts/claude.md + prompts/claude-sonnet-5-5.md Claude Sonnet 5.5: Sonnet 5.5 guide
--for claude --target opus prompts/claude.md + prompts/claude-opus-5-5.md Claude Opus 5.5: Opus 5.5 guide
--for claude --target fable prompts/claude.md + prompts/claude-fable-5-1.md Claude Fable 5.1: Fable 5.1 guide

This table is drift-prone: documentation URLs move, model baselines are superseded, and the bundled guides go stale without announcing it. The freshness claim is therefore one line, on its own, in exactly this shape, and it covers every URL, every baseline, and every bundled guide:

Checked: 2026-10-01

Compare that date before promising the guidance is current. If it predates the release these skills shipped with, or either URL no longer resolves, the guidance is unverified: re-read the official pages, refresh the bundled guide deliberately, and update the line in the same edit. Keep the provider switches stable either way — a stale date narrows what may be claimed, never the switch surface.

Read the full file on GitHub · 52 lines

Files

What ships with it

6 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. 15d ago First seen · 52 lines · 37 tokens per session scan A 0fc23e95ddd2

Subscribe to this mod's changes

refine is a skill published in the GitHub repository automagik-si/genie (353 stars, last pushed today), licensed Apache-2.0. It adds 37 tokens to every session and 1,271 once invoked, about $0.0001 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-11-15.

Related

refine compared with skills from other repositories

refine next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refineautomagik-si/genieSkill353todayApache-2.0A37Codex
refineautomagik-dev/genieSkill35315d agoApache-2.0A37Codex
v4-best-practicesHmbown/CodeWhaleSkill41kyesterdayMITA51Claude Code, Codex
post-training-strategybojieli/ai-agent-bookSkill60kyesterdayApache-2.0A159Claude Code, Codex
agent-evolutionbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A126Claude Code, Codex
prompt-engineeringericrisco/rsc-harnessSkill6824d agoMITA83Claude Code, Codex
cx-ai-centercoralogix/cx-cliSkill243todayApache-2.0A89Claude Code, Codex