How to write the GitHub issue comment that reports a milestone: an h2
naming it, no date (GitHub dates comments), real commands and their
output, `git log10` back to the last checkpoint as a list, so the hashes
link (`owner/repo@hash` for another repo), and how it's put together,
from where authority enters.
Said in three sessions before it was written down: 2026-11-11 ("I like
to use high-entropy stuff such as git hash... actual commands and their
output"), 2026-11-16 ("start with a ## heading and leave out the date"),
and 2026-11-18 ("did I not make that clear?"; "this style of major
progress report", not every comment; "that's not log10 style"; of a
wiring diagram that began mid-story, "by magic?"; and "git log10 output
in a code block loses the benefit of linked hashes").
Generated-by: Claude Opus 5.5
105 lines
6.9 KiB
Markdown
105 lines
6.9 KiB
Markdown
# mad skills
|
|
|
|
How I like code written, reviewed, and committed — written down so the
|
|
bots I pair with can pick it up without me repeating myself.
|
|
|
|
These are [Agent Skills](https://agentskills.io/specification). Each
|
|
`description` front-loads the words that should trigger it — the things
|
|
I actually say, like "retcon", "watch me", or "citation needed".
|
|
|
|
I keep this repo checked out at `.agents/skills/` in a workspace and
|
|
symlink `.claude/skills` and `.opencode/skills` to it, so [Claude
|
|
Code](https://code.claude.com/docs/en/skills) and
|
|
[opencode](https://opencode.ai/docs/skills/) see the same set.
|
|
|
|
## writing code
|
|
|
|
- [pola](pola/SKILL.md) — organize all code, tests included, by
|
|
the flow of authority: each part gets only what its task needs.
|
|
- [facet](facet/SKILL.md) — hand other code a fresh, frozen object; what its functions return crosses the boundary too.
|
|
- [capability-based-design](capability-based-design/SKILL.md) — one object per authority distinction; narrowing only intersects.
|
|
- [caretaker](caretaker/SKILL.md) — revocable access as a forwarder plus a separate revoker.
|
|
- [acls-dont](acls-dont/SKILL.md) — don't check who's asking; hand out narrowed capabilities. An anti-pattern, in pattern form.
|
|
- [no-ambient-authority](no-ambient-authority/SKILL.md) — clocks,
|
|
RNGs, `fetch`, and the filesystem come in as parameters.
|
|
- [io-between-turns](io-between-turns/SKILL.md) — sync I/O is a pointy
|
|
instrument.
|
|
- [silent-failures-are-evil](silent-failures-are-evil/SKILL.md) — every
|
|
failure path leaves a trace in the logs.
|
|
- [lazy-tdd](lazy-tdd/SKILL.md) — works the first time? fine. Goofed?
|
|
You owe a test.
|
|
- [py-doctest](py-doctest/SKILL.md) — Python tests are doctests on the
|
|
API they test, setup in private helpers, no `test_*.py`.
|
|
- [refactor-mercilessly](refactor-mercilessly/SKILL.md) — at each
|
|
green, move logic out of the modules that hold authority into small,
|
|
fast-tested ones; keep refactors in commits of their own.
|
|
- [docs-files-api](docs-files-api/SKILL.md) — README sells and gets
|
|
you to TADA; CONTRIBUTING has the rest; AGENTS.md links to it.
|
|
Exported API docs over file docs. Avoid chit-chat.
|
|
|
|
## commits and PRs
|
|
|
|
- [disclose-gen-ai](disclose-gen-ai/SKILL.md) — `Generated-by:`
|
|
trailers, per the ASF generative tooling guidance.
|
|
- [retcon](retcon/SKILL.md) — regroup a PR's net diff into clean
|
|
per-package commits; the merge result doesn't change.
|
|
- [yarn-lock-separate-commit](yarn-lock-separate-commit/SKILL.md) —
|
|
`yarn.lock` changes ship alone.
|
|
|
|
## writing prose
|
|
|
|
- [grice-maxims](grice-maxims/SKILL.md) — say what's needed and no
|
|
more, only what you can back up, in an order easy to follow.
|
|
- [hypertext-links](hypertext-links/SKILL.md) — link text says where
|
|
the link goes; no bare URLs, no "click here".
|
|
- [citation-needed](citation-needed/SKILL.md) — back a challenged claim
|
|
with live links, quoted and dated.
|
|
- [hackmd-deck](hackmd-deck/SKILL.md) — a light talk as a flashback:
|
|
TADA, then how, then the challenges, tagged for an emoji retro.
|
|
- [gh-progress-report](gh-progress-report/SKILL.md) — a milestone comment
|
|
on an issue: `## heading`, no date, real commands and their output,
|
|
`git log10` back to the last checkpoint.
|
|
- [ibis-design](ibis-design/SKILL.md) — search a design space:
|
|
issues, positions, and arguments.
|
|
- [wiring-diagram](wiring-diagram/SKILL.md) — who holds what, drawn
|
|
like MarkM's ERTP slides: every arrow cites the code, and Mallory
|
|
shows what a leak doesn't reach.
|
|
TODO: consider copying or adapting its companion for message order,
|
|
sequence-diagram-actor-sim (agoric-sdk `.agents/skills/` on branch
|
|
`connolly/ago-1299-agentic-planning-tdd`).
|
|
- [obsidian-markdown](obsidian-markdown/SKILL.md) — the workspace is
|
|
an Obsidian vault: one line per paragraph, relative links, no file
|
|
symlinks you expect Obsidian to show.
|
|
|
|
## at the terminal
|
|
|
|
- [discord-agent-workspace](discord-agent-workspace/SKILL.md) — set
|
|
someone up like this: Claude Code in a workspace folder, messaged
|
|
from Discord.
|
|
- [watchme](watchme/SKILL.md) — I record the session with `script -f`;
|
|
read the typescript instead of asking me what happened.
|
|
- [run-confined](run-confined/SKILL.md) — run an untrusted installer in
|
|
a throwaway systemd user unit that can't see `~/.ssh` and friends.
|
|
- [what-was-i-doing](what-was-i-doing/SKILL.md) — where did this file
|
|
come from? Correlate mtimes with git history across every repo.
|
|
- [notify-me](notify-me/SKILL.md) — desktop notification at the end
|
|
of a long turn, sticky if I'm stepping away; not every reply.
|
|
|
|
## adding one
|
|
|
|
Name the directory for the trigger, not the topic. Write the `description` for the matcher: what I'd say, what I'd be doing, and what it's *not* for.
|
|
|
|
Write the body for an agent in the middle of a task. It reads the skill's text, not the pages the skill links to, and it acts on rules, examples, and reasons:
|
|
|
|
- **Body:** the rule, an example, and a line of why; the why carries the rule to cases it doesn't spell out. Use terms of art by name ("confused deputy", "POLA"): a known name is a key into what the agent already knows. Quote a source only where its words *are* the rule.
|
|
- **Sources:** a footer with one line per source: title, link, and a clause saying what's there. It's for people, and for backing a claim when it's challenged ([citation-needed](citation-needed/SKILL.md)).
|
|
- **History**, such as who said what, when, or how the rule came about, goes in the commit message.
|
|
|
|
For each line, ask: would deleting it change what an agent does? If not, it belongs in the footer or the commit message.
|
|
|
|
When a skill resolves a tension, with forces pulling different ways, write it as a pattern after the Portland Pattern Repository (and Alexander before it): context, problem, forces, therefore, resulting context. Mark the parts in the text, as Alexander did, not with generic headings: the context in the opening paragraph, the problem as a bold sentence, the forces as a list, the resolution after a bold **Therefore:**, and its cost to close. Headings, where the body needs them, name the point ([docs-files-api](docs-files-api/SKILL.md)): "Confidential details stay private", not "Therefore". The forces give an agent reasons to handle cases the rules don't cover, and the resulting context says what the resolution costs. An anti-pattern takes the same form, with the tempting answer among the forces. TODO: rework the patterns ([notify-me](notify-me/SKILL.md), [acls-dont](acls-dont/SKILL.md), [refactor-mercilessly](refactor-mercilessly/SKILL.md), [hackmd-deck](hackmd-deck/SKILL.md)), which still use the parts as headings. A recipe with no tension, like [yarn-lock-separate-commit](yarn-lock-separate-commit/SKILL.md), stays plain.
|
|
|
|
TODO: revise every skill with this in mind.
|
|
|
|
TODO: revise every skill for flow. Edits tend to be local: a new point gets added where it was needed, without asking how it changes the whole. Read each skill end to end, and rework it so it reads as one document.
|