Agent skill · AI & Agents

refine-prompt

This skill should be used when the user asks to "refine a prompt", "optimize a prompt", "improve my prompt", "rewrite prompt for LLM", "craft a better prompt", or mentions prompt engineering, prompt optimization, or appending to PROMPT.md.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill refine-prompt --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 1 KB
Bundled scripts: none
Allowed tools: Bash(mkdir:*)ReadWriteGlob
Path: skills/ai-llm/refine-prompt/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## Context - Working directory: !`pwd` - Request: $ARGUMENTS ## Task You are an expert prompt engineer. Create an optimized prompt based on `$ARGUMENTS`. ### 1. Craft the Prompt Apply relevant techniques: - Few-shot examples (when helpful) - Chain-of-thought reasoning - Role/perspective setting - Output format specification - Constraints and boundaries - Self-consistency checks Structure with: - Clear role definition (if applicable) - Explicit task description - Expected output format - Constraints and guidelines ### 2. Display the Result Show the complete prompt in a code block, ready to copy: ``` [Complete prompt text] ``` Briefly note which techniques you applied and why. ### 3. Save to .ai/PROMPT.md First ensure the directory exists: `mkdir -p .ai` **If `.ai/PROMPT.md` exists:** Read current contents and append: ``` --- ## [Brief title from $ARGUMENTS] [The optimized prompt] ``` **If `.ai/PROMPT.md` does not exist:** Create with: ``` # Optimized Prompts ## [Brief title from $ARGUMENTS] [The optimized prompt] ``` Confirm: "Saved to .ai/PROMPT.md"

What's inside
Steps it walks through
  1. Context
  2. Task
  3. 1. Craft the Prompt
  4. 2. Display the Result
  5. 3. Save to .ai/PROMPT.md
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the refine-prompt skill do?

This skill should be used when the user asks to "refine a prompt", "optimize a prompt", "improve my prompt", "rewrite prompt for LLM", "craft a better prompt", or mentions prompt engineering, prompt optimization, or appending to PROMPT.md.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill refine-prompt --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going