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 agentmods add skills/terva-sh/terva/write-terva-skillnpx skills add terva-sh/terva --skill write-terva-skillgit clone --depth 1 https://github.com/terva-sh/tervaWrote 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/terva-sh/terva/write-terva-skill)<a href="https://agentmods.dev/skills/terva-sh/terva/write-terva-skill"><img src="https://agentmods.dev/badge/skills/terva-sh/terva/write-terva-skill.svg" alt="Measured on agentmods" height="20"></a>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.00071 | $0.03820 |
| Opus 5 | $0.00036 | $0.01910 |
| Sonnet 5 | $0.00014 | $0.00764 |
| Haiku 4.5 | $0.00007 | $0.00382 |
Grade A, and why
write-terva-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 5d 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 — 326 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Writing a terva skill
Use this skill when the user asks to create, add, or write a skill for terva. Skim it first, then collaborate with the user on the one skill they want and write it to the right location so terva discovers it on the next launch.
Skill vs. extension, and picking the right one first
These are different things, and asking for "a skill" should land here, NOT on
write-terva-extension:
- A skill is just instructions: a
SKILL.mdmarkdown file with a short YAML header. terva loads it for the model; nothing executes. Reach for a skill to capture a repeatable workflow, house style, checklist, or domain knowledge the agent should follow ("how we cut a release", "review rules for this repo"). - An extension is code: an executable terva launches as a subprocess to add a slash command, an LLM tool, or a guard hook. Reach for an extension when you need new behavior or a new capability, not just guidance.
If the user wants the agent to know or do something by following written
steps, it's a skill, so stay here. If they need a new tool, command, or hook,
switch to write-terva-extension.
Anatomy of a skill
One directory per skill, containing a SKILL.md:
<skills-dir>/<name>/SKILL.md
SKILL.md is YAML frontmatter followed by a markdown body:
---
name: cut-release
description: Steps and guardrails for cutting a versioned release of this repo. Use when the user asks to release, tag, or publish a version.
---
# Cutting a release
1. ...
2. ...
Frontmatter fields:
name(recommended). The skill id the model invokes. It defaults to the directory basename if omitted. Use kebab-case and match the directory name.description(required in practice). A one-line trigger. This is the ONLY part of the skill the model sees up front (see below), so phrase it as what the skill is for and when to use it, and include the words a user would say ("review", "release", "deploy"). A vague description means the skill is never reached.allowed-tools/permissions(optional). Parsed for compatibility with related ecosystems but advisory only in this version (not enforced). If a skill must restrict itself to certain tools, also say so in the body so the model self-regulates.disable-model-invocation(optional). The invocation choice, and it spends one of two budgets:- Context load is what always-loaded material costs the model's window. Omit this field and the skill is model-invoked: its description sits in the manifest every turn, whether or not it ever fires, in exchange for the agent reaching it unprompted and other skills being able to name it.
- Cognitive load is what it costs you. Set it to
trueand the skill leaves the manifest: no per-turn cost, but you become the index who has to remember it exists. In terva the flag scopes model discovery only, so/skill <name>still loads it.
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.
- 5d ago First seen · 326 lines · 71 tokens per session scan A 3a374e8e712d
write-terva-skill is a skill published in the GitHub repository terva-sh/terva (2 stars, last pushed 3d ago), licensed MIT. It adds 71 tokens to every session and 3,820 once invoked, about $0.0004 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-31.
Other skills, from other repositories
pi-sync
Daily upstream-sync job for the pi Go port — fetch upstream pi, triage every change since the recorded pin, port what's in scope, verify idiomatic + parity via independent reviews, update the ledger, and push. Use for "sync with upstream", "porting job", or as the scheduled daily run.
pi-go-review
Review ported Go code for idiomatic quality — that the port maximizes Go rather than transliterating TypeScript. Use after porting upstream pi changes, or standalone on any diff in this repo.
use-modern-go
Use the Modern Go Guidelines CLI whenever writing, modifying, fixing, or refactoring Go code. Apply its version-specific guidance to generated changes.
modern-go
Modernize Go code by applying version-appropriate idioms and APIs (gofix-style transformations). Scans go.mod for the Go version, then transforms Go source files to use modern patterns—from Go 1.0 through 1.26+. Use when the user says "现代化","现代Go语言", "地道的", "idiomatic", "modernize", "modern-go", "update Go code"…
go-127
What changed in Go 1.27 (released August 2026) and how it changes the way Go is written in pi-go. Use this skill when writing or reviewing Go that could use a 1.27 feature, when bumping the go directive in go.mod, when a build or test behaves differently after a toolchain upgrade, or when code-guidelines-go points…
bubbletea-testing
Use this skill whenever writing tests for Bubble Tea (charmbracelet/bubbletea) TUI applications in Go. Triggers include any mention of testing Bubble Tea models, teatest, golden file testing for TUIs, testing tea.Cmd or tea.Msg, snapshot testing terminal output, or writing tests for any Go CLI/TUI that uses the Elm…