skills
AGENTS.md1 starsChanged 55 days agoApache-2.0View on GitHub
Skill/template registry for the Instrument desktop app. Not an app. Primary consumer: Instrument, a cross-platform Electron desktop app for knowledge workers. Users open a local project folder and delegate work to an agent. The agent operates on that folder using file I/O, shell commands, web search, browser automation, and image generation. Skills from this registry are installed into the user's workspace on demand. Their scripts execute from the user's project root, not from this registry. Optimize for file-centric desktop workflows…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-referenceSkill
- create-registry-skillSkill
- skills-commit-messageSkill
- tighten-skillSkill
- agent-browserSkill
- barcodesSkill
- colorSkill
- create-pageSkill
- document-to-markdownSkill
- docxSkill
- ffmpegSkill
- local-mlSkill
- markdownSkill
- media-downloadSkill
- pdfSkill
- powerpointSkill
- sharp-imagesSkill
- spreadsheetSkill
- wireframeSkill
- zipSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
If SKILL.template.md exists, SKILL.md is generated.
- Distinctive: line 10
Do not soft-wrap prose in skill Markdown.
- Distinctive: line 14
Treat a skill as a recipe book for solving a domain, not as a catalog of CLI wrappers.
- Distinctive: line 16
Keep scripts for closed, repeatable operations.
- Very specific: line 17
Use {{GENERATED_SCRIPT_INDEX}} when a template has scripts.
- Distinctive: line 34
Prefer Python for document manipulation (PDF, DOCX, XLSX, PPTX), data processing, and ML inference — the ecosystem is more stable and …
- Very specific: line 38
Avoid casts. Prefer satisfies.
- Very specific: line 40
Do not run tsc; use built-in diagnostics.
- Very specific: line 45
Prefer z.output over z.infer for type inference.
- Very specific: line 57
Run checks through Turbo from repo root for caching.
- Very specific: line 77
Run one file or a whole skill with cd skills/<name> && pnpm test [path/to/file.test.ts].
- Very specific: line 78
Prefer toMatchInlineSnapshot so expected output stays visible in the test file.
- Very specific: line 79
Use it.each for repetitive cases.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Instrument Skills
Skill/template registry for the Instrument desktop app. Not an app.
skills/: workspace-installed agent skills. Scripts run from the consuming project root, not here. Each skill has its owntests/.
Notes
- If
SKILL.template.mdexists,SKILL.mdis generated; edit the template. - Do not soft-wrap prose in skill Markdown. The app renders source line breaks, so keep each paragraph or list item on one source line.
Skill design
- Treat a skill as a recipe book for solving a domain, not as a catalog of CLI wrappers. Teach the agent how to choose an approach, compose the installed libraries, and verify the result.
- Fix skills for the general case, not the transcript. When a failure report motivates a change, encode the durable rule (how a tool really works, a transferable technique) and drop the incidental specifics that exposed it: the one-off site, vendor, CDN token, error string, or environment quirk. Test: would it help on a different task, or only replay this one?
- Keep scripts for closed, repeatable operations. For generative, layout, data, or multi-step work, include executable library recipes and make direct code the primary route.
- Use
{{GENERATED_SCRIPT_INDEX}}when a template has scripts. Keep the concise index inSKILL.md; the generator writes complete CLI documentation toreference.mdfor progressive disclosure. - A command-first skill is appropriate only when the underlying interface is itself the best improvisational surface, such as FFmpeg or browser automation.
- TypeScript dependencies are isolated to the loaded skill package. A custom TypeScript recipe that imports them must live under that skill directory and be run by its full path from the task root. Python packages are available to task-local scripts through the shared task virtualenv.
Consumer app context
Primary consumer: Instrument, a cross-platform Electron desktop app for knowledge workers. Users open a local project folder and delegate work to an agent. The agent operates on that folder using file I/O, shell commands, web search, browser automation, and image generation.
Skills from this registry are installed into the user's workspace on demand. Their scripts execute from the user's project root, not from this registry. Optimize for file-centric desktop workflows on Windows, Linux, and macOS. Avoid platform-specific assumptions unless documented. Do not optimize for CI, servers, or CLI-first workflows.
Skill runtime
- The product provides a Node.js runtime and a Python runtime for skill scripts. Implement scripts in TypeScript (npm deps) or Python (pip deps).
- Python is available via bundled uv with managed CPython. A per-task virtualenv lives at
work/.venv; agents callpython,pip, anduvas shell commands. The app installs locked base dependencies from a loaded skill'spyproject.tomlanduv.lock; write.pyscripts and usepip install <pkg>only for task-specific optional extras. - Python skills keep their complete dependency contract in
pyproject.tomland a committeduv.lock. Tests run withuv run --locked --project .so the manifest stays executable. Keep SKILL.md's dependency guidance aligned with the manifest: identify automatically installed base packages and any optional extras the agent must install for a requested workflow. - Native npm dependencies are acceptable only when they provide supported binaries for Windows, Linux, and macOS.
- A tool available on a contributor's machine is not necessarily available to an installed skill. Treat the product runtime and the skill's declared dependencies as the execution environment.
- Prefer Python for document manipulation (PDF, DOCX, XLSX, PPTX), data processing, and ML inference — the ecosystem is more stable and feature-rich than the Node equivalents. Prefer TypeScript for skills that are inherently browser/web or that wrap Node-native APIs.
TypeScript
- Avoid casts. Prefer
satisfies; useasonly for genuinely different types (e.g. unknown payloads), and say why. - Reuse existing types/interfaces rather than redefining per file. Prefer short inline non-exported types.
- Do not run
tsc; use built-in diagnostics. - This repo installs no ESLint or oxlint, so nothing auto-fixes import or object key order. Match the surrounding file.
Zod
Prefer z.output over z.infer for type inference.
Commit trailers
A commit that makes a choice ends with decision trailers, so the reasoning outlives the session that held it: Rejected: <alternative> | <reason>, Commits-to: <contract later code must keep>, Not-tested: <what was not checked>, Related: <sha>, and Tested: only for checks beyond the unit suites. Each line must make sense to a reader who never saw the session; leave one out rather than pad it. A commit that makes no choice carries none. Vocabulary and examples: skills-commit-message skill.
Repository knowledge base
Durable, versioned docs are the system of record; prefer them over chat/history. Keep them evergreen and safe to share: leave out secrets and anything tied to one machine, person, or moment. See docs/README.md for the taxonomy (decisions/, findings/, plans/).
Monorepo checks (Turbo)
Run checks through Turbo from repo root for caching. Do not cd skills/* for repo-wide check loops.
pnpm check-and-test— full local check (includes spelling, format, etc.)pnpm check-and-test:ci— what CI runs (omits pedantic checks that don't affect correctness)turbo run check:types— all packages, or--filter=@instrument-org/skill-<name>for oneturbo run check:python— Python syntax checks for every Python skill
A format hook runs oxfmt on every file you Edit/Write, then oxfmt over all changed files on Stop. With no linter installed, formatting is the whole of it. So: expect files to change after you write them, don't hand-format, and run the checks above for type errors and skill-rule violations, which the hook does not cover.
HTML is exempt, by **/*.html in .oxfmtrc.json. Formatting it broke tags across lines mid-element (</span\n>, <a\n href=) often enough that one line in five of a page was a fragment meaning nothing on its own, which is what makes an exact-match edit fail for whoever revises the page next. Setting htmlWhitespaceSensitivity to ignore cuts that by about two thirds rather than fixing it, and buys a rendering risk on inline elements. Nothing is lost: a page is content, written fresh, and no one compares two of them for whitespace. Write it the way it reads best. Any <!-- prettier-ignore --> still in a page is inert now, though oxfmt does honor it where it formats.
scripts/generate-skill-md.ts formats generated SKILL.md / reference.md with oxfmt's JS API, which — unlike its CLI — does not read .oxfmtrc.json. It passes the config through explicitly; keep that wiring if you touch the generator, or generated files will drift from check:format.
Package management
pnpmCLI (install,add,remove,why, etc.): outside sandbox (full permissions). pnpm links from the global store; sandbox isolation blocks that path, so the workspace no longer matches a normal local install.pnpm test/pnpm check-and-test: sandbox OK.
Tests
- Run one file or a whole skill with
cd skills/<name> && pnpm test [path/to/file.test.ts]. - Prefer
toMatchInlineSnapshotso expected output stays visible in the test file. Generate it empty and let the run fill it in. - Use
it.eachfor repetitive cases.
Pages: a method, recipes and kits, never templates
skills/create-page makes one self-contained HTML page, and it has no page types. It is a method (find the point, direct a shape, a feel and a hero, lead with the point), a stylesheet the agent never reads (lib/foundation.css and lib/foundation.js, which page.mjs writes into the page), a check in two halves (page.mjs reads every rule the file itself shows, and lib/probe.js, which the agent evaluates in its own browser tool, measures layout at desktop, link-preview, dark and phone sizes; each prints one FAIL line per problem), recipes (cookbook.md: techniques such as a comparison matrix, a ranked pick, a timeline, steps, figures with a chart), and kits (kits/<name>/: map, playground, storyboard, whiteboard), which are capabilities a page reaches for, not kinds a user picks. It replaced twenty-eight templates because an agent handed a template fills it in, and pages made that way came out near-identical and scored worst in evaluation. See docs/decisions/2026-10-05-create-page-is-a-method-with-kits.md.
- Do not add a template, an example gallery or a page type. A new kind of page is a recipe in
cookbook.mdwhen it is a technique, or a kit when it needs a library wired up or a drawing kit that would be wrong to retype. Never a second skill that makes pages: every skill's description shares the agent's catalog budget. SKILL.mdnames every recipe by its heading and links every kit'sREADME.mdand every file inreferences/. The runtime hands an agent at most fifty filenames from a loaded skill, depth-first, so a file the router does not name is one an agent may never open.pnpm check:page-skillenforces that, the description's 400-character budget, the fifty-file ceiling, and that every kit'sskeleton.htmlis a pagepage.mjsaccepts.- A kit is a folder with a
README.md(what it draws, when to reach for it and when not, its files, a worked example, its rules), usually apatterns.mdof recipes run at writing time, and either askeleton.html(a working page on the foundation) or ascripts/folder: a drawing library in a.mjsand a.pythat take the same calls, produce byte-identical output, need no install, and write a sample when run directly.scripts/kits.test.tsholds the pair to that. - Kits sit on the foundation like any page: tokens (
--ink,--accent,--paper,--gray-N,--c1..--c8), never hex and never Tailwind. A canvas the reader pans and zooms carriesdata-zoom, which exempts its text from the phone size floor; nothing else may. lib/check.mjslists the hosts a page may load from, andallowed-sources.jsonat the root is what the platform's pages worker derives every hosted copy'sconnect-srcfrom, so an origin added there needs a pages deploy before shared pages honor it.pnpm check:page-skillfails when the check allows a host the file does not.- A page skill starts no process and opens no browser. Inside the user's app, launching their real browser raises an operating system permission prompt in the app's name. Layout is checked by
lib/probe.jsin the agent's own browser tool. Publishing stays withshare.mjsandshare.py, since many hosts cannot run the page's Share button.scripts/page-skill.test.tsfails when any file in create-page or wireframe names a process call, or a network write outside the share scripts. Seedocs/decisions/2026-10-06-page-skills-launch-nothing.md. tools/page-checkis the Chromium check for evals and development:page.mjs, then the samelib/probe.jsover the DevTools protocol, then screenshots. It runs only a downloaded Chromium (PAGE_CHECK_CHROME, or agent-browser's, Playwright's or Puppeteer's cache), never an installed browser. Nothing underskills/imports it.skills/wireframeis its own skill, because wireframes are drawn in Tailwind's vocabulary on their own shell (shell.html, which carries the old starter's skin, compiled sheet and share widget), and projects carry their own wireframe kits in that vocabulary.- An example page in a recipe or kit exists to show the shape, not to be authoritative. Name things that exist, and link them to their maker's or vendor's own page, never a deep SKU, a search result or anything that rots: an agent copying a page keeps its links.
- Numbers are the easiest thing for an agent to invent and the hardest for a reader to check. A page carries a figure only when the prompt, a source, or arithmetic over shown inputs gave it; scores use coarse scales (letters, a few dots, a word) unless every input is on the page, and never a decimal that implies precision the research does not have.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

