write-skill

write-skill is a skill for Claude Code from apache/magpie. It costs 49 tokens per session (3,602 once invoked), scanned A, original, Apache-2.0.

A guide for writing or updating skills for the Apache Magpie framework, which is a system for extending coding agents with reusable instructions. It covers the framework's file format, conventions, safety checks, and validation tools.

In plain words
What is it for?
It helps scaffold new skills, refactor existing ones, add required metadata and resources, and validate the result with Magpie's tools.
Why use it?
It reduces guesswork when creating a Magpie skill and helps catch structural, security, or privacy problems before use.

Skill for Claude Code ✓ vendor

Written for Claude Code: when-to-use in frontmatter. Also seen: mentions Claude Code; mentions AGENTS.md.

Part of the magpie-utilities plugin — 8 skills, 1 agent shipped together

Good fit It helps scaffold new skills, refactor existing ones, add required metadata and resources, and validate the result with Magpie's tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/apache/magpie/write-skill
About the project

Apache Magpie is a framework of agent-assisted workflows for maintaining Apache software projects, including issue triage, pull-request review, contributor mentoring, and security-report handling. Apache maintainers and developers use it to delegate repetitive project work to coding agents while retaining human review. Its catalogue entries are the skills, instructions, plugin, and settings that implement these workflows.

apache/magpie · 160 stars · on GitHub · magpie.apache.org

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 apache/magpie --skill write-skill
Clone the repo
git clone --depth 1 https://github.com/apache/magpie

Made for: Claude Code.

Or install magpie-utilities, the plugin that ships this one along with the rest of its 8 skills, 1 agent.

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/apache/magpie/write-skill/github.svg)](https://agentmods.dev/skills/apache/magpie/write-skill)
Your own site
<a href="https://agentmods.dev/skills/apache/magpie/write-skill"><img src="https://agentmods.dev/badge/skills/apache/magpie/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/apache/magpie/write-skill"><img src="https://agentmods.dev/badge/skills/apache/magpie/write-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,602 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: 1 finding, 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 295
    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
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.00049 $0.03602
Opus 5.5 $0.00020 $0.01441
Sonnet 5.5 $0.00010 $0.00720
Haiku 4.5 $0.00005 $0.00360

Measured yesterday against content hash d7f1004c0d26, 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/init_skill.py), 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.

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.

plugins/magpie-utilities/skills/write-skill/SKILL.md · 292 lines

How it starts

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

write-skill

Pre-flight — is this project set up?

Do this first, before anything else in this skill, and do it silently. One command answers it and carries its own rules.

Run the checker with this skill's own frontmatter name: and surface_hash:, one --requires for each requires_config: entry, and the directory this skill was loaded from in MAGPIE_SKILL_DIR (the harness names it, e.g. Claude Code's "Base directory for this skill"; leave the variable out when you do not know it):

PYTHONPATH="$(magpie-python -I -c 'import hashlib,os,sys;h,d,m,i=sys.argv[1:];r=os.path.realpath(os.curdir);s=os.stat(r);p=os.path.join(h,d,hashlib.sha256(r.encode()).hexdigest()[:16]);f=os.path.join(p,i);print(p if os.path.isdir(os.path.join(p,m)) and os.path.isfile(f) and open(f).read().split()==[str(s.st_dev),str(s.st_ino)] else h)' "$HOME/.cache/apache-magpie/preflight" projects setup_preflight root-id)" \
  MAGPIE_SKILL_DIR="<this skill's directory>" \
  magpie-python -P -m setup_preflight --skill <name> --hash <surface_hash> [--requires <file>]...

MAGPIE_SKILL_DIR tells the checker which Magpie version this session runs: the checker is one per-user copy, so it cannot tell on its own when sessions on different versions are open. It is a variable, not a flag, so a checker installed before it existed ignores it instead of failing.

Read the full file on GitHub · 292 lines

Files

What ships with it

5 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. yesterday Changed · +3 lines d7f1004c0d26
  2. 5d ago Changed · +1 lines 346f25393564
  3. 6d ago Changed · +9 lines b7429b767d43
  4. 7d ago Changed · +4 lines b190f283f0bd
  5. 11d ago Changed · +22 lines e579cc151a60
  6. 14d ago Changed · +9 lines 3086020d06ba
  7. 21d ago Changed ae13a92fcb20
  8. 1mo ago Changed · +4 lines dea337f862e9
  9. 1mo ago Changed · +1 lines dbc1b871ebe3
  10. 1mo ago First seen · 239 lines · 49 tokens per session scan A d38090e34810

Subscribe to this mod's changes

write-skill is a skill published in the GitHub repository apache/magpie (160 stars, last pushed yesterday), licensed Apache-2.0. It adds 49 tokens to every session and 3,602 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-skillapache/magpieSkill160yesterdayApache-2.0A49Claude Code
performing-endpoint-vulnerability-remediationxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A86Claude Code, Codex
cyberowlaikarimhabush/cyberowlSkill264yesterdayMITA155Claude Code, Codex
vulnerability-dbAppThreat/vulnerability-dbSkill1596d agoMITA0Claude Code, Codex
analyzing-sbom-for-supply-chain-vulnerabilities26zl/cybersec-toolkitSkill1135d agoMITA110Claude Code
osv-scannerseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA36Claude Code, Codex
absolute-auditmaddhruv/absoluteSkill2234mo agoMITA91Claude Code