Token导航 LogoToken导航TokenDH.com
AI 工具需要联网github未标认证来源可访问clear审计通过

anthropic-prompt-engineerAnthropic prompt 工程师

Agent Skill

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

总安装

2,472

周安装

122

GitHub Stars

126

下载量

776
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/jamesrochabrun/skills --skill anthropic-prompt-engineer

简介

掌握提示工程创建:

  • 可靠且一致的输出
  • 生产就绪提示
  • 代币高效的解决方案
  • 易于维护的系统
  • 应用 Anthropic 经过验证的技术以获得最佳结果。
  • 请记住:好的提示是设计出来的,而不是猜测的。
  • 每周安装量
  • 100
  • 存储库
  • 詹姆斯罗查布伦/技能
  • GitHub 之星
  • 126
  • 第一次看到
  • 2天前
  • 安全审计
  • Gen Agent Trust Hub 通行证
  • 套接字通行证
  • 斯尼克通行证

SKILL.md

Anthropic Prompt Engineer

Master the art and science of prompt engineering with Anthropic's proven techniques. Generate new prompts from scratch or improve existing ones using best practices for Claude AI models (Claude 4.x, Sonnet, Opus, Haiku).

What This Skill Does

Helps you create and optimize prompts for Claude AI using Anthropic's official techniques:

  • Generate new prompts - Build effective prompts from requirements
  • Improve existing prompts - Optimize prompts for better results
  • Apply best practices - Use proven techniques from Anthropic
  • Avoid common mistakes - Prevent hallucinations and unclear outputs
  • Optimize for Claude 4.x - Leverage latest model capabilities
  • Structure complex prompts - Build multi-step, production-ready prompts

Why Prompt Engineering Matters

Without proper prompting:

  • Inconsistent or incorrect outputs
  • Hallucinations and made-up information
  • Unclear or verbose responses
  • Wasted tokens and API calls
  • Poor performance on complex tasks
  • Difficulty reproducing results

With engineered prompts:

  • Precise, reliable outputs
  • Factual, grounded responses
  • Clear, formatted results
  • Efficient token usage
  • Excellent complex task performance
  • Reproducible, production-ready results

Quick Start

Generate a New Prompt

Using the anthropic-prompt-engineer skill, create a prompt that:
- Extracts structured data from customer emails
- Returns JSON format
- Handles missing information gracefully
- Includes 2 examples

Improve an Existing Prompt

Using the anthropic-prompt-engineer skill, improve this prompt:

"Analyze this code and tell me if there are bugs"

Make it more effective using Anthropic's best practices.

Core Techniques Summary

1. Be Clear and Direct

Provide explicit, unambiguous instructions. Claude 4.x excels with precise direction.

2. Use XML Tags for Structure

Organize prompts with semantic tags like <instructions>, <example>, <context>.

3. Chain of Thought (CoT)

Ask Claude to think step-by-step for complex reasoning.

4. Prefilling

Start Claude's response to guide format and style.

5. Few-Shot Examples

Provide 2-5 diverse examples showing the pattern you want.

6. Role Assignment

Give Claude a specific role or persona for appropriate context.

Reference Materials

All techniques, examples, and templates are available in the references/ directory:

  • core_techniques.md - Essential techniques with examples
  • advanced_techniques.md - Advanced methods and optimization
  • common_mistakes.md - Pitfalls to avoid
  • claude_4_best_practices.md - Claude 4.x specific guidance
  • prompt_templates.md - Ready-to-use templates

Usage Examples

Example 1: Generate a Data Extraction Prompt

Create a prompt that extracts names, emails, and phone numbers from business cards.

Example 2: Improve a Vague Prompt

Transform "Write about machine learning" into a structured, effective prompt.

Example 3: Debug a Failing Prompt

Fix inconsistent outputs by adding structure, examples, and format specification.

Best Practices Checklist

  • Instructions are clear and specific
  • Output format is explicitly defined
  • Examples align with desired behavior
  • XML tags separate different sections
  • Context is minimal but sufficient
  • Edge cases are addressed
  • Tested on diverse inputs
  • Token usage is optimized

Key Principles

  1. Empirical Approach - Test, measure, iterate
  2. Context as Resource - Every token counts
  3. Clarity Over Cleverness - Explicit instructions work best
  4. Examples Teach Best - Show, don't just tell
  5. Structure Helps - Organization reduces confusion
  6. Iteration Improves - Refine based on results

Summary

Master prompt engineering to create:

  • Reliable and consistent outputs
  • Production-ready prompts
  • Token-efficient solutions
  • Easy to maintain systems

Apply Anthropic's proven techniques for best results.


Remember: Good prompts are engineered, not guessed.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

28.85%
按下载量换算224

OpenCode

21.25%
按下载量换算165

Antigravity

17.86%
按下载量换算139

Gemini CLI

10.34%
按下载量换算80

Cursor

7.14%
按下载量换算55

Codex

2.83%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills