agentleFS
oullinoullin/gocanto-sh/AGENTS.md

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.

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

    Run repository-wide checks from the root.

    line 16
  2. Very specific:

    Use filters for package-scoped work, for example pnpm --filter @gocanto/app test or pnpm --filter @gocanto/domain typecheck.

    line 25
  3. Distinctive:

    Use TypeScript only and follow oxfmt's four-space indentation.

    line 29

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 into workspace/app/dist.
  • workspace/writing: VitePress site for writing.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.

PurposeCommandExpected result
Lintpnpm lintExit 0
Typecheckpnpm typecheckExit 0
Testspnpm testAll tests pass
Format onlymake format-allExit 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 fmtkit binary via infra/scripts/fmtkit.sh; never call oxlint or oxfmt directly. make format formats the current path, make format-all formats the repository, and make lint runs fmtkit check plus fmtkit lint. make ui-format is an alias of make format-all, and make ui-format-check adds a git diff --exit-code drift gate.
  • The formatter works in linked Git worktrees. fmtkit.sh resolves its target with git rev-parse --show-toplevel, which returns the worktree root, so make format-all formats the worktree it is run from.
  • There are two SEO guards and they are deliberately not shared: workspace/app/scripts/seo-guard.ts checks the single prerendered profile route, while workspace/writing/.vitepress/scripts/seo-guard.ts walks every built article and enforces article-only rules. Only the ~10-line assertCount helper is common. Extracting it would add a @gocanto/domain dependency to @gocanto/writing, which otherwise has no workspace dependencies, so the duplication is intentional.
  • workspace/writing build scripts run under plain node type stripping, not tsx, so they must use erasable syntax. workspace/app build scripts run under tsx.
  • 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:app on port 5173 or pnpm --filter @gocanto/writing dev:site on 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.sh and writing.gocanto.sh are separate Vercel projects; the GitHub Pages workflow is a secondary fallback/mirror build check. See the README deployment section before operating either target.
  • pnpm.overrides pins stylus and glob to a single major to deduplicate transitive fan-out from shadcn-vue, VitePress, and @vue/test-utils; re-evaluate when those parents bump. It also pins undici to ~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 test inputs do not cover workspace/writing/.vitepress/__tests__/ because that package has no src/ test location. A local cache can therefore serve stale writing-test results; use pnpm test --force when 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.

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.