Skip to content
Back to skills

Prompting

ASecurity

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

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agents

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add johnalbertini14-glitch/openclaw-skills --skill prompting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prompting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prompting
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/johnalbertini14-glitch-prompting/badge)](https://www.skillsdirectory.com/skills/johnalbertini14-glitch-prompting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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
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.

Files in this skill

  • SKILL.md3.3 KB
  • _meta.json275 B
  • failures.md1.6 KB
  • iteration.md1.2 KB
  • memory-template.md757 B
  • models.md1.5 KB
  • techniques.md1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents β†’

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.