- Published on
CH0. Skills Overview
- Authors

- Name
- seren-wib
Contents
Part 0 of the series. What a skill is, why I moved rules out of the instruction files instead of keeping them all there, and how I manage them. Each skill gets its own post in parts 1 to 11.
0. Introduction
I use three agents, Claude Code, Codex and Antigravity, on both Windows and a Mac. All of their settings live in one personal repo called dotfiles. Because I kept adding rules to the instruction files that the agents read in every conversation, each session was paying input tokens for rules about jobs it would not do that day. So I moved the rules that matter for only one kind of task out.
In restaurant terms, the instruction file is a note stuck on the kitchen wall and a skill is a recipe book in a drawer. The cook sees the note the whole time, so it has to be short; the recipe book is pulled out only for that dish, so it can be long. The label on each drawer tells you which dish the recipe book is for. So the wall note is the instruction file, the recipe book in the drawer is the skill, the label is the description, and the cook is the agent.
The repo now holds 13 skills, and the series covers 11 of them, one per post. The repo is private, so this series summarizes its rules and quotes them briefly instead of linking. The sources are records, not memory: git commits to the skill folders, the memory change log (memory/log/) and the work records (worklog/). Where no record gives a reason for a decision, I wrote "no record". Numbers that change are collected with their date in the table in section 6.
1. The structure of a skill
Left: input that goes into every session. Right: files read only when the task matches
- Instruction file: a file loaded whole into the context window when a session starts. Claude Code reads
CLAUDE.md, Codex readsAGENTS.md, Antigravity readsGEMINI.md. - Skill: one folder with one
SKILL.md. The frontmatter at the top holdsnameanddescription, and the body below is the rules. Scripts or sub-documents can sit in the same folder.
Every session, Claude Code puts only each skill's name and description into a list. It loads the body through the Skill tool when the current task matches the description. Sub-files (setup.md, sites/*.md and the like) are opened only when the body points to them ("for this case, open this file"). The fixed cost is just name and description; the heavy parts are read step by step when needed.
~/.claude/skills/blog-post/
└── SKILL.md # ---
# name: blog-post
# description: (abridged) Rules for publishing to the blog ... Use when uploading a note to the blog, ...
# ---
# (body: the rules)
2. Why rules left the instruction files
The problem was input tokens paid as a fixed cost in every session. The instruction file, the global memory index, the skill list, the MCP tool list and hook messages all go into the model input each time a conversation starts. If the blog rules sit in the instruction file, a session pays for them even when it writes no blog post. Today 12 sessions started at once just to write this series. A fixed input is multiplied by the number of sessions.
The records show this order.
| Date | What happened | Source |
|---|---|---|
| 2026-10-06 | The repo's first commit holds one skill (unity-mcp-setting). readme-style was added on 2026-10-11 | Commits "Initial dotfiles", "Add readme-style skill ..." |
| 2026-10-15 | Instruction sources split into agents/, and a "per-session cost" section added to the instructions | Commit "Restructure instructions, move memory to repo root, trim per-session token cost" |
| 2026-11-13 | Working rules moved out of memory into agents/, skills and folder CLAUDE.md files. Global memory files 60 → 11, index 7,108 B → 1,091 B | Commit "Limit memory to state, open items and references" and 3 others |
| 2026-11-13 | Rules used for only one kind of task moved into 5 skills: pr-workflow, docs-style, blog-post, profile-edit, teruten | Commit "Add skills for task-specific rules that lived in memory" |
| 2026-11-20 | The same idea applied inside a skill. session-flow's SKILL.md 29,962 B → 7,908 B, situational procedures moved to 5 sub-files | Commit "session-flow: cut SKILL.md to rules only and move situational procedures to sub-files" |
The rule added to the instructions on 2026-10-15 is still unchanged. It lists what is loaded every session and makes the agent ask whether something is needed in every session before adding it. If not, it goes somewhere that opens only when needed, and the rule names three such places: memory note bodies, folder-scoped MCP servers and skills.
The 2026-11-13 commit message states the reason for skills directly: rules and gotchas that matter for only one kind of task load when that task comes up, instead of sitting in global memory.
Blue: the Codex instruction file (persona, shared, agent part and memory index all included). Green: all SKILL.md files combined
The result shows in the sizes. Measured on Codex's AGENTS.md, which is assembled into one file including the persona, the instruction file has stayed between 21 and 24 KB since 2026-10-15. Over the same period the SKILL.md total grew from 7.0 KB to 86.2 KB. The rules that were added piled up in skills instead of the fixed input. The per-session cost on the skill side is the 13 description lines, 5,765 B in total.
These numbers are bytes. Tokens were measured only once: on 2026-11-20, Claude Code's /context showed about 74k of a 128.5k-token context window as fixed input. Those 74k include the system prompt and tool definitions, and there is no record measuring the instruction file's share alone.
3. Where agents/ ends and skills begin
The source files in agents/ go through memory-sync.js build into the assembled instruction files, while skills are linked in separately from claude/skills/<name>/.
Instruction files are assembled from agents/, skill folders are linked in with symlinks
- Sources:
agents/persona.md(voice),agents/shared.md(rules shared by all three agents),agents/claude.md,codex.mdandgemini.md(per-agent parts), and the global memory index. - Assembly:
node ~/.claude/hooks/memory-sync.js buildjoins these four in order intoclaude/CLAUDE.md,codex/AGENTS.mdandgemini/GEMINI.md. Editing the output by hand is overwritten by the next build. - Skills: they live in
claude/skills/<name>/and one line inlinks.txtsymlinks each to~/.claude/skills/<name>.install.ps1on Windows andinstall.shon the Mac read the samelinks.txt.
agents/shared.md decides where a rule goes. A rule to follow in every session gets one line in agents/, a format used only for a particular job becomes a skill, and a rule that holds only in one folder goes into that folder's CLAUDE.md.
In this setup the skill folders are linked only into ~/.claude/skills. Codex and Antigravity do not get the skill list automatically, so the shared instructions in agents/shared.md have one line listing each skill's name with a short description. From that line, the two agents open ~/.claude/skills/<name>/SKILL.md by path when they do that task. There is one copy of each skill file, and all three agents follow the same rules.
4. Making and editing a skill
- Create
~/dotfiles/claude/skills/<name>/SKILL.md. Thedescriptionsays both what the skill does and when to use it ("Use when ..."), because the agent decides whether to open the skill from that sentence alone. - Add one line to
links.txt, the name to theREADME.mdtable and an entry to the skill list inagents/shared.md, then reassemble the instructions. - Keep only always-on rules in
SKILL.md. Situational procedures, setup steps and per-site notes go to sub-files that the body points to.session-flow(2026-11-20, 29,962 B → 7,908 B) andproject-docs(same day,setup.mdsplit out) were divided this way. - When and why a rule changed stays in commit messages and
memory/log/. That is where this series got its sources.
There are 67 commits to the skill folders up to 2026-11-28. Of those, 33 are in session-flow alone. The procedure for opening and closing sessions kept changing as I used it. The story is in part 6.
5. Series index
| Part | Skill | What it does |
|---|---|---|
| Part 0 (this post) | Overview | What a skill is and why rules were moved out |
| Part 1 | blog-post | Rules for posting to this blog: two-layer writing, cross-links, photos |
| Part 2 | docs-style | Plans, checklists, option tables and school report formats |
| Part 3 | readme-style | README format for public repos |
| Part 4 | profile-edit | Editing the GitHub profile, blog About page and LinkedIn |
| Part 5 | pr-workflow | Git flow from issue and branch to commit and PR |
| Part 6 | session-flow | Session records, handover and archiving |
| Part 7 | paper-search | Finding papers through public APIs, and venue grades |
| Part 8 | report-research | Researching blogs and communities that fetch cannot open, in a browser |
| Part 9 | lms-sync | Pulling course files and assignment dates from the school LMS |
| Part 10 | demo-recording | Recording web app demo videos that look like a person using them |
| Part 11 | unity-mcp-setting | Connecting MCP to a Unity project |
Skills left out of the series
project-docs: rules for the six stage documents I write for each project. There is already a two-part Project Docs series, so this series only links to it.teruten: a short procedure (1,302 B) for turning an exam security program on and off. It is tied to the school's exam environment, so it stays out of public posts.
There is also one skill I built outside dotfiles as a public repo: random-idea, which draws technologies at random and turns them into project ideas.
6. By the numbers
As of 2026-11-28. Sources: git log, git show <commit>:<file> | wc -c and git ls-files in the dotfiles repo, and the worklog/ records.
| Item | Value |
|---|---|
| Skills in dotfiles | 13 (11 in this series + 2 left out) |
All SKILL.md combined | 86,208 B (2026-11-12: 7,038 B, 2 skills) |
| Git-tracked files in the skill folders | 43, 196,128 B (sub-files and scripts included) |
description lines loaded every session | 5,765 B (13) |
codex/AGENTS.md (instruction file, persona included) | 23,476 B (2026-11-12: 24,100 B) |
claude/CLAUDE.md (persona loaded separately by @ import) | 14,749 B |
| Global memory files, index | 11, 1,206 B (2026-11-12: 60, 7,108 B) |
| Commits to the skill folders | 67 (33 of them in session-flow) |
Largest SKILL.md | project-docs 18,161 B |
Fixed input in /context on 2026-11-20 | about 74k / 128.5k tokens |
7. Reflection
The rules that were added piled up in skills instead of the fixed input.