agentleFS
WatermelonBrosWatermelonBros/reado/CLAUDE.md

reado

CLAUDE.md30 starsChanged 2 months agoMITView on GitHub

Build on Ark UI, not from scratch. @ark-ui/react is a dependency; use its headless primitives for any interactive base component (dialogs, menus, tooltips, segmented controls, selects, checkboxes, QR codes, …) and style them with our Tailwind tokens. Don't hand-roll focus traps, keyboard nav, positioning, or ARIA that Ark already provides. Import per component, e.g. import { Tooltip } from "@ark-ui/react/tooltip". Reach for the shared atoms before writing raw markup. Common UI is a component, not a copy-pasted <button className="…">: -…

  • In this repositoryOne other file it gives its agents.

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If a component isn't trivial and Ark has it, use Ark.

    line 27
  2. Very specific:

    Every user-facing change is recorded in CHANGELOG.md under the

    line 62
  3. Very specific:

    Never release without moving the accumulated [Unreleased] entries into the new version — a tagged release with an empty changelog section …

    line 77

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

Reado — working notes

UI components

Build on Ark UI, not from scratch. @ark-ui/react is a dependency; use its headless primitives for any interactive base component (dialogs, menus, tooltips, segmented controls, selects, checkboxes, QR codes, …) and style them with our Tailwind tokens. Don't hand-roll focus traps, keyboard nav, positioning, or ARIA that Ark already provides. Import per component, e.g. import { Tooltip } from "@ark-ui/react/tooltip".

Reach for the shared atoms before writing raw markup. Common UI is a component, not a copy-pasted <button className="…">:

  • Button (atoms/Button.tsx) — text buttons (primary / secondary / ghost / danger, sizes sm/md). Never restyle a bare <button> for a text action.
  • IconButton (atoms/IconButton.tsx) — every clickable icon. label is required (it is both aria-label and the tooltip); pass active for toggles, danger for destructive actions. It carries an Ark-based Tooltip, so a migrated icon button needs no title.
  • Tooltip (atoms/Tooltip.tsx) — Ark tooltip; IconButton uses it. GlobalTooltip (the legacy title-scraping singleton) is the interim fallback for buttons not yet on IconButton; prefer IconButton/Tooltip for new code and migrate old buttons toward them.

If a component isn't trivial and Ark has it, use Ark. If clickable UI repeats, promote it to an atom rather than duplicating classes.

Anything that floats over the app must portal to document.body (or be position: fixed). Two reasons, both non-negotiable: the app root carries the interface-zoom transform, which re-bases position: fixed inside it; and the browser pane is a native child window that paints above every pixel of DOM, so lib/overlays.ts finds the floating layers by exactly that property and moves the pane out of their way. A layer rendered inside the app tree without fixed opens behind the page — see the module header there.

Phosphor icons

The atoms/icons.tsx set wraps Phosphor. Import the *Icon-suffixed exports (CaretRightIcon, not the deprecated bare CaretRight).

Code style

Biome owns formatting and lint (biome.jsonc): no semicolons, double quotes, 100 columns, imports organized. pnpm lint is the read-only check CI runs; pnpm lint:fix applies everything it flags. Don't hand-format — run the fixer.

CI fails on a single diagnostic and the check is required on main, so a rule left enabled is a rule the code obeys. The handful that are off carry their reason inline in biome.jsonc; turning one back on means fixing its sites, not suppressing them one by one.

Imports use the @/… alias for anything outside a file's own directory (@/lib/api, @/components/atoms/Button); a sibling stays relative (./x). The alias is declared in tsconfig.json, vite.config.ts and vitest.config.ts — all three, or one of the three toolchains won't resolve it.

Releases & changelog

Every user-facing change is recorded in CHANGELOG.md under the [Unreleased] heading, in Added / Changed / Fixed groups, as the work lands (not deferred to release time).

When cutting a release (pnpm release, which bumps the manifests, commits release: vX.Y.Z, tags, and pushes):

  1. First rename ## [Unreleased] in CHANGELOG.md to ## [X.Y.Z] — YYYY-MM-DD and add a fresh empty ## [Unreleased] above it. Update the compare/link footnotes at the bottom.
  2. The release commit must include CHANGELOG.md alongside the version bump — so everything listed under that version ships in the same commit as the tag. (scripts/release.sh stages CHANGELOG.md, so don't leave the file dirty with unrelated edits when releasing.)

Never release without moving the accumulated [Unreleased] entries into the new version — a tagged release with an empty changelog section means changes went out undocumented. The GitHub release page is built from that section (scripts/release-notes.sh lifts it out at tag time), so skipping the rename publishes a release that describes nothing.

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.