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.
npx skills add hannesill/m4 --skill create-m4-skillgit clone --depth 1 https://github.com/hannesill/m4Wrote 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.
[](https://agentmods.dev/skills/hannesill/m4/create-m4-skill)<a href="https://agentmods.dev/skills/hannesill/m4/create-m4-skill"><img src="https://agentmods.dev/badge/skills/hannesill/m4/create-m4-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.
<a href="https://agentmods.dev/skills/hannesill/m4/create-m4-skill"><img src="https://agentmods.dev/badge/skills/hannesill/m4/create-m4-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
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 Rogue Agent · line 208 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.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.00879 |
| Opus 5.5 | $0.00028 | $0.00352 |
| Sonnet 5.5 | $0.00014 | $0.00176 |
| Haiku 4.5 | $0.00007 | $0.00088 |
Grade A, and why
create-m4-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.
How it starts
The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create an M4 Skill
The contributor supplies the knowledge; you write it in M4's skill format and test it. Read
the format first: src/m4/skills/SKILL_FORMAT.md in an M4 checkout, otherwise the copy that
python -c "import m4.skills, pathlib; print(pathlib.Path(m4.skills.__file__).with_name('SKILL_FORMAT.md'))"
prints. It defines the frontmatter (including the optional kind), the body, PROVENANCE.yaml
and the tiers.
Steps
- Location. In an M4 checkout (
src/m4/skills/exists), write tosrc/m4/skills/<clinical|system>/<name>/. Otherwise write to the user's skill folder (.claude/skills/<name>/,.agents/skills/<name>/, or wherever their agent reads skills) and tell them the skill is local only; contributing it takes a pull request to M4. - Interview. Ask in one message for what you cannot infer: the concept and the questions it answers (they become the triggers), clinical or system, the source (published code, paper, or the contributor's own expertise) with URL and license, components and thresholds, the mistakes people make, 2-3 references, and the contributor's name and credentials. Every clinical fact must come from the contributor or a cited source; ask about gaps instead of filling them. Done when you can fill every required field of SKILL_FORMAT.md.
- SKILL.md. The description is the trigger: what the skill does first, then the words a
user would say, one trigger per distinct case. In the body, put what every use needs first,
then the gotchas that would otherwise give wrong results, then references; leave out what
a capable model already knows. Keep the body dataset-agnostic. Dataset SQL goes in
scripts/, one file per table it builds, named after it (sofa.sql,kdigo_stages.sql), with a folder per dataset when there are several (scripts/mimic-iv/charlson.sql). - Test the example. Write the example query or code yourself and run it on a usable
dataset (
"prepared": trueinm4 list-datasets --json) withm4 query --dataset <name> --sql "..."orexecute_query. Show the contributor the output and fix the example until it runs and they confirm the result.mimiciv_derivedexists only on full MIMIC-IV afterm4 init-derived. If no dataset is usable, tell the contributor the example is untested; never download or initialise data yourself. - PROVENANCE.yaml.
createdholds the contributor's name and credentials, the role (authoring,clinical-extractionoradaptation) and today's date;sourceslists URL, description and license of anything extracted or adapted;changelogstarts at"1.0". A new skill is tiercommunitywith noreviews. Add a review only once it has happened, with reviewer, date and scope, and raise the tier only when the reviews meet SKILL_FORMAT.md's requirements for it. - Register. In an M4 checkout, add the skill to the matching table in
src/m4/skills/SKILLS_INDEX.mdand runuv run pytest tests/test_skills_index.py tests/test_skills_catalog.py. Finish by showing the contributor both files and where they were written.
What ships with it
1 file 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.
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.
- 1mo ago Changed · -190 lines · +17 tokens per session 71ff0eec227f
- 2mo ago Changed · +1 lines cfb53414bcb5
- 3mo ago First seen · 241 lines · 52 tokens per session scan A 3e5c5c9196fe
create-m4-skill is a skill published in the GitHub repository hannesill/m4 (52 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 879 once invoked, about $0.0003 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.
create-m4-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| create-m4-skillhannesill/m4 | Skill | 52 | 1mo ago | MIT | A | 69 | Claude Code, Codex |
| reflection-coachpaperclipai/paperclip | Skill | 118k | yesterday | MIT | A | 38 | Claude Code, Codex |
| agents-autogptdavila7/claude-code-templates | Skill | 34k | yesterday | MIT | A | 38 | Claude Code, Codex |
| paperclip-capsulespaperclipai/paperclip | Skill | 118k | yesterday | MIT | A | 41 | Claude Code, Codex |
| arbor-research-agentRUC-NLPIR/Arbor | Skill | 1.2k | 27d ago | Apache-2.0 | A | 74 | Claude Code, Codex |
| arbor-agent-executorRUC-NLPIR/Arbor | Skill | 1.2k | 27d ago | Apache-2.0 | A | 63 | Claude Code, Codex |
| arbor-agent-setup-intakeRUC-NLPIR/Arbor | Skill | 1.2k | 27d ago | Apache-2.0 | A | 65 | Claude Code, Codex |