Listoca

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.

SkillFor
local-environment-setupa fresh clone, or a broken local setup
add-a-feature-modulea feature end to end: table → sync → screens → tests
add-a-synced-tablea table that syncs to the devices
add-an-rpc-or-edge-functionserver-side logic
add-a-background-jobscheduled or retried work
database-schema-changetables, columns, migrations
debugging-syncrows that don't arrive, stuck uploads, refusals
adding-a-dependencylibraries and new workspace packages
add-translationstext and languages
add-or-edit-an-emailemail templates
add-auth-flow-or-better-auth-pluginsign-in methods and roles
add-or-change-a-payment-planplans, prices, entitlements, limits
add-a-storage-or-ai-integrationuploads and AI features
add-a-notificationnotification types
add-a-ui-componentcomponents, pages, navigation
add-a-marketing-page-or-blog-postthe marketing site and its content
update-the-docsthese docs
writing-unit-testsunit and database tests
writing-e2e-testsPlaywright tests
verify-changeschecks before committing
debugging-a-failing-ci-runa red CI run
deploy-and-env-varsenv 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:

ForLibrary
forms, web and nativeTanStack Form
stylesTailwind CSS, through uniwind in the native app
native componentsheroui-native
native animationreact-native-reanimated (skill: expo-animation)
web animationMotion (skills: animate, review-animations)
everything elsea 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.

On this page