agentleFS
instrument-orginstrument-org/skills/AGENTS.md

skills

AGENTS.md1 starsChanged yesterdayApache-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 ship with the app and are read in place, read-only, when an agent loads one. Their scripts run by full path ("$INSTRUMENT_SKILL_DIR/scripts/<script>") from the agent's…

  • Installs packages

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
  1. Very specific:

    If SKILL.template.md exists, SKILL.md is generated.

    line 9
  2. Distinctive:

    Do not soft-wrap prose in skill Markdown.

    line 10
  3. Distinctive:

    Treat a skill as a recipe book for solving a domain, not as a catalog of CLI wrappers.

    line 14
  4. Distinctive:

    Keep scripts for closed, repeatable operations.

    line 16
  5. Very specific:

    Use {{GENERATED_SCRIPT_INDEX}} when a template has scripts.

    line 17
  6. Distinctive:

    Prefer Python for document manipulation (PDF, DOCX, XLSX, PPTX), data processing, and ML inference — the ecosystem is more stable and …

    line 34
  7. Very specific:

    Avoid casts. Prefer satisfies.

    line 38
  8. Very specific:

    Do not run tsc; use built-in diagnostics.

    line 40
  9. Very specific:

    Prefer z.output over z.infer for type inference.

    line 45
  10. Very specific:

    Run checks through Turbo from repo root for caching.

    line 68
  11. Very specific:

    Run one file or a whole skill with cd skills/<name> && pnpm test [path/to/file.test.ts].

    line 88
  12. Very specific:

    Prefer toMatchInlineSnapshot so expected output stays visible in the test file.

    line 89
  13. Very specific:

    Use it.each for repetitive cases.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Instrument Skills

Skill/template registry for the Instrument desktop app. Not an app.

  • skills/: agent skills the app ships. Their scripts run from the agent's work folder, not here. Each skill has its own tests/.

Notes

  • If SKILL.template.md exists, SKILL.md is 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 in SKILL.md; the generator writes complete CLI documentation to reference.md for 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.
  • A loaded skill's folder is read-only, and its TypeScript dependencies resolve only for its own scripts. A custom TypeScript recipe lives in the agent's work folder and adds what it imports there with pnpm add. The agent's own Python scripts run in the loaded skill's environment wherever no .venv is near.

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 ship with the app and are read in place, read-only, when an agent loads one. Their scripts run by full path ("$INSTRUMENT_SKILL_DIR/scripts/<script>") from the agent's work folder ($INSTRUMENT_WORK), not from this registry. Recipes read what the person attached from $INSTRUMENT_ATTACHMENTS, which is read-only, and write into a job folder in the work folder. 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; agents call python, pip, and uv as shell commands. The app builds a skill's locked base dependencies from its pyproject.toml and uv.lock into an environment of its own, which python picks for any script in the skill's folder. Write .py scripts and use pip install <pkg> only for task-specific optional extras; with no .venv near, it makes $INSTRUMENT_WORK/.venv, which holds only what was installed there.
  • Python skills keep their complete dependency contract in pyproject.toml and a committed uv.lock. Tests run with uv 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; use as only 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.

Problem reports

Feedback, crashes, hangs and errors people send from the app are problem reports, each with a fingerprint (feedback:<id>), read with the reports CLI in the internal reference (agent-reference get internal). reports show <fingerprint> lists the issue's reports, the commits made for it and its history.

A skill fix is tied to its report by the commit alone:

  • The commit carries Report: <fingerprint>, one line per report it fixes; Report: <fingerprint> (partly) when it leaves part of the report open, and Related-report: <fingerprint> for a change that fixes nothing.
  • Once the commit is on main, the reports worker ties it to the issue within seconds of the push (within ten minutes when GitHub's webhook delivery fails), resolves it, tells its Slack card, and records it as shipped, since a skill ships when it is pushed. Nothing is resolved by hand for a fix.
  • What you learned that no commit records goes into the issue's history with reports note <fingerprint> "<text>" --finding: a cause, a report artifact that is not a bug, a complaint the fix leaves open. A commit that went out without its line is tied with reports link <fingerprint> skills <sha>.
  • A commit made for an ask in Slack (a teammate's thread, not a report) carries Slack: <link to the thread's first message> instead, and needs no issue: once it is on main, the reports worker replies once in that thread linking the commit. A commit can carry both kinds of line. One that went out without it is tied with reports link-thread <link> skills <sha>. Never post to the thread yourself, and never file a Slack ask as a report to get the reply.

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/, reviews/). Before a code review, read REVIEW.md and docs/reviews/, which records each review and what came of its findings; a fix for a finding carries a Review: trailer.

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 one
  • turbo 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

  • pnpm CLI (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 toMatchInlineSnapshot so expected output stays visible in the test file. Generate it empty and let the run fill it in.
  • Use it.each for repetitive cases.

Pages: a method, recipes and kits, never templates

skills/instrument-page makes one self-contained HTML page, and it has no page types. It is a method (decide the angle first, put the whole answer on the first screen, then repeat one unit below it), a stylesheet the agent never reads (lib/foundation.css and lib/foundation.js, which page.mjs writes into the page, set by a layout and a feel on <html>), 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.md when 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.md names every recipe by its heading and links every kit's README.md and every file in references/. 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-skill enforces that, the description's 400-character budget, the fifty-file ceiling, and that every kit's skeleton.html is a page page.mjs accepts.
  • 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 a patterns.md of recipes run at writing time, and either a skeleton.html (a working page on the foundation) or a scripts/ folder: a drawing library in a .mjs and a .py that take the same calls, produce byte-identical output, need no install, and write a sample when run directly. scripts/kits.test.ts holds 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 carries data-zoom, which exempts its text from the phone size floor; nothing else may.
  • lib/check.mjs lists the hosts a page may load from, and allowed-sources.json at the root is what the platform's pages worker derives every hosted copy's connect-src from, so an origin added there needs a pages deploy before shared pages honor it. pnpm check:page-skill fails 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.js in the agent's own browser tool. Publishing stays with share.mjs and share.py, since many hosts cannot run the page's Share button. scripts/page-skill.test.ts fails when any file in instrument-page or wireframe names a process call, or a network write outside the share scripts. See docs/decisions/2026-10-06-page-skills-launch-nothing.md.
  • tools/page-check is the Chromium check for evals and development: page.mjs, then the same lib/probe.js over 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 under skills/ imports it.
  • tools/page-lab is a local lab for designing the stylesheet: a specimen of every token and class, six sample pages, and a panel that switches feel, layout and theme, all reading foundation.css live (pnpm page-lab). Its samples are fixtures for checking the stylesheet; never copy one into the skill or show one to an agent.
  • tools/wireframe-check drives the wireframe skill's enlarged view through fixture pages in the same downloaded Chromium: footer height, the strip, two up and the ways out of it. Run pnpm wireframe-check after changing skills/wireframe/main.html.
  • skills/wireframe is 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.