Pragmatic writing
Skill bg-szy/TOP-SKILLS/skills/claude-code-toolkit/pragmatic-writing
This skill should be used when writing technical content in the style of Hunt/Thomas (The Pragmatic Programmer) and Joel Spolsky (Joel on Software). It applies when creating technical essays, documentation, tutorials, or explanatory content that needs to be clear, engaging, and actionable.From its SKILL.md
npx -y skills add bg-szy/TOP-SKILLS --skill pragmatic-writingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.8 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it
Pragmatic Writing Skill
Writing style modeled on the masters of technical communication: Andy Hunt, Dave Thomas (The Pragmatic Programmer), and Joel Spolsky (Joel on Software). This skill transforms technical content into engaging, memorable prose.
When to Use This Skill
This skill applies when:
- Creating technical blog posts, essays, or articles
- Writing documentation that needs personality
- Explaining complex concepts to developers
- Crafting tutorials or how-to guides
- Writing "lessons learned" or postmortem content
- Any technical writing that should be read, not just referenced
Core Philosophy
"The difference between 'almost right' and 'right' is the difference between the lightning bug and the lightning." — Mark Twain (quoted by Pragmatic Programmers)
Technical writing doesn't have to be dry. The best technical writers make complex ideas feel obvious, use concrete examples before abstract theory, and treat the reader as a smart colleague.
The 10 Core Techniques
Reference the complete technique guide at techniques.md.
1. Concrete Before Abstract
Always start with a concrete example, then extract the principle.
❌ "Dependency injection is a design pattern where dependencies are passed
to objects rather than created by them."
✅ "Imagine your class needs a database connection. You could create it
yourself:
def initialize
@db = Database.new("localhost:5432")
end
But now your class is stuck with that exact database. What if you
want to test with a fake one? What if production uses a different host?
Instead, accept it as a parameter:
def initialize(db)
@db = db
end
That's dependency injection. Simple."
2. Physical Analogies
Map abstract concepts to physical experiences readers already understand.
See examples.md for analogy patterns:
- Software abstractions → Physical tools
- Code patterns → Architectural patterns
- System design → Everyday systems (postal service, restaurants)
3. Conversational Register
Write like you're explaining to a smart colleague at a whiteboard.
Markers of conversational register:
- Contractions (don't, won't, can't)
- Direct address (you, your)
- Questions (But what if...? Why does this matter?)
- Asides (By the way, Incidentally)
- Admissions (To be honest, I'm not sure, It depends)
4. Humor as Architecture
Use humor strategically, not decoratively:
- Memorable hooks ("Good code is its own best documentation")
- Tension release after complex explanations
- Self-deprecation to build rapport
- Absurdist examples to highlight bad patterns
5. The "Aha!" Structure
Build to moments of realization:
- Present a familiar problem
- Show the common (flawed) approach
- Reveal why it fails
- Present the insight
- Show the better way
- Connect back to the principle
6. Short Paragraphs, Varied Length
- No paragraph over 4 sentences
- Alternate between longer explanations and punchy one-liners
- Use single-sentence paragraphs for emphasis
Like this.
7. Code as Evidence
Code examples should:
- Be runnable (no pseudo-code unless necessary)
- Be minimal (show only what matters)
- Progress from broken to fixed
- Include comments only for non-obvious things
8. The Principle Box
After a concrete exploration, box the principle:
Tip 23: Always Design for Concurrency Allow for concurrency, and you will design cleaner interfaces with fewer assumptions.
9. Friendly Warnings
When discussing pitfalls:
- Acknowledge you've made the mistake too
- Explain why it's tempting
- Show the consequences
- Provide the escape hatch
See anti-patterns.md for common technical writing mistakes.
10. The Callback
End by connecting back to the opening example or question. Close the loop.
Voice Characteristics
Sentence Patterns
- Average length: 15-20 words
- Mix of simple, compound, complex
- Questions every 3-4 paragraphs
- Direct statements for key points
Vocabulary
Use: specific, concrete, everyday words Avoid: jargon without explanation, buzzwords, corporate-speak
Tone
- Confident but not arrogant
- Curious and exploratory
- Practical and results-focused
- Occasionally irreverent
Applying the Skill
For Blog Posts
- Open with a problem or scenario
- Explore the messy middle
- Reveal the insight
- Show the solution
- Extract the principle
- Callback to opening
For Documentation
- Start with what the reader wants to do
- Show the simplest working example
- Expand with options and edge cases
- Explain the "why" after the "how"
For Tutorials
- State the goal clearly
- Show the end result first
- Build up in small, testable steps
- Explain mistakes, not just successes
Quality Checklist
Before publishing, verify:
- Opens with concrete example or scenario
- Physical analogy for key concepts
- Conversational tone throughout
- At least one moment of humor or levity
- Principles boxed or highlighted
- Code examples are minimal and runnable
- Paragraphs under 4 sentences
- Callbacks to opening
References
- techniques.md - Full technique guide with examples
- examples.md - Before/after transformations
- anti-patterns.md - Seven deadly sins of technical writing
- sources.md - Original source material
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most docs writing skills give in ~1.3k tokens
Counted across 1,637 of the 3,044 authors here whose files we hold, read 2026-08-07
- Announce the skill at startin 54 of 1637, across 26 files
- Convert legacy doc files before editingin 45 of 1637, across 7 files
- Predict questions readers might askin 42 of 1637, across 4 files
- Generate clarifying questions for initial contextin 42 of 1637, across 3 files
- Create document scaffold with placeholder textin 42 of 1637, across 3 files
- Brainstorm content options for each sectionin 42 of 1637, across 3 files
- Test the document with a fresh context-less instancein 42 of 1637, across 3 files
- Include exact file paths in every taskin 42 of 1637, across 15 files
- Ask interview questions one at a timein 42 of 1637, across 27 files
- Apply surgical edits during refinementin 41 of 1637, across 2 files
- Offer structured workflow or freeformin 40 of 1637, across 1 file
- Ask for document meta-contextin 40 of 1637, across 2 files
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.