Skip to content
AI & Agents
Skill

/refine

Use when the workflow works but needs polish, or as the final step in a diagnose → fix → refine cycle before shipping.

From plugin
maestro
60325 skills

Claude Code

$ npx -y skills add sharpdeveye/maestro --skill refine --agent claude-code

SKILL.md

refine.SKILL.md
name: refine
description: "Use when the workflow works but needs polish, or as the final step in a diagnose → fix → refine cycle before shipping."
argument-hint: "[target area]"
category: fix
version: 2.0.0
user-invocable: true

MANDATORY PREPARATION

Invoke /agent-workflow — it contains workflow principles, anti-patterns, and the **Context Gathering Protocol**. Follow the protocol before proceeding — if no workflow context exists yet, you MUST run /teach-maestro first.

---

This is the final quality pass. The workflow works — now make it excellent.

Refinement Checklist

**Prompts**

  • [ ] Every prompt follows the 4-zone pattern (role, context, instructions, output)
  • [ ] Output schemas are explicit and validated
  • [ ] Negative instructions clarify what NOT to do
  • [ ] No contradictory instructions
  • [ ] Few-shot examples included for ambiguous tasks
  • [ ] Chain-of-thought used for multi-step reasoning tasks

**Tool Descriptions**

  • [ ] Every tool has a multi-line description: what, when to use, when NOT to use, returns
  • [ ] Input parameters have descriptions and types
  • [ ] Error responses are documented
  • [ ] At least one example input/output in the description

**Error Messages**

  • [ ] Error messages are specific (not "an error occurred")
  • [ ] Error messages suggest corrective action
  • [ ] Errors include context (what was being attempted)
  • [ ] Errors are structured (code + message + details)

**Logging**

  • [ ] Every model call is logged (input tokens, output tokens, latency, cost)
  • [ ] Tool calls are logged with inputs and outputs
  • [ ] Errors are logged with full context
  • [ ] PII is redacted from logs
  • [ ] Workflow ID traces through all log entries

**Configuration**

  • [ ] All magic numbers are named constants
  • [ ] Environment-specific values are in config, not code
  • [ ] Defaults are sensible — config is for overrides
  • [ ] Cost ceilings are set
  • [ ] Timeout values are set for all external calls

Output

For each checklist item that fails, provide:

1. What's wrong (specific finding) 2. Where it is (file, line, or component) 3. How to fix it (concrete suggestion) 4. Priority (critical / important / nice-to-have)

Priority Matrix

| Priority | Criteria | Maestro Action | |----------|---------|----------------| | Critical | Affects correctness or safety | `/fortify` or `/guard` before shipping | | Important | Affects quality or maintainability | `/calibrate` in current cycle | | Nice-to-have | Cosmetic or minor inconsistency | Note for next `/refine` pass |

Recommended Next Step

After refinement is complete, run `/evaluate` to verify the polished workflow against realistic scenarios.

**NEVER**:

  • Skip the checklist — go through every item
  • Mark items as passing without checking
  • Suggest changes that alter behavior (this is polish, not redesign)
  • Refine before the workflow is functionally correct (fix first, refine last)
Read more
@sharpdeveye
Ships withmaestro

Workflow fluency for AI coding agents. 1 core skill · 25 commands · 7 domain references · memory layer · audit trail — works across Cursor, Claude Code, Gemini CLI, Copilot, and 6 more.

Stars on GitHub

Momentum

stars in total
603
Star history of sharpdeveye/maestro on GitHub, a chart by star-history.com

Other skills on maestro.

accelerate

accelerate

Use when the workflow is too slow, too expensive, or both and needs latency, cost, or token usage optimization.

@sharpdeveye@sharpdeveyeInstall Skill
adapt-workflow

adapt-workflow

Use when porting a workflow to a different AI provider, deployment environment, model tier, or organizational context.

@sharpdeveye@sharpdeveyeInstall Skill
agent-workflow

agent-workflow

Use when any Maestro command is invoked — provides foundational workflow design principles across prompt engineering, context…

@sharpdeveye@sharpdeveyeInstall Skill
amplify

amplify

Use when the workflow works but needs to handle more complex cases or produce higher-quality output through better tools,…

@sharpdeveye@sharpdeveyeInstall Skill
calibrate

calibrate

Use when workflow components are inconsistent, naming conventions vary, or a new team member's work needs alignment to project…

@sharpdeveye@sharpdeveyeInstall Skill
capture

capture

Capture a session summary — what was done, what decisions were made, and what to do next.

@sharpdeveye@sharpdeveyeInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3w393k
@openclaw@openclawInstall Skill

Questions about refine.

Which coding agents can use refine?
refine installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.