Skip to content

slurpyb/writing-code

v4.2.0

Focused TypeScript skills for runtime code, domain and object modeling, type design, documentation, compiler configuration, and Oxlint policy.

bunup

Build or configure a TypeScript/React library with bunup, the Bun-native bundler Use when the task names bunup — "set up bunup", "write bunup.config.ts", "which bunup flag", "bundle my TS library", "generate .d.ts", "ESM+CJS output", "monorepo workspaces", "compile CLI to executable", or writing a bunup plugin. Covers CLI flags, config options, dts, CSS, exports, workspaces, compile.

configuring-typescript

Configures TypeScript compiler and package boundaries. Use when editing tsconfig, module resolution, project references, declaration emit, target support, or compiler performance.

designing-typescript-objects

Designs TypeScript object lifecycles with interfaces, abstract classes, factories, and repositories. Use when behavior needs polymorphism, validated construction, transaction ownership, or shared class capabilities.

designing-typescript-types

Designs and tests TypeScript inference and generic relationships. Use when working with conditional or mapped types, correlated key/value APIs, variadic tuples, type recursion, or compile-time fixtures.

documenting-typescript

Documents behavior and extension contracts in TypeScript source and generated API references. Use when writing TSDoc, configuring TypeDoc, or improving a published library surface.

installing-typescript-anti-slop

Installs the bundled anti-slop Oxlint policy. Use when installing or migrating that policy, configuring its local plugin and Effect rule, or updating its rule bundle.

modeling-typescript-domains

Models TypeScript business invariants as value objects, commands, outcomes, and lifecycle states. Use when designing domain concepts or separating domain models from transport and persistence records.

pino-console-logging

Use Pino and pino-console whenever adding, changing, or configuring JavaScript/TypeScript logging, including diagnostics, Console calls, log levels, and log output.

rx

Implements creationix/rx embedded storage with RX text, RXB binary, direct-access proxies, indexes, external refs, cursors, conversion, and inspection. Use when large, mostly immutable JSON-shaped artifacts are encoded once and read sparsely with low allocation; not for RxJS or reactive programming.

typescript-utility-types

Compose or refactor TypeScript utility types, including deep object transformations, property selection, branded identifiers, mutually exclusive options, typed paths, and exhaustiveness checks. Use before writing reusable mapped or conditional type helpers.

writing-typescript

Writes TypeScript services around parsed boundaries, owned dependencies, explicit outcomes, and tests. Use when implementing adapters, state or result handling, dependency orchestration, or async workflows.