bun-essentials
Bun+TypeScript product discipline — test/build commands, formatting, parameterized data access, Docker-always services. Use when the product stack is bun.
- License 许可
- MIT
- 最近更新
- 2026-10-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- bun-essentials
- license
- MIT
- description
- Bun+TypeScript product discipline — test/build commands, formatting, parameterized data access, Docker-always services. Use when the product stack is bun.
- compatibility
- opencode
03 SKILL.md 正文
What I do
- Keep Bun+TypeScript products consistent: one toolchain, real Docker services, no fallbacks.
When to use me
Use on every task whose effective stack (task.stack ?? roadmap.stack, or workspace markers) is bun.
Rules
- Toolchain only:
bun add <pkg>/bun run <file>/bun test/bun run build. NEVERnpm/npx/yarn/pnpm/node. Reproducible installs:bun install --frozen-lockfilein CI. - Verify:
bun test(0 failures) before exit; paste real output intoworkspace/TASK_PROGRESS.md. Every new behavior ships success AND error-path cases (invalid input, missing id, unauthorized); suites without an error-path case fail review. - Data access: connect via env (
DATABASE_URL, …) to the declared Docker services. Parameterize every query (db.query("... WHERE id = $1", [id])on postgres — driver placeholders, never interpolation). No SQLite/InMemory fallback layers — fail fast when a service is unreachable. - HTTP: prefer lightweight frameworks (Hono, Elysia) with thin handlers OVER services, services over repositories per
backend-structure— never skip the service layer;{ data, error }envelopes; canonical status codes. Every user-facing flow that mutates state ships a Playwright smoke; skipped flows are named with reason in TASK_PROGRESS.md. - Style:
tsconfigstrict; noanydrift; no debug leftovers; docs-first for framework APIs (pin version, fetch official docs).
Depth (vendored ECC reference, MIT © 2026 Affaan Mustafa — read on demand)
-
vendor/ecc/skills/bun-runtime/SKILL.md(runtime/bundler/test-runner depth, Node migration notes) -
Review checklist:
vendor/ecc/agents/typescript-reviewer.md(+react-reviewer.mdfor React work) -
Reloadable staged IDs:
ecc-bun-runtime(skill tool, on-demand — staged by workflow/runner, never auto-injected)
04 同仓库更多 Skills
demo-skill
暂无简介
web-accessibility
WCAG 2.2 AA practice for keyboard, screen reader, contrast, and motion. Use when building or auditing user interfaces.
ui-conventions
Black/white token system, accessible components, and copy rules for frontend work. Use when building screens, components, or design tokens.
test-evidence
stack-toolchain test matrices, concurrency cases, and TASK_PROGRESS proof format for QA verification. Use when writing tests or proving deliverables work.
test-driven-development
RED-GREEN-REFACTOR cycle for new behavior. Use when implementing any feature, fix, or endpoint before writing production code.
systematic-debugging
Reproduce-isolate-fix-verify loop for defects and flaky behavior. Use when facing a bug, test failure, or unexpected behavior.