pma-bun
Bun Project Implementation Guide
Use this skill together with /pma. /pma controls workflow, approval, and task tracking; this guide defines the implementation baseline after approval.
Keep this entry file small. Load only the relevant reference packs.
Scope
For PMA-managed Bun backends, API services, and internal tools. A SPA shipped alongside the API (same repo) is supported via a sibling web/ directory and pma-web — it does not require a Bun workspace.
Not for frontend-only SPAs, Node-specific runtime guides, or non-PMA workflows.
Loading Order
- Always load
references/baseline.mdfirst. - Load
references/runtime.mdfor bootstrap flow, config, root resolution, HTTP server, docs, logging, PID lock, and dev/prod split. - Load
references/data-and-testing.mdfor Drizzle, SQLite-first storage, libSQL driver setup, migration fallback, repository patterns, and testing. - Load
references/delivery.mdfor compile flow, embedded assets, CI gates, observability, Docker, security, and Git workflow.
Quick Routing
- New project setup or repo restructuring (single API / API + sibling SPA / monorepo):
references/baseline.md app.ts/index.ts/ optionaldev.ts, OpenAPIHono, config, startup, graceful shutdown, logging, PID lock, Bun-specific nsl invocation:references/runtime.md(full nsl protocol →/pma references/dev-environment.md; multi-app workspace setup →/pma docs/monorepo-example.md)- Schema design, SQLite setup, migration embedding, repositories, test setup:
references/data-and-testing.md - Compile pipeline, binary delivery, static assets, CI, Docker, PR readiness:
references/delivery.md
Reference Packs
references/baseline.mdScope, layout choice (single API vs monorepo vs API + sibling SPA), required quality gates, scripts, conventions, and implementation workflow.references/runtime.mdFormatting and TypeScript defaults, config loading, bootstrap structure, OpenAPIHono setup, middleware, logging, docs routes, and runtime lifecycle.references/data-and-testing.mdDrizzle with SQLite-first storage, migration strategy, repository boundaries, and testing rules.references/delivery.mdCompile pipeline, security patterns, observability, CI pipeline, Docker, workspace rules, and Git conventions.
If the repository intentionally diverges, keep the deviation explicit in the proposal and consistent across scripts, docs, and CI.
More from zzci/skills
pma
Project development lifecycle management with a strict three-phase workflow (investigate -> proposal -> implement), file-based plan tracking in docs/plan/, task tracking in docs/task/, and claim-before-work multi-agent coordination. Use when handling feature development, bug fixes, refactors, planning, progress tracking, or multi-agent execution in an existing codebase. English-first for repository docs and remote-visible metadata; use Chinese docs only when the user explicitly requests a specific document in Chinese.
116pma-web
Frontend implementation guide for PMA-managed React 19 + TypeScript + Vite 8 SPA projects. Defaults to a single-app layout (the right choice for a Rust/Go service that ships a UI); promotes to a Bun monorepo only when multiple apps or shared packages exist. UI is hard-locked to shadcn/ui (base-nova) + `@base-ui/react` — Radix and other UI ecosystems (MUI / Mantine / Chakra / Ant Design / Headless UI / Ariakit / NextUI / …) are forbidden. Covers required quality gates, file-based type-safe routing with TanStack Router, state conventions (TanStack Query + Zustand), Tailwind CSS v4 patterns, Vitest 4 testing, dual-channel theming, i18n, nsl-based dev integration with backend services, and delivery rules for frontend applications.
108pma-rust
Rust implementation guide for PMA-managed multi-crate workspace projects. Covers workspace config, pinned stable toolchains, strict linting with clippy and cargo-cranky, async data access (Diesel-async or SQLx), Axum/Tokio service patterns, layered config with figment + clap, rustls-only TLS, OpenTelemetry observability, and CI quality gates.
94bkd
Operate a BKD kanban board over its REST API. Use when the user wants to manage BKD projects, issue execution workflows, cron jobs, or execution capacity through a reachable BKD server.
93pma-cr
Stack-aware review for local diffs, pull requests, and repository-wide audits. Routes review across shared policy plus language packs for TypeScript frontend, TypeScript backend/Bun, Go, Rust, and Python. Use after implementation, before merge, or when auditing an existing codebase.
91pma-go
Go implementation guide for PMA-managed service and CLI projects. Covers project layout (cmd/internal), strict linting with golangci-lint v2, database access (sqlc + pgx or GORM), HTTP patterns (stdlib + Chi or Gin), layered config with koanf, structured logging with slog, OpenTelemetry observability, and CI quality gates.
91