Skip to content

Creating Agent Skills

  • From zero to published


    A complete, hands-on tutorial for building Agent Skills — the open format used by Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, ZCode, and many more agents.

    Start with chapter 1

  • Beyond markdown


    Skills can bundle deterministic Python scripts, templates, and memory — so your agent stops guessing and starts executing.

    Deterministic scripts

  • Tested like real software


    Unit-test your skill scripts in CI, run trigger evals, and iterate with a repeatable loop instead of vibes.

    Testing & evals

  • Publish and share


    Package your skills for your team, install them across every compatible agent, and publish them to community marketplaces.

    Packaging & publishing

What is this?

Agent Skills are folders that teach an AI agent how to do one thing well. A skill is a directory with a SKILL.md file — metadata plus instructions — and optionally scripts, references, and templates the agent loads on demand. The format is an open standard documented at agentskills.io and supported by dozens of agents.

This tutorial teaches you how to design, write, test, and publish skills that actually work: skills that trigger at the right moment, follow your workflows instead of improvising, run deterministic code where correctness matters, and remember lessons across sessions.

Everything here is practical. Each chapter builds on a small set of complete example skills that live in this repository and are unit-tested in CI:

Example skill Demonstrates
commit-crafter A pure-workflow skill: description engineering, references, and a validation script
changelog-forge Deterministic scripts + templates generating changelogs from git history
lessons-keeper A memory protocol that persists durable lessons across sessions
skill-starter A copy-paste scaffold to begin your own skill

Who is this for?

Developers who use AI coding agents — Cursor, Claude Code, Codex, ZCode, OpenCode, Gemini CLI, Copilot — and want to go from typing prompts over and over to packaging their workflow once. No prior experience with skills is assumed. You should be comfortable with the terminal, git, and basic Python (only chapter 6 and the example scripts involve code).

How to read this tutorial

  • New to skills? Read chapters 1–3 in order — you'll ship your first working skill by the end of chapter 3.
  • Already writing skills? Jump to deterministic scripts, memory patterns, or testing & evals — those are the chapters most people haven't seen yet.
  • Prefer code? Skim the case studies and read the examples/ folders directly; every example is annotated.

Read it alongside your agent

This tutorial works great inside an AI coding session: clone the repo, point your agent at a chapter, and ask it to build the skill with you. That's exactly how the authors use it.

Ready?