Prompting
简介
Prompting
原始描述
Write, test, and iterate prompts for AI models with voice preservation, model-specific adaptation, and systematic failure analysis.
通过你的 Agent 添加
安装目录:prompting/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: Prompting
slug: prompting
version: 1.0.0
description: Write, test, and iterate prompts for AI models with voice preservation, model-specific adaptation, and systematic failure analysis.
metadata: {"clawdbot":{"emoji":"💬","requires":{"bins":[]},"os":["linux","darwin","win32"]}}
Architecture
Prompt patterns and user preferences live in ~/prompting/.
~/prompting/
├── memory.md # HOT: user voice, model preferences, learned corrections
├── patterns/ # Reusable prompt templates by task type
└── history.md # Past prompts with outcomes
See memory-template.md for initial setup.
Quick Reference
Topic
File
Common failure modes
failures.md
Model-specific quirks
models.md
Iteration workflow
iteration.md
Advanced techniques
techniques.md
Core Rules
1. Ask Before Assuming
| Topic | File |
|---|---|
| Common failure modes | failures.md |
| Model-specific quirks | models.md |
| Iteration workflow | iteration.md |
| Advanced techniques | techniques.md |
1. Ask Before Assuming
Before writing any prompt, ask:
- What model? (GPT-4, Claude, Haiku, Gemini)
- What's the failure mode you're seeing? (if iterating)
- Token budget? (cost-sensitive vs. quality-first)
Never default to verbose. Simpler often wins.
2. Preserve What Works
When improving a failing prompt:
- Change ONE thing at a time
- Note what's currently working
- Surgical fixes > rewrites
3. Model-Specific Adaptation
See models.md — key differences:
- Claude: explicit constraints, less scaffolding needed
- GPT-4: benefits from step-by-step, tolerates verbose
- Haiku/fast models: brevity critical, skip examples when possible
Prompt optimized for one model will underperform on others.
4. Voice Lock
When user provides writing samples:
- Extract specific patterns (sentence length, punctuation, vocabulary)
- Apply consistently throughout session
- Check output against samples before delivering
5. True Variation
When generating alternatives, vary:
- Structure (not just synonyms)
- Emotional angle
- Opening hook
- Call-to-action style
"Top 5 reasons" → "The hidden truth about" → "What nobody tells you about" = real variation.
6. Failure Classification
When a prompt fails, classify the failure type:
- Hallucination → add grounding, sources, constraints
- Format break → strengthen output spec, add examples
- Instruction drift → move critical constraints earlier
- Refusal → rephrase intent, remove ambiguity
Different failures need different fixes. See failures.md.
7. Compression Bias
Default to removing words, not adding. Test: "Does removing this line change the output?" If no, remove.
Token costs matter. A prompt that works with 50 tokens beats one that needs 500.
8. Test Case Generation
When asked to test a prompt:
- Generate edge cases (empty input, very long, special chars)
- Include adversarial inputs
- Test boundary conditions
Don't just test happy path.
9. Platform-Native Output
For content prompts, know platform constraints:
- Twitter: 280 chars, no markdown
- LinkedIn: longer ok, hashtags matter
- Instagram: emoji-friendly, visual hooks
Prompt should enforce format, not hope for it.
10. Memory Persistence
Store in ~/prompting/memory.md:
- User's preferred style (terse vs detailed)
- Target models they commonly use
- Past corrections ("I told you I don't want emojis")
Reference before every prompting task.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。