writing-caplets

writing-caplets is a skill for Claude Code, Codex from spiritledsoftware/caplets. It costs 64 tokens per session (1,825 once invoked), scanned A, original, MIT.

A writing guide for creating and checking Caplet files, which package instructions and setup details for coding agents.

In plain words
What is it for?
Use it to create, update, review, or validate Caplet manifests, instruction bodies, authentication details, project bindings, Vault references, runtime requirements, and Caplet sets.
Why use it?
It helps keep the machine-readable settings and agent instructions accurate and consistent with the project's schema and examples.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create, update, review, or validate Caplet manifests, instruction bodies, authentication details, project bindings, Vault references, runtime requirements, and Caplet sets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/spiritledsoftware/caplets/writing-caplets
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 spiritledsoftware/caplets --skill writing-caplets
Clone the repo
git clone --depth 1 https://github.com/spiritledsoftware/caplets

Made for: Claude Code, Codex.

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 writing-caplets

README.md
[![agentmods](https://agentmods.dev/badge/skills/spiritledsoftware/caplets/writing-caplets/github.svg)](https://agentmods.dev/skills/spiritledsoftware/caplets/writing-caplets)
Your own site
<a href="https://agentmods.dev/skills/spiritledsoftware/caplets/writing-caplets"><img src="https://agentmods.dev/badge/skills/spiritledsoftware/caplets/writing-caplets/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 writing-caplets

Your own site · 80×15
<a href="https://agentmods.dev/skills/spiritledsoftware/caplets/writing-caplets"><img src="https://agentmods.dev/badge/skills/spiritledsoftware/caplets/writing-caplets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,825 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 medium

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 →

  • medium Prompt Injection · line 108
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
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.00064 $0.01825
Opus 5.5 $0.00026 $0.00730
Sonnet 5.5 $0.00013 $0.00365
Haiku 4.5 $0.00006 $0.00183

Measured 2mo ago against content hash a21a47db69ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

writing-caplets 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 2mo 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/writing-caplets/SKILL.md · 115 lines

How it starts

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

Writing Caplets

Core Rule

Write Caplets from the active schema, local conventions, and nearby examples first, not from memory.

Treat the YAML frontmatter as the machine contract and the Markdown body as the agent operating guide. The body should help an agent decide when and how to use the Caplet; it should not read like an installer README.

Before editing, discover the user's environment:

  1. Find the target Caplet file or intended destination. Common names include CAPLET.md, caplet.md, files under a caplets/ directory, or entries in a Caplet set.
  2. Look for a local schema reference in the file. If none is present, prefer the public schema URL https://caplets.dev/caplet.schema.json when adding editor metadata.
  3. Read nearby Caplets, project docs, or config files to match naming, auth, setup, and install conventions.
  4. Use the repository's own package manager, scripts, and docs for validation when they exist. Do not assume this is the Caplets source repository.

Authoring Workflow

  1. Clarify the integration goal: what the agent should be able to inspect, search, call, automate, or summarize.
  2. Pick the backend family that matches the strongest real interface, such as mcpServer, openapiEndpoint, googleDiscoveryApi, graphqlEndpoint, httpApi, cliTools, or capletSet.
    • Prefer OpenAPI, GraphQL, Google Discovery, or explicit HTTP actions when the provider has a stable API contract that Caplets can filter into a compact workflow.
    • Prefer MCP when the provider's MCP server is the official curated agent surface or handles workflow/auth better than the raw API.
    • Prefer CLI/local backends when the capability is inherently local or project-bound.
    • Do not choose MCP only because an MCP server exists.
  3. Use a multi-backend Caplet file when one provider-scale capability needs several child surfaces under one catalog card and install unit:
    • Use plural maps such as mcpServers, openapiEndpoints, googleDiscoveryApis, graphqlEndpoints, httpApis, cliTools, or capletSets.
    • Runtime child handles are parent__child, based on the file ID and child map key. Users install the parent ID, not the child handle.
    • Put shared guidance, tags, setup, runtime requirements, and provider-level auth at the parent when they truly apply to every child. Child fields override parent scalars; child auth should stay least-privilege when scopes differ.
    • Keep singular cliTools.actions for one CLI backend. In plural cliTools, actions is reserved and cannot be a child ID.
    • Use capletSet or capletSets only for nesting or composing another Caplets collection, not as the default shape for a single provider suite.
  4. Keep checked-in Caplets safe for their audience:
    • For public Caplets, never include tokens, credential-bearing URLs, private provider IDs, browser profiles, user home paths, local absolute paths, or account-specific values.
    • For private Caplets, still isolate secrets and account-specific values so the Caplet can be reviewed and moved safely.
  5. Use $vault:NAME or ${vault:NAME} for secrets the runtime should resolve. Use $env:NAME only for non-secret machine-local paths, feature flags, or runtime toggles.
  6. Add projectBinding.required: true when the Caplet reads, searches, executes against, or mutates project files. Explain in the body why the bound project root is required.
  7. Add setup.commands and setup.verify when the backend needs local binaries, browser dependencies, generated specs, provider setup, or a repeatable readiness check.
  8. Add runtime.features only for real runtime requirements such as browser or docker.
  9. Add optional catalog.icon only when it improves public catalog presentation:
    • Use a safe HTTPS image URL or a bundled image path relative to the Caplet directory.
    • Prefer a real provider, project, or capability icon from a license-safe public source when publishing public Caplets.
    • Do not use catalog metadata to imply trust, safety, setup readiness, endorsement, or runtime behavior.
  10. Write the Markdown body for agents that will use the Caplet:

Read the full file on GitHub · 115 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. 2mo ago First seen · 115 lines · 64 tokens per session scan A a21a47db69ec

Subscribe to this mod's changes

writing-caplets is a skill published in the GitHub repository spiritledsoftware/caplets (14 stars, last pushed 13d ago), licensed MIT. It adds 64 tokens to every session and 1,825 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.

Related

Other skills, from other repositories

aomi-build

Scaffold new Aomi apps and plugins from API docs, OpenAPI/Swagger specs, or SDK references. aomi-build generates production-ready Rust SDK crates (lib.rs, client.rs, tool.rs) with tool schemas, preambles, host-interop flows, and validation — turning a vendor's API surface into AI-agent-callable tools. It covers the…

aomi-labs/skills · 244 tokens

mcp2cli

Turn any MCP server, OpenAPI spec, or GraphQL endpoint into a CLI. Use this skill when the user wants to interact with an MCP server, OpenAPI/REST API, or GraphQL API via command line, discover available tools/endpoints, call API operations, or generate a new skill from an API. Triggers include "mcp2cli", "call this…

knowsuchagency/mcp2cli · 126 tokens

api-testing-patterns

Comprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing. Use when testing APIs or designing API test strategies.

proffesor-for-testing/agentic-qe · 34 tokens

api-design

Use when settling the contract of an API you expose, before implementation: resources/URLs, REST vs GraphQL, versioning, one RFC 9457 error envelope, pagination, idempotency — emitted as OpenAPI 3.1. NOT implementing the endpoints (that is fastapi/nestjs/go/nodejs), NOT auth hardening (that is secure-coding), NOT…

ericrisco/rsc-harness · 105 tokens

lap

LAP CLI -- compile, search, and manage API specs for AI agents. Use when working with API specifications (OpenAPI, GraphQL, AsyncAPI, Protobuf, Postman), compiling specs to LAP format, searching the LAP registry, generating skills from API specs, or publishing APIs. Commands: init, compile, search, get, skill…

Lap-Platform/LAP · 89 tokens

lap

LAP CLI -- compile, search, and manage API specs for AI agents. Use when working with API specifications (OpenAPI, GraphQL, AsyncAPI, Protobuf, Postman), compiling specs to LAP format, searching the LAP registry, generating skills from API specs, or publishing APIs. Commands: init, compile, search, get, skill…

Lap-Platform/LAP · 89 tokens