write-skill

write-skill is a skill for Claude Code from drn/dots. It costs 42 tokens per session (2,841 once invoked), scanned A, original, MIT.

A guide for creating or improving Claude Code skills and slash commands, including their structure, context, and safety rules.

In plain words
What is it for?
Use it to create a new skill, improve an existing one, or inspect how project and global skills are organized.
Why use it?
It helps turn a repeated coding workflow into a clearer, more reliable instruction set for an agent.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it to create a new skill, improve an existing one, or inspect how project and global skills are organized.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/drn/dots/write-skill
View source ↗ drn/dots
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.

Any agent
npx skills add drn/dots --skill write-skill
Clone the repo
git clone --depth 1 https://github.com/drn/dots

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/drn/dots/write-skill/github.svg)](https://agentmods.dev/skills/drn/dots/write-skill)
Your own site
<a href="https://agentmods.dev/skills/drn/dots/write-skill"><img src="https://agentmods.dev/badge/skills/drn/dots/write-skill/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 write-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/drn/dots/write-skill"><img src="https://agentmods.dev/badge/skills/drn/dots/write-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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: 4 findings, up to high

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 →

  • high Agent Snooping · line 16
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • medium Rogue Agent · line 3
    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 Excessive Agency · line 65
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 220
    Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.
    Fix: Set explicit rate limits, timeouts, and resource quotas for API calls, file operations, and compute. Implement circuit breakers for runaway loops.
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.00042 $0.02841
Opus 5.5 $0.00017 $0.01136
Sonnet 5.5 $0.00008 $0.00568
Haiku 4.5 $0.00004 $0.00284

Measured 1mo ago against content hash 8a3b38651fb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-skill 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 1mo 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.

agents/skills/write-skill/SKILL.md · 243 lines

How it starts

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

Skill Author

Create or improve Claude Code skills (slash commands) following established patterns and avoiding known pitfalls.

Arguments

  • $ARGUMENTS - What the skill should do, or the name of an existing skill to improve

Context

  • Global skills: !find ~/.claude/commands -maxdepth 1 -name "*.md" -exec basename {} .md \; 2>/dev/null | sort | head -20
  • Project skills (Agent Skills standard): !find . -maxdepth 3 -path "*/skills/*/SKILL.md" 2>/dev/null | head -20
  • Project skills (Claude Code standard): !find . -path "./claude/commands/*.md" 2>/dev/null | head -20
  • Project type: !find . -maxdepth 1 \( -name go.mod -o -name Gemfile -o -name package.json -o -name Cargo.toml -o -name pyproject.toml \) 2>/dev/null | head -3

Instructions

Step 1: Understand the Request

Determine whether the user wants to:

  • Create a new skill from a description
  • Improve an existing skill (read it first, then apply changes)

If creating, ask the user what the skill should do if $ARGUMENTS is vague.

Step 2: Design the Skill

Plan the skill structure:

  1. Frontmatter (YAML between --- fences)
  2. Context section (dynamic context via shell commands)
  3. Instructions (what Claude should do when the skill is invoked)

Step 3: Write the Skill File

Detect the project skill convention from the context above:

  • If the project has skills matching */skills/*/SKILL.md (Agent Skills standard), create <skills-dir>/<name>/SKILL.md
  • Otherwise, create claude/commands/<name>.md (Claude Code standard)

Follow all rules below carefully.


Skill File Reference

Frontmatter

All fields are optional. Only description is strongly recommended.

---
description: One-line summary of what this skill does and when to use it
allowed-tools: Bash(git *), Bash(npm test)
---
Field Purpose
description Drives auto-activation and / menu. Write in third person. Max 1024 chars. Include trigger keywords.
allowed-tools Tools Claude can use without asking permission. Glob patterns supported.
context Set to fork to run in an isolated subagent (no conversation history).
agent Subagent type when context: fork (e.g., Explore, Plan).
model Override model (e.g., sonnet for cheaper tasks).
disable-model-invocation true to prevent auto-loading (manual /name only). Use for destructive skills.
user-invocable false to hide from / menu (background knowledge only).

Read the full file on GitHub · 243 lines

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. 1mo ago Changed 8a3b38651fb3
  2. 2mo ago First seen · 243 lines · 42 tokens per session scan A f749764b377a

Subscribe to this mod's changes

write-skill is a skill published in the GitHub repository drn/dots (23 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 2,841 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

write-skill compared with skills from other repositories

write-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-skilldrn/dotsSkill23yesterdayMITA42Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code