Token导航 LogoToken导航

Agent Skill · 研究检索

prompt-engineering(及时工程)

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

prompt-engineering 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 66,724。

总安装 259周安装 11GitHub Stars 11下载 91核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/doodledood/claude-code-plugins --skill prompt-engineering

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

prompt-engineering 创建或优化 LLM 提示词,明确目标与约束条件。适用于技能开发或工作流模板,确保提示词具备可复用性与清晰边界。支持从提问到结构化的全流程,避免将示例当作硬规则执行。高风险操作需在提示中嵌入确认步骤与失败处理机制。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/prompt-engineering

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/doodledood/claude-code-plugins --skill prompt-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

prompt-engineering 怎么安装?

在终端执行 npx skills add https://github.com/doodledood/claude-code-plugins --skill prompt-engineerin…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

prompt-engineering 支持哪些 AI 工具?

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

prompt-engineering 需要什么权限?

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

prompt-engineering 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

prompt-engineering 用的人多吗?

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

prompt-engineering 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
prompt-engineering

及时工程 · 本页

25911只读未明确通过

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

SKILL.md 原文

User request: $ARGUMENTS

Create or update an LLM prompt. Prompts act as manifests: clear goal, clear constraints, freedom in execution.

If no request provided: Ask the user whether they want to create a new prompt, update an existing one, or review prompt structure.

If creating: Discover goal, constraints, and structure through targeted questions.

If updating: Read existing prompt, identify issues against principles, make targeted fixes.

If creating or updating a skill: Read references/skills.md for skill-specific architecture patterns (folder structure, progressive disclosure, gotchas, setup config, description-as-trigger, skill type awareness) before proceeding.

Context Discovery

Before writing or improving a prompt, surface all required context through user engagement. Missing domain knowledge creates ambiguous prompts. You can't surface latent requirements you don't understand.

What to discover:

Context TypeWhat to Surface
Domain knowledgeIndustry terms, conventions, patterns, constraints
User typesWho interacts, expertise level, expectations
Success criteriaWhat good output looks like, what makes it fail
Edge casesUnusual inputs, error handling, boundary conditions
ConstraintsHard limits (length, format, tone), non-negotiables
Integration contextWhere prompt fits, what comes before/after

Interview method:

PrincipleHow
Generate candidates, learn from reactionsDon't ask open-ended "what do you want?" Propose concrete options: "Should this be formal or conversational? (Recommended: formal for enterprise context)"
Mark recommended optionsReduce cognitive load. For single-select, mark one "(Recommended)". For multi-select, mark sensible defaults or none if all equally valid.
Outside view"What typically fails in prompts like this?" "What have you seen go wrong before?"
Pre-mortem"If this prompt failed in production, what would likely cause it?"
Discovered ≠ confirmedWhen you infer constraints from context, confirm before encoding: "I'm inferring X should be a constraint?" Includes ambiguous scope (list in/out assumptions).
Encode explicit statementsWhen user states a preference or requirement, it must appear in the final prompt. Don't let constraints get lost.
Domain termsAsk for definitions, don't guess. Jargon you don't understand creates ambiguous prompts.
Missing examplesAsk for good/bad output examples when success criteria are unclear.

Stopping rule: Continue probing until very confident further questions would yield nothing new, or user signals "enough". Err toward more probing—every requirement discovered now is one fewer failure later.

Handling ambiguity: Critical ambiguities (those that would cause prompt failure) require clarification even if user wants to move on. Minor ambiguities can be documented with chosen defaults and proceed. When in doubt, ask—a prompt built on assumptions will fail in ways the user didn't expect.

Core Principles

PrincipleWhat It Means
WHAT and WHY, not HOWState goals and constraints. Don't prescribe steps the model knows how to do.
Trust capability, enforce disciplineModel knows how to search, analyze, generate. Only specify guardrails.
Maximize information densityEvery word earns its place. Fewer words = same meaning = better.
Avoid arbitrary values"Max 4 rounds" becomes rigid. State the principle: "stop when converged".
Output structure when neededDefine format only if artifact requires it. Otherwise let agent decide.

Issue Types

Clarity:

  • Ambiguous instructions (multiple interpretations)
  • Vague language ("be helpful", "use good judgment", "when appropriate")
  • Implicit expectations (unstated assumptions)

Conflict:

  • Contradictory rules ("Be concise" vs "Explain thoroughly")
  • Priority collisions (two MUST rules that can't both be satisfied)
  • Edge case gaps (what happens when rules don't cover a situation?)

Structure:

  • Buried critical info (important rules hidden in middle)
  • No hierarchy (all instructions treated as equal priority)
  • Unintentional redundancy (but: repetition can be intentional emphasis—don't remove if it reinforces critical rules)

Anti-Patterns to Eliminate

Anti-patternExampleFix
Prescribing HOW"First search, then read, then analyze..."State goal: "Understand the pattern"
Arbitrary limits"Max 3 iterations", "2-4 examples"Principle: "until converged", "as needed"
Capability instructions"Use grep to search", "Read the file"Remove - model knows how
Rigid checklistsStep-by-step heuristics tablesConvert to principles
Weak language"Try to", "maybe", "if possible"Direct: "Do X", "Never Y"
Buried critical infoImportant rules in middleSurface prominently
Over-engineering10 phases for a simple taskMatch complexity to need

When Updating Prompts

High-signal changes only: Every change must address a real failure mode or materially improve clarity. Don't change for the sake of change.

Right-sized changes: Don't overcorrect. One edge case doesn't warrant restructuring.

Questions before changing:

  • Does this change address a real failure mode?
  • Am I adding complexity to solve a rare case?
  • Can this be said in fewer words?
  • Am I turning a principle into a rigid rule?

Over-engineering warning signs:

  • Prompt length doubled or tripled
  • Adding edge cases that won't happen
  • "Improving" clear language into verbose language
  • Adding examples for obvious behaviors

Memento Pattern (Multi-Phase Workflows Only)

For prompts involving accumulated findings across steps:

LLM LimitationPattern Response
Context rot (middle content lost)Write findings to log after EACH step
Working memory is limitedTodo lists externalize tracked areas
Synthesis failure at scaleRead full log BEFORE final output
Recency biasRefresh moves findings to context end

Key disciplines:

  • →log after each collection step (discipline, not capability)
  • Refresh: read full log before synthesis (restores context)
  • Acceptance criteria on each todo ("; done when X")

Prompt Structure Reference

Skills/Agents

---
name: kebab-case-name
description: 'What it does. When to use. Trigger terms.'
---

**User request**: $ARGUMENTS

{One-line mission - WHAT, not HOW}

{Empty input handling}

{Log file path if multi-phase}

## {Sections based on actual workflow needs}

{Goals and constraints per section}

## Key Principles

| Principle | Rule |
|-----------|------|
| {Discipline} | {Enforcement} |

## Gotchas

{Known failure modes Claude hits — specific, actionable, observed}

## Never Do

- {Anti-pattern}

System Instructions

## Role
{Identity and purpose - one paragraph}

## Approach
{Principles for thinking, not procedures}

## Constraints
{MUST > SHOULD > PREFER priority}

## Output
{Format requirements if needed}

Skill Description Pattern

Descriptions drive auto-invocation. Pattern: What + When + Triggers

# Weak
description: 'Helps with prompts'

# Strong
description: 'Craft or update LLM prompts from first principles. Use when creating new prompts, updating existing ones, or reviewing prompt structure.'
  • Include trigger terms users say
  • Specify when to use
  • Under 1024 chars

Emotional Tone

Prompts shape the model's internal emotional state before generation begins. Research on transformer internals shows emotion concept representations that causally influence behavior — including sycophancy, reward hacking, and misalignment. These principles help calibrate the emotional context a prompt creates.

PrincipleWhat It MeansWhy
Keep arousal lowAvoid urgency language ("CRITICAL", "you MUST"), excessive praise ("you're amazing at this!"), and pressure framing.High-arousal emotions causally drive sycophancy (positive arousal) or corner-cutting and misalignment (negative arousal).
Opening framing propagatesThe emotional tone set in a prompt's opening persists into the model's response planning. A tense opening produces a tense response.Emotional context from early tokens propagates through later processing layers, even when subsequent content is neutral.
Normalize failure in iterative promptsFor agentic or multi-step prompts, explicitly frame failure as acceptable: "if this approach doesn't work, try another."Repeated failures build desperation that causally drives reward hacking and corner-cutting solutions.
Sycophancy-harshness tradeoffPushing toward warmth and positivity increases sycophancy. Pushing away from warmth increases bluntness and harshness. Aim for a "trusted advisor" tone — honest pushback delivered with care.Positive-valence emotion representations causally increase agreement-seeking behavior; their absence produces unnecessary harshness.
Avoid unintended high-stakes framingThe model reads semantic intensity, not surface patterns. "This is critical to my career" or "failure is not an option" activates negative emotion representations even if intended as motivation.Emotion representations respond to the meaning of situations — quantities, stakes, consequences — not to keywords.

Gotchas

  • Rewriting working language for style: Claude rewrites clear, working prompt text for stylistic preference. If existing language is unambiguous and effective, don't touch it.
  • Skipping context discovery when the task seems obvious: Claude jumps to writing/editing without probing. Even "simple" prompt tasks have hidden constraints — force discovery before producing output.
  • Over-engineering simple prompts: A 3-line prompt doesn't need 10 sections, a memento pattern, and a validation checklist. Match complexity to the task.
  • Converting principles into rigid rules: "Stop when converged" becomes "Max 5 iterations." Principles give flexibility; rigid rules create edge cases.
  • Adding examples for behaviors Claude already knows: Examples earn their place only when they demonstrate non-obvious or counter-intuitive behavior.

Validation Checklist

Before finalizing any prompt:

  • All ambiguities resolved through user questions
  • Domain context gathered (terms, conventions, constraints)
  • Goals stated, not steps prescribed
  • No arbitrary numbers (or justified if present)
  • Weak language replaced with direct imperatives
  • Critical rules surfaced prominently
  • Complexity matches the task
  • Each word earns its place
  • If multi-phase: memento pattern applied correctly

平台分布

Codex

34.1%
按下载量换算31

Claude

30.7%
按下载量换算28

Cursor

17.61%
按下载量换算16

Gemini CLI

8.01%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

继续浏览同类 Skills