gocanto-sh
AGENTS.md0 starsChanged 4 months agoMITView on GitHub
This pnpm/Turborepo monorepo contains six packages: Run repository-wide checks from the root. pnpm test (Turbo) is the canonical test entry point. Use filters for package-scoped work, for example pnpm --filter @gocanto/app test or pnpm --filter @gocanto/domain typecheck. Identity and content live in workspace/store. JSON-LD is generated from the store at build time, and the llms bundle derives from the same source; make c
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Run repository-wide checks from the root.
- Very specific: line 25
Use filters for package-scoped work, for example pnpm --filter @gocanto/app test or pnpm --filter @gocanto/domain typecheck.
- Distinctive: line 29
Use TypeScript only and follow oxfmt's four-space indentation.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
Agent guide
What this is
This pnpm/Turborepo monorepo contains six packages:
workspace/app: Vue 3 profile SPA with SSR prerendering.workspace/domain: shared text, sanitization, and search logic.workspace/store: all identity and content fixtures.workspace/llms: machine-readable bundle generator that writes intoworkspace/app/dist.workspace/writing: VitePress site forwriting.gocanto.sh.workspace/search: Cloudflare Worker for semantic search over the writing posts (Workers AI and Vectorize).
Commands
Run repository-wide checks from the root. pnpm test (Turbo) is the canonical test entry point.
| Purpose | Command | Expected result |
| Lint | pnpm lint | Exit 0 |
| Typecheck | pnpm typecheck | Exit 0 |
| Tests | pnpm test | All tests pass |
| Format only | make format-all | Exit 0 |
Use filters for package-scoped work, for example pnpm --filter @gocanto/app test or pnpm --filter @gocanto/domain typecheck.
Coding style
- Use TypeScript only and follow oxfmt's four-space indentation.
- New code must use class-based OOP; use standalone functions only when really needed.
- Vue SFCs and composables should retain their framework idioms.
Traps
- All formatting and linting goes through the host
fmtkitbinary viainfra/scripts/fmtkit.sh; never call oxlint or oxfmt directly.make formatformats the current path,make format-allformats the repository, andmake lintrunsfmtkit checkplusfmtkit lint.make ui-formatis an alias ofmake format-all, andmake ui-format-checkadds agit diff --exit-codedrift gate. - The formatter works in linked Git worktrees.
fmtkit.shresolves its target withgit rev-parse --show-toplevel, which returns the worktree root, somake format-allformats the worktree it is run from. - There are two SEO guards and they are deliberately not shared:
workspace/app/scripts/seo-guard.tschecks the single prerendered profile route, whileworkspace/writing/.vitepress/scripts/seo-guard.tswalks every built article and enforces article-only rules. Only the ~10-lineassertCounthelper is common. Extracting it would add a@gocanto/domaindependency to@gocanto/writing, which otherwise has no workspace dependencies, so the duplication is intentional. workspace/writingbuild scripts run under plainnodetype stripping, nottsx, so they must use erasable syntax.workspace/appbuild scripts run undertsx.- Dev servers run behind portless, using a shared HTTPS proxy on port 1355 and setting up a local CA on first use. For a plain-port escape hatch, use
pnpm --filter @gocanto/app dev:appon port 5173 orpnpm --filter @gocanto/writing dev:siteon port 5175. - The llms build writes generated files into
workspace/app/dist; do not treat those outputs as hand-authored source. - Vercel is authoritative for production.
gocanto.shandwriting.gocanto.share separate Vercel projects; the GitHub Pages workflow is a secondary fallback/mirror build check. See the README deployment section before operating either target. pnpm.overridespinsstylusandglobto a single major to deduplicate transitive fan-out from shadcn-vue, VitePress, and@vue/test-utils; re-evaluate when those parents bump. It also pinsundicito~7.28.0, a security floor kept within jsdom's compatible 7.28.x line. Widening it to>=admits undici 8 and breaks jsdom at runtime; revisit when jsdom adopts undici 8.- Turbo's
testinputs do not coverworkspace/writing/.vitepress/__tests__/because that package has nosrc/test location. A local cache can therefore serve stale writing-test results; usepnpm test --forcewhen in doubt.
Content edits
Identity and content live in workspace/store. JSON-LD is generated from the store at build time, and the llms bundle derives from the same source; make content changes there rather than patching generated output.
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.

