three.ws: Skill for Claude Code

.agents/skills/build-an-agent-skill/SKILL.md

build-an-agent-skill is a skill for Claude Code from nirholas/three.ws. It costs 148 tokens per session (2,523 once invoked), scanned A, original, Apache-2.0.

A guide for creating a three.ws agent skill bundle: a set of files that teaches an agent a new capability and can expose tools for the agent to call. It also covers installing the bundle on an agent and testing it.

In plain words
What is it for?
Use it to write the manifest, instructions, tool schemas, and optional JavaScript handlers for a custom three.ws agent skill.
Why use it?
It turns a capability into a defined, reusable package instead of leaving its instructions and tool definitions scattered across a project.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is nirholas/three.ws's own configuration. It tells Claude Code how to work on three.ws 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 three.ws configures →

Part of the three-ws-core plugin — 49 skills shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to nirholas/three.ws. 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/nirholas/three.ws/main/.agents/skills/build-an-agent-skill/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nirholas/three.ws

Made for: Claude Code.

Or install three-ws-core, the plugin that ships this one along with the rest of its 49 skills.

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 build-an-agent-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/nirholas/three.ws/build-an-agent-skill/github.svg)](https://agentmods.dev/skills/nirholas/three.ws/build-an-agent-skill)
Your own site
<a href="https://agentmods.dev/skills/nirholas/three.ws/build-an-agent-skill"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/build-an-agent-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 build-an-agent-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/three.ws/build-an-agent-skill"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/build-an-agent-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 148 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,523 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00148 $0.02523
Opus 5.5 $0.00059 $0.01009
Sonnet 5.5 $0.00030 $0.00505
Haiku 4.5 $0.00015 $0.00252

Measured 14d ago against content hash 2569dc89a057, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-an-agent-skill scanned grade A with 1 finding 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 14d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| Network | `ctx.fetch(uri, opts)` (normal CORS rules apply) |
.agents/skills/build-an-agent-skill/SKILL.md · 233 lines

How it starts

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

Build a three.ws agent skill

A three.ws skill is a directory served from any URL. The agent runtime fetches it, injects its instructions into the system prompt, exposes its tools to the LLM, and runs its handlers in a Web Worker sandbox. Because a skill is just files behind a URL, the same bundle installs into every agent without copying code.

Do not confuse this with the Claude skill you are reading: that one teaches an external model how to use three.ws. This one teaches a three.ws agent a new capability.

The four files

File Required Purpose
manifest.json yes Identity, version, what it provides, config defaults
SKILL.md yes Instructions injected into the agent's system prompt
tools.json yes, if it exposes tools JSON Schema tool definitions the LLM can call
handlers.js no ES module implementing each tool

A bundle with no handlers.js is valid and always trusted: it is a declarative skill that only shapes behavior (an accent, a house style, a refusal policy).

Assets (clips/, morphs/, prompts/, assets/) sit beside those files and are resolved against ctx.skillBaseURI.

A complete, working bundle

Copy this shape. The repo's starter is examples/skills/wave/ and the runtime contract is docs/skills.md.

manifest.json

{
  "spec": "skill/0.1",
  "name": "weather-report",
  "version": "0.1.0",
  "description": "Look up the current temperature and wind for any named place and say it out loud.",
  "license": "MIT",
  "tags": ["weather", "voice"],
  "requires": { "runtime": ">=0.1.0", "capabilities": [] },
  "provides": { "tools": ["reportWeather"], "triggers": [] },
  "config": { "units": "metric" }
}

tools.json

{
  "tools": [
    {
      "name": "reportWeather",
      "description": "Report the current temperature and wind speed for a named place, and speak the result.",
      "input_schema": {
        "type": "object",
        "properties": {
          "place": { "type": "string", "description": "City, town, or landmark name" }
        },
        "required": ["place"]
      }
    }
  ]
}

Read the full file on GitHub · 233 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. 14d ago Changed · +1 lines · +148 tokens per session 2569dc89a057
  2. 1mo ago First seen · 232 lines · 0 tokens per session scan A 0a1e49c876aa

Subscribe to this mod's changes

build-an-agent-skill is a skill published in the GitHub repository nirholas/three.ws (269 stars, last pushed yesterday), licensed Apache-2.0. It adds 148 tokens to every session and 2,523 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-21.

Related

build-an-agent-skill compared with skills from other repositories

build-an-agent-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-an-agent-skillnirholas/three.wsSkill269yesterdayApache-2.0A148Claude Code
cesiumjsznlgis/opengis-skillsSkill7610d agoMITA93Claude Code, Codex
decision-avatarellmos-ai/skillsSkill94d agoMITA49Claude Code, Codex
sheleg-designssheleg/sheleg-design-skillSkill44d agoMITA80Cursor
p5jsmateaix/mateclawSkill1.2kyesterdayApache-2.0A20Claude Code, Codex
threejs-docspledgeandgrow/pledge-skillsSkill103mo agoMITA112Claude Code, Codex
3d-website-architectdeveshpunjabi/3d-website-skillSkill88mo agoMITA240Claude Code, Codex