platypus
CLAUDE.md114 starsChanged 59 days agoMITView on GitHub
Platypus is a full-stack app for building and managing AI agents with tool support and multi-provider capabilities. pnpm workspaces + Turborepo monorepo. Per-package: pnpm --filter <pkg> test|test:watch|test:coverage|typecheck. pnpm typecheck runs tsc --noEmit for every package exposing a typecheck script, test files included. CI fails on any type error — ESLint does not catch them, so run it before pushing. Other packages join the gate by adding their own typecheck script. Default admin on first startup: admin@example.com / admin123 (override via…
- Reads credentials
- Installs packages
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/humanizer/AGENTS.mdAGENTS.md
- add-api-endpointSkill
- api-conventionsSkill
- ask-mattSkill
- better-auth-best-practicesSkill
- codebase-designSkill
- code-reviewSkill
- database-schema-changesSkill
- diagnosing-bugsSkill
- docs-auditSkill
- domain-modelingSkill
- form-conventionsSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- humanizerSkill
- implementSkill
- improve-codebase-architectureSkill
- platypus-toolsSkill
- pre-release-checkSkill
- prototypeSkill
- researchSkill
- resolving-merge-conflictsSkill
- setup-matt-pocock-skillsSkill
- shadcnSkill
- tddSkill
- teachSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wait-whatSkill
- wayfinderSkill
- wizardSkill
- writing-for-agentsSkill
- writing-great-skillsSkill
The file
We split this CLAUDE.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Default admin on first startup: admin@example.com / admin123 (override via ADMIN_EMAIL / ADMIN_PASSWORD).
- Distinctive: line 56
Check the table below against the paths in your own diff.
- Very specific: line 69
Write the task, not the implementation — no apps/ paths, no ADR links, no inlined interfaces, no status sections.
- Very specific: line 103
Commit subjects on main. A PR titled Add web search merges as a commit release-please cannot read, so the feature ships with no changelog …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
Project Overview
Platypus is a full-stack app for building and managing AI agents with tool support and multi-provider capabilities. pnpm workspaces + Turborepo monorepo.
Setup & Commands
pnpm install
cp apps/frontend/.env.example apps/frontend/.env
cp apps/backend/.env.example apps/backend/.env
pnpm dev # frontend + backend + local Postgres
pnpm drizzle-kit-push # apply schema changes (requires `pnpm dev` running)
pnpm build
pnpm format # prettier --write .
pnpm format:check # prettier --check .; gated in CI
pnpm lint # ESLint, every package; gated in CI
pnpm typecheck # tsc --noEmit, every package; gated in CI
pnpm test # all tests (Vitest, orchestrated by Turborepo)Per-package: pnpm --filter <pkg> test|test:watch|test:coverage|typecheck.
pnpm typecheck runs tsc --noEmit for every package exposing a typecheck
script, test files included. CI fails on any type error — ESLint does not catch
them, so run it before pushing. Other packages join the gate by adding their own
typecheck script.
Default admin on first startup: admin@example.com / admin123 (override via ADMIN_EMAIL / ADMIN_PASSWORD).
Monorepo Layout
apps/backend— Hono.js REST API, Drizzle ORM (Postgres 17), better-auth at/auth/*. Schema insrc/db/, routes insrc/routes/, run lifecycle insrc/runs/. Entry:apps/backend/index.ts.apps/frontend— Next.js 16 App Router. Multi-tenant routes underapp/[orgId]/workspace/[workspaceId]/.... Tailwind v4 + Radix.packages/schemas— Shared Zod schemas (@platypus/schemas). Each domain model has full / create / update variants.apps/website/public/install.sh— the one-line installer served athttps://platypus.chat/install.sh(a permanent public URL); the only copy.
Domain hierarchy: Organization → Workspace → Chat / Agent / MCP / Provider.
Known Constraints
drizzle-kit pushapplies DDL only — it does NOT run migration.sqlfiles. Data migrations (e.g. custom backfills) run in production viaapps/backend/scripts/migrate.ts(drizzle-kit migrate) but are skipped by the dev push flow. In dev, apply any needed data changes manually (e.g. attach org-scoped Shared resources via the UI).- Postgres 18 is not supported (Drizzle ORM incompatibility).
- No TypeScript parameter properties. Node's strip-only TS mode rejects
constructor(private x: T)shorthand. Declare fields explicitly and assign in the constructor body. - Format with Prettier conventions.
Documentation
Docs live in apps/docs/content and ship in the same PR as the code, never
as a follow-up ticket. The follow-up ticket does not get filed; that is how
627cb1e shipped a breaking Operator-facing change with no docs update.
Check the table below against the paths in your own diff. If they intersect, the docs edit is part of this change:
| You changed | Update |
any .env.example | reference/backend-configuration.mdx / frontend-configuration.mdx |
a user-facing min/max/z.enum in packages/schemas | the matching building-with-platypus/*.mdx page |
apps/backend/src/plugins/** | extending/index.mdx, self-hosting/configuration.mdx |
a visible label, field, or nav item in apps/frontend | the building-with-platypus/*.mdx page for that feature |
When writing:
- The audience is self-hosters and Workspace Owners, not maintainers.
- Write the task, not the implementation — no
apps/**paths, no ADR links, no inlined interfaces, no status sections. - House style is
.agents/skills/docs-audit/VOICE.md.
apps/docs/content/docs-contract.test.ts mechanically pins the claims with a
single authoritative source (env tables, webhook events, core Plugin names,
field limits, internal links, heading anchors) and runs in the CI gate. It is a
floor, not a gate — it cannot see the ~150 UI labels. For what needs judgement,
ask the user to run /docs-audit; the skill is user-invoked only, so you cannot
start it yourself.
Git Branch Standards
Branch names MUST be prefixed feature/, fix/, or chore/ only.
Git Commit Standards
Conventional Commits with strict types: only feat, fix, chore. Optional scope in parens.
feat(backend): add JWT refresh
fix(frontend): correct workspace navigation
chore: update dependenciesGit PR Standards
The PR title MUST be a Conventional Commit subject — same strict types as above.
main squash-merges with the PR title as the commit subject, so the title is what
ends up in history; the individual commit subjects on the branch are discarded.
Titling the PR correctly is the whole of it, and it matters more than it looks:
- release-please builds the changelog and the version bump only from Conventional
Commit subjects on
main. A PR titledAdd web searchmerges as a commit release-please cannot read, so the feature ships with no changelog entry and no minor bump. mainis protected, so a subject that lands wrong can only be corrected by rewriting published history. Getting the title right costs nothing; fixing it later costs a force-push.
Set the title when you open the PR, and re-check it before requesting a merge — gh pr
edit <n> --title "..." if it drifted. This applies to a PR whose body already explains
the change: the body is for humans, the title is for the release machinery.
Agent Skills
- Issue tracker — GitHub issues on
willdady/platypusviagh. Seedocs/agents/issue-tracker.md. - Triage labels —
needs-triage,needs-info,ready-for-agent,ready-for-human,wontfix. Seedocs/agents/triage-labels.md. - Domain docs —
CONTEXT.mdanddocs/adr/at the repo root. Seedocs/agents/domain.md.
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.

