examples: Skill for Claude Code

.claude/skills/skills:write/SKILL.md

skills:write is a skill for Claude Code from rossoctl/examples. It costs 18 tokens per session (2,103 once invoked), scanned A, original, Apache-2.0.

A guide for creating or editing Claude Code skills using a standard folder structure, naming rules, templates, and checks. It also describes how to track the work and prepare a change for review.

In plain words
What is it for?
Use it to create a new skill, revise an existing one, validate its structure, and check that its workflow diagram still matches the instructions.
Why use it?
It reduces errors caused by inconsistent skill files or missing validation. Reading existing skills first and working in a separate Git worktree helps protect the main codebase while changes are made.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

This is rossoctl/examples's own configuration. It tells Claude Code how to work on examples itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything examples configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rossoctl/examples. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rossoctl/examples/main/.claude/skills/skills:write/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/rossoctl/examples

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 skills:write

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rossoctl/examples/skills-write"><img src="https://agentmods.dev/badge/skills/rossoctl/examples/skills-write.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,103 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: 6 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 Rogue Agent · line 3
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • high Rogue Agent · line 6
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • high Rogue Agent · line 42
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
  • medium Excessive Agency · line 85
    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 89
    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 96
    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.
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.00018 $0.02103
Opus 5.5 $0.00007 $0.00841
Sonnet 5.5 $0.00004 $0.00421
Haiku 4.5 $0.00002 $0.00210

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

Security

Grade A, and why

skills:write 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.

.claude/skills/skills:write/SKILL.md · 287 lines

How it starts

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

Write / Edit Skill

Create new skills or edit existing ones. Both follow the same checklist and conventions.

Worktree Gate

All skill work MUST happen in a worktree. Before proceeding, verify you are in a worktree:

git worktree list

If not in a worktree, create one first:

git fetch upstream main
git worktree add .worktrees/skills-<topic> -b docs/skills-<topic> upstream/main

Table of Contents

New vs Edit

Action Steps
New skill Create directory + SKILL.md from template, fill in content, validate
Edit skill Read existing file first, apply changes, re-validate, ensure diagram still matches text

For edits: always read the skill FIRST, then edit. Never overwrite without reading.

Skill Structure

.claude/skills/<category>:<skill-name>/
└── SKILL.md

IMPORTANT: Use colon notation in directory names (e.g., auth:my-skill/). Required for Claude Code skill discovery.

Categories should match your repo's tech stack (e.g., ci, git, k8s, orchestrate, rca, skills, tdd)

Frontmatter

---
name: category:skill-name
description: One-line description (what it does, not how)
---

Use colon notation in name: field. Directory name must match.

Content Guidelines

  1. Title: # Skill Name
  2. TOC: Include for skills over 50 lines
  3. Length: Target 80-200 lines (300 max). Split longer skills.
  4. Sections:
    • When to Use
    • Steps/Workflow
    • Workflow Diagram (required for workflow/router skills)
    • Task Tracking (required for workflow skills)
    • Troubleshooting
    • Related Skills
  5. Style:
    • Imperative voice ("Run X", not "You should run X")
    • Real, copy-pasteable commands
    • Include expected output where helpful

Read the full file on GitHub · 287 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 First seen · 287 lines · 18 tokens per session scan A 72334b3d58d7

Subscribe to this mod's changes

skills:write is a skill published in the GitHub repository rossoctl/examples (11 stars, last pushed yesterday), licensed Apache-2.0. It adds 18 tokens to every session and 2,103 once invoked, about $0.0001 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-08-30.