write-new-skill

write-new-skill is a skill for Claude Code from dgilford/ai-science-toolkit. It costs 32 tokens per session (782 once invoked), scanned A, original, MIT.

A guide for creating Claude Code skills, which are reusable instruction packages that teach an AI coding assistant how to handle a task. It defines the required files and how to organize extra references or scripts.

In plain words
What is it for?
Use it to gather requirements, draft a SKILL.md, add reference files or utility scripts when needed, and review the result with the user.
Why use it?
It helps turn an informal idea into a consistent skill structure, while keeping long instructions and repeatable operations organized.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code.

Part of the ai-science-toolkit plugin — 21 skills, 4 agents shipped together

Good fit Use it to gather requirements, draft a SKILL.md, add reference files or utility scripts when needed, and review the result with the user.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dgilford/ai-science-toolkit/write-new-skill
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 dgilford/ai-science-toolkit --skill write-new-skill
Clone the repo
git clone --depth 1 https://github.com/dgilford/ai-science-toolkit

Made for: Claude Code.

Or install ai-science-toolkit, the plugin that ships this one along with the rest of its 21 skills, 4 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/dgilford/ai-science-toolkit/write-new-skill.svg)](https://agentmods.dev/skills/dgilford/ai-science-toolkit/write-new-skill)
Your own site
<a href="https://agentmods.dev/skills/dgilford/ai-science-toolkit/write-new-skill"><img src="https://agentmods.dev/badge/skills/dgilford/ai-science-toolkit/write-new-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 782 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 pass 7 Sept 2026
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.00032 $0.00782
Opus 5 $0.00016 $0.00391
Sonnet 5 $0.00006 $0.00156
Haiku 4.5 $0.00003 $0.00078

Measured 8d ago against content hash 0ca9e5865ca0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

write-new-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 8d 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.

skills/write-new-skill/SKILL.md · 77 lines

How it starts

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

Writing Skills

Process

  1. Gather requirements - ask user about:

    • What task/domain does the skill cover?
    • What specific use cases should it handle?
    • Does it need executable scripts or just instructions?
    • Any reference materials to include?
  2. Draft the skill - create:

    • SKILL.md with concise instructions
    • Additional reference files if content exceeds 100 lines
    • Utility scripts if deterministic operations needed
  3. Review with user - present draft and ask:

    • Does this cover your use cases?
    • Anything missing or unclear?
    • Should any section be more/less detailed?

Skill Structure

skill-name/
├── SKILL.md           # Main instructions (required)
├── REFERENCE.md       # Detailed docs (if needed)
└── scripts/           # Utility scripts (if needed)

SKILL.md Template

Frontmatter fields: name, description, allowed-tools. Body: opening directive, optional live state injection, instructions, output template.

Optional sections: ## Anti-Rationalization (3–5 skill-specific rows: an excuse an agent uses to skip a key step, paired with a factual rebuttal — never generic filler) and ## Verification (exit-criteria checklist requiring observable evidence before claiming done).

Shell injection

To inject live state before Claude sees the skill, open a fenced code block with three backticks immediately followed by ! (no space). The command output replaces the block at skill load time. Always add || echo "(fallback)" for non-git repos.

Use for: git status, git log, git diff, environment checks — any context that must be current rather than recalled.

Description requirements

The description is what Claude scans to decide whether to auto-invoke the skill.

Format: Max 1024 chars. First sentence: what it does. Second: "Use when [specific triggers]."

Good: Create or update a durable project handoff. Use when ending a session, switching agents, or preparing context for the next Claude session.

Read the full file on GitHub · 77 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. 8d ago First seen · 77 lines · 32 tokens per session scan A 0ca9e5865ca0

Subscribe to this mod's changes

write-new-skill is a skill published in the GitHub repository dgilford/ai-science-toolkit (62 stars, last pushed 19d ago), licensed MIT. It adds 32 tokens to every session and 782 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

metforge-model-diagnose

Diagnose atmospheric-model and dynamical-core experiments. Use for idealized tests, balanced flow, hydrostatic rest, density currents, advection, gravity/acoustic waves, mountain waves, baroclinic instability, conservation and budget closure, error growth, convergence, timestep/resolution/domain/MPI sensitivity…

yuanruichen/MetForge · 135 tokens

metforge-analysis

Perform reproducible atmospheric-science calculations and statistical diagnostics. Use when the agent needs to calculate established or custom climate indices, derive meteorological variables, compute trends, detrend or filter time series, perform EOF/PCA, regression, correlation, composites, bootstrap or significance…

yuanruichen/MetForge · 138 tokens

metforge-data

Acquire and prepare atmospheric, climate, and Earth-system datasets reproducibly. Use when the agent needs to find an authoritative dataset, choose among ERA5/CMIP/GPM/MERRA-2/NOAA or similar products, download or subset NetCDF/GRIB/Zarr data, write CDS/Earthdata/ESGF/OPeNDAP acquisition code, inspect coordinates and…

yuanruichen/MetForge · 119 tokens

metforge-figure

Design, create, revise, and audit atmospheric-science figures. Use for maps, map differences, vertical sections, Hovmöller diagrams, profiles, spectra, budgets, convergence plots, conservation/error-growth diagnostics, ensemble comparisons, and publication multi-panel figures from NetCDF/xarray or tabular data. Also…

yuanruichen/MetForge · 121 tokens

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

omh-code-review

This is a Hermes-native code-review workflow skill.

rlaope/oh-my-hermes · 46 tokens