pragmatic-writing

pragmatic-writing is a skill for Claude Code, Codex from robertguss/claude-code-toolkit. It costs 62 tokens per session (1,307 once invoked), scanned A, original, MIT.

Writing guidance for clear, engaging technical articles, documentation, tutorials, and explanations. It is based on the communication styles associated with The Pragmatic Programmer and Joel Spolsky.

In plain words
What is it for?
Use it when writing or revising developer documentation, technical essays, tutorials, or postmortems. It is intended for content that should be read and understood, not merely stored as reference.
Why use it?
It helps make technical material easier to understand and act on without removing the important details. It provides techniques for explaining complex ideas to developers.

Skill for Claude CodeCodex

Part of the compound-writing plugin — 5 skills, 4 commands, 7 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/robertguss/claude-code-toolkit/pragmatic-writing
Any agent
npx skills add robertguss/claude-code-toolkit --skill pragmatic-writing
Clone the repo
git clone --depth 1 https://github.com/robertguss/claude-code-toolkit

Made for: Claude Code, Codex.

Or install compound-writing, the plugin that ships this one along with the rest of its 5 skills, 4 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pragmatic-writing

README.md
[![agentmods](https://agentmods.dev/badge/skills/robertguss/claude-code-toolkit/pragmatic-writing.svg)](https://agentmods.dev/skills/robertguss/claude-code-toolkit/pragmatic-writing)
Your own site
<a href="https://agentmods.dev/skills/robertguss/claude-code-toolkit/pragmatic-writing"><img src="https://agentmods.dev/badge/skills/robertguss/claude-code-toolkit/pragmatic-writing.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,307 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00062 $0.01307
Opus 5 $0.00031 $0.00654
Sonnet 5 $0.00012 $0.00261
Haiku 4.5 $0.00006 $0.00131

Measured 5d ago against content hash 25b7d29dfdad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pragmatic-writing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/compound-writing/skills/pragmatic-writing/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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)

Read the full file on GitHub · 190 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 190 lines · 62 tokens per session scan A 25b7d29dfdad

Subscribe to this mod's changes

pragmatic-writing is a skill published in the GitHub repository robertguss/claude-code-toolkit (111 stars, last pushed 27d ago), licensed MIT. It adds 62 tokens to every session and 1,307 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

offensive-vuln-classes

Exploit development curriculum covering core vulnerability classes with real-world CVE case studies: stack/heap buffer overflows, use-after-free, integer overflows, format strings, type confusion, and race conditions. Use when learning or teaching vuln classes, researching specific CVE patterns, or building exploit…

SnailSploit/Claude-Red · 0 tokens

offensive-edr-evasion

EDR evasion offensive checklist: hook unhooking (user/kernel), direct syscalls, PPID spoofing, process injection variants, AMSI bypass, ETW patching, memory encryption, and behavior-based evasion. Use when planning EDR bypass during red team engagements or researching AV/EDR evasion techniques.

SnailSploit/Claude-Red · 0 tokens

offensive-mitigations

Security mitigation reference and bypass catalog: ASLR, DEP/NX, RELRO, stack canaries, CFI, sandboxing, seccomp. Covers both detection of enabled mitigations and known bypass techniques. Use when assessing target hardening or planning exploit mitigation bypasses.

SnailSploit/Claude-Red · 0 tokens

offensive-exploit-development

Exploit development operational guide: environment setup, debugging workflow, PoC development lifecycle, writing reliable exploits, using pwntools/pwndbg, heap exploitation techniques, and weaponization considerations. Use when actively developing exploits or setting up an exploit dev environment.

SnailSploit/Claude-Red · 0 tokens

offensive-tls-attacks

Comprehensive methodology for auditing and exploiting TLS/SSL implementations and misconfigurations across network services and mobile applications. Covers protocol downgrade attacks including POODLE (CVE-2014-3566) against SSLv3 CBC padding, DROWN (CVE-2016-0800) cross-protocol attack leveraging SSLv2 export ciphers…

SnailSploit/Claude-Red · 332 tokens

offensive-advanced-redteam

Comprehensive red team operations methodology covering full engagement lifecycle from planning through reporting. Addresses engagement scoping and rules of engagement negotiation, multi-tier C2 infrastructure design with redirectors and domain fronting, malleable traffic profiles and beacon tradecraft, OPSEC…

SnailSploit/Claude-Red · 146 tokens