Prompting

Write, test, and iterate prompts for AI models with voice preservation, model-specific adaptation, and systematic failure analysis.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Prompting" with this command: npx skills add ivangdavila/prompting

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

TopicFile
Common failure modesfailures.md
Model-specific quirksmodels.md
Iteration workflowiteration.md
Advanced techniquestechniques.md

Core Rules

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

Autism Spectrum Disorder Behavior Analysis Tool | 孤独症谱系障碍行为分析工具

Performs special video analysis on behavioral characteristics of children with autism, identifies core symptom features, provides structured analysis reports...

Registry SourceRecently Updated
Research

""Mental Health Analysis Tool | 心理健康分析工具""

Analyzes human mental health and psychological behavior, supports identifying common psychological problem tendencies through video analysis, and provides st...

Registry SourceRecently Updated
Research

"""Micro-Expression Recognition & Analysis Tool | 微观情绪识别分析工具"""

Professional discernment of subtle cues! It performs detailed analysis and recognition of facial micro-expressions, outputs precise emotional state reports,...

Registry SourceRecently Updated
840Profile unavailable
Research

媒体广告流量分析

查询广告投放流量分布与趋势的数据分析技能。支持按行业、地域、媒体(OTT/移动端)、目标受众等多维度分析广告曝光数据,适用于媒体策略评估、竞品投放监测、行业广告趋势研究等场景。

Registry SourceRecently Updated
336Profile unavailable