Token导航 LogoToken导航

Agent Skill · 开发

senior-prompt-engineer(高级提示工程师)

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

senior-prompt-engineer 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 14,414。

总安装 706周安装 30GitHub Stars 1下载 247核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pixel-process-ug/superkit-agents --skill senior-prompt-engineer

这个 Skill 是做什么的

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

senior-prompt-engineer 用于辅助提示词和工作流模板的整理,适合规范任务边界和统一输出格式。适用于提示词优化和系统指令的整理,可拆分操作步骤。使用时需保留真实业务约束,不要把示例当作硬规则。涉及自动执行时应明确确认步骤和权限边界。

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

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/pixel-process-ug/superkit-agents --skill senio…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

senior-prompt-engineer 怎么安装?

在终端执行 npx skills add https://github.com/pixel-process-ug/superkit-agents --skill senior-prompt-e…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

senior-prompt-engineer 支持哪些 AI 工具?

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

senior-prompt-engineer 需要什么权限?

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

senior-prompt-engineer 是免费的吗?

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

senior-prompt-engineer 用的人多吗?

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

senior-prompt-engineer 安全吗?

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

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

值得选的地方

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

先想清楚的地方

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

适不适合你

更适合

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

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 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有提醒
senior-prompt-engineer

高级提示工程师 · 本页

7061只读未明确通过

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

SKILL.md 原文

Senior Prompt Engineer

Overview

Design, test, and optimize prompts for large language models. This skill covers systematic prompt engineering including few-shot example design, chain-of-thought reasoning, system prompt architecture, structured output specification, parameter tuning, evaluation methodology, A/B testing, and prompt version management.

Announce at start: "I'm using the senior-prompt-engineer skill for prompt design and optimization."


Phase 1: Requirements

Goal: Define the task objective, quality criteria, and constraints before writing any prompt.

Actions

  1. Define the task objective clearly
  2. Identify input/output format requirements
  3. Determine quality criteria (accuracy, tone, format)
  4. Assess edge cases and failure modes
  5. Choose model and parameter constraints

STOP — Do NOT proceed to Phase 2 until:

  • Task objective is stated in one sentence
  • Input format and output format are defined
  • Quality criteria are measurable
  • Edge cases are listed
  • Model selection is justified

Phase 2: Prompt Design

Goal: Draft the prompt with proper architecture, examples, and constraints.

Actions

  1. Draft system prompt with role, constraints, and format
  2. Design few-shot examples (3-5 representative cases)
  3. Add chain-of-thought scaffolding if reasoning is needed
  4. Specify output structure (JSON, markdown, etc.)
  5. Add error handling instructions

Prompt Architecture Layers

LayerPurposeExample
1. IdentityWho the model is"You are a sentiment classifier..."
2. ContextWhat it knows/has access to"You have access to product reviews..."
3. TaskWhat to do"Classify each review as positive/negative/neutral"
4. ConstraintsWhat NOT to do"Never include PII in output"
5. FormatHow to structure output"Respond in JSON: {classification, confidence}"
6. ExamplesDemonstrations3-5 representative input/output pairs
7. MetacognitionHandling uncertainty"If uncertain, classify as neutral and explain"

System Prompt Template

[Role] You are a [specific role] that [specific capability].

[Context] You have access to [tools/knowledge]. The user will provide [input type].

[Instructions]
1. First, [step 1]
2. Then, [step 2]
3. Finally, [step 3]

[Constraints]
- Always [requirement]
- Never [prohibition]
- If uncertain, [fallback behavior]

[Output Format]
Respond in the following format:
[format specification]

[Examples]
<example>
Input: [sample input]
Output: [sample output]
</example>

STOP — Do NOT proceed to Phase 3 until:

  • All 7 layers are addressed (or intentionally omitted with rationale)
  • Examples are representative and diverse
  • Output format is unambiguous
  • Constraints are specific (not vague)

Phase 3: Evaluation and Iteration

Goal: Measure prompt quality and iterate toward targets.

Actions

  1. Create evaluation dataset (50+ examples minimum)
  2. Define scoring rubric (automated + human metrics)
  3. Run baseline evaluation
  4. Iterate on prompt with targeted improvements
  5. A/B test promising variants
  6. Version and document the final prompt

STOP — Evaluation complete when:

  • Evaluation dataset covers all input categories
  • Metrics meet defined quality thresholds
  • A/B test shows statistical significance (p < 0.05)
  • Final prompt is versioned with metrics

Few-Shot Example Design

Selection Criteria Decision Table

CriterionExplanationExample
RepresentativeCover most common input typesInclude typical emails, not just edge cases
DiverseInclude edge cases and boundariesShort + long, positive + negative
OrderedSimple to complex progressionObvious case first, ambiguous last
BalancedEqual representation of categoriesNot 4 positive and 1 negative

Example Count Guidelines

Task ComplexityExamples Needed
Simple classification2-3
Moderate generation3-5
Complex reasoning5-8
Format-sensitive3-5 (focus on format consistency)

Example Format

<example>
<input>
[Representative input]
</input>
<reasoning>
[Optional: show the thinking process]
</reasoning>
<output>
[Expected output in exact target format]
</output>
</example>

Chain-of-Thought Patterns

CoT Pattern Decision Table

PatternUse WhenExample
Standard CoTMulti-step reasoning"Think step by step: 1. Identify... 2. Analyze..."
Structured CoTNeed parseable reasoningXML tags: <analysis>...</analysis> then <answer>...</answer>
Self-ConsistencyHigh-stakes decisionsGenerate 3 solutions, pick most common
No CoTSimple factual lookups, format conversionSkip reasoning overhead

When to Use CoT

Task TypeUse CoT?Rationale
Mathematical reasoningYesStep-by-step prevents errors
Multi-step logicYesMakes reasoning transparent
Classification with justificationYesImproves accuracy and explainability
Simple factual lookupNoAdds latency without accuracy gain
Direct format conversionNoNo reasoning needed
Very short responsesNoCoT overhead exceeds benefit

Structured Output

Output Format Decision Table

FormatUse WhenParsing
JSONMachine-consumed outputJSON.parse()
MarkdownHuman-readable structured textRegex or markdown parser
XML tagsSections need clear boundariesXML parser or regex
YAMLConfiguration-like outputYAML parser
Plain textSimple, unstructured responseNo parsing needed

JSON Output Example

Respond with a JSON object matching this schema:
{
  "classification": "positive" | "negative" | "neutral",
  "confidence": number between 0 and 1,
  "reasoning": "brief explanation",
  "key_phrases": ["array", "of", "phrases"]
}

Do not include any text outside the JSON object.

Temperature and Top-P Tuning

Use CaseTemperatureTop-PRationale
Code generation0.0-0.20.9Deterministic, correct
Classification0.01.0Consistent results
Creative writing0.7-1.00.95Diverse, interesting
Summarization0.2-0.40.9Faithful but fluent
Brainstorming0.8-1.20.95Maximum diversity
Data extraction0.00.9Precise, reliable

Rules

  • Temperature 0 for tasks requiring consistency and correctness
  • Higher temperature for creative tasks
  • Top-P rarely needs tuning (keep at 0.9-1.0)
  • Do not use both high temperature AND low top-p (contradictory)

Evaluation Metrics

Automated Metrics

MetricMeasuresUse For
Exact MatchOutput equals expectedClassification, extraction
F1 ScorePrecision + recall balanceMulti-label tasks
BLEU/ROUGEN-gram overlapSummarization, translation
JSON validityParseable structured outputStructured generation
Regex matchOutput matches patternFormat compliance

Human Evaluation Dimensions

DimensionScaleDescription
Accuracy1-5Factual correctness
Relevance1-5Addresses the actual question
Coherence1-5Logical flow and structure
Completeness1-5Covers all required aspects
Tone1-5Matches desired voice
Conciseness1-5No unnecessary content

Evaluation Dataset Requirements

  • Minimum 50 examples for statistical significance
  • Cover all input categories proportionally
  • Include edge cases (10-20% of dataset)
  • Gold labels reviewed by 2+ evaluators
  • Version-controlled alongside prompts

A/B Testing Process

  1. Define hypothesis: "Prompt B will improve [metric] by [amount]"
  2. Hold all variables constant except the prompt change
  3. Run both variants on the same evaluation set
  4. Calculate metric differences with confidence intervals
  5. Require statistical significance (p < 0.05) before adopting

What to A/B Test

VariableExpected Impact
Instruction phrasing (imperative vs descriptive)Moderate
Number of few-shot examplesModerate
Example orderingLow-moderate
CoT presence/absenceHigh for reasoning tasks
Output format specificationHigh for structured output
Constraint placement (beginning vs end)Low

Prompt Versioning

Version File Format

id: classify-sentiment
version: 2.1
model: claude-sonnet-4-20250514
temperature: 0.0
created: 2025-03-01
author: team
changelog: "Added edge case examples for sarcasm detection"
metrics:
  accuracy: 0.94
  f1: 0.92
  eval_dataset: sentiment-eval-v3
system_prompt: |
  You are a sentiment classifier...
examples:
  - input: "..."
    output: "..."

Versioning Rules

  • Semantic versioning: major.minor (major = behavior change, minor = refinement)
  • Every version includes evaluation metrics
  • Link to evaluation dataset version
  • Document what changed and why
  • Keep previous versions for rollback

Anti-Patterns / Common Mistakes

Anti-PatternWhy It Is WrongCorrect Approach
Vague instructions ("be helpful")Unreliable, inconsistent outputSpecific instructions with examples
Contradictory constraintsModel cannot satisfy bothReview for consistency
Examples that do not match taskConfuses the modelExamples must reflect real use
Over-engineering simple tasksWasted tokens, slowerMatch prompt complexity to task complexity
No evaluation frameworkGuessing at qualityDefine metrics before iterating
Optimizing for single exampleOverfitting to one caseOptimize for the distribution
Assuming cross-model portabilityDifferent models need different promptsTest on target model
Skipping version controlCannot rollback or compareVersion every prompt with metrics

Integration Points

SkillRelationship
llm-as-judgeLLM-as-judge evaluates prompt output quality
acceptance-testingPrompt evaluation datasets serve as acceptance tests
testing-strategyPrompt testing follows the evaluation methodology
senior-data-scientistStatistical testing validates A/B results
code-reviewPrompt changes reviewed like code changes
clean-codePrompt readability follows clean code naming principles

Skill Type

FLEXIBLE — Adapt prompting techniques to the specific model, task, and quality requirements. The evaluation and versioning practices are strongly recommended but can be scaled to project size. Always version production prompts.

平台分布

Codex

36.07%
按下载量换算89

Claude

29.26%
按下载量换算72

Cursor

19.12%
按下载量换算47

Gemini CLI

10.22%
按下载量换算25

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

继续浏览同类 Skills