重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/diskd-ai/prompting --skill prompting指导如何为大型语言模型(Claude、GPT、Gemini、Llama 等)构建有效的提示词。
从此模板开始:
[上下文/角色 - 可选]
[任务 - 必需]
[约束/要求 - 根据需要]
[输出格式 - 根据需要]
[示例 - 针对复杂任务]
极简提示词(简单任务):
用 3 个要点总结这篇文章。
结构化提示词(复杂任务):
你是一名高级代码审查员。
审查此代码的以下方面:
- 安全漏洞
- 性能问题
- 可维护性问题
按以下格式回复:
## 总结
[1-2 句话]
## 问题
- [严重程度]: [描述]
## 建议
[优先级排序列表]
诊断问题:
| 问题 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 解决方案 |
|---|
| 输出过于模糊 | 添加具体约束或示例 |
| 格式错误 | 明确指定输出结构 |
| 缺少细节 | 使用思维链或任务分解 |
| 结果不一致 | 添加少量示例 |
| 回答偏离主题 | 加强角色/上下文设定 |
改进检查清单:
| 技术 | 使用时机 |
|---|---|
| 少量示例 | 需要特定格式/风格时 |
| 思维链 | 复杂推理、数学、分析时 |
| 角色提示 | 需要领域专业知识、特定语气时 |
| 任务分解 | 多步骤工作流时 |
| 约束 | 需要精确要求时 |
详细模式和示例请参阅 references/techniques.md。
| 格式 | 使用时机 |
|---|---|
| XML 标签 | 复杂提示词、需要清晰章节边界时 |
| JSON | 需要程序化解析、结构化数据时 |
| Markdown | 需要人类可读的报告、文档时 |
格式模式请参阅 references/structured.md。
关于设计 AI 助手行为,请参阅 references/system-prompts.md。
关键部分:
每周安装量
49
代码仓库
首次出现
2026 年 1 月 23 日
安全审计
安装于
opencode38
codex37
gemini-cli36
cursor32
claude-code30
github-copilot29
Guide for crafting effective prompts for large language models (Claude, GPT, Gemini, Llama, etc.).
Start with this template:
[Context/Role - optional]
[Task - required]
[Constraints/Requirements - as needed]
[Output format - as needed]
[Examples - for complex tasks]
Minimal prompt (simple tasks):
Summarize this article in 3 bullet points.
Structured prompt (complex tasks):
You are a senior code reviewer.
Review this code for:
- Security vulnerabilities
- Performance issues
- Maintainability concerns
Format your response as:
## Summary
[1-2 sentences]
## Issues
- [severity]: [description]
## Recommendations
[prioritized list]
Diagnose issues:
| Problem | Solution |
|---|---|
| Output too vague | Add specific constraints or examples |
| Wrong format | Specify output structure explicitly |
| Missing details | Use chain-of-thought or decomposition |
| Inconsistent results | Add few-shot examples |
| Off-topic responses | Strengthen role/context framing |
Improvement checklist :
| Technique | When to Use |
|---|---|
| Few-shot | Specific format/style needed |
| Chain-of-thought | Complex reasoning, math, analysis |
| Role prompting | Domain expertise, specific tone |
| Task decomposition | Multi-step workflows |
| Constraints | Precise requirements |
See references/techniques.md for detailed patterns and examples.
| Format | When to Use |
|---|---|
| XML tags | Complex prompts, clear section boundaries |
| JSON | Programmatic parsing, structured data |
| Markdown | Human-readable reports, documentation |
See references/structured.md for format patterns.
For designing AI assistant behavior, see references/system-prompts.md.
Key sections:
Weekly Installs
49
Repository
First Seen
Jan 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode38
codex37
gemini-cli36
cursor32
claude-code30
github-copilot29
AI界面设计评审工具 - 全面评估UI/UX设计质量、检测AI生成痕迹与优化用户体验
58,500 周安装