xonecas.ioDon't click! Sean Caetano Martin Sign in

skills / commits / 72cc825

Skills that teach agents how xonecas works, writes, codes, and designs

Nine skills built from the local repos, their tickets and commit history, and the public GitHub repos. technical-writing and unslop are copied unchanged from ~/.claude/skills. scripts/check validates every skill against the Agent Skills spec.

Co-Authored-By: Claude Opus 5.5

sacenox3 days ago72cc82545549cbad0cff3508dd9da8951a08eb3e12 files changed

README.md+35-0
@@ -0,0 +1,35 @@
1+# skills
2+
3+How I work, written down for coding agents. Agent skills that follow the [Agent Skills](https://agentskills.io/specification) spec, built from my repos, tickets, and commit history.
4+
5+| Skill | Use it when |
6+| --- | --- |
7+| [working-agreement](skills/working-agreement/SKILL.md) | Any task: scope, decisions, blocking, live data, credentials, reporting, git |
8+| [verification](skills/verification/SKILL.md) | Before calling anything done: the real binary, the real provider, a real window |
9+| [code](skills/code/SKILL.md) | Writing or reviewing code: less code, one concern per file, config first, no comments |
10+| [design](skills/design/SKILL.md) | Any UI: developer tools, TUIs, web apps, games, and how to propose a direction |
11+| [prose](skills/prose/SKILL.md) | Anything a person reads: READMEs, docs, tickets, commits, replies, UI strings |
12+| [technical-writing](skills/technical-writing/SKILL.md) | The sentence and structure rules that prose builds on |
13+| [unslop](skills/unslop/SKILL.md) | The catalog of AI tells to cut from any text |
14+| [new-project](skills/new-project/SKILL.md) | Bootstrapping a repo: vision doc, AGENTS.md, decision records, verify scripts |
15+| [coding-agents](skills/coding-agents/SKILL.md) | Building agent loops, providers, tools, sessions, and their front ends |
16+
17+## Install
18+
19+Link the skills into Claude Code, and into `~/.agents/skills` for other agents:
20+
21+```sh
22+mkdir -p ~/.claude/skills ~/.agents/skills
23+ln -s "$PWD"/skills/* ~/.claude/skills/
24+ln -s "$PWD"/skills/* ~/.agents/skills/
25+```
26+
27+Edits apply live. `ln` refuses a skill that already exists, such as `technical-writing` and `unslop`, so remove the old copy first.
28+
29+## Maintain
30+
31+Each skill is one `skills/<name>/SKILL.md`, with `name` equal to the folder name and a `description` that says when to use it. Keep a skill under 500 lines, and move detail into `references/`.
32+
33+`scripts/check` validates the frontmatter, the length, the links, and the absence of em dashes. Run it before every commit.
34+
35+When an agent gets something wrong twice, add the rule to the skill that owns it, with my words if I wrote any.
scripts/check+24-0
@@ -0,0 +1,24 @@
1+#!/usr/bin/env bash
2+set -u
3+fail=0
4+err() { echo "$1: $2"; fail=1; }
5+for dir in skills/*/; do
6+ name=$(basename "$dir")
7+ file="$dir/SKILL.md"
8+ [ -f "$file" ] || { err "$name" "missing SKILL.md"; continue; }
9+ [ "$(head -n1 "$file")" = "---" ] || err "$name" "frontmatter must start on line 1"
10+ front=$(awk 'NR>1 && /^---$/ {exit} NR>1' "$file")
11+ fname=$(sed -n 's/^name: *//p' <<<"$front")
12+ desc=$(sed -n 's/^description: *//p' <<<"$front")
13+ [ "$fname" = "$name" ] || err "$name" "name '$fname' does not match the folder"
14+ [[ "$fname" =~ ^[a-z0-9]+(-[a-z0-9]+)*$ ]] && [ ${#fname} -le 64 ] || err "$name" "name must be 1-64 of a-z, 0-9 and single hyphens"
15+ [ -n "$desc" ] && [ ${#desc} -le 1024 ] || err "$name" "description must be 1-1024 characters, it is ${#desc}"
16+ lines=$(wc -l <"$file")
17+ [ "$lines" -lt 500 ] || err "$name" "SKILL.md has $lines lines, keep it under 500"
18+ grep -n '—' "$file" | sed "s|^|$name: em dash on line |" | grep . && fail=1
19+ for link in $(grep -o '](references/[^)]*)' "$file" | sed 's/^](//; s/)$//'); do
20+ [ -f "$dir/$link" ] || err "$name" "broken link $link"
21+ done
22+done
23+[ $fail -eq 0 ] && echo "ok: $(ls -d skills/*/ | wc -l) skills"
24+exit $fail
skills/code/SKILL.md+82-0
@@ -0,0 +1,82 @@
1+---
2+name: code
3+description: xonecas's engineering rules for code in any language. Use when you write, refactor, or review code in their projects, and when you choose a dependency, a file layout, a name, error handling, configuration, or storage.
4+---
5+
6+# Write less code
7+
8+> Bugs, cyclomatic complexity, time complexity, and memory complexity all grow with the number of lines of code.
9+> Less code, less complexity, fewer bugs.
10+
11+The repo's `AGENTS.md` or `CLAUDE.md` wins where it differs from this skill. For per-language habits, read [references/languages.md](references/languages.md).
12+
13+## Build only what is needed
14+
15+- Write the least code that meets the spec. A feature needs a named need. Don't add something because it might be useful.
16+- Don't add modules, abstractions, traits, or options for later. Add them when the second use arrives.
17+- No backups, compatibility layers, shims, feature flags for the old path, or workarounds unless the user asks. Replace the old code and delete it.
18+- Copy first. If one of the user's projects already solved the problem, port it and then own it. Don't re-derive it.
19+- Run cleanup passes: remove duplication, unused dependencies, and dead code. The logs show commits such as "slimming down on dependencies" and "drop siwc and mcp (unused)".
20+
21+## Give each file one concern
22+
23+- One concern per file. Group files by feature.
24+- Name a file for the thing it holds: `tickets.rs`, `session.zig`, `combat.go`, `editor.ts`. Never `utils`, `helpers`, `common`, or `misc`.
25+- Put code in the module that already owns its concern.
26+- Use one name for one thing, everywhere: in code, flags, docs, and UI. Consistent names make `grep` find every use.
27+- A core library never imports a front end. A TUI, a GUI, a headless mode, and a server are projections of one event stream. They own no domain logic.
28+- The recurring shape is a `protocol` package for wire and storage types, a daemon that does the work, and thin clients. The daemon listens on a Unix socket, and `--stdio` bridges to it over `ssh`.
29+
30+## Write no comments
31+
32+Don't write comments. Make the names and the structure carry the meaning. If code needs a comment to be understood, rename or restructure it. When you touch a file that has comments narrating what the code does, remove them.
33+
34+## Treat dependencies as a cost
35+
36+- Ask before you add a dependency.
37+- Reach for the standard library and the system's programs first: `git`, `ssh`, `curl`, `sqlite3`, and `qemu`. "The pieces that usually break are the ones we do not write."
38+- Write a small thing by hand when that is less than the dependency. The projects hand-write a Myers diff, an SSE parser, argument parsing, and a Markdown renderer.
39+- Pin exact versions, pin git dependencies to a revision, and pin the toolchain. Turn off default features you don't use.
40+- Be a good consumer of an SDK or API. Respect its terms, with "no sketchy stuff around subscription usage".
41+
42+## Guard the boundary, then trust the types
43+
44+- Trace the real data flow before you design anything.
45+- Validate untrusted input once, at the narrowest boundary. Inside that boundary, keep the code plain-typed and free of re-checks.
46+- Surface errors as they are. Never mask, swallow, or summarize a provider error or a failed write. A persistence failure stops the operation.
47+- An error message says what happened and what to do next, and names the thing that failed.
48+
49+## Make every behaviour configurable
50+
51+- Every user-facing behaviour that can vary comes from config, with a sane default.
52+- The order of precedence is `--flag`, then `$VAR`, then a key in the config file.
53+- Use XDG paths: `$XDG_CONFIG_HOME/<tool>`, `$XDG_STATE_HOME`, and `$XDG_RUNTIME_DIR` for sockets.
54+- Secrets come from the environment only, never from a flag or a config file.
55+- Express variation as data, not code branches. Providers are data, themes are data, and model catalogs are data. Generate tables like these with a script in `tools/`, and note the command that regenerates them.
56+
57+## Keep state in plain files
58+
59+- Start with plain files: JSON, JSONL, Markdown with frontmatter, and TSV.
60+- Logs are append-only. Write one record per line, fsync on write, and never rewrite or delete a committed line.
61+- Move to SQLite when the queries or the volume need it. Use WAL mode, a `busy_timeout`, and plain SQL. No ORM.
62+
63+## Behave like a Unix tool
64+
65+- When output is not a TTY, print a plain log with no escape sequences and no live region.
66+- Logs never go to stdout.
67+- Respect `NO_COLOR`, the terminal size, and exit codes.
68+- Make the headless mode scriptable first. Interactive mode is a projection of it.
69+
70+## Make it fast and small
71+
72+- Performance is a feature. Measure it from the first commit and with every change after.
73+- Keep memory low and startup fast. Ship a single binary where the language allows it.
74+- Large data never costs responsiveness. Virtualize long lists, and repaint only what changed.
75+
76+## Hold production quality
77+
78+"We are the maintainers of this codebase, treat it with care and attention to detail." This is not a toy.
79+
80+- Keep code formatted and lint-clean, with warnings as errors.
81+- `scripts/verify`, or the repo's equivalent, is the gate for every change.
82+- Then prove the change with the **verification** skill.
skills/code/references/languages.md+62-0
@@ -0,0 +1,62 @@
1+# Language habits
2+
3+These habits come from the user's own repos. Follow the repo where it differs.
4+
5+## Rust
6+
7+- Use a Cargo workspace with `crates/<name>`, edition 2024, and shared `[workspace.dependencies]`.
8+- Pin the toolchain in `rust-toolchain.toml` with `profile = "minimal"` and the `rustfmt` and `clippy` components.
9+- Return `Result<T, String>`, or a small hand-written error type. Don't use `anyhow` or `thiserror`.
10+- Prefer plain structs and free functions. Use traits and generics only where two implementations exist today.
11+- For HTTP, use `reqwest` with `default-features = false` and `rustls`. In small blocking tools, use `ureq` and skip `tokio`.
12+- For SQLite, use `rusqlite` with the `bundled` feature.
13+- Code tools run in `rquickjs`. TUIs use `ratatui` and `crossterm`. GUIs use Rune, GPUI, or Tauri, and the project decides which.
14+- Put unit tests inline, in `#[cfg(test)] mod tests` at the bottom of the file.
15+- The gate is `cargo fmt --all --check`, `cargo clippy --workspace --all-targets -- -D warnings`, and `cargo test --workspace`.
16+- For the release profile, use `lto = "thin"` and `codegen-units = 1`, or `opt-level = "z"` plus `strip` for size.
17+
18+## Zig
19+
20+- Set the minimum version in `build.zig.zon`. Release builds use `-Doptimize=small`.
21+- Keep dependencies at zero where possible, and vendor the rare one, such as QuickJS-ng.
22+- Use an arena for each request or turn over a backing allocator. Parsers take the allocator `a` and a `scratch` arena.
23+- Name functions in camelCase, types in PascalCase, and files in snake_case.
24+- Make callbacks `{ ctx: *anyopaque, fn }` structs, not vtables.
25+- Generate tables such as Unicode widths and model catalogs with a Python script in `tools/`.
26+- Format with `zig fmt`. Some repos also lint with `zlint`.
27+
28+## Go
29+
30+- Use the standard library `net/http` with method patterns: `mux.HandleFunc("GET /world", ...)`.
31+- Use `modernc.org/sqlite` through `database/sql`. Keep the schema in one constant, write SQL by hand, and use no ORM.
32+- Name domain packages for the domain (`sim`, `match`, `world`), and put private code under `internal/`.
33+- Return early on every error. Map the HTTP status code to the cause.
34+- Gate dev-only code behind a build tag. `make check` proves that the production binary doesn't contain it.
35+- Write tests in sibling `_test.go` files, one for each feature file.
36+- Keep a `Makefile` with `build`, `serve`, `dev`, `check`, and `test` targets.
37+
38+## TypeScript
39+
40+- Use a strict `tsconfig`: `strict`, `verbatimModuleSyntax`, `erasableSyntaxOnly`, and `.ts` extensions in imports.
41+- For frontends, use Vite and Tailwind 4. React is optional. Plain TypeScript is fine for a small UI.
42+- No state library and no router until the app proves it needs one.
43+- TUIs have no framework: raw terminal handling, a hand-written editor, and incremental repaint.
44+- Use `oxlint` and `oxfmt` where the repo has a lint step, and `tsc --noEmit` as the type gate.
45+
46+## C
47+
48+- Use `-std=gnu11` and `-Wall -Wextra -Wshadow -Wstrict-prototypes -Wmissing-prototypes`.
49+- Pull libraries in through `pkg-config`. Vendor only what has no distro package.
50+- Generate source files, such as catalogs and queries, from Python scripts in `tools/`.
51+
52+## Scripts and tooling
53+
54+- Use Python for verification and generators, and bash for glue. Put them in `scripts/` or `tools/`.
55+- Run Python tools with `uv` where a project uses it.
56+- Give a verification script a docstring that says what it walks, and exit 1 on a failed check.
57+
58+## Godot
59+
60+- Use typed GDScript, with an explicit type where inference fails, for example on `load(...)`.
61+- Keep cross-scene state in one autoload.
62+- `--headless` uses the dummy renderer, so screenshots need a real display.
skills/coding-agents/SKILL.md+78-0
@@ -0,0 +1,78 @@
1+---
2+name: coding-agents
3+description: The invariants xonecas holds for the coding agents and agent tools they build. Use when you design or change an agent loop, a provider layer, model tools, session storage, interrupts, a TUI or headless front end for an agent, skills loading, or subagents.
4+---
5+
6+# Build a coding agent
7+
8+The user has built this many times: mini-coder in TypeScript, mini-coding-agent in Zig, tiny-c-agent in C, potatoz, termite, shoot, orc, and the rat family. These are the decisions that kept surviving. The project's design doc wins where it differs.
9+
10+Above all, the agent is minimal and transparent, and the user stays in control.
11+
12+## The loop
13+
14+- No loop limits. No turn cap, tool-call cap, token budget, or timeout imposed by the agent. The user's interrupt is the limit.
15+- No hidden work. The loop adds no reminders, hidden blocks, or meta-messages between steps.
16+- Provider errors surface as they are, never masked or summarized.
17+- A failed request is a rolled-back transaction. It never enters the context or the log, so the user retries by resending the turn unchanged.
18+- The default is no compaction and no automatic retries. A design that wants them says so, and records what it keeps, for example raw events kept in storage while the prompt is compacted.
19+
20+## Interrupts
21+
22+- **Esc** pauses politely at the next step boundary.
23+- **Esc** again while pausing, or **Ctrl+C**, cancels the turn. That aborts the request, kills each tool's process group, kills child agents from the bottom up, and records an aborted result.
24+- **Ctrl+C** on an idle input clears the draft. **Ctrl+D** on an empty draft exits.
25+- Completed side effects are never undone.
26+- A steering message sent during a turn waits in a queue, and joins the conversation at the next step boundary.
27+
28+## Context
29+
30+- The model sees the configured system prompt, plus the resource files the user opted into: `AGENTS.md` files and the skill index.
31+- Keep the prompt cache-friendly. Put stable content first, and keep tool schemas deterministic.
32+- Skills follow the Agent Skills spec. Index each skill by name and description, load the body on request, and load it once per session.
33+- Reasoning text can be stored, but it is not sent back to the provider.
34+
35+## Tools
36+
37+Keep few tools, and pick one of two designs:
38+
39+- **Three tools:** `read`, `edit`, and `bash`.
40+- **One code tool:** `execute(script)` or `code(script)`, which runs JavaScript in QuickJS. It binds the file, shell, skill, todo, ask, task, and MCP calls. Never add `read`, `edit`, or `bash` beside it.
41+
42+Tool arguments are untrusted. Validate them once, at the boundary. Generate the description the model sees from the binding table, because a binding the model can't see is a bug. Return the applied diff from an edit.
43+
44+## Permissions
45+
46+None. No sandbox and no permission layer. Tools run with the user's permissions. Isolation is the environment's job: `nono`, a container, a VM, or a remote box.
47+
48+## Providers
49+
50+- Providers are data. Implement each wire protocol once, such as `openai-completions`, `openai-responses`, `anthropic-messages`, and Google's. Each model names its protocol, base URL, and headers. The code has no branches for a specific provider.
51+- Generate the model catalog from models.dev with a script, and trim it to the models that the available keys reach.
52+- Record token counts, cache hits, and cost for every turn.
53+- Start with one curated model, and widen the list only by the user's decision.
54+
55+## Sessions
56+
57+- A session is an append-only log, fsynced on write. Never rewrite or delete a committed line. A failed write stops the turn.
58+- JSONL with one message per line is the default. SQLite is for trees of sessions, such as forks and subagents, or for large volume. Store each request and tool call as an intent and a resolution, and close open intents after a crash.
59+- The provider request is a fold over the log.
60+
61+## Front ends
62+
63+- The agent core never imports a front end. A TUI, a headless mode, and a server are projections of one event stream. They own no agent, provider, or tool logic.
64+- A headless mode is a well-behaved Unix tool, and its output is a plain log.
65+- A TUI follows the terminal rules in the **design** skill: scrollback first, a live region, and counted event markers.
66+- Diagnostics stay local. No telemetry.
67+
68+## Config
69+
70+The order of precedence is `--flag`, then `$VAR`, then a config key under XDG paths. Prefer global config. Add project-local config only when the design asks for it.
71+
72+## Subagents
73+
74+Subagents go one level deep, through `task()`. Define each one as a Markdown file in `.agents/agents/<name>.md`. Frontmatter sets the model and the effort, and the body is its system prompt. A subagent has no `task()` of its own. Parallel subagents work in separate git worktrees.
75+
76+## Verify
77+
78+Run against the real provider with the cheapest model that exercises the path, in a real kitty window, through the **verification** skill. No mock providers and no replay files.
skills/design/SKILL.md+96-0
@@ -0,0 +1,96 @@
1+---
2+name: design
3+description: xonecas's visual, interaction, and product design preferences. Use when you design, build, restyle, or review any UI, including a desktop GUI, a TUI, a CLI's output, a web app, or a game screen, and when you propose a visual direction, a theme, a layout, keybindings, or an empty state.
4+---
5+
6+# Design like xonecas
7+
8+Function first. "A developer tool, not a chatbot: formal, minimalist and functional." The active state, the activity, and the output take the focus. Everything else stays inspectable and doesn't dominate.
9+
10+These rules are strongest for developer tools, which is most of what the user builds. Web apps and games are looser, and their sections are at the end.
11+
12+## Product
13+
14+- Use the fewest interactions for each action. "The bug is the extra interaction to click to edit, least amount of clicks principle here. The body should be the editor."
15+- Hide empty states, and show no data twice.
16+- When a state is empty or failed, say what to do next. Don't apologize.
17+- Cut features that have no evidence of use. "Less is more, function first, humanized data."
18+- Never leave the user waiting in silence. Every action gets visible feedback at once, and work that runs long shows that it is running.
19+- Large data never costs responsiveness, so 100,000 events must still scroll.
20+- Name things as the user sees them, not as the system is built.
21+
22+## Look for developer tools
23+
24+- **Dark.** Use the [mfd](https://github.com/kungfusheep/mfd.nvim) palettes: `mono` by default, plus `blackout`, `flir`, and their variants. No light mode in tools, no transparency, and no blur. Tiles are solid.
25+- **Grey ramp and one accent.** Use about six greys and one accent. Amber is the usual choice. The accent marks live state, such as an agent working or asking, selection, focus, or a fuzzy match. It never decorates a heading, a bar, or a border.
26+- **Layers, not lines.** Background steps give depth. Whitespace separates. No borders, no separators, no cards, no shadows, and no gradients. Where structure truly needs a line, use a one-pixel hairline.
27+- **One font.** JetBrains Mono, its Nerd Font build if installed, otherwise the system monospace. No second family.
28+- **Few sizes.** Use about four sizes and two weights. Hierarchy comes from size, weight, and the grey ramp. Never from capitals, letter spacing, or color.
29+- **Measure.** Keep prose lines under 80 to 100 characters.
30+- **Glyphs over icons.** Text glyphs from the mono font carry status: `>`, `·`, `›`, `✓`, `●`, `!`, and `[x]`. Each glyph has one meaning. The few icons are simple line drawings on a 16px grid, and each one sits next to a label. No emoji, no icon fonts, and no pasted icon packs.
31+- **No motion except state.** A state change is instant. Animation only shows that something is alive, such as a mark that breathes while an agent waits.
32+- **Small radii.** Use 2 to 3px, and 0 for bars.
33+- **Tokens.** Colors live in one theme file of semantic roles, such as `bg`, `panel`, `well`, `select`, `text`, `dim`, `faint`, and `accent`. A screen never writes a hex value. Themes are data, so a palette maps onto the roles.
34+- **Data.** Humanize numbers, as in `16.3k tokens`, `2m 14s`, or `$0.42`. No raw prints. Highlight code by weight and shade, so every palette keeps its character. Render Markdown with good typography, tables, and mermaid diagrams.
35+
36+## Interaction for developer tools
37+
38+- **Keyboard first.** Typing with excellent autocompletion beats browsing. fzf is the quality bar. One fuzzy opener, such as `Alt+O`, reaches everything.
39+- **Keybindings.** Don't collide with the OS or the window manager. Let the user remap them. Ship a key sheet.
40+- **Layout.** A sidebar and an i3-like tiled workspace, with floating tiles where they help.
41+- **Custom controls.** No browser alerts, no native dialogs, and no default form chrome. The app draws its own title bar.
42+- **Editors.** Make them as plain as a notepad. Enter sends, Shift+Enter adds a new line, lines wrap by default, and the cursor never jumps on a re-render.
43+- **Hover.** Hover only fills a background. Every action can be reached without hover, by click and by keyboard.
44+- **Focus.** Focus is always visible. Clicking a field focuses that field.
45+- **Point to talk.** A modifier plus a click on any element files a note or ticket about it, with accurate context.
46+
47+## Terminal tools
48+
49+- Write output into the terminal's own scrollback. No alternate screen, no borders, no separators, and no modals.
50+- Only a small live region at the bottom repaints. It shows the state, the elapsed time, the active tool call, context use, the cache hit rate, and the cost.
51+- Commit only the user's messages and the replies to scrollback. Tool calls, reasoning, and agent state are transient.
52+- Collapse runs of events into a counted line, such as `3x reasoning, 20x tools`. Never dump lists of tool calls.
53+- Status fields drop from right to left as the row narrows. The most important field never drops.
54+- The input box starts at 2 rows and grows to 12 before it scrolls.
55+- A spinner ticks at about 120 ms. A Braille glyph works well as a state icon.
56+- Use truecolor with explicit colors, so the host terminal's palette never leaks in.
57+- With no TTY, print a plain, well-formatted log.
58+
59+## Web apps for other people
60+
61+These are looser. irvc and xonecas.io use sans and serif type, light modes, and hairline borders.
62+
63+- Keep the semantic token system, with palettes as presets that the user can override per role.
64+- Offer light and dark through the same tokens, and apply them before first paint.
65+- Design mobile-first when people will use the app on phones.
66+- Build one shared set of components, such as buttons, inputs, menus, and lists. Feature code composes them and never invents new styling.
67+
68+## Games
69+
70+The look is allowed to be rich here. Rules still come from the constraint.
71+
72+- "Asset limitation is the art direction." Static sprites come alive with hops, squash, and tweens, like "cards in a gameboard that came alive".
73+- Use pixel art with nearest-neighbour scaling at a small base resolution, such as 640x360.
74+- Fit the tabletop and D&D register: low-poly miniatures, parchment, and "Night time is a shade not darkness".
75+- Use seeded, deterministic, shareable worlds.
76+- Projectiles can be dodged, never hitscan. Movement is free, not tile-locked.
77+- Add a mechanic only when play shows a need: "I want to wait until I feel the need of something before I add it."
78+
79+## Propose a direction
80+
81+The user rejects proposals that are generic or that ignore the real app.
82+
83+- Start from the real app: its screens, data, and window layout. A flat marketing page is not a proposal. "It's like you never seen our UI."
84+- Give one considered direction, or two or three that truly differ. "20 variations of the same thing, I'm doing the project without you."
85+- Don't recycle the current look with new colors, and don't reach for extravagant color. "These are recycled mfd looks. boring. do it again."
86+- Show it as a screenshot or a working prototype. A prototype that doesn't run is not ready for review.
87+
88+## Review a screen
89+
90+1. Does the accent mark state, or does it decorate?
91+2. Is there a border where a background step or whitespace would do?
92+3. Does every size and color come from the theme?
93+4. Does each empty or failed state tell the user what to do?
94+5. Can every action be reached by keyboard, with visible focus?
95+6. Is any number shown raw, or any piece of data shown twice?
96+7. Does it stay responsive with 100 times the data?
skills/new-project/SKILL.md+80-0
@@ -0,0 +1,80 @@
1+---
2+name: new-project
3+description: Start or restructure a project the way xonecas sets them up. Use when you bootstrap a new repo, write or trim an AGENTS.md or CLAUDE.md, add a design doc or a decision record, set up verify scripts, or pin a toolchain.
4+---
5+
6+# Start a project
7+
8+A project starts with the user's vision doc, and grows one verified step at a time.
9+
10+## The vision doc is the user's
11+
12+The user writes `<project>.md`, as in `cast.md`, `shoot.md`, or `minimal-termite.md`. It says what the thing is, how it should feel, the invariants, the tech, and references to other tools. It is the source of truth, and agents never edit it.
13+
14+If the user asks for a longer design, write `DESIGN.md` or `SPEC.md` beside the vision doc. Every change to the design needs the user's decision. Once code exists, the code is the source of truth for behaviour, and the design doc stays short.
15+
16+## AGENTS.md stays short
17+
18+Write `AGENTS.md`, and make `CLAUDE.md` a symlink to it, or the reverse. Every line costs context in every session. "If a fact can be learned by reading the code, it does not belong here."
19+
20+```markdown
21+# <project>
22+
23+<One or two sentences: what it is, and its parts.> `<project>.md` holds the user's vision. Read it first, and never edit it.
24+
25+## Guardrails
26+
27+- <Invariant, stated as a fact.>
28+- Ask before adding a dependency.
29+- Do not add comments.
30+- Do not add scope. If that blocks, stop and report.
31+
32+## Verification
33+
34+- `scripts/verify` runs the format, lint, and test gates.
35+- <How to prove the change in the real product: the window, the script, the provider, and the model.>
36+- <The names of the environment variables that hold the keys. Never their values.>
37+
38+## Git
39+
40+- <The commit style, and whether a remote exists.>
41+```
42+
43+- A rule that a tool enforces can go in a table with two columns, the rule and what enforces it. A rule with nothing to enforce it is a request.
44+- The file describes the repo only. It makes no claims about the machine.
45+- Don't copy rules from a skill into it. Link the skill.
46+
47+## Decision records
48+
49+Put accepted decisions in `docs/<topic>.md`. Each file covers one decision:
50+
51+```markdown
52+# <Decision as a title>
53+
54+Date: YYYY-MM-DD
55+
56+## Context
57+## Decision
58+## Consequences
59+## References
60+```
61+
62+Measure before you decide, and put the measurement in Context. For example: "`ssh localhost 'sleep 60'` left no `sleep` process two seconds after the client was killed."
63+
64+## Scaffolding
65+
66+- Pin the toolchain from day one with `rust-toolchain.toml`, the minimum Zig version, or the `go` line.
67+- Add `scripts/verify` before the first feature. It runs the format, lint with warnings as errors, and the tests.
68+- Add a smoke script that sends one real request through the real binary.
69+- Measure performance from the first commit. Write the benchmark before you have something to optimize.
70+- If the project uses tickets, keep them in `tickets/` as Markdown, worked with the `rats` skill.
71+- Add a secrets hook that refuses commits containing keys, and set `git config core.hooksPath scripts/hooks`.
72+- Run `git init` with no remote. The user adds one when the project is ready.
73+
74+## Port before you write
75+
76+Most new projects descend from an earlier one, such as mini-coding-agent, orc, shoot, rats, or termite. Copy what already works into the new repo, and own it from then on. Don't edit the source project. Don't carry over its scope.
77+
78+## Grow in proven steps
79+
80+Work in small steps that can each be proven. Each step ends working in the real product, and is checked with the **verification** skill before the next one starts.
skills/prose/SKILL.md+85-0
@@ -0,0 +1,85 @@
1+---
2+name: prose
3+description: Write in xonecas's voice. Use when you write anything a person will read in their projects, including a README, a repo description, a design doc, AGENTS.md, a ticket, a resolution, a commit message, a PR description, a UI string, or a reply to the user.
4+---
5+
6+# Write like xonecas
7+
8+Short, plain, and specific. The voice is dry and honest, and it states things as facts. Get to the point, then stop.
9+
10+The mechanics live in two other skills. **technical-writing** covers structure and sentences, and **unslop** catalogs the AI tells to remove. Apply both. This skill adds the voice and the formats the user uses.
11+
12+## The voice
13+
14+- **Lead with the point.** Put the answer, the decision, or the result in the first sentence.
15+- **State facts and invariants in one line each.** "Rats never runs a coding agent." "Sessions are append-only JSONL." "No loop limits."
16+- **Say what is out as plainly as what is in.** "No borders, no separators." Give a scope its own "Out (now):" list.
17+- **Set the bar with a known tool.** "fzf is the quality bar." "Somewhere in between nvim and vscode." "Think NERDTree with icons." "Feels like Age of Empires, plays like a Civilization game."
18+- **Give numbers, names, and commands, not adjectives.** "38 s instead of 12 s", not "much slower".
19+- **Use "we" for the maintainers, "the user" for the person who uses the product, and "you" in instructions.**
20+- **Be honest about the state.** Say "Not verified:", "early", or "unverified" where it applies. Name what's left undone.
21+- **Credit plainly, and up front.** "Rats copies the idea behind claudeweaver." "Go there instead of using this app."
22+- **Keep humor dry and rare.** It belongs in a tagline or a repo description, never in the technical sections. Use at most one emoji, and only in a tagline.
23+- **Keep opinions short and concrete.** "Discord, Slack, and other chat and voice applications are expensive or gather user data."
24+
25+## Taglines and repo descriptions
26+
27+One line, first person where it fits, often wry. These are the user's own:
28+
29+- "A good idea 👾"
30+- "There are many personal assistants but this is mine."
31+- "I got tired of boxing timers with excessive advertising so I made one for myself."
32+- "A fast, transparent, config-first terminal coding agent written in Zig."
33+- "A WebRTC-powered private text and voice chat."
34+
35+The pattern is either a plain noun phrase for what the thing is, or an origin story. Never a slogan.
36+
37+## READMEs
38+
39+Use this order, and drop any section with nothing to say:
40+
41+1. The title and a one or two sentence pitch.
42+2. A screenshot or demo GIF.
43+3. The credit, if the idea came from somewhere.
44+4. Install, with exact commands and the system packages it needs.
45+5. First steps, as a numbered list a new user follows once.
46+6. Keys or usage.
47+7. Configuration: the file path, then each key.
48+8. Development: build, verify, and the layout.
49+9. License, and how AI was used where it matters.
50+
51+## Commit messages
52+
53+Follow the repo's own log first. Run `git log --oneline -20` before your first commit.
54+
55+When the repo has no settled style, write the subject as one sentence that says what changed for the user, in the present tense. If a ticket exists, put its id at the end in parentheses:
56+
57+```
58+A blocking ticket pauses its project until the user moves it on
59+the Git tile can hide its list of files (1240)
60+```
61+
62+Leave the body out, or write a short prose paragraph with the numbers that matter. Don't write bullets. Older repos use lowercase conventional commits (`feat:`, `fix:`, `chore:`), and they keep that style.
63+
64+## Tickets and resolutions
65+
66+- A ticket title is a sentence that says what is wrong or what to make. The body is one to four sentences, followed by constraints as bullets and a line that starts "Done is...".
67+- A resolution says what changed and where, how it was checked with real numbers, what was not checked, and the steps left for the user. The **working-agreement** skill has the details.
68+- Decision records in `docs/` use the sections `Date`, `Context`, `Decision`, `Consequences`, and `References`. Each one covers one decision.
69+
70+## Replies to the user
71+
72+- Start with the result. Don't open with a preamble or close with an offer.
73+- Keep it short. Show a table, a diagram, or a screenshot instead of a long paragraph.
74+- Never say you did something you didn't. Say what failed, with the output.
75+- Don't explain basics to the user. They are a senior engineer.
76+
77+## The user's own text
78+
79+The user writes fast, often by voice, and leaves typos. Quote their words exactly in tickets and docs. Don't correct a vision doc they wrote, and don't copy their typos into your own text.
80+
81+## UI strings
82+
83+- Use sentence case and plain verbs. One word means one action through the whole flow.
84+- Don't use all-caps labels, an arrow after a label, or a metadata string joined with middle dots.
85+- An error says what happened and what to do next. It doesn't apologize.
skills/technical-writing/SKILL.md+105-0
@@ -0,0 +1,105 @@
1+---
2+name: technical-writing
3+description: "Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for /technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages."
4+---
5+
6+# Technical writing
7+
8+Write so a tired engineer understands on the first read. Apply all four layers.
9+
10+Three rules sit above the layers:
11+
12+- **Cut every word that does no work.** If the sentence survives without a word, the word goes. "In order to" is "to". "It is important to note that" is nothing.
13+- **Use the short, everyday word.** "Use", not "utilize". "Help", not "facilitate". "Do", not "perform". A long word has to buy its length with precision.
14+- **When a rule makes a sentence worse, fix the sentence another way or leave it alone.** A sentence that follows every rule and sounds like a machine wrote it has failed.
15+
16+The codebase is the word list. Write the real symbol, file, flag, or command name, not a synonym or a description of it.
17+
18+Don't invent jargon. Use the words a developer would say out loud: "move", "delete", "a budget that only decreases", not "evacuate", "ratchet", or "endgame". A named pattern is fine when the doc says what it means the first time. Propose a new offender and its replacement as an addition to `unslop`'s abstract-metaphor rule in your reply, with the diff. Don't edit that skill.
19+
20+## Vary the rhythm
21+
22+A doc can obey every layer and still read machine-written: every sentence clipped short, no view anywhere, nothing specific.
23+
24+- Mix sentence lengths on purpose. Short sentences land a point. Longer ones carry a fact with its condition or consequence.
25+- One thought per sentence does not mean one length per sentence. Split the sentence that carries two thoughts. Keep the long sentence that carries one.
26+- Have a view where the mode allows it. Explanation weighs trade-offs, so say what you make of them instead of listing pros and cons. Reference stays dry.
27+- Be specific over sterile. Not "schema changes can cause issues" but "a column rename fails the build".
28+
29+## Pick the mode first (Diátaxis)
30+
31+One document, one mode. Two questions pick it: does the content inform action (doing) or understanding (thinking), and does it serve learning or work?
32+
33+- Action + learning: **tutorial**.
34+- Action + work: **how-to**.
35+- Understanding + work: **reference**.
36+- Understanding + learning: **explanation**.
37+
38+Use the compass on a whole document or on one sentence.
39+
40+**Tutorial: learning by doing.** The learner's success is your job, not theirs. Open by saying what the learner will build, not what they will "learn". Every step produces a visible result, early and often. Tell them what they should see: the expected output, the prompt change, the log line. Cut explanation to one clause and a link. Stay concrete. Write as "we", in commands: "First, do x. Now, do y."
41+
42+**How-to: steps to a goal.** Solve a problem a person has, not an operation the machine can perform. Assume competence and skip teaching. Action only: no digressions, no background, no completeness for its own sake. Link those instead. Allow forks and judgment: "If you want x, do y." Name the guide by the task: "How to calibrate the radar array", not "Radar array calibration".
43+
44+**Reference: facts for lookup.** Only describe. No instruction, no persuasion, no opinion. Be dry, complete, and sure. State facts, options, limits, and errors with no hedging. Mirror the structure of the thing described, so code and docs can be navigated together. Put material where readers expect it. Generate from code where possible.
45+
46+**Explanation: understanding and why.** One bounded topic, readable away from the product. Each title should tolerate an implicit "About..." in front. Anchor on a real why question. Give context: design decisions, history, constraints, alternatives. Opinion is allowed here and nowhere else.
47+
48+Don't mix modes: no reference tables inside a tutorial, no tutorial hand-holding inside reference, no arguing inside a how-to. Split and link instead.
49+
50+## Write sentences to the reader (Google developer style)
51+
52+- Talk to the reader as "you", in the present tense. "Will" only for things that genuinely happen later.
53+- Say who does what: "the compiler checks", not "is checked". Passive is fine only when the actor is unknown or beside the point.
54+- Write instructions as commands: "Click Submit." State facts plainly. Never "should be done".
55+- Put the condition before the instruction: "To delete the document, click Delete."
56+- Put the common case first. Exceptions after.
57+- Sound like a knowledgeable friend. No buzzwords, no figurative language, no "please" in instructions, and never "simply", "easy", or "quickly" in a procedure. If it were simple, the reader would not be here.
58+- Don't pre-announce ("we will soon support...") and don't start consecutive sentences with the same phrase.
59+- Link with words that say where the link goes: the page title or a short description. Never "click here". Prefer a sentence of context on the page over a link off it.
60+- Headings carry the point, not just the topic ("Pick the mode first", not "Modes"). Sentence case. A task heading is a bare verb phrase ("Create an instance"). A concept heading is a noun phrase. One h1 per page, no skipped levels.
61+- Numbered lists for sequences, bullets for everything else. Introduce a list with a complete sentence. Keep items parallel.
62+- Code goes in code font. UI elements go in bold. Use serial commas. Drop "etc." and say up front that a list is partial.
63+
64+## Make statements load one at a time (STE rules)
65+
66+- One instruction per sentence. One thought per sentence everywhere else.
67+- Split instructions longer than about 20 words and other sentences longer than about 25.
68+- Put the warning or condition before the step it guards: "If hot oil touches your skin, injuries can occur."
69+- Keep "the" and "a": "Remove backup file" reads two ways. "Remove the backup file" reads one.
70+- Give each word one meaning and one job, then keep it. If "check" means inspect, don't also use it for restrain.
71+- Pick one word per action and stick to it: "start", not "start" here and "initiate" there.
72+- Write procedures as direct commands, never as narration and never in the passive: "Install the component", not "the component must be installed".
73+- Avoid "-ing" words where you can.
74+
75+## Leave no sentence open to two readings (Global English)
76+
77+- Keep words like "only" and "not" next to the word they change: "only fails on growth" and "fails only on growth" say different things.
78+- Break up long noun strings: "the proto import budget check script" becomes "the script that checks the proto-import budget".
79+- Make every "it", "they", and "this" point at one obvious thing. Repeat the noun when in doubt. Never use "this" or "which" to point at a whole clause.
80+- Don't drop verbs: "Phase 1 moves the converters and Phase 2 the runtime" leaves Phase 2 without one. Give it one.
81+- Keep the small words that show structure, such as "that" in "Ensure that the switch is off". Never trade clarity for word count.
82+- Repeat the article in a series when it prevents a misread: "the client and the host", not "the client and host", when they are two things.
83+- Say which parts "and" or "or" joins when a sentence can group two ways. "Both...and", "either...or", and "if...then" are free disambiguators.
84+- Use periods, not semicolons. Replace an em dash with a new sentence.
85+- Make text in parentheses a full grammatical unit or its own sentence. Never form plurals with "(s)".
86+- No slashes: write "a, b, or both" instead of "a/b" or "and/or".
87+- Call each thing by one name, everywhere. A doc that says "the gate", "the ratchet", and "the budget check" for one thing teaches three things. Don't churn what didn't change.
88+- Skip idioms, colloquialisms, Latin abbreviations, and metaphors.
89+
90+## Voice and repo specifics
91+
92+- Apply the **unslop** skill to every doc this skill touches. That skill owns the slop-pattern catalog: AI vocabulary, filler, hedging, formatting tells.
93+- PR descriptions and commit messages are writing too. Every layer except Diátaxis applies to them. A PR body is a briefing that a reviewer can read in under a minute. Do not paste swarm logs, SHA lists, or metric tables. Link them.
94+- Product UI strings are not documentation. Use your product's copy guidelines for those.
95+- Indent code snippets with tabs. Write real paths. Make every count or tree claim true at the commit that lands it, and include the command that regenerates it.
96+
97+## Worked example
98+
99+Before:
100+
101+> Configuration of the proto import ratchet budget script parameters is performed via budget.json. Note that it's important to remember that running with --write, which updates the committed budget to reflect the current count, should only be done when lowering it. If exceeded, CI fails.
102+
103+After:
104+
105+> `budget.mjs` reads the committed budget from `budget.json` and counts the files that import protos. If the count exceeds the budget, CI fails. Run `budget.mjs --write` only to lower the budget.
skills/unslop/SKILL.md+61-0
@@ -0,0 +1,61 @@
1+---
2+name: unslop
3+description: Cut AI tells from any writing.
4+---
5+
6+# Unslop
7+
8+Edit text to remove AI patterns. Scan for the patterns below, then rewrite. Preserve meaning and match the intended tone.
9+
10+## Patterns to detect and fix
11+
12+Rule numbers are stable ids that other skills cite. A removed rule leaves a gap.
13+
14+### Content
15+
16+3. **Superficial -ing phrases.** "highlighting...", "ensuring...", "reflecting...", "showcasing...", "fostering...". Delete or expand with real sources.
17+5. **Vague attributions.** "Experts believe", "Industry reports suggest", "Some critics argue". Name the source or delete.
18+
19+### Language
20+
21+7. **AI vocabulary.** Additionally, crucial, delve, enduring, enhance, fostering, garner, interplay, intricate, landscape (abstract), pivotal, showcase, tapestry (abstract), testament, underscore, vibrant. Replace with plain words.
22+8. **Fancy ways to say "is".** "serves as", "stands as", "boasts", "features". Say "is" or "has".
23+9. **"Not just X, but Y."** State the point directly instead.
24+10. **Rule of three.** Don't force ideas into groups of three. Use the natural number.
25+11. **Synonym cycling.** Protagonist, main character, central figure, hero all in one paragraph. Pick one, repeat it.
26+12. **False ranges.** "from X to Y" where X and Y aren't on a meaningful scale. List topics directly.
27+
28+### Style
29+
30+13. **Em dash overuse.** Avoid em dashes entirely. Use periods or commas only (no parentheses, no en dashes, no hyphen-as-dash substitutes). If a thought needs separation, end the sentence or use a comma.
31+14. **Colon overuse.** Colons are fine before a list or example, not as mid-sentence connectors. "If you're coming from traditional automation: instead of registering event handlers, you describe conditions" adds nothing with the colon. Rewrite to let the point stand on its own without comparison framing. "Describing when the scheduler should fire works best as plain English." Same meaning, no crutch punctuation.
32+15. **Boldface overuse.** Don't bold every proper noun or acronym.
33+16. **Inline-header lists.** The tell is a bold label and colon that restates the line: "**Performance:** Performance improved...". Convert those to prose. A bold lead-in that ends in a period, names the item, and is followed by genuinely new detail ("**Schema in TypeScript.** Tables live in one file.") is fine, not a tell.
34+17. **Title case headings.** Use sentence case.
35+18. **Decorative emojis.** Remove from headings and bullets.
36+19. **Curly quotes.** Use straight quotes.
37+
38+### Communication artifacts
39+
40+20. **Chatbot phrases.** "I hope this helps!", "Let me know if...", "Of course!", "Certainly!", "Found the smoking gun!" Remove.
41+22. **Sycophantic tone.** "Great question! You're absolutely right!" Respond directly.
42+
43+### Filler
44+
45+23. **Filler phrases.** "In order to" becomes "To". "Due to the fact that" becomes "Because". Delete "It is important to note that".
46+24. **Excessive hedging.** "could potentially possibly be argued that it might" becomes "may".
47+25. **Generic conclusions.** "The future looks bright." State specific plans or facts.
48+
49+### Jargon
50+
51+26. **Abstract metaphor nouns.** Substrate (base), wedge, wedge in (add), vector (way, method), locus, vantage, nexus, primitive as a noun, harness as a metaphor, surface as in "API surface", bedrock, scaffolding as a metaphor, modality, paradigm, gold-plating (more than the job needs), ratchet as a metaphor (the mechanism's real name, or a limit that only tightens), evacuate for moving code (move out), endgame (the last phase), north star, flywheel, trajectory (execution history, event log). Th …
52+
53+### Plain speech
54+
55+27. **Say what it does, not how it feels.** "the database stays close at hand", "SQL you can read", "types that follow your schema" name a feeling. The fix names the mechanism or a number: "`.toSQL()` returns the exact string sent to the database", "a column rename fails the build". Ask what the sentence tells the reader to do or know, then write that. If you can't restate it as a concrete instruction, fact, or number, cut it. One more check: if the sentence could appear unchanged in another pro …
56+28. **Shorten or split dense sentences.** If the reader has to backtrack to parse a sentence, break it in two or drop clauses. One idea per sentence.
57+29. **Active voice.** Prefer it. Catch "is/are/was/were + past participle" and name the actor: "queries are validated" becomes "the compiler validates queries", "the file is parsed by the loader" becomes "the loader parses the file". Passive is fine only when the actor is unknown or genuinely doesn't matter.
58+30. **Cut adverbs, or use a stronger verb.** "runs quickly" becomes "is fast" or the number, and "significantly improves" becomes the measured delta. An adverb propping up a weak verb means the verb is wrong.
59+31. **Prefer the plain word.** "utilize" and "leverage" become "use", "facilitate" becomes "help", "numerous" becomes "many", "in the event that" becomes "if". The fancier synonym is rarely clearer.
60+32. **Mannered prose.** Metaphor or flourish where a literal phrase exists: aphorisms ("wire it or delete it"), rhetorical fragments for effect, personified code ("the plan holds it"), figurative verbs ("rides along", "stands on"), stock framing phrases. "A dial worth turning" becomes "a parameter worth varying". Say what you mean. Rule 26 covers the metaphor nouns.
61+33. **Over-compression.** Dropped articles, verbless fragments, symbol-speak, and abbreviations that make the reader decode instead of read. "Parser rejects bad date → exit 2, no write" becomes "The parser rejects a bad date, exits with code 2, and writes nothing." Write whole sentences with their articles and verbs, and spell out arrows and abbreviations.
skills/verification/SKILL.md+68-0
@@ -0,0 +1,68 @@
1+---
2+name: verification
3+description: Prove a change works in the real product before you call it done. Use before you commit, move a ticket to review, or report a task as finished, and when you plan how to check a CLI, TUI, GUI, web app, daemon, or coding agent.
4+---
5+
6+# Verify in the real product
7+
8+Tested is not verified. A passing test or script proves only the paths it knows. Walk the product as a user will, and push on its edge cases.
9+
10+A subagent's claim is not verified either. Subagents can do the bulk of the work, but you run the final check yourself.
11+
12+## Use the real thing
13+
14+- The real binary, from a release build. A change isn't ready until it works in a release build.
15+- The real provider, with real requests. Use the cheapest model that exercises the path. Today that is `opencode-go/deepseek-v4.1-flash` through `$OPENCODE_API_KEY`.
16+- Real data at real volume, such as a real session with 100,000 events. Synthetic events don't count.
17+- A real window for anything interactive.
18+
19+No mock servers, fixture endpoints, replay files, fake terminals, pseudo-ttys, or stand-in agents. "They prove nothing."
20+
21+Unit tests are for local behaviour, such as a parser or a fold. Behaviour that would need a mock, a fake terminal, or a simulated third party gets a manual check instead. Some repos say not to add tests unless asked, and those repos win.
22+
23+## Check each surface its own way
24+
25+| Surface | How to check it |
26+| --- | --- |
27+| CLI, headless | A plain shell run. Check the exit code. Check that stdout is clean when piped, with no escape sequences and no logs. |
28+| TUI | A real kitty window, driven through its control socket. Read back the text and take screenshots. |
29+| Desktop GUI | The computer-use skill for the desktop, either **xfce-computer-use** or **kde-computer-use**. Take screenshots and recordings. |
30+| Web | **agent-browser** or a real desktop browser. |
31+| Daemon, server | A script that drives the real wire on a temporary home. |
32+
33+Keys such as Esc, Ctrl+C, and Ctrl+D are proven only in a real kitty window, because the kitty keyboard protocol sends different bytes than a plain terminal does.
34+
35+For a kitty check:
36+
37+- Use a unique socket path for each check, such as `/tmp/<project>-verify-$(date +%s)-$$/k.sock`.
38+- Launch with `kitty --override allow_remote_control=yes --listen-on unix:$SOCK`.
39+- A launch that returns 0 proves nothing about the socket. Confirm it with `kitty @ --to unix:$SOCK ls`.
40+- Tear down only the handles you recorded: the PID, the socket, and the window id. Never `pkill`, never `close-window --match all`, and never a shared or guessed socket.
41+
42+## Keep checks away from the user's data
43+
44+- Set `HOME` and `XDG_RUNTIME_DIR` to a temporary folder for the process under test. Keep the real `HOME` for `cargo`, and the real `XAUTHORITY` for X access.
45+- Never check against the repo's own `tickets/`, an installed daemon, or the user's store.
46+- If a check needs the user's login, as the `claude` binary does, run it in a throwaway project folder. Delete its transcripts afterwards.
47+- The user must be able to see a check you start, and to stop it. If they ask you to stop, stop at once.
48+
49+## Measure
50+
51+Performance is a feature, so measure it from the first commit. Report real numbers: time to first token, startup time, memory, frame time, and the event count you tested with. "Fast" is not a number.
52+
53+## Keep the scripts
54+
55+When you check the same thing twice, save the check as a script in the repo's `scripts/` or `tools/` folder, so the next check is one command. A script tests only our product. It never starts a coding agent, and it never tests someone else's app.
56+
57+`scripts/verify`, or the repo's equivalent, runs the format, lint, and test gates, with warnings as errors. Run it on every change. It is the floor, not the proof.
58+
59+## Report the check
60+
61+End with what you checked and what you didn't:
62+
63+```
64+Checked: release build, a real kitty window on a temporary home, 100k-event session scrolls at 4 ms a frame.
65+Not checked: macOS, and the remote server path.
66+```
67+
68+If you could not check something that matters, say so first, as a failed check. Don't bury it.
skills/working-agreement/SKILL.md+79-0
@@ -0,0 +1,79 @@
1+---
2+name: working-agreement
3+description: How to work with xonecas on any task in their projects. Use at the start of every task, and again when you notice work outside the task such as a refactor or a second bug, before you widen scope, make a choice the task left open, ask a question, block, move a ticket, touch live data, commit, or report work as done.
4+---
5+
6+# Work with xonecas
7+
8+xonecas is a seasoned engineer. They want a peer who does the task they asked for, does all of it, and proves it. Don't lecture, and don't chat. Show a diagram, a table, or a screenshot before a wall of text.
9+
10+Every rule here exists because an agent broke it. The quotes are theirs.
11+
12+## The task is the scope
13+
14+- Do what the ticket or the message asks, and nothing else. "Agents keep merging tickets together, and expanding ticket scopes without no-one asking."
15+- Touch only the files, machines, and services that the task names. If the task can't be done without touching something else, stop and say so.
16+- Don't refactor, harden, or tidy the code next to your change. Keep the diff small.
17+- Don't edit docs, configs, or notes outside the task, even when they look stale.
18+- Don't create files or folders that nobody asked for: no `discovery/` folder, no plan documents, no scratch notes in the repo. "Please stop creating crap in the folder."
19+- When you find other work, name it in your report, or file one ticket for it if the project has a board. Don't do it now. Don't file tickets for a project that doesn't exist yet.
20+
21+## Discovery returns findings
22+
23+A discovery task asks what is true. Return facts, links, constraints, the options, and one recommendation. Don't design, plan, or build. "If I wanted you to design it I would have asked."
24+
25+Before the first line of code on a build task, find out what can stop it from shipping: licenses, keys, payment, accounts, platform limits, and differences in a release build. Read the terms and the source. If something outside our control can stop it, report that before you build, with the facts, the alternatives, and a recommendation.
26+
27+Don't invent requirements. Check a claim such as "this needs an API key" against the source before you repeat it.
28+
29+## Decisions belong to the user
30+
31+- A settled decision holds. That means a `done` ticket, the vision doc, or `DESIGN.md`. Don't reverse it, reinterpret it, or look for a loophole around it.
32+- Never write a rule the user didn't make, and never say they decided something they didn't.
33+- The user's vision doc, such as `cast.md` or `minimal-termite.md`, is read-only. Quote it, don't edit it.
34+- Make the small choices a task leaves open yourself, such as a name, a file layout, or an approach. Say what you chose and why, then keep going.
35+- For a real fork in the road, give the options, recommend one, and continue with other work. Expect a one-word answer such as "recommended". If the user already answered, don't flip it.
36+- Ask before you add a dependency.
37+- Other projects show behaviour, not code to copy. Don't carry over a reference's quirks "blindly without thought".
38+
39+## Don't stall
40+
41+- If you have what you need, do the work. "You're not blocked, you have everything to complete the task."
42+- No performative refusals of a clear and direct task.
43+- Block only on what nobody in the session can resolve: a missing secret, an account, a payment, or access. Name the exact command that failed. Finish everything that doesn't depend on the blocker first, and never build a workaround for it.
44+- Answer the question that was asked. A yes-or-no question gets "yes" or "no" first.
45+- Don't hand the user work you can do yourself. "do not fill the user with more cognitive load that you can handle yourself"
46+- Prefer simple commands. A fancy script gets blocked where a plain command passes.
47+
48+## Leave the user's state alone
49+
50+- Never test against live data: the user's real ticket board, installed daemon, store, config, or sessions. Point `HOME` and `XDG_RUNTIME_DIR` at a temporary folder. The **verification** skill has the details.
51+- Don't restart a daemon you didn't start. Close only the windows and processes you opened, by the ids you recorded. Never `pkill` by name.
52+- Don't edit the user's config unless they ask.
53+- Warn the user before you use their desktop.
54+- Check which machine you are on before you change anything. The host belongs to the user, so ask before you alter it. A disposable VM is yours to work in.
55+- A repo's `CLAUDE.md` or `AGENTS.md` is local to the repo. It never makes claims about the machine.
56+
57+## Keep credentials out of everything
58+
59+A credential never reaches git, a script, a ticket, a note, a log, or your output.
60+
61+- Keys are in the shell environment. Use them, but don't read them.
62+- Don't print a key, the environment, or a whole server reply. To check a key, print its name, its length, or where it is set.
63+- A test that needs a key-shaped string builds an obvious fake at run time.
64+- Pass a key on stdin or through the environment, never as a command argument.
65+- If a hook refuses a commit for a secret, remove the value. Never use `--no-verify`.
66+
67+## Report what happened
68+
69+- Your summary matches your actions. No surprises.
70+- Don't call work done until it works in the real product. Read the **verification** skill. If you didn't check something, say so first, as a failed check.
71+- A ticket's `## Resolution` says what changed and where, how you checked it with real numbers, and what you did not check. It lists any steps left for the user as numbered steps with exact commands. Keep it short, because the user reads it on the board.
72+- Only the user sets `done` or `wontfix`. Leave tickets in `inbox` alone, because the user may still be writing them.
73+
74+## Git
75+
76+- Commit logical groups of work. Coalesce similar changes into one commit instead of many. The **prose** skill covers the message.
77+- Don't commit unfinished or unverified work.
78+- Never push without a ticket or a direct request. Many projects have no remote until the user decides they are ready.
79+- Never rewrite history, switch branches, or change git config, hooks, or remotes unless the task says to.