prompt-refiner

Transforms casual or voice-transcribed user requests into precise, AI-optimized prompts. Handles mixed languages, vague input, and ambiguity. Reduces task execution time by 2-3x and improves accuracy by 40-60%. Applies prompt engineering best practices including persona assignment, few-shot examples, chain of thought, and prompt chaining.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "prompt-refiner" with this command: npx skills add jamesxu81/covert-native-language-to-ai-firendly-prompt

Prompt Refiner

Turn messy input into structured, AI-optimized prompts on the first try.

When to Use

  • Voice transcription input (speech-to-text)
  • Casual, informal, or mixed-language requests (English + Chinese)
  • Vague or ambiguous requests (missing target, unclear scope)
  • Complex multi-step tasks that benefit from chaining
  • Before destructive actions (delete, restart, deploy)

Skip if: request is already specific, task is simple/low-stakes, or user says "just do it."

Core Framework: TCREI

Google's prompt engineering framework — apply to every refined prompt:

ComponentWhat to include
TaskAction verb + specific target. "Summarize the sales report for Q1"
ContextBackground, environment, constraints. "Account: jamesxu81@gmail.com, NZ timezone"
ReferencesExamples, templates, tone samples. "Match this format: [example]"
EvaluateHow to judge the output. "Flag any missing data"
IterateHow to improve if result is off

The Process (5 Steps)

1. Analyze

Identify: Intent · Target · Constraints · Gaps · Language

2. Assign Persona (Always)

Give the AI a role that matches the task:

  • Code task → "You are a senior Node.js engineer"
  • Email task → "You are a professional business writer"
  • Data task → "You are a data analyst specializing in sales metrics"
  • Security task → "You are a cybersecurity expert reviewing for vulnerabilities"

3. Clarify (If Critical Gaps Exist)

Ask ONE focused question — not multiple.

  • ✅ "Which file — api/validate.js or api/auth.js?"
  • ❌ "Which file? What language? What to check? When is the deadline?"

4. Construct the Structured Prompt

Persona: [Role + expertise relevant to the task]

Task: [Action verb + specific target]

Context: [System, environment, account, paths, dates]

References: [Examples, templates, or few-shot samples when format matters]

Requirements: [Constraints, scope, edge cases, what NOT to do]

Output: [Format, destination, success criteria, level of detail]

Advanced techniques — apply when appropriate:

  • Few-shot: Add 1–2 input/output examples when format consistency matters
  • Chain of Thought: Add "Think step by step:" for complex reasoning
  • Prompt Chaining: Break multi-step tasks into linked sub-prompts
  • Meta Prompting: Ask AI to refine the prompt itself before executing

See references/techniques.md for when/how to use each technique.

5. Confirm & Execute

  • Destructive/complex actions: Show 1-sentence summary → get confirmation
  • Safe/obvious tasks: Execute directly

Quick Checklist

Before executing, verify:

  • ✅ Persona assigned
  • ✅ Intent is clear (specific action + target)
  • ✅ Context is concrete (real paths, accounts, dates)
  • ✅ Requirements are testable
  • ✅ Output format defined
  • ✅ Success criteria stated

Real Examples

See references/examples.md for complete worked examples including:

  • Voice transcription (Chinese) → Gmail check
  • Vague code review → structured debug prompt
  • Mixed-language service restart
  • Complex multi-step task with chaining

Common Anti-Patterns to Avoid

Anti-PatternFix
Too many requirements in one promptSplit into chained sub-prompts
Vague success criteria ("write a good report")Define measurable criteria
No edge case handlingAdd: "If X is missing, do Y"
Tweaking temperature instead of the promptImprove prompt structure first
Negative instructions only ("don't do X")Tell it what TO do instead

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

gitlab-mr-reviewer

当需要审核 GitLab 合并请求、检查 MR diff 风险、发布 GitLab 审查评论、执行 approve/request changes,或发送 MR 审查通知时使用。

Registry SourceRecently Updated
1490whrime
General

Voice Transcriber Toolkit

Voice-to-Text Transcription Toolkit - 语音识别转文字,支持Whisper/Vosk引擎,批量处理,字幕导出 | Speech recognition & transcription with Whisper/Vosk engines, batch processing, su...

Registry SourceRecently Updated
General

Gigo Lobster Taster

🦞 GIGO · gigo-lobster-taster: 正式试吃模式:跑完整评测,默认上传云端、生成个人结果页并进入排行榜。 Triggers: 试吃我的龙虾 / 品鉴我的龙虾 / lobster taste / lobster taster.

Registry SourceRecently Updated
General

Gigo Lobster Local

🦞 GIGO · gigo-lobster-local: 本地模式:跑完整评测,但不上云、不注册个人结果页,证书二维码回到官网首页。 Triggers: 本地试吃龙虾 / 离线试吃龙虾 / local lobster taste / offline lobster taste.

Registry SourceRecently Updated