020-agent-skill-authoring

Rules for writing agents, skills, and commands that can work across Claude Code, Codex CLI, Cursor, OpenCode, and Antigravity CLI. They cover portable wording, metadata, length, and naming.

In plain words
What is it for?
Use them when authoring portable Markdown instructions, setting frontmatter, choosing names, and organizing longer reference material.
Why use it?
They help prevent plugin content from depending on one coding-agent tool or exceeding what another tool supports.

Cursor rule for Cursor

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 rules/wshobson/agents/020-agent-skill-authoring
Clone the repo
git clone --depth 1 https://github.com/wshobson/agents

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 360 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.00000 $0.00360
Opus 5 $0.00000 $0.00180
Sonnet 5 $0.00000 $0.00072
Haiku 4.5 $0.00000 $0.00036

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

Security

Grade A, and why

020-agent-skill-authoring 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 2d 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.

.cursor/rules/020-agent-skill-authoring.mdc · 25 lines

What it actually says

Authoring portable plugin content

This content ships to Claude Code, Codex CLI, Cursor, OpenCode, and the Antigravity CLI. The adapter framework handles per-harness mechanics, but content choices affect portability.

Frontmatter

  • Agents: name, description (with "Use when…" trigger), model: opus|sonnet|haiku|inherit, optional tools:, optional color:.
  • Skills: name, description. Other Anthropic SKILL.md fields are optional and respected only on Claude Code.
  • Commands: description, argument-hint.

Body

  • Use action verbs, not tool-name vocabulary: prefer "open the file" over "use the Read tool". The adapter rewrites a conservative set, but the unrewritten cases bleed through.
  • Cap skill body at ~8 KB. Push longer reference material into skills/<name>/references/ files. Codex will hard-truncate at 8 KB anyway.
  • Don't name agents default, worker, or explorer — they collide with Codex built-ins.
  • Don't reference TodoWrite as load-bearing — it doesn't exist in Codex, Cursor, or Antigravity. The Task spawn tool and hooks don't exist in Codex or Cursor either, but Antigravity supports both through its native equivalents (invoke_subagent/define_subagent, lifecycle hooks).

See docs/authoring.md for the full guide.

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. 2d ago First seen · 25 lines · 0 tokens per session scan A d2193416858e

Subscribe to this mod's changes

020-agent-skill-authoring is a cursor rule published in the GitHub repository wshobson/agents (39,318 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 360 tokens. 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.