Skip to content
Skills Library
Programming · Writing

refine

/refine

Use when asked to refine a draft, iterate on code until cleaner, or polish a README through repeated critique and improvement.

Author
tony ↗
Repository
skills ↗
Licence
MIT
Last repository change
25.10.2026

Assessment and security

85/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content20 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
1
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

What it does and when to use it

Use when asked to refine a draft, iterate on code until cleaner, or polish a README through repeated critique and improvement.

Arguments

/refine [--passes=N] [--timeout=N|none] [--mode=fast|balanced|deep] [--judge=host|round-robin] [--no-deslop|--quiet-deslop|--ver
Original author description

Use when asked to refine a draft, iterate on code until cleaner, or polish a README through repeated critique and improvement.

How it works

  1. Worker selection
  2. Phase 1: Start the session
  3. Phase 2: Pass 1, critique and improve
  4. Phase 3: Judge, weave, distribute
  5. Phase 4: Deslop and present
  6. Rules
Original SKILL.md headings · 69 lines, 470 words
SKILL.md preview
---
name: refine
description: "Use when asked to refine a draft, iterate on code until cleaner, or polish a README through repeated critique and improvement."
allowed-tools: ["Bash", "Read", "Grep", "Glob", "Write", "Task", "AskUserQuestion"]
argument-hint: "[--passes=N] [--timeout=N|none] [--mode=fast|balanced|deep] [--judge=host|round-robin] [--no-deslop|--quiet-deslop|--verbose-deslop] [--workers=subagents|model-clis] <text or file path>"
---

# Weave Refine

Improve an artifact through independent adversarial critique and weaving. Every pass, all participants critique and improve the artifact, a judge picks the best version, the weave folds in the runners-up's strengths, and the woven result goes back to all participants.

The artifact comes from `$ARGUMENTS`: an existing file path (read it) or inline text. If there are none, ask the user what to refine.

`<engine>` is `../../scripts/engine.py` resolved from this skill's directory to an absolute path, written literally in every command, and run with `python3`.

## Worker selection

<!-- portable: ask-user-choice=headless-default -->

Before any other unresolved configuration choice or operational step, read
`../../references/worker-backends.md` (Caller contract). Resolve
`worker_backend` from `--workers=subagents|model-clis` using that reference;
if the flag is absent, ask its worker question first.
If interactive choice is unavailable, honor its documented headless default.

---

## Phase 1: Start the session

Follow `../../references/ensemble-core.md` (Start the session) with `--command refine`. It asks each unresolved setting through `AskUserQuestion`.

Read the artifact from `prompt`, and write it to `<session_dir>/original.md`. Build the context packet per `ensemble-core.md` (Context packet), leading with conventions and key snippets from the artifact's domain.

---

## Phase 2: Pass 1, critique and improve

The shared worker prompt body is:

> You are reviewing an artifact for iterative refinement. Produce three sections.
>
> ## Critique
> What is strong, weak, or missing? Be specific: quote passages and cite concrete issues.
>
> ## Improved Version
> Your complete improved version, as a full replacement, not a diff. Cut filler and padding, not the claims the artifact makes; do not add placeholders for facts the artifact lacks.
>
> ## Rationale
> Why you made each change, tied to a finding in your critique.
>
> ---
>
> **Artifact to refine:**
>
> <the artifact text>

Follow `ensemble-core.md` (Dispatch lanes) with this body, then (Close the repo guard). A participant whose output lacks the three sections is parsed as written, and the judge notes the gap.

---

## Phase 3: Judge, weave, distribute

Follow `../../references/refine-cycle.md` for pass 1, with the candidates in `pass-0001/outputs/` and the judge mode from `judge`. For every later pass up to `passes`, the cycle's Distribute step has already written the prompt, so dispatch it as in Phase 2 (with the new pass number), close the repo guard, and run the cycle again.

---

## Phase 4: Deslop and present

Follow `../../references/refine-cycle.md` (Deslop, present, and finish) with `../../references/deslop-pass.md`, `../../references/present-results.md`, `RESULT_KIND` = `refine` and `../../references/results/refine.md`. Inline-text input gets the same shape: a hero line first, then the four listed headings, with no title line or other headings. Write the reply per `../../references/prose-rules.md`.

## Rules

- Verify every model claim against the codebase before it enters the weave, and cite files and line numbers.
- When models contradict each other, check the code and keep the correct version.
Files in this package (2)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB

Versions

RepositoryScoreLicence
This page · tony/skills85MIT
TerminalSkills/skills100Apache-2.0
unclejobs-ai/second-claude-code100MIT
josefheidler/academic-writing100MIT
nrdxp/predicate100MIT
sharpdeveye/maestro100MIT
astillero-ai/astillero90Apache-2.0
mikeheid/overture90MIT
Darcos-Loft/fluid90MIT

Database snapshot: 13.11.2026 · package version e53ef008461c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90weave-refine
    Use when asked to refine a draft, iterate on code until cleaner, or polish a README through repeated critique and improvement.
  • 96roborev-refine
    Use only when the user explicitly invokes /roborev-refine
  • 96roborev-refine
    Use only when the user explicitly invokes $roborev-refine
  • 100refine-tests
    Reviews existing test code for conformance to the test-designing-guide and test-writing-guide, then applies the refinements. Use this skill when the user wants to review or refine existing test code so it follows the project's test design and writing conventions. Typically…
  • 96create-readme
    Use when generating or updating a project README.md or CHANGELOG.md.
  • 95readme
    When the user wants to create or update a README.md file for a project. Also use when the user says 'write readme,' 'create readme,' 'document this project,' 'project documentation,' or asks for he...

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.