A Skill as an example of context¶
A Skill is how you keep knowledge of your working methods between sessions. It is a Markdown file — a SKILL.md — containing instructions the agent loads when a task matches its description. Not code, not a template: prose telling the agent what to do. It is an example of a broader idea of context. By adding context (including a skill file) when we call an LLM, we tell it how to deal with certain situations.
For figures, it records the rcParams block, the greyscale-safe colour and linestyle scheme (controls dark and broken, treatments coloured and solid), the p-value box in bottom-left, censoring ticks, and instructions to save as both PNG and PDF with pdf.fonttype=42 so publishers can embed the fonts.
I asked for it in one sentence: please create a cancer-journal-plot skill file, so future plots can be made this way. The result is cancer-journal-plot.
A Skill turns a preference into a default. This is the accumulating part of working with agents. There are two more in this repo doing the same job: journal-figure, which is the general form of the one I had just made, and slide-deck, which holds the layout of a presentation used in this course.
Also see¶
- 5 Checking the methods are correct — turning the agent on its own work.
- 3 Doing a statistical test using Claude