Token导航 LogoToken导航

Agent Skill · 开发

prompt-engineering-2(即时工程 2)

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

prompt-engineering-2 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为只读;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 2,459。

总安装 16,965周安装 693GitHub Stars 公开资料未说明下载 5,489核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
0.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prompt-engineering-2(即时工程 2)
来源仓库:https://github.com/kongyo2/prompt-engineering-2
安装命令:
openclaw skills install prompt-engineering-2
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install prompt-engineering-2

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

综合提示工程框架,支持 LLM 提示的设计、优化与迭代流程。适用于需要系统化提示开发的工作流场景。提供完整的提示生命周期管理工具与方法论指导。需配合具体任务类型选择相应的工程阶段与工具组合。

安装方式:通过 clawhub 平台使用 openclaw skills install prompt-engineering-2 命令部署。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install prompt-engineering-2;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

prompt-engineering-2 怎么安装?

在终端执行 openclaw skills install prompt-engineering-2。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

prompt-engineering-2 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

prompt-engineering-2 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

prompt-engineering-2 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

prompt-engineering-2 用的人多吗?

公开数据是累计安装 16,965 次,近一周安装 693 次,下载 5,489 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

prompt-engineering-2 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
prompt-engineering-2

即时工程 2 · 本页

16,965—只读MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
prompt-engineering
description
Comprehensive prompt engineering framework for designing, optimizing, and iterating LLM prompts. This skill should be used when users request prompt creation, optimization, or improvement for any LLM task, or when users need help translating vague requirements into effective prompts through collaborative dialogue and iterative refinement.

Prompt Engineering

Overview

This skill transforms vague user requests into precise, effective prompts through collaborative dialogue, systematic analysis, and iterative refinement. It combines proven prompt engineering techniques with a structured development process to create prompts that reliably achieve user objectives.

Workflow Decision Tree

When a user requests prompt assistance, follow this decision flow:

User Request
├─ "Create a prompt" / "Make a prompt" / Vague request
│  └─ → Start with EXPLORATION PHASE
├─ "Optimize this prompt" / Has existing prompt
│  └─ → Start with SIMPLE OPTIMIZATION
└─ "Fix this issue with my prompt" / Specific problem
   └─ → Start with ANALYSIS PHASE (focused on problem)

Core Process

Phase 1: Exploration - Uncovering True Needs

Before creating any prompt, deeply understand the user's actual needs through strategic questioning. Start broad, then narrow down systematically.

Initial Context Gathering:

  • What task will this prompt accomplish?
  • Who will use it and in what environment?
  • How frequently will it be used?
  • What does success look like?

Deepening Understanding:

  • Request concrete examples of desired outputs
  • Ask about past failures or attempts
  • Identify critical success factors
  • Uncover unstated assumptions and constraints

Technical Requirements:

  • Model and platform constraints
  • Token limits and cost considerations
  • Response time requirements
  • Integration with other systems

Continue exploration until the core requirements are crystal clear. Never assume—always verify.

Phase 2: Analysis - Choosing the Right Strategy

Analyze the task to determine the optimal prompting approach.

Task Classification:

Classify the task along key dimensions:

  • Complexity: Simple directive vs multi-step reasoning
  • Output Type: Creative vs analytical vs structured
  • Error Tolerance: High-stakes vs experimental
  • Frequency: One-time vs repeated use

Strategy Selection:

Based on classification, choose primary techniques:

  • Simple Tasks: Direct instructions with clear constraints
  • Complex Reasoning: Chain-of-thought with step-by-step breakdown
  • Creative Tasks: Role setting with flexible boundaries
  • Structured Output: Explicit format specifications with examples
  • High-Stakes: Self-consistency checks and validation steps

Trade-off Analysis:

Present multiple approaches with clear trade-offs:

  • Approach A: Detailed but token-heavy
  • Approach B: Concise but requires interpretation
  • Approach C: Balanced with moderate complexity

Always explain WHY each approach fits the specific context.

Phase 3: Implementation - Building Iteratively

Create the prompt through progressive refinement, starting simple and adding complexity as needed.

Version 1 - Minimal Viable Prompt:

  • Core instructions only
  • Test basic functionality
  • Identify gaps and ambiguities

Version 2 - Enhanced Clarity:

  • Add specific examples if needed
  • Clarify ambiguous points
  • Include essential constraints

Version 3+ - Optimization:

  • Refine wording for precision
  • Remove redundancy
  • Balance detail with conciseness

Document each version's changes and rationale. Store prompts in markdown files with:

  • Version history
  • Design decisions
  • Known limitations
  • Usage examples

Phase 4: Validation - Critical Evaluation

Rigorously evaluate the prompt against quality criteria.

Essential Checks:

  • Clarity: Can the instructions be misunderstood?
  • Completeness: Are all necessary elements present?
  • Consistency: Do instructions contradict each other?
  • Efficiency: Can anything be removed without loss?
  • Robustness: How does it handle edge cases?

Testing Approach:

  • Run through typical use cases
  • Test boundary conditions
  • Imagine failure modes
  • Check for unwanted behaviors

Be ruthlessly honest about weaknesses. If something isn't working, acknowledge it and iterate.

Simple Optimization

When optimizing an existing prompt, focus on minimal, targeted improvements:

  1. Identify Specific Issues: What exactly isn't working?
  2. Diagnose Root Causes: Why is the current prompt failing?
  3. Apply Minimal Edits: Change only what's necessary
  4. Preserve Working Elements: Keep what already works well
  5. Test Improvements: Verify fixes don't break other aspects

Common optimization targets:

  • Ambiguous language → Specific instructions
  • Missing constraints → Added boundaries
  • Inconsistent outputs → Format specifications
  • Verbose responses → Length constraints
  • Off-topic responses → Clearer scope definition

Prompt Creation from Scratch

When creating new prompts, structure them as instructions for an eager but inexperienced assistant who needs clear guidance.

Essential Components:

  1. Role/Context (if beneficial):

- Set perspective or expertise level - Establish tone and approach

  1. Clear Objective:

- State the primary goal explicitly - Define success criteria

  1. Specific Instructions:

- Break complex tasks into steps - Provide decision criteria - Specify constraints and boundaries

  1. Output Format (when relevant):

- Define structure explicitly - Provide format examples - Specify length or detail level

  1. Examples (when clarifying):

- Show desired patterns - Illustrate edge cases - Demonstrate style/tone

Key Techniques Reference

Foundation Techniques

Role Setting: Establish perspective when expertise or tone matters

  • Effective for: Specialized knowledge, consistent voice
  • Example: "As an experienced code reviewer, analyze..."

Progressive Disclosure: Start general, add detail as needed

  • Effective for: Complex multi-part tasks
  • Example: "First outline the approach, then implement each section..."

Explicit Constraints: Define boundaries clearly

  • Effective for: Preventing unwanted outputs
  • Example: "Limit response to 3 paragraphs, focus only on technical aspects"

Advanced Techniques

Chain-of-Thought: Request reasoning before conclusions

  • Use when: Logic and transparency matter
  • Trigger: "Think step-by-step" or "Explain your reasoning"

Few-Shot Learning: Provide input-output examples

  • Use when: Pattern is easier shown than explained
  • Caution: 2-3 examples usually sufficient

Self-Consistency: Have model verify its own outputs

  • Use when: Accuracy is critical
  • Implementation: "Review your answer for errors and inconsistencies"

For detailed technique explanations and examples, consult:

  • references/techniques.md - Comprehensive technique catalog
  • references/patterns.md - Common prompt patterns
  • references/antipatterns.md - What to avoid

Collaboration Principles

Be a Thought Partner, Not Just an Executor

  • Bad: "Here's your prompt" (without understanding needs)
  • Good: "Let me understand what you're trying to achieve first..."

Question Assumptions Constructively

  • Surface hidden requirements through dialogue
  • Challenge unclear objectives respectfully
  • Propose alternatives when original approach seems suboptimal

Iterate Based on Feedback

  • Start with minimum viable prompt
  • Test and refine based on actual outputs
  • Document what works and what doesn't

Teach While Doing

  • Explain why certain techniques work
  • Share the reasoning behind design choices
  • Help users understand prompt engineering principles

References

This skill includes detailed reference documentation:

references/

  • techniques.md - Complete catalog of prompting techniques with examples
  • patterns.md - Reusable prompt patterns for common scenarios
  • antipatterns.md - Common mistakes and how to avoid them
  • evaluation.md - Comprehensive quality evaluation framework
  • examples.md - Library of before/after prompt improvements

Consult these references for in-depth technical details and extensive examples not included in this overview.

平台分布

OpenClaw

83.73%
按下载量换算4,596

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills