Agent pack
Stack and conventions, by repo kind
A census of the fleet's repos — language, framework and conventions per kind.
Verified 2026-10-11 by reading files (nothing run). Fleet census of 117 repos (.git directory, worktrees skipped); per-kind details from blueforge, marketing-os, taskmaster
(Next apps), blueforge-org origin/main b0648e0b (package monorepo), lq-core 2ba6d761, lq-nordic f72552ef, linguaquest, forge-control efbee7bd7 (services).
A repo's own CLAUDE.md/AGENTS.md wins over this file. Identify the repo's kind first (table below), then read only that section plus "Everywhere".
Which kind is this repo?
Counts are first-match, Next before monorepo; deps were detected at the root and in apps/, packages/, services/ only, so a framework used deeper may be missed.
| Kind | Count | How to tell | Examples |
|---|---|---|---|
| Next app (usually a pnpm + turbo monorepo) | 59 (58 workspaces, 48 with turbo) | next dependency, src/app |
blueforge, accounting-os, forge-auth, marketing-os, taskmaster |
| Package monorepo (non-Next) | 36 | pnpm workspaces, no Next | lq-core, forge-agents, forge-gateway, blueforge-org |
| Vite SPA | 18 | vite/react-router, no workspace |
lq-finance, lq-health, lq-law, lq-nordic |
| Astro | 4 | astro, all workspaces |
forge-gateway portal, strategy-4-kids |
| TS service | 2 by census (hono); the control plane is bigger | hono |
forge-agents, forge-marketplace, forge-control (packages/hosting-api) |
| Odd / unclassified | ~5 | no manifest or no framework | life-quest, packr-releases, sdk-python, learn-quest, cleanup-disk-tool |
No Go, Rust, Electron, Tauri or React Native repos were found (packr-registry is Go but was not counted by this census: UNVERIFIED how it was classified). lq-* is a 44-repo name-prefix cluster inside the Vite and monorepo rows (the 29/16 split is approximate).
Everywhere (fleet-wide, from the census)
- TypeScript in 111 of 117. pnpm in 96 (npm 13, none 5; 7
lq-*Vite repos have no lockfile). Node engine declared in only 20 (>=20, >=22 or >=24), so check the repo's CI for the real version. - Tailwind v4 in 99, none on v3 or older. Vitest in 107, Playwright in 99, jest in 9. Drizzle in 58 (postgres.js ~49), no Prisma.
strict: trueat the root in 51. - CI:
.gitea/workflowsin 77,.github/workflowsin 68 (both in 32). Gitea is the CI host;.giteawins over a same-named.githubfile (edits to the.githubcopy are ignored). Common Gitea files:ci.yml(65),sidecars.yml(42),screen-audit.yml(30). 38 repos carry a.github/workflows/sync-core.yml: its purpose is UNVERIFIED here. GitHub is a read-only mirror and GitHub Actions is off for the org. - Docs/sidecars present:
CLAUDE.md67,AGENTS.md6,.claude/41,blueforge.product.yml80,features.yml65,manifest.yml44,config.json102. - Git: land on forge-git;
fgit pr create --title/fgit pr merge, nevergh, never a GitHub push. (Some repo docs still saytea pulls create;teais silent on success, preferfgit.) Work in a worktree fromorigin/main, never in a shared checkout. - Commits: Conventional Commits,
type(scope): subject, merged PRs end(#N)(feat(flags): ... (#1974)). Breaking:feat(auth)!:. Branchestype/slug(chore/catalog-report-2026-09-21,docs/...,campaign/<id>for fleet campaigns). - Registry:
@blueforge-studio/*(and@learnquest/*) come from packrhttps://api.packr.blueforge.studio; CI writes the token from thePACKR_TOKENsecret. Never print it. Reads work unauthenticated; installs in CI need the token. - Deploy is merge to main;
blueforge.config.json(102 repos) describes it; workspace mode builds every app in the config (a failing dev-only app blocks the others).
Next app
- Versions seen: Next ^16.2-16.3, React ^19, TypeScript ^5.9, Tailwind ^4.2 via
@tailwindcss/postcss, vitest ^4.1, Playwright ^1.58-1.61, zod ^4, next-intl ^4. App Router only. - This is not the Next.js you know (blueforge
CLAUDE.mdsays so;next devre-adds the block, commit it). Readnode_modules/next/dist/docs/before using an API. Seen:src/proxy.tsreplaces middleware (Node runtime; the matcher rejects nested capture groups); routeparamsis a Promise (await ctx.params, sync access gives undefined and a 500). - Layout (blueforge):
src/{app,components,data,hooks,i18n,lib,repositories,services,types}, public pages insrc/app/[locale]/(site)/(layoutrevalidate = 300). Several root layouts, each renderingDocumentShell; none may callheaders()orcookies()(makes the subtree dynamic). Auth-gated routes needexport const dynamic = "force-dynamic". Spreadsrc/lib/site-metadata.tsdefaults; never assign a partialopenGraph. - API routes:
NextResponse.json(), zodz.objectvalidation,captureExceptionfrom@/lib/error-tracker, durable rate limitercreateDurableLimiter({scope, limit, windowMs, salt}). - Env: read with
process.env.X ?? fallback(no central validation module found). Secrets are declared inblueforge.config.json(source: "vault"); never read vault values. - DB: Drizzle schema in
src/lib/db/schema/*.ts, clientsrc/lib/db/client.ts(isDbConfigured). Migrations do not apply at boot.drizzle/NNNN_*.sqlplus adrizzle/meta/_journal.jsonentry (a.sqlwith no journal entry is silently skipped;whenmust exceed the previous,breakpoints: true). Apply withpnpm db:migrate, or the documented deploy-token route/forge db-migrate(operator step). Never interpolate aDateinto a rawsqltemplate; bindtoISOString(). - Tests:
vitest.config.ts(node env,globals, forks pool, 30 s timeouts because act-runner contention and PGlite need it; component tests opt in with// @vitest-environment happy-dom). Tests in__tests__/**,src/**/__tests__/**. One test:pnpm vitest run path/to/file.test.ts(inferred, not run). Typecheckpnpm exec tsc --noEmit, lintpnpm lint. E2Eplaywright.config.ts(BASE_URL); snapshots drop the platform suffix so Mac and Linux share names. - Dev gotchas: a local
next start307-loops unprefixed URLs unlessHOSTNAME=localhost; marketing-os says never symlinknode_modulesinto a worktree (workspace packages resolve to stale copies):pnpm installinside each worktree. - Never: read/print
ADMIN_SECRETor vault values (use the repo's CLI), change a sidecarid(creates an orphan card), commit a migration without its journal entry, rely on training-data Next APIs.
Package monorepo (blueforge-org and similar)
- pnpm 10.31 workspace, categories under
packages/(infrastructure, ai, agents, audits, dom, design, video, integrations, ui, utilities); index inpackages/README.md. Buildtsc(~176 packages) ortsup(~28), vitest. - Skeleton:
name,version,"type": "module",main/typesindist,exportsmap (types,import, plusdefaultin some),publishConfig.registry, scriptsbuild/typecheck/test.filesis["dist"]per PUBLISHING.md but["src","dist"]in two sampled packages: follow the package you copy. README per package by habit, CHANGELOG optional. dist/is never committed. Internal deps must beworkspace:*(only those edges order the build).scripts/check-esm-dist.mjscatches imports that bundlers accept but Node ESM rejects (NodeNext needs.jsextensions). pnpmoverrideslive inpnpm-workspace.yamlhere (pnpm 10 ignores thepackage.jsonfield).- Tests:
src/__tests__/,pnpm --filter @blueforge-studio/<pkg> test. CI (test-monorepo.yml): deletes staledist/, builds twice (pass 1--no-bail ... || true, pass 2 authoritative), 4 timing-based shards. Stale-dist TS2307 fix: delete everypackages/**/dist, runpnpm -r --filter './packages/**' --no-bail --workspace-concurrency=1 build || true(--no-bailbeforebuild). - Guards on PRs:
banned-deps(no@supabase/*,firebase*,@neondatabase/serverless, rawpg: use postgres-js),guard-tracked-node-modules,publish-guard(version-collision check). New-package checklist: dir under a category, skeleton,workspace:*, README, row inpackages/README.md,pnpm install(lockfile), bump to an unpublished version. Seepublishing.md. - Never: commit
dist/ornode_modules, hand-pnpm publish, republish a served version, leaveworkspace:*in a tarball, add CI under.github/workflows/. (UNVERIFIED: whether new packages must be added to the overrides list; the wildcard may cover them.)
Vite SPA and the LinguaQuest family
lq-*apps are content + config on top of ~30 pinned@learnquest/*packages from packr (app-shell, web-app, e2e-core...); bumps look likechore(deps): app-shell 0.15.11 + web-app 0.5.14. Few have aCLAUDE.md(lq-nordic does not; it has README, TESTING.md, PORTING.md).- lq-core is a DEV-ONLY library monorepo (
apps/web,libs/*published to packr,services/platform-apiHono): React 19, Tailwind 4, Vite 6, Turborepo, tsup, Vitest 4. ItsCLAUDE.mdgotchas: workspace deploy buildsapps/webeven though dev-only; add a subpath to the lib'spackage.jsonexportsafter creatingsrc/<subpath>.ts; client code touchingpgmustawait import()lazily or the page is blank; CI e2e (vite on port 3120) often fails on infrastructure, runpnpm test:unitbefore merging (its repo rule permits--forcethen). - lq-nordic: single-package Vite SPA at the root (
apps.web.path: "."), dev port 3010,predev/prebuildsync scripts, tests per TESTING.md (test:unit,test:e2e,test:smoke; keeptests/e2e.config.tsandtests/unit/unit.config.tsin sync).lfs-check.ymlfails on raw blobs that.gitattributesmarks as LFS. Brand images are single, not dark/light pairs. - linguaquest (separate product,
@linguaquest/*, pnpm 11, Turborepo;apps/webVite+Capacitor,apps/siteNext 16) has the only dark/light screenshot pipeline:node scripts/quest-audit/product-shots.mjs. Seeimagery.md. - Seven Vite repos have no lockfile and
lq-*CLAUDE.md package tables can be stale (lq-core's lists@learnquest/web-appwhile scripts referenceweb-app-legacy): trust the scripts.
TS service (forge-control; forge-auth is a Next service)
- forge-control: Turborepo + pnpm (CLAUDE.md says pnpm 10, CONTRIBUTING.md says 9: UNVERIFIED which).
apps/mission-control(Next 16 dashboard), ~200packages/*:hosting-api(Hono),hosting-database(Drizzle),forge-cli,build-worker,platform-api. - Errors:
{error:{code,message,remediation,details}}; routes throwApiErrorvia factories (validationFailed,notFound,forbidden...), oneapp.onErrorserializes.assertProjectVisiblemust run beforerequireRoleon every by-id route, or you leak cross-tenant existence. - Tests go through turbo:
npx turbo test --filter=@blueforge/hosting-api(a plainpnpm --filter X testskipsdependsOn: ^buildand runs against staledist, giving phantom type errors). Beware worktrees whosenode_modulesis symlinked to the primary checkout. - DB: contradictory docs inside the repo.
CLAUDE.md/docs/claude/database.mdstill saydrizzle-kit push; the newerdocs/DATABASES.mdforbids it against prodforge_hosting(multi-owner, 189 tables of which Drizzle declares 84; push would create or destroy foreign tables). Follow DATABASES.md: schema file plus targeted single-table DDL in the same PR, applied by hand, verified column by column; onepgTableowner per table. - CI
ci-pr.yml: achanged-scopejob gates the heavy ones (docs-only PRs run only "Changed scope"); arm64 sibling job swapped in by theci-large-armlabel (never dual-labelruns-on). Land withgit push forge-git HEAD:refs/heads/<branch>, a Gitea PR, ff-only merge; a pre-push hook enforces it. Nevergh pr merge. - Docs layout:
docs/superpowers/{specs,plans}, dateddocs/runbooks,docs/claude/*,docs/reference/commands/forge-*.md,docs/status/.docs/claude/fleet.mdis generated by a timer: never hand-edit it. - Never:
drizzle-kit pushon prod, push to GitHub, edit a generated file.recreate-hosting-apican die mid-roll leaving the API down (rename back and re-run): operator only. - forge-auth: Next 16 + Better Auth + Drizzle,
migrations/never auto-applied,src/lib/scopes/scopes.tsis the single source of the 14 scopes. forge-gateway and forge-git: UNVERIFIED (not read).
Contradictions found (do not paper over them in a repo)
pnpm 9 vs 10 in forge-control; drizzle-kit push vs DATABASES.md; tea pulls create vs fgit; package files ["dist"] vs ["src","dist"]; lq-core CLAUDE.md package table vs scripts;
.github/workflows present in 68 repos though .gitea wins and Actions is off; PUBLISHING.md's workspace:* rewrite claim vs scripts/publish-changed.ts (checked: no rewrite there; pnpm publish handles the protocol: UNVERIFIED how).
UNVERIFIED
financials-os beyond its Next version; taskmaster's migration rule; the contents of most blueforge CI workflows; node:test usage (test files were not scanned); Go/Rust repos (none found, but packr-registry's classification is unknown); the purpose of sync-core.yml.