prompt-engineering
提示工程 —— LLM 提示词设计、上下文组织、Few-shot 策略与输出格式控制
Skill by Sweetteabittersugar
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sweetteabittersugar-prompt-engineering
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/prompt-engineering
What's inside
- Skill name
prompt-engineering- Description
- 提示工程 —— LLM 提示词设计、上下文组织、Few-shot 策略与输出格式控制
- License
- MIT
- Instructions
- 36 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- SKILL.md.disabled
SKILL.md (first lines)
# 提示工程 ## 概述 提供与大语言模型(LLM)交互的提示词设计方法论,覆盖提示结构、上下文管理、Few-shot 示例、思维链、输出格式控制等核心技术。 ## 使用场景 - 设计系统提示词(System Prompt)定义 AI 角色和行为 - 优化已有提示词以提高输出质量和一致性 - 设计链式提示(Chain of Thought)解决复杂推理任务 - 控制 LLM 输出格式(JSON、Markdown、特定 Schema) ## 核心原则 1. **角色先行**:先定义角色(你是谁、你的能力边界),再给任务。明确的角色设定比模糊的"你是一个助手"效果好得多。 2. **约束写死,格式给例**:行为约束用规则语言明确写出。期望的输出格式给出 1-2 个完整示例。 3. **分步指导复杂任务**:对于多步骤任务,分解为明确的阶段。每个阶段有清晰的输入、操作和输出。 4. **负面示例与正面示例同等重要**:给出"不要这样做"的例子能显著减少错误输出模式。 5. **上下文是稀缺资源**:不相关信息占用的上下文会稀释模型的注意力。每段内容都要为输出目标服务。 ## 提示结构模板 ``` [角色定义] 你是谁,你的专长和限制 [任务描述] 具体要做什么 [输入格式] 你会收到什么格式的信息 [输出格式] 你应当以什么格式输出 [约束规则] 绝对不能做的事(负面约束) [示例] 至少 1 个完整的正确输入输出对 ``` ## 检查清单 - [ ] 是否定义了明确的 AI 角色和职责边界? - [ ] 输出格式是否有具体的示例而非仅文字描述? - [ ] 约束规则是否覆盖了最常见的错误输出模式? - [ ] 提示词是否足够精简(无冗余信息稀释注意力)? - [ ] 是否有负面示例阻止不期望的输出模式?
From Sweetteabittersugar/agency, MIT.
More from Sweetteabittersugar/agency
- 0.555score
architecture-patterns
Sweetteabittersugar
架构设计模式参考 —— 常见架构风格的决策框架、优劣对比与适用场景
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
browser-compatibility
Sweetteabittersugar
浏览器兼容性检查 —— 目标浏览器覆盖率、特性支持度验证与降级策略
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
caching-strategy
Sweetteabittersugar
缓存策略参考 —— 多级缓存架构、失效策略、缓存穿透/击穿/雪崩防护
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
database-design
Sweetteabittersugar
数据库设计规范 —— 范式设计、索引策略、分库分表、命名约定与迁移管理
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
dependency-audit
Sweetteabittersugar
依赖审计方法论 —— CVE 扫描、许可证合规、版本锁定与升级策略
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
docker-patterns
Sweetteabittersugar
Docker 最佳实践 —— 多阶段构建、镜像层优化、安全运行、编排模式
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
e2e-testing
Sweetteabittersugar
端到端测试实战 —— 关键用户流程覆盖、测试数据管理、环境隔离与 Playwright/Cypress 最佳实践
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
error-handling-patterns
Sweetteabittersugar
错误处理模式 —— 异常分类体系、重试与降级策略、错误码规范与用户友好提示
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
health-check-patterns
Sweetteabittersugar
健康检查模式 —— 存活探针、就绪探针、依赖健康检查与服务健康度仪表板
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
microservices
Sweetteabittersugar
微服务架构模式 —— 服务拆分原则、通信模式、数据一致性与治理框架
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
parallel-execution
Sweetteabittersugar
并行执行方法论 —— 独立任务识别、并行策略、结果合并与冲突避免
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
query-optimization
Sweetteabittersugar
查询优化指南 —— 慢查询分析、索引调优、执行计划解读与 N+1 问题治理
SkillBFreshness: B★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Jun 10, 2026 (4 months ago)
- Last release
- Aug 24, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Sweetteabittersugar/agency
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Sweetteabittersugar
- 0.555score
browser-compatibility
Sweetteabittersugar
浏览器兼容性检查 —— 目标浏览器覆盖率、特性支持度验证与降级策略
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
caching-strategy
Sweetteabittersugar
缓存策略参考 —— 多级缓存架构、失效策略、缓存穿透/击穿/雪崩防护
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
database-design
Sweetteabittersugar
数据库设计规范 —— 范式设计、索引策略、分库分表、命名约定与迁移管理
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
dependency-audit
Sweetteabittersugar
依赖审计方法论 —— CVE 扫描、许可证合规、版本锁定与升级策略
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
docker-patterns
Sweetteabittersugar
Docker 最佳实践 —— 多阶段构建、镜像层优化、安全运行、编排模式
SkillBFreshness: B★ 3Claude Code +9 - 0.555score
architecture-patterns
Sweetteabittersugar
架构设计模式参考 —— 常见架构风格的决策框架、优劣对比与适用场景
SkillBFreshness: B★ 3Claude Code +9
Cite this page
prompt-engineering skill. Agent Mart. https://agentmart.dev/skills/sweetteabittersugar-prompt-engineering (last updated 2026-10-24)