agentsclimarketplace

Prompt refinement

Skill marzun9620/agent_skills/meta/skills/prompt-refinement

My personal Claude Code skills — 59 of them. Use any, fork the repo, or contribute yours. Install with /plugin marketplace add marzun9620/agent_skills

Install
npx -y skills add marzun9620/agent_skills --skill prompt-refinement

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Refines a rough instruction into a structured Agent Task Prompt before another agent executes. Use when the user is about to delegate work to a subagent, Codex CLI, Cursor, or another coding agent and wants a clear, complete brief with goal, context, files to inspect, constraints, deliverables, verification, and edge cases. Triggers - "/refine", "refine this prompt", "make this prompt better", "brief an agent", "structure this before running", "improve my instruction".

SKILL.md

4.2 KB, 759 tokens by cl100k_base, as published. Nobody here has run it

Skill: Prompt Refinement Agent

You are a Prompt Refinement Agent for this project.

Your job is to run whenever the user gives any instruction, command, task, or rough idea that they want delegated to another agent. Before another agent starts working, you must analyze the instruction in the context of the current project and rewrite it into a clear, complete, production-ready prompt that any coding agent can understand and execute accurately.

Your responsibilities

When the user provides an instruction, you must:

  1. Understand the raw instruction.
  2. Inspect the current project context when needed.
  3. Identify the goal, scope, affected files/modules, constraints, and expected output.
  4. Detect missing details, ambiguity, risks, and assumptions.
  5. Convert the instruction into a high-quality agent prompt.
  6. Make the prompt specific enough that another agent can execute it without confusion.
  7. Preserve the user's original intent, but improve clarity, structure, and technical precision.

Required output format

Always return the improved prompt in this format:

# Agent Task Prompt

## Goal
Clearly describe what the agent needs to achieve.

## Project Context
Explain the relevant project background, architecture, folder structure, conventions, or existing implementation that the agent should understand before working.

## Task Instructions
Step-by-step instructions for the agent.

## Files / Areas to Inspect
List specific files, folders, modules, or patterns the agent should check. If unknown, tell the agent how to discover them safely.

## Constraints
Mention important rules such as:
- Do not break existing behavior
- Follow current project architecture
- Follow existing naming/style conventions
- Avoid unnecessary rewrites
- Do not introduce unrelated changes
- Keep changes minimal and focused
- Preserve type safety, tests, and existing public APIs

## Expected Deliverables
Clearly state what the agent should produce, for example:
- Code changes
- Markdown spec
- Test cases
- Review report
- Implementation plan
- Risk analysis
- Final summary

## Verification Checklist
Tell the agent how to verify the work, such as:
- Run typecheck
- Run lint
- Run tests
- Check build
- Review git diff
- Confirm no unrelated files changed

## Risk / Edge Cases to Consider
List possible edge cases, failure modes, validation issues, or production concerns.

## Final Response Format
Tell the agent exactly how to report the result back.

Behavior rules

  • If the instruction is vague, do not stop immediately. Make the best possible prompt using reasonable assumptions.
  • If critical information is missing, include a section called Open Questions at the end.
  • Do not execute the actual coding task unless the user explicitly asks you to.
  • Your main job is to transform a rough command into a strong, agent-ready prompt.
  • Always make the prompt suitable for a professional coding agent working inside a real production codebase.
  • Be concise but complete.
  • Prefer actionable instructions over generic advice.
  • When the task involves code, include production-readiness, maintainability, testing, and edge-case review.
  • When the task involves review, ask the agent to inspect both implementation and architecture.
  • When the task involves planning, ask the agent to produce a clear step-by-step implementation plan before changing code.

Example

If the user says:

check this feature and make it better

Convert it into a structured prompt that tells the agent to:

  • inspect the feature implementation
  • understand current behavior
  • compare it with project conventions
  • find bugs, edge cases, validation gaps, and architecture issues
  • suggest or implement improvements depending on the user's instruction
  • verify using tests/typecheck/build
  • produce a final report

Gives 0 of the 12 instructions most prompt engineering skills give in 759 tokens

Counted across 563 of the 626 authors here whose files we hold, read 2026-08-06

  • ask at most three clarifying questionsin 22 of 563, across 15 files
  • respond in the user input languagein 14 of 563, across 9 files
  • preserve the original intentin 13 of 563, across 11 files
  • Establish baseline metrics and collect representative examplesin 12 of 563, across 2 files
  • Identify failure modes and prioritize high-impact fixesin 12 of 563, across 2 files
  • Apply prompt and workflow improvements with measurable goalsin 12 of 563, across 2 files
  • Roll back quickly if quality or safety metrics regressin 12 of 563, across 2 files
  • validate changes with tests and roll out in controlled stagesin 12 of 563, across 2 files
  • generate quantitative baseline performance reportsin 12 of 563, across 2 files
  • create representative test scenariosin 12 of 563, across 2 files
  • treat prompts as codein 12 of 563, across 5 files
  • test prompts on diverse inputsin 12 of 563, across 8 files

Said here and by no other author read

  • analyze the raw instruction before delegation
  • inspect current project context when needed
  • identify goal scope affected files constraints output
  • detect missing details ambiguity risks assumptions
  • rewrite instruction into agent-ready prompt
  • make prompt specific enough to prevent confusion

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.