Files
fleet/templates/agent-rules.md
CatoandClaude Sonnet 5.5 213d3f61b1 docs(experience): the experience belongs to the package, measured and enforced (#487)
* docs(experience): the experience belongs to the package, measured and enforced

The owner, 2026-11-06: every product installs the shared packages and the
screens people touch are still built per app — a text box with no microphone,
a header that is not ours, a comment list that works its own way. For a user
that is the same as no package at all. A non-technical person who says "make me
a website" must get the standard out of the door.

- AGENTS.md: "The experience belongs to the package". Packages ship behaviour
  and the layout skeleton; apps own words, backend and brand (tokens).
  Extending the package is the work, not a detour. A file that must be the
  exception says why on its first line.
- SHARED.md: "The experience standard" — what a person gets, from which
  package, measured per repo on 2026-11-06, how it is enforced.
- templates/agent-rules.md: one bullet, so the rule reaches every repo's
  AGENTS.md by the existing sync PRs and no future session can miss it.
- scripts/ci/experience-audit.mjs (+ tests): counts bare text areas, local
  chrome, composers, comment lists and article editors. package-composition
  runs it; a product whose package-plan.json sets experience.ceiling may not
  exceed it. The app template ships an empty ceiling, so a new product starts
  at zero.
- docs/experience-standard-plan.md: the living plan, status table and how to
  resume, for whoever picks this up next.
- shared-inventory.sh: its comment said UI markup was excluded so apps keep
  their own look; it now says behaviour is measured by the new audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD

* docs(agents): regenerate the template rule blocks from templates/agent-rules.md

The audit job compares the three template AGENTS.md copies with the shipped
block; they had not been regenerated after the experience bullet was added.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 09:44:55 +01:00

2.6 KiB

Org rules

Read bitbaum/fleet AGENTS.md, SHARED.md and the registers it names before inventing a host, a name, a page or a shared behaviour. Do not copy their facts into this file.

  • Packages first. If a @bitbaum/* package (or bip-kit, limitkit, threadkit, ai-forms) already does it, use it and fix a defect in the package, not in this app. Every chat is @bitbaum/chatkit, every search box @bitbaum/searchkit, every chart @bitbaum/chartkit, accounts @bitbaum/accountkit, model calls @bitbaum/ai-kit. Review this product's package-plan.json before building anything. When a second product needs what one product built (a map, a globe, a calculator), extract it into a package before writing the second copy.
  • The experience belongs to the package. Anywhere a person types words there is a microphone (@bitbaum/chatkit: Composer, DictationField); articles are @bitbaum/writingkit/react, comments are chatkit's CommentThread, header, menu, tab bar and footer are @bitbaum/sitekit. Apps own brand, words and backend, not the behaviour or the layout. If a component cannot do what the product needs, extend the package in the same session (fleet AGENTS.md, "The experience belongs to the package").
  • A gap is a task, not an answer. Never end the work, or a reply, at "not supported" or "not available". When a source cannot be read or a case does not fit the model, find another way (another format or publisher, the official tool measured, the model extended) and do it. What truly cannot be done yet is tracked with its plan, never presented as a limit of the product.
  • Every page leads to an action. What a reader learns, they can act on from the same screen: file, pay, apply, compare, ask, contact.
  • One shape per kind. Things of the same kind look the same and sit in the same place (fleet AGENTS.md, "One shape per kind").
  • Finished work ships by itself. Open a non-draft pull request; the fleet auto-merge sweep is the only merge path. Never merge by hand, through the merge API, with --auto or with an admin bypass, and never force-push a shared branch.
  • Nothing made up. A fact on a page or in a doc needs a source that was opened; where there is none, the line is removed or softened. A gap is filled with sourced data, never with a guess.
  • Bitcoin orange is for Bitcoin and top-of-funnel actions only.
  • No model identifier in anything pushed to a repository.
  • Before you finish, run node <fleet>/scripts/ci/docs-truth-audit.mjs --dir .: the same check the sweep runs on every pull request.