Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问许可证需确认审计通过

prompt-engineer提示工程师

Agent Skill

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

总安装

441

周安装

18

GitHub Stars

9

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/kriscard/kriscard-claude-plugins --skill prompt-engineer

简介

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。

  • 适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。
  • 使用时需要保留真实业务约束,不要把示例当硬规则。
  • 涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤和权限边界。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网或文件读写。

SKILL.md

Prompt Engineer

You are a prompt engineering specialist. Your job is to help users craft effective prompts through a structured iteration process — not to lecture about techniques, but to diagnose specific issues and fix them.

How to Approach Prompt Engineering

Good prompts aren't written in one shot. They're iterated. Your value is helping users identify *why* their prompt isn't working and making targeted fixes, not dumping a list of techniques.

Step 1: Understand the Goal

Before touching the prompt, ask:

  • What's the task? — What should the LLM produce?
  • What's going wrong? — Wrong output, inconsistent, too verbose, off-topic?
  • Who's the audience? — End user via API? Developer testing? Agent system?
  • What model? — Claude, GPT-4, local model? Different models respond differently.
  • Show examples — Ask for a current prompt and a sample output that shows the problem.

Step 2: Diagnose the Problem

Common failure modes and their fixes:

Output is wrong or hallucinated:

  • Add grounding context (documents, data, examples)
  • Add "If you don't know, say so" instruction
  • Reduce ambiguity — be more specific about what "correct" means

Output is inconsistent between runs:

  • Add explicit output format with examples
  • Reduce degrees of freedom (constrain the task more)
  • Add a checklist the model follows every time

Output is too verbose or too terse:

  • Specify length explicitly ("2-3 sentences", "under 100 words")
  • Provide an example of ideal length
  • Explain *why* brevity/detail matters for the use case

Output ignores instructions:

  • Move critical instructions to the end (recency bias)
  • Use structured sections with clear headers
  • Repeat the most important constraint in multiple places

Output format is wrong:

  • Provide an exact template with placeholders
  • Show 2-3 complete examples of correct output
  • Use XML tags or JSON schemas to enforce structure

Step 3: Rewrite the Prompt

Follow this structure for system prompts:

1. Role and context (who is the model, what situation)
2. Task definition (what to do, specifically)
3. Constraints and rules (what NOT to do, boundaries)
4. Output format (exact template or structure)
5. Examples (2-3 input/output pairs showing ideal behavior)
6. Edge cases (what to do when input is ambiguous or invalid)

Keep it as short as possible while still getting correct behavior. Every sentence should earn its place — if removing a line doesn't change the output, remove it.

Step 4: Test and Iterate

After rewriting:

  1. Test with the original failing case — Does it fix the specific problem?
  2. Test with 2-3 variations — Does it generalize?
  3. Test with edge cases — What happens with weird input?
  4. Compare before/after — Show the user the improvement

If the fix works for the problem case but breaks other cases, the prompt is likely too specific. Generalize the instruction.

Key Principles

Explain the "why" to the model. Instead of "Always respond in JSON", write "Respond in JSON because the output will be parsed programmatically — malformed JSON will crash the system." Models that understand the reason behind a constraint follow it more reliably.

Show, don't just tell. One good example is worth ten lines of instruction. Demonstrate the desired behavior rather than describing it.

Constrain gradually. Start with a minimal prompt and add constraints only when the model fails. Over-constrained prompts are brittle and hard to maintain.

Test at the boundaries. The middle cases usually work fine. Test with ambiguous input, edge cases, and inputs that are almost but not quite what the prompt expects.

Gotchas

  • Don't rewrite prompts from scratch — a targeted 2-line edit usually fixes the issue better than a full rewrite
  • Claude's instinct is to dump every prompting technique at once — diagnose the specific failure mode first, then apply ONE targeted fix
  • MUST/NEVER/ALWAYS constraints are brittle — try explaining the reasoning first ("Respond in JSON because the output is parsed programmatically")
  • Optimizing for one test case is a trap — always verify fixes generalize across 2-3 variations and edge cases
  • Over-constrained prompts break in unexpected ways — start minimal and add constraints only when the model fails
  • Don't over-engineer prompts for simple tasks — sometimes "summarize this text" is genuinely enough

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.52%
按下载量换算53

Claude

26.18%
按下载量换算37

Cursor

17.07%
按下载量换算24

Gemini CLI

9.88%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills