← 返回
未分类 中文

ia-refine-prompt

Transforms vague prompts into precise, structured AI instructions. Use when asked to refine, improve, or sharpen a prompt, do prompt engineering, write a sys...
将模糊提示转化为精确、结构化的AI指令。用于要求优化、改进或强化提示词、进行提示词工程、编写系统提示词等场景。
iliaal iliaal 来源
未分类 clawhub v3.0.5 1 版本 100000 Key: 无需
★ 0
Stars
📥 628
下载
💾 0
安装
1
版本
#latest

概述

Refining Prompts

Process

  1. Assess -- Identify what the prompt is missing:
ElementCheck
----------------
TaskIs the core action explicit and unambiguous?
ConstraintsAre length, format, tone, and scope defined?
Output formatDoes it specify the expected structure?
ContextDoes the model have enough background to act? Check: audience, input format, success criteria, scope boundaries, technical constraints
ExamplesWould a demonstration clarify the expected output?
Edge casesAre failure modes and boundary conditions addressed?
  1. Rewrite -- Transform into specification language: precise, imperative, no filler. Treat the prompt as a spec, not conversation.
  1. Validate -- Check the rewrite against the assessment table. Every gap identified in step 1 must be addressed.

Rules

  • Length: 0.75x–1.5x the original. Conciseness is a feature -- add only what's missing, cut what's vague.
  • Never invent -- only use information present in the original prompt or conversation context. If critical info is missing, ask instead of assuming.
  • Instruction hierarchy -- order sections by priority: task → constraints → examples → input data → output format. Place the most important instruction first.
  • Progressive complexity -- start with the simplest prompt that could work. Add few-shot examples, chain-of-thought, or role framing only when the task demands it, not by default.
  • Specific verbs -- replace vague actions ("analyze", "process", "handle") with measurable ones ("list the top 3", "classify as A/B/C", "return JSON with keys X, Y").
  • One output format -- specify exactly one format (JSON schema, markdown template, numbered list). Ambiguous format expectations cause inconsistent results.
  • No meta-commentary -- output only the refined prompt as markdown. No preamble ("Here's an improved version..."), no explanation of changes unless explicitly requested.

Persistence

After refining, offer to save the result to .ai/PROMPT.md -- do not write without user confirmation. If approved, append with a heading and date:

## [Prompt Name] -- YYYY-MM-DD

[refined prompt content]

Anti-Patterns

ProblemFix
--------------
Vague verbs ("look into", "deal with")Replace with concrete actions ("list", "compare", "extract")
Missing output specAdd explicit format section with example structure
Examples contradict instructionsAlign examples to match every stated rule
Over-engineered from the startStrip to simplest working version, then add complexity only where output quality requires it
Prompt exceeds context with examplesLimit to 2–3 diverse examples; use one simple, one edge case

Constraints

  • Stop refining if the original intent is unclear -- clarify first
  • Do not refine prompts for harmful or illegal tasks

Verify

  • Rewrite addresses every gap identified in the assessment
  • Length ratio within 0.75x-1.5x of original (unless structural change justified)
  • No invented constraints or assumptions not in the original

版本历史

共 1 个版本

  • v3.0.5 当前
    2026-05-01 12:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

ia-react-frontend

iliaal
React 架构模式、TypeScript、Next.js、Hooks 与测试,适用于 React组件结构、状态管理、Next.js 路由及 Vitest 等场景。
★ 0 📥 1,147
ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,521 📥 579,013
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 868 📥 348,023