aidokitwiki

Code Standards

Purpose #

The TypeScript / monorepo / file-emission conventions every package follows.

Language and runtime #

From ADR-0001 and CLAUDE.md §7.1:

// Correct
import { Adapter } from './contract.js';

// Incorrect (breaks at runtime in ESM)
import { Adapter } from './contract';

Monorepo conventions #

From ADR-0002:

File organisation #

Per CLAUDE.md §7.3:

Error handling #

File system and shell #

Templates #

Cross-package imports #

From concepts/three-layer-architecture.md:

Naming #

Linting and formatting #

Library choices (locked via ADRs) #

Adding a new dependency that occupies one of these slots requires a new ADR.

What NOT to do #

Per CLAUDE.md §8: