skill-writing

skill-writing is a skill for Claude Code, Codex from PaulRBerg/agent-skills. It costs 35 tokens per session (3,491 once invoked), scanned B, original, MIT.

Instructions for creating project-local skills for coding agents. A skill is a reusable set of guidance and supporting files that teaches an agent how to handle a particular task in a repository.

In plain words
What is it for?
Use it to scaffold or improve a skill under .agents/skills, define its task contract, and connect it to the repository’s discovery setup.
Why use it?
They help keep each skill focused, discoverable, and maintainable instead of putting all behavior into one long instruction file. They also describe when to use scripts, references, and project guidance.

Skill for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also agents/openai.yaml present. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ln -s "../../.agents/skills/<name>" "<scope>/.claude/skills/<name>".

Good fit Use it to scaffold or improve a skill under .agents/skills, define its task contract, and connect it to the repository’s discovery setup.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/PaulRBerg/agent-skills
agentmods
npx agentmods add skills/paulrberg/agent-skills/skill-writing

Made for: Claude Code, Codex.

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 skill-writing

README.md
[![agentmods](https://agentmods.dev/badge/skills/paulrberg/agent-skills/skill-writing/github.svg)](https://agentmods.dev/skills/paulrberg/agent-skills/skill-writing)
Your own site
<a href="https://agentmods.dev/skills/paulrberg/agent-skills/skill-writing"><img src="https://agentmods.dev/badge/skills/paulrberg/agent-skills/skill-writing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-writing

Your own site · 80×15
<a href="https://agentmods.dev/skills/paulrberg/agent-skills/skill-writing"><img src="https://agentmods.dev/badge/skills/paulrberg/agent-skills/skill-writing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,491 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 41
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Agent Snooping · line 263
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Privilege Escalation · line 269
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
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.1 $0.00035 $0.03491
Opus 5 $0.00017 $0.01746
Sonnet 5 $0.00007 $0.00698
Haiku 4.5 $0.00003 $0.00349

Measured 2d ago against content hash 770c5b97e4f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

skill-writing scanned grade B with 2 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/fetch-agentskills-spec.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Patch tooling creates files at mode 0644. Before the first verification run, `chmod 755` every executable under

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Requires curl and a writable user cache directory; network populates or refreshes the agentskills.io specification.
skills/skill-writing/SKILL.md · 298 lines

How it starts

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

Skill Writing

Bootstrap a project-local skill with a small observable contract, then symlink it into .claude/skills/ so Claude Code can discover it. Keep invariant workflow guidance in SKILL.md; move deterministic mechanics and conditional detail into scripts and references.

Model Optimization

Optimize every new skill and its content for GPT-6 Astra and Claude Fable 5.1. The summaries below are reminders, not substitutes for the live guides. Read both guides before designing or writing a complex, long-running, multi-tool, or orchestration-heavy skill because their recommendations may evolve.

  • GPT-6 Astra prompting guidance: Complete authorized work under stated assumptions; make user-instruction precedence over skills explicit; specify writing and delegation preferences; and keep verification proportional to the change.
  • Claude Fable 5.1 prompting guidance: Calibrate effort with evals; request progress updates; batch independent tool calls; preserve decisions across compaction; verify changing facts; and finish the requested scope with targeted edits and proportionate tests.

Arguments

  • skill-name (required): kebab-case name (e.g., my-skill). Stop if missing or invalid.

Reject --global, explicit destination paths, and other scope overrides. The invocation working directory is the only supported scope.

Repository Catalog Guard

Before resolving project-local paths, read the repository instructions applicable to the invocation working directory. If they define a source catalog and lifecycle for skill creation, stop this workflow and follow that repository-owned workflow. Do not create .agents/skills/ or .claude/skills/ paths in that repository.

Resolved Paths

Set <scope> to the working directory where the skill was invoked. Create the source at <scope>/.agents/skills/<name>/ and the Claude Code symlink at <scope>/.claude/skills/<name>. Do not redirect the scope to the repository root when invoked from a nested project or workspace. Never create or modify a skill under ~/.agents, ~/.claude, ~/.codex, or another global installation directory.

Read the full file on GitHub · 298 lines

Files

What ships with it

3 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. 2d ago Changed · -7 lines 770c5b97e4f6
  2. 7d ago Changed · -2 lines fb4d626bbd18
  3. 12d ago First seen · 307 lines · 35 tokens per session scan B ea5bae50fb75

Subscribe to this mod's changes

skill-writing is a skill published in the GitHub repository PaulRBerg/agent-skills (70 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 3,491 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens