build-a-skill

build-a-skill is a skill for Claude Code, Codex from avibe-bot/askill. It costs 32 tokens per session (985 once invoked), scanned A, original, MIT.

A skill-authoring guide for creating or updating add-ons that follow SKILL.md and askill registry rules.

In plain words
What is it for?
Use it to structure a skill, define its commands and dependencies, validate it locally, and prepare it for publication.
Why use it?
It reduces mistakes in required files, metadata, dependencies, versioning, local checks, and publishing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is run: node scripts/analyze.js.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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 build-a-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/avibe-bot/askill/build-a-skill.svg)](https://agentmods.dev/skills/avibe-bot/askill/build-a-skill)
Your own site
<a href="https://agentmods.dev/skills/avibe-bot/askill/build-a-skill"><img src="https://agentmods.dev/badge/skills/avibe-bot/askill/build-a-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 985 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00032 $0.00985
Opus 5 $0.00016 $0.00492
Sonnet 5 $0.00006 $0.00197
Haiku 4.5 $0.00003 $0.00098

Measured 6d ago against content hash 01beb5eebbc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

build-a-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 6d 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/build-a-skill/SKILL.md · 183 lines

How it starts

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

Build a Skill

Use this skill when creating or updating a skill that must work with askill CLI and registry conventions.

Authoring Standard

A valid skill requires one entry file:

  • SKILL.md (required)

Optional supporting files:

  • scripts/ for executable commands
  • assets/ for templates or reference material

Recommended layout:

my-skill/
├── SKILL.md
├── scripts/
│   └── main.js
└── assets/

Minimal SKILL.md Template

---
name: my-skill
slug: my-skill
description: One-line purpose of the skill
version: 0.1.0
---

# My Skill

## Overview
What this skill does and when to use it.

## Usage
Step-by-step instructions the agent can execute.

Frontmatter Rules

Required:

  • name - lowercase letters/numbers/hyphens only
  • description - concise summary

Strongly recommended:

  • version - valid semver (1.0.0, 1.1.0-beta.1)
  • slug - publish identifier (@author/slug)

Optional:

  • author, tags, dependencies, commands, repository, license

Dependencies format:

  • Published: @author/skill-name or @author/skill-name@^1.2.0
  • Indexed GitHub: gh:owner/repo@skill-name or gh:owner/repo/path

Commands format:

commands:
  analyze:
    run: node scripts/analyze.js
    description: Analyze current repository
  _setup:
    run: npm ci
    description: Install command dependencies

Write for Agents, Not Humans

Your markdown body should be executable guidance:

  • include clear preconditions
  • include exact commands
  • include expected outputs/artifacts
  • include failure handling and recovery paths

Good instruction pattern:

  1. Check prerequisites
  2. Run command
  3. Verify output
  4. Handle common failures

Development Loop (Local)

Use this loop while building:

# 1) scaffold
askill init ./my-skill

# 2) validate schema/fields
askill validate ./my-skill/SKILL.md

# 3) install locally for testing
askill add ./my-skill -a claude-code -y

# 4) run commands
askill run my-skill:<command>

# 5) inspect installed state
askill list

Read the full file on GitHub · 183 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. 6d ago First seen · 183 lines · 32 tokens per session scan A 01beb5eebbc0

Subscribe to this mod's changes

build-a-skill is a skill published in the GitHub repository avibe-bot/askill (12 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 985 once invoked, about $0.0002 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-30.