Skip to content
Agentmart
Submit a tool

prompt-engineering

提示工程 —— LLM 提示词设计、上下文组织、Few-shot 策略与输出格式控制

Skill by Sweetteabittersugar

IndexedMIT★ 3
Write a review

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.

We use your email only for this newsletter. Privacy

About

提示工程 —— LLM 提示词设计、上下文组织、Few-shot 策略与输出格式控制

Use cases: ml, agent-building

No 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

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
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Sweetteabittersugar

Cite this page

prompt-engineering skill. Agent Mart. https://agentmart.dev/skills/sweetteabittersugar-prompt-engineering (last updated 2026-10-24)