Skill Issue
← Browse

writing-for-agents

Write prompts and docs agents follow well

  • For people who code
  • Nothing to set up
by mattpocock
Add to your AI

What it does

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
mattpocock, in the skill's own instructions
Instructions the AI follows

This is the skill's own instruction file. It's written for the AI, so it can read like a list of orders. You don't need to read it to use the skill.

Instruction file8 min read

Reference for writing any document an agent consumes: a skill, an AGENTS.md / CLAUDE.md, a doc reached by a pointer. The packaging differs; the writing does not: the same levers make each one predictable, since the agent takes the same _process_ every run rather than producing the same output.

When the document you're writing is a skill, read SKILL-MECHANICS.md for frontmatter, invocation choice, and router skills.

A context pointer is a reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. A skill's description is one; a line in AGENTS.md naming a doc is the same object. The pointer's _wording_, not its target, decides when the agent reaches the material, and how reliably. A must-have target behind a weakly worded pointer is a variance bug: sharpen the wording first, and inline the material only if sharpening fails.

From skills/productivity/writing-for-agents/SKILL.md in mattpocock/skills · read from GitHub at commit 5beb35b

Try it

  1. 1Add writing-for-agents to your AI
  2. 2Ask for something like this
Your AI
  • Rewrite our AGENTS.md so a coding agent actually follows it.

  • Review this skill I wrote and tighten its instructions.

  • Write a CLAUDE.md for this project from what you can see in the code.

Example prompts written from the skill's instructions.

Safety

SafeDetails

All three scanners ran and found nothing that could steal your data or hijack your AI.

What it can do
  • Runs commands on your computer
Scanners
SkillSpector 2.12.0 · HoneyBadger 0.8.1 · agentscan 1.2.2
Scanned on
Nov 10, 2026
  • Secret scanPassed
  • Dangerous commandsNoticedSkillSpector: Report recommendation is CAUTION. SkillSpector analysis was partial (reference_missing).
  • Network callsPassed
  • PermissionsPassed
  • Prompt injectionPassed
  • LicensePassed
  • MaintenancePassed
Human review

No person has signed this one off yet.

Reviewer notes (AI, proposed)

nothing found

An AI reviewer read the files and wrote this. It is not a scan, nobody approved it yet, and it never sets the label above.

Three open-source scanners (SkillSpector, HoneyBadger, agentscan) check this exact version. Heads up means it could steal your data or hijack your AI. What it can do is listed, not warned about. Scanners miss things.

How we check: only harm earns a Heads up, meaning prompt injection (OWASP LLM01) or data leaks (LLM02), in files the skill ships. Abilities like running commands (LLM06) are listed, not warned about. No AI is used for this step. OWASP

Details

Stars
332kwhole repo
Installs
593kon skills.sh
Last updated
Nov 24, 2026on GitHub

GitHub and skills.sh numbers are a snapshot from Nov 24, 2026, not live.

Community

Comments

See all Build skills

How to add writing-for-agents to Claude

Press Add to your AI at the top of this page and pick Claude, or do it yourself:

  1. Download the skill. Keep the .zip as it is.
  2. On Claude's skills page, click +, then Create skill, then Upload a skill.
  3. Pick the file you downloaded and switch the skill on.

Works on every Claude plan, Free included. Code execution and file creation need to be on in Claude's settings. How to add a skill to Claude, step by step.

In ChatGPT

Skills are on ChatGPT Business, Enterprise, Healthcare and Edu plans. Download the skill. Keep the .zip as it is. In ChatGPT, open Plugins in the sidebar, then the Skills tab, then Create, then Upload from your computer. Pick the file you downloaded. ChatGPT checks it, then it's ready. More on ChatGPT.

For AI apps and agents: the skill's instructions as plain text, at the version we scanned.