refine
БесплатноБез исполняемых скриптовНе проверенTrigger continual harness refinement from the Python REPL. Use when you notice a repeated failure, reusable tactic, delegation role, or behavior policy that…
от gabrielmoreira★ 23 звезды на 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.
Direct harness entries
Use the host-backed harness facade for a specific change. Mutations are awaited and refresh the local view. Read helpers inspect that cached view, so load it explicitly before inspecting entries saved by an earlier turn:
await rlm.harness.load()
await rlm.harness.create_memory(title="Useful lesson", content="...")
rlm.harness.overview()
Use global_=True for stable cross-session lessons. Persistent local writes are
unavailable in ephemeral sessions; the host rejects mutations in Plan mode.
Python does not choose persistence paths or write harness state files.
Установить refine в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл refine?
Trigger continual harness refinement from the Python REPL. Use when you notice a repeated failure, reusable tactic, delegation role, or behavior policy that should be persisted as a harness entry. Returns immediately; refinement runs when the current turn ends.
Как установить скилл refine?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл refine запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic