petdex
AGENTS.md4.2k starsChanged 7 months agoMITView on GitHub
- Reads credentials
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about crafter-station/petdex
- sudosubin/agents.nix“agent-skills.github.crafter-station.petdex: 0.9.1 → 0-unstable-2026-05-12”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.crafter-station.petdex: init at 0.9.1”GitHub · Sep 26, 2026
- NousResearch/hermes-agent“background_review fork fires on_session_start hook, creating phantom session cards in hook consumers”GitHub · Sep 10, 2026
- crafter-agents/cuse“Make drag deterministic with duration and interpolated pointer events”GitHub · Aug 22, 2026
- notedeck-dev/notedeck“feat: 「ペット」機能(`petdex`)”GitHub · Aug 18, 2026
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
- Oct 3, 2026agent-skills.github.crafter-station.petdex: 0.9.1 → 0-unstable-2026-05-12 — sudosubin/agents.nix0 reactions
- Sep 26, 2026agent-skills.github.crafter-station.petdex: init at 0.9.1 — sudosubin/agents.nix0 reactions
- Sep 10, 2026background_review fork fires on_session_start hook, creating phantom session cards in hook consumers — NousResearch/hermes-agent0 reactions
- Aug 22, 2026Make drag deterministic with duration and interpolated pointer events — crafter-agents/cuse0 reactions · 1 comment
- Aug 18, 2026feat: 「ペット」機能(`petdex`) — notedeck-dev/notedeck0 reactions · 1 comment
4 more on GitHub
- Jul 22, 2026Petdex-compatible pet-pack format + spritesheet loader — ccastrotrejo/PetExtensionGithubCopilot0 reactions
- May 12, 2026feat(companion): bridge crafter-station/petdex gallery (1784 pets) — HankHuang0516/EClaw0 reactions · 1 comment
- May 6, 2026[WIP] Add GitHub Actions-based daily push solution for Feishu — Ttofuuu/github-hot-daily0 reactions
- May 5, 2026fix(my-pets): prevent action menu clipping — iambinlin/petdex0 reactions
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.
- CLAUDE.mdCLAUDE.md
- code-review-excellenceSkill
- coss-particlesSkill
- cossSkill
- petdexSkill
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
- Very specific: line 4
Use Bun for repo work: bun install, not npm install.
- Very specific: line 11
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 …
≈ “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.
Files
Petdex Agent Notes
Commands
- Use Bun for repo work:
bun install, notnpm install. Published CLI docs mentionnpm/npxfor 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 devwith.env.localcopied from.env.example; this path expects Clerk, Postgres/Neon, R2, Upstash, Resend, OpenAI, and ElevenLabs credentials. bun run dev:mockis deprecated and intentionally exits. Keep.env.mockonly for targeted mock-backed tests or build checks.- Root checks:
bun run checkfor Biome,bun run formatto write Biome fixes,bun run buildfor the Next app,bun run testfor the full Bun suite, andbun run i18n:checkafter editing translation messages. There is no roottypecheckscript. Usebun run testrather than a barebun test: the raise lives in that script's--timeout, and a barebun testnever reads it, so it still aborts the specs that need more than Bun's 5s default.bunfig.tomlcannot carry the raise instead: there is no[test] timeoutkey, and apreloadcallingsetDefaultTimeoutdoes 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 importsrc/lib/db/client.tsdirectly or indirectly, includingsrc/lib/pet-search.test.tsandsrc/lib/security.test.ts, need a usableDATABASE_URLor mock env:bun run test --env-file=.env.mock src/lib/security.test.ts. mock.moduleis 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 undersrc/app/api/{cli,profile}run in isolated processes throughsrc/lib/collection-routes.test.tsand stub@/lib/db/clientahead of their@/lib/collection-accessimport 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 stubrunCollectionMutation, 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=1makespackages/petdex-cli'sasset-hosts.test.tsfail, because mock mode injectsmock.invalidinto the server-side asset allowlist the CLI pins against. Keep the env flag on focused root runs only. packages/petdex-cliandpackages/discord-botare independent packages, not root workspaces; run their ownbun installand package scripts from inside each directory. Roottsconfig.jsonexcludespackages.- CLI package verification, run from
packages/petdex-cli, isbun run build && bun run typecheck, plusbun run testfor its suite. The build emits ignoreddist/petdex.jsand prepends the node shebang inpostbuild. Usebun run testthere for the same reason as the root: the--timeoutlives 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 barebun testand has not tripped it. - Discord bot work stays in
packages/discord-bot; usebun run register,bun run dev, orbun run startthere with env frompackages/discord-bot/.env.example.
Architecture
- Main app routes live in
src/app/[locale]; API routes live insrc/app/api; shared server/domain code lives insrc/lib; DB schema issrc/lib/db/schema.tswith SQL migrations indrizzle/. - This is Next
16.2.4with newer conventions:src/proxy.tsis the middleware/proxy entrypoint, route/layoutparamsare promises, andsrc/app/layout.tsxintentionally returns children while[locale]/layout.tsxowns<html>/<body>for localelang. If touching framework APIs, prefer the installed Next docs undernode_modules/next/dist/docs/over older assumptions. - i18n locales are
en,es, andzh; message files are undersrc/i18n/messages/, andnext-intlis wired throughsrc/i18n/request.tsplus 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.tshard-fails withoutDATABASE_URL; there are no root package scripts for migration generation or application, and manyscripts/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_KEYin.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
requireSameOriginfromsrc/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 innext.config.tsand regression coverage insrc/lib/security.test.ts. - CSP is explicit in
next.config.ts; new Clerk/R2/analytics/media hosts must be added to the matchingscript-src,connect-src,img-src,frame-src, ormedia-srcdirective. - Tailwind v4 tokens live in
src/app/globals.cssvia@theme inlinerather thantailwind.config.*; components should use semantic tokens such asbg-surface,text-foreground, andborder-border-baseinstead of hardcodedbg-white dark:*pairs. bun run generate-assetsrewrites app/public icons and OG images frompublic/brand/petdex-mark.svg, includingsrc/app/favicon.icobecause Next 16 prefers the app favicon.- The
codex://pets/installlink insrc/lib/codex-desktop-link.tsmatches a parser inside ChatGPT.app that is not a documented contract: it rejects the whole URL on one unknown query param, and needsspriteVersionNumber=2for 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. Readdocs/chatgpt-pet-integration.mdbefore touching it or re-diagnosing it — it carries the parser, the gate id, and the recipe to re-derive both after an OpenAI update.
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
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.

