← 返回 Skills 市场
iliaal

ia-refine-prompt

作者 Ilia Alshanetsky · GitHub ↗ · v3.0.4 · MIT-0
cross-platform ✓ 安全检测通过
289
总下载
0
收藏
0
当前安装
11
版本数
在 OpenClaw 中安装
/install compound-eng-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...
使用说明 (SKILL.md)

Refining Prompts

Process

  1. Assess -- Identify what the prompt is missing:
Element Check
Task Is the core action explicit and unambiguous?
Constraints Are length, format, tone, and scope defined?
Output format Does it specify the expected structure?
Context Does the model have enough background to act? Check: audience, input format, success criteria, scope boundaries, technical constraints
Examples Would a demonstration clarify the expected output?
Edge cases Are failure modes and boundary conditions addressed?
  1. Rewrite -- Transform into specification language: precise, imperative, no filler. Treat the prompt as a spec, not conversation.

  2. 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

Problem Fix
Vague verbs ("look into", "deal with") Replace with concrete actions ("list", "compare", "extract")
Missing output spec Add explicit format section with example structure
Examples contradict instructions Align examples to match every stated rule
Over-engineered from the start Strip to simplest working version, then add complexity only where output quality requires it
Prompt exceeds context with examples Limit 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
安全使用建议
This skill is coherent and low-risk: it only rewrites prompts and will not store anything without your confirmation. Before using, avoid pasting secrets or sensitive customer data into prompts (the skill's rules advise not to invent or store secrets). If you approve saving, the file will be appended to .ai/PROMPT.md in your environment — review that path and its contents if you have strict data-retention policies. Otherwise it is safe to install and use.
功能分析
Type: OpenClaw Skill Name: compound-eng-refine-prompt Version: 3.0.4 The skill bundle 'ia-refine-prompt' is a legitimate tool designed to help an AI agent refine and structure user prompts. It contains clear instructions in SKILL.md for prompt engineering best practices and includes safety constraints against refining harmful tasks. The persistence mechanism (writing to .ai/PROMPT.md) explicitly requires user confirmation, and the SPEC.md file outlines proper data handling and validation procedures without any evidence of malicious intent or unauthorized access.
能力评估
Purpose & Capability
Name and description match the SKILL.md and SPEC.md content. No unrelated env vars, binaries, or install steps are requested. All required behavior (refining prompts, validation, optional save) is coherent with the stated intent.
Instruction Scope
Runtime instructions are narrowly scoped to assessing, rewriting, validating, and optionally saving refined prompts. The skill explicitly forbids inventing missing facts and disallows refining harmful/illegal tasks. It only proposes writing to .ai/PROMPT.md with explicit user approval.
Install Mechanism
No install spec and no code files — instruction-only skill. This is the lowest-risk install posture and matches the skill's function.
Credentials
The skill requests no environment variables, credentials, or config paths. The only file path mentioned (.ai/PROMPT.md) is a user-visible save location and is written only after user confirmation.
Persistence & Privilege
always is false and the skill is user-invocable; autonomous invocation is allowed by platform defaults but not excessive here. The skill does not request persistent elevated privileges or modify other skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install compound-eng-refine-prompt
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /compound-eng-refine-prompt 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v3.0.4
v3.0.4
v3.0.3
v3.0.3
v3.0.2
v3.0.2
v3.0.1
v3.0.1
v3.0.0
v3.0.0
v2.56.1
v2.56.1
v2.56.0
v2.56.0
v2.55.1
v2.55.1
v2.55.0
v2.55.0
v2.53.2
v2.53.2
v2.53.0
v2.53.0
元数据
Slug compound-eng-refine-prompt
版本 3.0.4
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 11
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 289 次。

如何安装 ia-refine-prompt?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install compound-eng-refine-prompt」即可一键安装,无需额外配置。

ia-refine-prompt 是免费的吗?

是的,ia-refine-prompt 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

ia-refine-prompt 支持哪些平台?

ia-refine-prompt 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 ia-refine-prompt?

由 Ilia Alshanetsky(@iliaal)开发并维护,当前版本 v3.0.4。

💬 留言讨论