Coding agents
AGENTS.md and project skills, so Claude Code, Cursor, Codex and others follow the template's conventions.
The repository explains itself to coding agents. They read the same conventions you would, so a fresh session can add a feature the way the template expects without rediscovering it.
AGENTS.md
AGENTS.md at the root is read by most agents at the start of a session (CLAUDE.md imports
it for Claude Code). It covers:
- the map of apps and packages, and where settings live,
- the commands (
dev,check,verify,db:*,test:*), - the conventions: authorization in the database, synced tables, server code in SQL and Edge Functions, translations, queries, migrations,
- the gotchas that already cost time in this codebase,
- the definition of done,
- which skill to read for which task.
Keep it short and current: when a convention changes, change it there.
Project skills
Skills are step-by-step workflows in .agents/skills/<name>/SKILL.md
(Agent Skills format: a name, a description that says when to use it,
then the steps). Agents load a skill when its description matches the task.
| Skill | For |
|---|---|
local-environment-setup | a fresh clone, or a broken local setup |
add-a-feature-module | a feature end to end: table → sync → screens → tests |
add-a-synced-table | a table that syncs to the devices |
add-an-rpc-or-edge-function | server-side logic |
add-a-background-job | scheduled or retried work |
database-schema-change | tables, columns, migrations |
debugging-sync | rows that don't arrive, stuck uploads, refusals |
adding-a-dependency | libraries and new workspace packages |
add-translations | text and languages |
add-or-edit-an-email | email templates |
add-auth-flow-or-better-auth-plugin | sign-in methods and roles |
add-or-change-a-payment-plan | plans, prices, entitlements, limits |
add-a-storage-or-ai-integration | uploads and AI features |
add-a-notification | notification types |
add-a-ui-component | components, pages, navigation |
add-a-marketing-page-or-blog-post | the marketing site and its content |
update-the-docs | these docs |
writing-unit-tests | unit and database tests |
writing-e2e-tests | Playwright tests |
verify-changes | checks before committing |
debugging-a-failing-ci-run | a red CI run |
deploy-and-env-vars | env variables and deployment |
Where agents find them: Codex, Cursor and other agents that follow the spec read
.agents/skills directly. Claude Code reads .claude/skills, which links to the same folders.
After adding a skill, link it too:
ln -s ../../.agents/skills/<name> .claude/skills/<name>Third-party skills (Expo, EAS, heroui-native, shadcn, React, animation, logging) sit in the
same folder and are pinned in skills-lock.json. Project skills point to them where they help.
Library rules
AGENTS.md has a "Libraries" section with the choices an agent must not second-guess:
| For | Library |
|---|---|
| forms, web and native | TanStack Form |
| styles | Tailwind CSS, through uniwind in the native app |
| native components | heroui-native |
| native animation | react-native-reanimated (skill: expo-animation) |
| web animation | Motion (skills: animate, review-animations) |
| everything else | a TanStack library where one exists |
Change a choice there, and in the add-a-ui-component skill, when you replace a library.
Keeping them current
A skill that describes an old workflow is worse than none. When a change alters how something is done (a new step, a moved file, a new command), update the matching skill in the same pull request; the pull request template asks. Write a new skill when a workflow comes up for the second time.
A good skill:
- names exact files and commands, with a short example to copy,
- lists the checks that prove the work is done,
- explains the non-obvious rules with their reason,
- links the docs page for background instead of repeating it.
Trying it
Ask an agent for a feature in plain words, for example "add a feedback
widget: members submit feedback from any page, admins see a list". It should read
add-a-synced-table, add a synced table with its tests, the screens and translations,
and finish with bun run verify.