code-et
Lightweight TypeScript workflow for Claude Code, built on deep modules. One stack, six commands, no slop.
Stack: Bun + Hono + Drizzle + Biome. Database: SQLite out of the box (Bun's built-in). Postgres and a web frontend (Vite + React, Solid, etc.) are deliberately manual add-ons rather than flags — they're short additions, and putting them behind flags would hide decisions the user should make explicitly. Architecture vocabulary — module / interface / seam / adapter / depth / leverage / locality — is standard software-engineering terminology drawn from Ousterhout's A Philosophy of Software Design (deep modules) and Feathers' Working Effectively with Legacy Code (seams).
v5.0.0 is a deliberate rewrite. v4.x was Rust + Clean Architecture; v5 is TypeScript + deep modules. The command surface (/code:start … /code:review) is unchanged.
The six commands
| Command | What it does |
|---|
/code:start <name> | Scaffold a Bun + Hono + Drizzle project. Deep-modules shape: src/modules/<name>/index.ts is the interface. SQLite by default — Postgres and a web frontend are manual add-ons, deliberately not flags. |
/code:install-ci | Drop the audit GitHub workflow into an existing TS repo. |
/code:fix "<bug>" | Single-bug intake → Task Brief (with per-file Module). You implement directly. |
/code:plan "<idea>" | One extended turn: refined brief → PRD on disk → vertical-slice tasks. Three checkpoints — interrupt at any. |
/code:ship | Execute pending tasks in parallel worktree-isolated agents → audit → 1 auto-retry on CRITICAL/HIGH. |
/code:review | Pre-merge gate: local audit + diff review. Delegates to engineering plugin's code-review skill if installed. |
That's it. /commit-push-pr (from the commit-commands plugin) ships the PR.
Workflow
NEW PROJECT (one-time)
/code:start myapp
↓
cd myapp && cp .env.example .env && bun run db:migrate && bun run dev
DAILY
Bug? /code:fix "..." → user implements 1–3 files → /commit-push-pr
Feature? /code:plan "..." → /code:ship → /code:review → /commit-push-pr
↓
audit auto-runs
↓
✓ green → ready to push
✗ red → 1 retry → if still red, surface findings
Two lanes. No mid-points. /code:fix does not chain into /code:plan or /code:ship — bugs that span vertical slices are features in disguise; write a PRD.
Architecture — deep modules
There is no fixed layer taxonomy. Modules grow around interfaces. The deletion test — would removing this module make complexity vanish, or reappear across N callers? — decides whether something earns its place.
src/
modules/
<module-name>/
index.ts The interface. Public exports + types only.
<impl>.ts The implementation.
<name>.test.ts Tests cross the same seam callers do.
db/ Drizzle schema + migrations.
http/
app.ts Hono app — wires modules to routes.
routes/<r>.ts One file per resource.
config.ts Zod-validated env loading.
main.ts Composition root — the only place adapters are wired in.
Doctrine lives in code-et-implementer/docs/:
architecture.md — deep modules, dependency categories, seam discipline.
anti-slop.md — 4 elements, 5 categories, 8 hard rules.
testing.md — interface-as-test-surface, deep-module test patterns, mirror-test ban.
Lint + audit gate
Biome is the lint stack — one binary covers lint + format + import-sort. No ESLint, no Prettier, no separate import sorter. The bundled biome.json enables Biome's recommended set plus targeted rules against shallow-extraction slop (useConst, useTemplate, noImplicitAnyLet, noUnusedFunctionParameters, noUselessLoneBlockStatements, noUselessTypeConstraint).
Local commands:
bun run lint — biome check . (read-only; exits non-zero on findings)
bun run lint:fix — biome check --write . (safe auto-fixes in place)
bun run typecheck — tsc --noEmit
bun run audit — runs all four stages below in series
.github/workflows/code-et-audit.yml runs on every PR + push to main:
- lint (biome) —
biome check .
- typecheck (tsc) —
tsc --noEmit
- dependency audit (bun audit) —
bun audit --audit-level=high (high + critical block; dev-only moderate advisories don't)
- test (bun test) —
bun test
/code:ship runs the same pipeline with a 1-pass auto-fix retry on CRITICAL/HIGH findings. A green audit is the merge gate — no manual override.