Skip to main content
BlueForge
Join waitlist

Agent pack

Stack and conventions, by repo kind

A census of the fleet's repos — language, framework and conventions per kind.

Rendered from docs/agent-pack/stack.mdrelease v0.2.0Edit on forge-git

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: true at the root in 51.
  • CI: .gitea/workflows in 77, .github/workflows in 68 (both in 32). Gitea is the CI host; .gitea wins over a same-named .github file (edits to the .github copy 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.md 67, AGENTS.md 6, .claude/ 41, blueforge.product.yml 80, features.yml 65, manifest.yml 44, config.json 102.
  • Git: land on forge-git; fgit pr create --title / fgit pr merge, never gh, never a GitHub push. (Some repo docs still say tea pulls create; tea is silent on success, prefer fgit.) Work in a worktree from origin/main, never in a shared checkout.
  • Commits: Conventional Commits, type(scope): subject, merged PRs end (#N) (feat(flags): ... (#1974)). Breaking: feat(auth)!:. Branches type/slug (chore/catalog-report-2026-09-21, docs/..., campaign/<id> for fleet campaigns).
  • Registry: @blueforge-studio/* (and @learnquest/*) come from packr https://api.packr.blueforge.studio; CI writes the token from the PACKR_TOKEN secret. 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.md says so; next dev re-adds the block, commit it). Read node_modules/next/dist/docs/ before using an API. Seen: src/proxy.ts replaces middleware (Node runtime; the matcher rejects nested capture groups); route params is 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 in src/app/[locale]/(site)/ (layout revalidate = 300). Several root layouts, each rendering DocumentShell; none may call headers() or cookies() (makes the subtree dynamic). Auth-gated routes need export const dynamic = "force-dynamic". Spread src/lib/site-metadata.ts defaults; never assign a partial openGraph.
  • API routes: NextResponse.json(), zod z.object validation, captureException from @/lib/error-tracker, durable rate limiter createDurableLimiter({scope, limit, windowMs, salt}).
  • Env: read with process.env.X ?? fallback (no central validation module found). Secrets are declared in blueforge.config.json (source: "vault"); never read vault values.
  • DB: Drizzle schema in src/lib/db/schema/*.ts, client src/lib/db/client.ts (isDbConfigured). Migrations do not apply at boot. drizzle/NNNN_*.sql plus a drizzle/meta/_journal.json entry (a .sql with no journal entry is silently skipped; when must exceed the previous, breakpoints: true). Apply with pnpm db:migrate, or the documented deploy-token route/forge db-migrate (operator step). Never interpolate a Date into a raw sql template; bind toISOString().
  • 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). Typecheck pnpm exec tsc --noEmit, lint pnpm lint. E2E playwright.config.ts (BASE_URL); snapshots drop the platform suffix so Mac and Linux share names.
  • Dev gotchas: a local next start 307-loops unprefixed URLs unless HOSTNAME=localhost; marketing-os says never symlink node_modules into a worktree (workspace packages resolve to stale copies): pnpm install inside each worktree.
  • Never: read/print ADMIN_SECRET or vault values (use the repo's CLI), change a sidecar id (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 in packages/README.md. Build tsc (~176 packages) or tsup (~28), vitest.
  • Skeleton: name, version, "type": "module", main/types in dist, exports map (types, import, plus default in some), publishConfig.registry, scripts build/typecheck/test. files is ["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 be workspace:* (only those edges order the build). scripts/check-esm-dist.mjs catches imports that bundlers accept but Node ESM rejects (NodeNext needs .js extensions). pnpm overrides live in pnpm-workspace.yaml here (pnpm 10 ignores the package.json field).
  • Tests: src/__tests__/, pnpm --filter @blueforge-studio/<pkg> test. CI (test-monorepo.yml): deletes stale dist/, builds twice (pass 1 --no-bail ... || true, pass 2 authoritative), 4 timing-based shards. Stale-dist TS2307 fix: delete every packages/**/dist, run pnpm -r --filter './packages/**' --no-bail --workspace-concurrency=1 build || true (--no-bail before build).
  • Guards on PRs: banned-deps (no @supabase/*, firebase*, @neondatabase/serverless, raw pg: use postgres-js), guard-tracked-node-modules, publish-guard (version-collision check). New-package checklist: dir under a category, skeleton, workspace:*, README, row in packages/README.md, pnpm install (lockfile), bump to an unpublished version. See publishing.md.
  • Never: commit dist/ or node_modules, hand-pnpm publish, republish a served version, leave workspace:* 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 like chore(deps): app-shell 0.15.11 + web-app 0.5.14. Few have a CLAUDE.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-api Hono): React 19, Tailwind 4, Vite 6, Turborepo, tsup, Vitest 4. Its CLAUDE.md gotchas: workspace deploy builds apps/web even though dev-only; add a subpath to the lib's package.json exports after creating src/<subpath>.ts; client code touching pg must await import() lazily or the page is blank; CI e2e (vite on port 3120) often fails on infrastructure, run pnpm test:unit before merging (its repo rule permits --force then).
  • lq-nordic: single-package Vite SPA at the root (apps.web.path: "."), dev port 3010, predev/prebuild sync scripts, tests per TESTING.md (test:unit, test:e2e, test:smoke; keep tests/e2e.config.ts and tests/unit/unit.config.ts in sync). lfs-check.yml fails on raw blobs that .gitattributes marks as LFS. Brand images are single, not dark/light pairs.
  • linguaquest (separate product, @linguaquest/*, pnpm 11, Turborepo; apps/web Vite+Capacitor, apps/site Next 16) has the only dark/light screenshot pipeline: node scripts/quest-audit/product-shots.mjs. See imagery.md.
  • Seven Vite repos have no lockfile and lq-* CLAUDE.md package tables can be stale (lq-core's lists @learnquest/web-app while scripts reference web-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), ~200 packages/*: hosting-api (Hono), hosting-database (Drizzle), forge-cli, build-worker, platform-api.
  • Errors: {error:{code,message,remediation,details}}; routes throw ApiError via factories (validationFailed, notFound, forbidden...), one app.onError serializes. assertProjectVisible must run before requireRole on every by-id route, or you leak cross-tenant existence.
  • Tests go through turbo: npx turbo test --filter=@blueforge/hosting-api (a plain pnpm --filter X test skips dependsOn: ^build and runs against stale dist, giving phantom type errors). Beware worktrees whose node_modules is symlinked to the primary checkout.
  • DB: contradictory docs inside the repo. CLAUDE.md / docs/claude/database.md still say drizzle-kit push; the newer docs/DATABASES.md forbids it against prod forge_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; one pgTable owner per table.
  • CI ci-pr.yml: a changed-scope job gates the heavy ones (docs-only PRs run only "Changed scope"); arm64 sibling job swapped in by the ci-large-arm label (never dual-label runs-on). Land with git push forge-git HEAD:refs/heads/<branch>, a Gitea PR, ff-only merge; a pre-push hook enforces it. Never gh pr merge.
  • Docs layout: docs/superpowers/{specs,plans}, dated docs/runbooks, docs/claude/*, docs/reference/commands/forge-*.md, docs/status/. docs/claude/fleet.md is generated by a timer: never hand-edit it.
  • Never: drizzle-kit push on prod, push to GitHub, edit a generated file. recreate-hosting-api can 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.ts is 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.

Stay in the loop

Release notes and early access

One email when something ships: new platform features, new apps and launch invites. Join the waitlist to get early access to self-serve sign-up and promotion sites.

No spam. Unsubscribe with one click.