agentleFS
crafter-stationcrafter-station/petdex/AGENTS.md

petdex

AGENTS.md4.2k starsChanged 7 months agoMITView on GitHub

  • Reads credentials

Trending

Quiet since October.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 3 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 2 mentionsSep 2026: 2 mentionsOct 2026: 1 mentionNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the crafter-station/petdex repository that our weekly crawl found: only 9 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about crafter-station/petdex

The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 9

Talked about on GitHub (9 times).

On GitHub · 9

4 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,638 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository5 other files it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

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

    Use Bun for repo work: bun install, not npm install.

    line 4
  2. Very specific:

    Do not run the whole root suite with --env-file=.env.mock: PETDEX_MOCK=1 makes packages/petdex-cli's asset-hosts.test.ts fail, because mock …

    line 11

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

Petdex Agent Notes

Commands

  • Use Bun for repo work: bun install, not npm install. Published CLI docs mention npm/npx for end users only.
  • Recommended local app dev is bun run dev:docker; it boots local Postgres and Redis with shared Clerk dev defaults from .env.dev.
  • Maintainer dev is bun dev with .env.local copied from .env.example; this path expects Clerk, Postgres/Neon, R2, Upstash, Resend, OpenAI, and ElevenLabs credentials.
  • bun run dev:mock is deprecated and intentionally exits. Keep .env.mock only for targeted mock-backed tests or build checks.
  • Root checks: bun run check for Biome, bun run format to write Biome fixes, bun run build for the Next app, bun run test for the full Bun suite, and bun run i18n:check after editing translation messages. There is no root typecheck script. Use bun run test rather than a bare bun test: the raise lives in that script's --timeout, and a bare bun test never reads it, so it still aborts the specs that need more than Bun's 5s default. bunfig.toml cannot carry the raise instead: there is no [test] timeout key, and a preload calling setDefaultTimeout does not reach every file — measured at one of five.
  • Focused tests use bun run test path/to/file.test.ts, which forwards the path and keeps the suite timeout. Tests that import src/lib/db/client.ts directly or indirectly, including src/lib/pet-search.test.ts and src/lib/security.test.ts, need a usable DATABASE_URL or mock env: bun run test --env-file=.env.mock src/lib/security.test.ts.
  • mock.module is process-wide, so a suite that stubs a module before importing anything that pulls it in is the only kind that runs correctly on its own. The four collection route suites under src/app/api/{cli,profile} run in isolated processes through src/lib/collection-routes.test.ts and stub @/lib/db/client ahead of their @/lib/collection-access import for that reason — a stubbing suite that loads first in a root run masks the ordering, so run one alone (bun run test 'src/app/api/profile/collections/[id]/route.integration.ts') after touching it, and remember they stub runCollectionMutation, so their assertions never execute the collection SQL. When the point is to execute real SQL, use a suite that owns its PGlite connection (src/lib/collection-empty-list.test.ts).
  • Do not run the whole root suite with --env-file=.env.mock: PETDEX_MOCK=1 makes packages/petdex-cli's asset-hosts.test.ts fail, because mock mode injects mock.invalid into the server-side asset allowlist the CLI pins against. Keep the env flag on focused root runs only.
  • packages/petdex-cli and packages/discord-bot are independent packages, not root workspaces; run their own bun install and package scripts from inside each directory. Root tsconfig.json excludes packages.
  • CLI package verification, run from packages/petdex-cli, is bun run build && bun run typecheck, plus bun run test for its suite. The build emits ignored dist/petdex.js and prepends the node shebang in postbuild. Use bun run test there for the same reason as the root: the --timeout lives in that script, and its spawn-a-CLI specs are slow enough to brush Bun's 5s default on a loaded machine. CI runs a bare bun test and has not tripped it.
  • Discord bot work stays in packages/discord-bot; use bun run register, bun run dev, or bun run start there with env from packages/discord-bot/.env.example.

Architecture

  • Main app routes live in src/app/[locale]; API routes live in src/app/api; shared server/domain code lives in src/lib; DB schema is src/lib/db/schema.ts with SQL migrations in drizzle/.
  • This is Next 16.2.4 with newer conventions: src/proxy.ts is the middleware/proxy entrypoint, route/layout params are promises, and src/app/layout.tsx intentionally returns children while [locale]/layout.tsx owns <html>/<body> for locale lang. If touching framework APIs, prefer the installed Next docs under node_modules/next/dist/docs/ over older assumptions.
  • i18n locales are en, es, and zh; message files are under src/i18n/messages/, and next-intl is wired through src/i18n/request.ts plus the locale layout.
  • Mock DB bootstrap tolerates migration/schema drift via fixups in src/lib/mock/db.ts; if schema fields are added and mock pages fail, update those fixups until a real migration lands.
  • drizzle.config.ts hard-fails without DATABASE_URL; there are no root package scripts for migration generation or application, and many scripts/apply-* / backfill-* files are real-DB one-offs.
  • Automated review/tag/sound paths use AI SDK model strings through Vercel AI Gateway (AI_GATEWAY_API_KEY in .env.example); avoid adding raw OpenAI client wiring to server paths.

Invariants

  • Submission identity and credit data must come from verified Clerk session or CLI bearer token, never from request bodies. Keep this split in src/lib/submissions.ts, /api/submit, and /api/cli/submit*.
  • State-changing browser endpoints should use requireSameOrigin from src/lib/same-origin.ts; CLI/server callers authenticate separately by bearer or service-side checks.
  • User-supplied asset/avatar/external URLs are allowlisted in src/lib/url-allowlist.ts. Adding a new host usually also needs CSP updates in next.config.ts and regression coverage in src/lib/security.test.ts.
  • CSP is explicit in next.config.ts; new Clerk/R2/analytics/media hosts must be added to the matching script-src, connect-src, img-src, frame-src, or media-src directive.
  • Tailwind v4 tokens live in src/app/globals.css via @theme inline rather than tailwind.config.*; components should use semantic tokens such as bg-surface, text-foreground, and border-border-base instead of hardcoded bg-white dark:* pairs.
  • bun run generate-assets rewrites app/public icons and OG images from public/brand/petdex-mark.svg, including src/app/favicon.ico because Next 16 prefers the app favicon.
  • The codex://pets/install link in src/lib/codex-desktop-link.ts matches a parser inside ChatGPT.app that is not a documented contract: it rejects the whole URL on one unknown query param, and needs spriteVersionNumber=2 for Petdex's v2 atlases. The modal that consumes it is behind a Statsig gate that is currently off, so a correct link lands and does nothing. Read docs/chatgpt-pet-integration.md before touching it or re-diagnosing it — it carries the parser, the gate id, and the recipe to re-derive both after an OpenAI update.

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.