preparing-a-yak

preparing-a-yak is a skill for Claude Code, Codex from mattwynne/yaks. It costs 32 tokens per session (2,500 once invoked), scanned A, original, MIT.

A detailed version of yak preparation: turning a vague work item into requirements, examples, and a plan ready for implementation by another developer. A yak can describe a feature, refactoring, or maintenance task.

In plain words
What is it for?
Reading existing context, related work, code, and tests; clarifying expected behavior; and creating smaller implementation tasks when needed.
Why use it?
It keeps the requirements and plan with the work item and adapts the preparation steps to the kind of change being made.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Reading existing context, related work, code, and tests; clarifying expected behavior; and creating smaller implementation tasks when needed.

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

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 preparing-a-yak

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mattwynne/yaks/preparing-a-yak"><img src="https://agentmods.dev/badge/skills/mattwynne/yaks/preparing-a-yak.svg" alt="Reviewed on agentmods" width="80" 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 2,500 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 pass 7 Sept 2026
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.00032 $0.02500
Opus 5 $0.00016 $0.01250
Sonnet 5 $0.00006 $0.00500
Haiku 4.5 $0.00003 $0.00250

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

Security

Grade A, and why

preparing-a-yak 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 11d 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/preparing-a-yak/SKILL.md · 331 lines

How it starts

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

Preparing a Yak

Overview

Preparing a yak turns a vague idea into a buildable spec with sub-yaks. Each phase stores its output on the yak itself using yx commands, so everything travels with the yak.

Yaks come in different flavours. A feature adds or changes observable behaviour. A refactoring changes structure while preserving behaviour. A chore is everything else (dependency upgrades, CI fixes, tooling). The preparation flow adapts to the type.

When to Use

  • Yak exists but has no context, or context is vague
  • Before picking up a yak for implementation
  • When a yak needs requirements fleshed out before coding

Don't use when:

  • Yak already has context, examples, and sub-yaks
  • Yak is a simple, obvious task (just pick it up)

Phase 0: Read Existing State

Before doing anything, understand what you're working with:

  1. Read the yak's current state:

    yx context --show "yak name"
    yx field --show "yak name" examples
    
  2. Read parent and sibling yaks for scope and constraints:

    yx ls
    
  3. Explore relevant code — read the files and tests that this yak will touch. Ground yourself in the codebase before brainstorming.

Skip phases that already have approved content. If the yak already has a solid spec in context, go straight to Phase 2.

Phase 1: Mark the Yak as WIP

Before doing any visible work, claim the yak:

yx state "yak name" wip

Preparation is active work. Other agents and the human need to see that this yak is being worked on.

Phase 2: Brainstorm the Spec

Use /brainstorming to explore the idea collaboratively with the user.

Adaptation: Instead of writing the spec to a file, store it as the yak's context:

cat <<'EOF' | yx context "yak name"
# Goal
[What this yak accomplishes]

# Type
[Feature | Refactoring | Chore]

# Success Criteria
[Specific, testable criteria]

# Design Decisions
[Key decisions from brainstorming]

EOF

Done when: The user approves the spec in context, and the yak's type (feature, refactoring, or chore) is clear.

Read the full file on GitHub · 331 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. 11d ago First seen · 331 lines · 32 tokens per session scan A 14df0c9f25f4

Subscribe to this mod's changes

preparing-a-yak is a skill published in the GitHub repository mattwynne/yaks (58 stars, last pushed 29d ago), licensed MIT. It adds 32 tokens to every session and 2,500 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.

Related

Other skills, from other repositories

skill-creator

Create, improve, evaluate, benchmark skills. Use when authoring a new skill, updating an existing one, running evals, or optimizing a skill's description for triggering. Don't use for invoking skills, writing prose, or scaffolding Python projects.

luongnv89/asm · 54 tokens

skill-index-updater

Add GitHub skill repos to the ASM index: clone, audit, eval, regenerate index, rebuild catalog, open PR. Use when given GitHub URLs to onboard. Don't use for authoring (skill-creator), improving (skill-auto-improver), or install (asm install).

luongnv89/asm · 63 tokens

hello-world

A minimal test skill that greets the user and demonstrates the ASM publish workflow.

luongnv89/asm · 19 tokens

openagents-workspace

OpenAgents Workspace collaboration tools — shared files, browser, and multi-agent coordination. Use when: sharing files or reports, browsing websites, reading shared files, checking workspace agents, or collaborating with other agents via @mentions.

openagents-org/openagents · 51 tokens

refresh-index

Sync every enabled repo in the curated skill index and open a confirmation-gated PR. Use when refreshing already-indexed sources. Don't use for adding new repos, improving a single skill, or installing skills locally.

luongnv89/asm · 45 tokens

coding

Use when five specialized coding agents (linter, perf, refactor, security, test) that enforce quality gates across the development lifecycle. From lint enforcement through performance profiling, refactoring, security auditing, and test coverage. Use when working with coding agents.

oyi77/1ai-skills · 54 tokens