[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79N4R0N588SE48MFF2X3Q61":3,"skill-same:01M79N4R0N588SE48MFF2X3Q61":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79N4R0N588SE48MFF2X3Q61","bun-runtime",null,"Bun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel support.","JunMystery\u002FAgent-Guidance","JunMystery","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F161468934?v=4","01M79MTMV8F0BY8NK1A92RA8A0","Jun","01M79MTMWCFBKPHN5B25E6V20B",0,"MIT","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fbun-runtime\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bun-runtime\ndescription: Bun as runtime, package manager, bundler, and test runner. When to choose Bun vs Node, migration notes, and Vercel support.\nmetadata:\n  origin: ECC\n---\n\n# Bun Runtime\n\nBun is a fast all-in-one JavaScript runtime and toolkit: runtime, package manager, bundler, and test runner.\n\n## When to Use\n\n- **Prefer Bun** for: new JS\u002FTS projects, scripts where install\u002Frun speed matters, Vercel deployments with Bun runtime, and when you want a single toolchain (run + install + test + build).\n- **Prefer Node** for: maximum ecosystem compatibility, legacy tooling that assumes Node, or when a dependency has known Bun issues.\n\nUse when: adopting Bun, migrating from Node, writing or debugging Bun scripts\u002Ftests, or configuring Bun on Vercel or other platforms.\n\n## How It Works\n\n- **Version baseline**: guidance below targets Bun 1.4.x. Check the actual version with `bun --version` before relying on flag names, since CLI flags can change between releases.\n- **Runtime**: Drop-in Node-compatible runtime, built on JavaScriptCore. As of Bun 1.4 the runtime itself is implemented in Rust (migrated from Zig). Not 100% Node-compatible — some native addons, less-common `node:` internal APIs, and packages that depend on Node-specific internals can still fail; verify before depending on it in production.\n- **Package manager**: Bun includes a package manager; installation performance depends on the project, network conditions, and cache state. Lockfile is `bun.lock` (text) by default in current Bun; older versions used `bun.lockb` (binary) — Bun still reads that format for migration, but new projects should use `bun.lock`.\n- **Bundler**: Built-in bundler and transpiler for apps and libraries.\n- **Test runner**: Built-in `bun test` with a Jest-like API.\n\n**Migration from Node**: Replace `node script.js` with `bun run script.js` or `bun script.js`. Run `bun install` in place of `npm install`; most packages work. Use `bun run` for npm scripts; `bun x` for npx-style one-off runs. Node built-ins are supported; prefer Bun APIs where they exist for better performance.\n\n**Package and workspace commands**: `bun add \u003Cpkg>` \u002F `bun remove \u003Cpkg>` \u002F `bun update [pkg]` manage dependencies; `bun outdated` lists stale deps. `bun pm ls` lists project dependencies and resolved versions using the lockfile; `--all` includes transitive dependencies. It is not an integrity check of installed file contents. [`bun audit`](https:\u002F\u002Fbun.com\u002Fdocs\u002Fpm\u002Fcli\u002Faudit) queries registry advisories using package names and versions from `bun.lock`; it does not modify `package.json`, `bun.lock`, or `node_modules`. Review approved destinations before sending private package metadata. Packages whose scoped registry lacks an advisory endpoint are skipped and do not affect the exit code. `bun audit fix` upgrades and installs dependencies, changing the lockfile and installed packages and sometimes direct version pins; review it as a modifying install operation, including applicable lifecycle scripts. `bun dedupe` collapses duplicate installs, and `bun prune` removes packages no longer referenced. Monorepos use a root `workspaces` array in `package.json` (same convention as npm\u002Fyarn); run a script in one workspace with `bun run --filter \u003Cpkg-name> \u003Cscript>`.\n\n**Built-in APIs**: reach for these before adding a dependency — `Bun.file` \u002F `Bun.write` for file I\u002FO, `bun:sqlite` for an embedded SQLite database, `Bun.serve` for an HTTP\u002FWebSocket server, [`Bun.sql`](https:\u002F\u002Fbun.com\u002Fdocs\u002Fruntime\u002Fsql) for SQL databases, [`Bun.redis`](https:\u002F\u002Fbun.com\u002Fdocs\u002Fruntime\u002Fredis) for Redis, and [`Bun.S3Client`](https:\u002F\u002Fbun.com\u002Fdocs\u002Fruntime\u002Fs3) for S3-compatible object storage. See the [1.4 release notes](https:\u002F\u002Fbun.com\u002Fblog\u002Fbun-v1.4) for the rest of what's new.\n\n**Vercel**: Set `bunVersion: \"1.4.x\"` in `vercel.json` to use Bun 1.4 (Rust runtime). See [Vercel's Bun runtime docs](https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffunctions\u002Fruntimes\u002Fbun). Build: `bun run build` or `bun build .\u002Fsrc\u002Findex.ts --outdir=dist`. Install: `bun install --frozen-lockfile` for reproducible deploys.\n\n**Reference**: [Bun 1.4 release notes](https:\u002F\u002Fbun.com\u002Fblog\u002Fbun-v1.4).\n\n## Examples\n\n### Run and install\n\n```bash\n# Install dependencies (creates\u002Fupdates bun.lock)\nbun install\n\n# Run a script or file\nbun run dev\nbun run src\u002Findex.ts\nbun src\u002Findex.ts\n```\n\n### Scripts and env\n\n```bash\nbun run --env-file=.env dev\nFOO=bar bun run script.ts\n```\n\n### Testing\n\n```bash\nbun test\nbun test --watch\n```\n\nFor CI on Bun 1.4, available options include `bun test --changed[=\u003Cref>]` for affected tests, `bun test --isolate` for per-file globals, `bun test --parallel[=\u003Cn>]` for worker processes, and `bun test --shard=\u003Cn>\u002F\u003Ccount>` for CI partitioning. `--isolate` creates a fresh JavaScript global for each file in the same process and cleans up documented per-file resources; it is not a process or security sandbox. `--parallel` enables it by default. `--timings=\u003Cfile>` reads prior durations for scheduling; `--update-timings` records durations. Example: `bun test --parallel --timings=.\u002Ftest-timings.json --update-timings`. Check the installed version's help and documentation before choosing timing-file paths for a multi-shard workflow.\n\n```typescript\n\u002F\u002F test\u002Fexample.test.ts\nimport { expect, test } from \"bun:test\";\n\ntest(\"add\", () => {\n  expect(1 + 2).toBe(3);\n});\n```\n\n### Runtime API\n\n```typescript\nconst file = Bun.file(\"package.json\");\nconst json = await file.json();\n\nBun.serve({\n  port: 3000,\n  fetch(req) {\n    return new Response(\"Hello\");\n  },\n});\n```\n\n## Best Practices\n\n- Commit the lockfile (`bun.lock`) for reproducible installs.\n- Prefer `bun run` for scripts. For TypeScript, Bun runs `.ts` natively.\n- Keep dependencies up to date; Bun and the ecosystem evolve quickly.\n","# Bun Runtime\n\nBun is a fast all-in-one JavaScript runtime and toolkit: runtime, package manager, bundler, and test runner.\n\n## When to Use\n\n- **Prefer Bun** for: new JS\u002FTS projects, scripts where install\u002Frun speed matters, Vercel deployments with Bun runtime, and when you want a single toolchain (run + install + test + build).\n- **Prefer Node** for: maximum ecosystem compatibility, legacy tooling that assumes Node, or when a dependency has known Bun issues.\n\nUse when: adopting Bun, migrating from Node, writing or debugging Bun scripts\u002Ftests, or configuring Bun on Vercel or other platforms.\n\n## How It Works\n\n- **Version baseline**: guidance below targets Bun 1.4.x. Check the actual version with `bun --version` before relying on flag names, since CLI flags can change between releases.\n- **Runtime**: Drop-in Node-compatible runtime, built on JavaScriptCore. As of Bun 1.4 the runtime itself is implemented in Rust (migrated from Zig). Not 100% Node-compatible — some native addons, less-common `node:` internal APIs, and packages that depend on Node-specific internals can still fail; verify before depending on it in production.\n- **Package manager**: Bun includes a package manager; installation performance depends on the project, network conditions, and cache state. Lockfile is `bun.lock` (text) by default in current Bun; older versions used `bun.lockb` (binary) — Bun still reads that format for migration, but new projects should use `bun.lock`.\n- **Bundler**: Built-in bundler and transpiler for apps and libraries.\n- **Test runner**: Built-in `bun test` with a Jest-like API.\n\n**Migration from Node**: Replace `node script.js` with `bun run script.js` or `bun script.js`. Run `bun install` in place of `npm install`; most packages work. Use `bun run` for npm scripts; `bun x` for npx-style one-off runs. Node built-ins are supported; prefer Bun APIs where they exist for better performance.\n\n**Package and workspace commands**: `bun add \u003Cpkg>` \u002F `bun remove \u003Cpkg>` \u002F `bun update [pkg]` manage dependencies; `bun outdated` lists stale deps. `bun pm ls` lists project dependencies and resolved versions using the lockfile; `--all` includes transitive dependencies. It is not an integrity check of installed file contents. [`bun audit`](https:\u002F\u002Fbun.com\u002Fdocs\u002Fpm\u002Fcli\u002Faudit) queries registry advisories using package names and versions from `bun.lock`; it does not modify `package.json`, `bun.lock`, or `node_modules`. Review approved destinations before sending private package metadata. Packages whose scoped registry lacks an advisory endpoint are skipped and do not affect the exit code. `bun audit fix` upgrades and installs dependencies, changing the lockfile and installed packages and sometimes direct version pins; review it as a modifying install operation, including applicable lifecycle scripts. `bun dedupe` collapses duplicate installs, and `bun prune` removes packages no longer referenced. Monorepos use a root `workspaces` array in `package.json` (same convention as npm\u002Fyarn); run a script in one workspace with `bun run --filter \u003Cpkg-name> \u003Cscript>`.\n\n**Built-in APIs**: reach for these before adding a dependency — `Bun.file` \u002F `Bun.write` for file I\u002FO, `bun:sqlite` for an embedded SQLite database, `Bun.serve` for an HTTP\u002FWebSocket server, [`Bun.sql`](https:\u002F\u002Fbun.com\u002Fdocs\u002Fruntime\u002Fsql) for SQL databases, [`Bun.redis`](https:\u002F\u002Fbun.com\u002Fdocs\u002Fruntime\u002Fredis) for Redis, and [`Bun.S3Client`](https:\u002F\u002Fbun.com\u002Fdocs\u002Fruntime\u002Fs3) for S3-compatible object storage. See the [1.4 release notes](https:\u002F\u002Fbun.com\u002Fblog\u002Fbun-v1.4) for the rest of what's new.\n\n**Vercel**: Set `bunVersion: \"1.4.x\"` in `vercel.json` to use Bun 1.4 (Rust runtime). See [Vercel's Bun runtime docs](https:\u002F\u002Fvercel.com\u002Fdocs\u002Ffunctions\u002Fruntimes\u002Fbun). Build: `bun run build` or `bun build .\u002Fsrc\u002Findex.ts --outdir=dist`. Install: `bun install --frozen-lockfile` for reproducible deploys.\n\n**Reference**: [Bun 1.4 release notes](https:\u002F\u002Fbun.com\u002Fblog\u002Fbun-v1.4).\n\n## Examples\n\n### Run and install\n\n```bash\n# Install dependencies (creates\u002Fupdates bun.lock)\nbun install\n\n# Run a script or file\nbun run dev\nbun run src\u002Findex.ts\nbun src\u002Findex.ts\n```\n\n### Scripts and env\n\n```bash\nbun run --env-file=.env dev\nFOO=bar bun run script.ts\n```\n\n### Testing\n\n```bash\nbun test\nbun test --watch\n```\n\nFor CI on Bun 1.4, available options include `bun test --changed[=\u003Cref>]` for affected tests, `bun test --isolate` for per-file globals, `bun test --parallel[=\u003Cn>]` for worker processes, and `bun test --shard=\u003Cn>\u002F\u003Ccount>` for CI partitioning. `--isolate` creates a fresh JavaScript global for each file in the same process and cleans up documented per-file resources; it is not a process or security sandbox. `--parallel` enables it by default. `--timings=\u003Cfile>` reads prior durations for scheduling; `--update-timings` records durations. Example: `bun test --parallel --timings=.\u002Ftest-timings.json --update-timings`. Check the installed version's help and documentation before choosing timing-file paths for a multi-shard workflow.\n\n```typescript\n\u002F\u002F test\u002Fexample.test.ts\nimport { expect, test } from \"bun:test\";\n\ntest(\"add\", () => {\n  expect(1 + 2).toBe(3);\n});\n```\n\n### Runtime API\n\n```typescript\nconst file = Bun.file(\"package.json\");\nconst json = await file.json();\n\nBun.serve({\n  port: 3000,\n  fetch(req) {\n    return new Response(\"Hello\");\n  },\n});\n```\n\n## Best Practices\n\n- Commit the lockfile (`bun.lock`) for reproducible installs.\n- Prefer `bun run` for scripts. For TypeScript, Bun runs `.ts` natively.\n- Keep dependencies up to date; Bun and the ecosystem evolve quickly.\n",{"name":5,"metadata":24,"description":7},{"origin":25},"ECC","main","5d0a87185c0e172c3901e2a6e5916b6d544b8b94","skills\u002Fbun-runtime","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance","https:\u002F\u002Fgithub.com\u002FJunMystery","AI is the typist, I am the architect. Building efficient, secure, and user-centric products through disciplined AI prompt engineering.","2026-11-13 17:41:25",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add JunMystery\u002FAgent-Guidance --skill bun-runtime",{"tool":39,"command":40},"bunx","bunx skills add JunMystery\u002FAgent-Guidance --skill bun-runtime",{"tool":42,"command":43},"pnpm","pnpm dlx skills add JunMystery\u002FAgent-Guidance --skill bun-runtime","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fbun-runtime\u002FSKILL.md",true,[],[48,54,60,66,72,78],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M79QR1E309VJ6CTQKB32AWWA","zero-trust-architecture-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-architecture-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M79QQV7GHYR02DYGN41S23WN","xss-filter-evasion-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxss-filter-evasion-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79QQNSN7YB8XB61FFSCS3WH","xs-leaks-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxs-leaks-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79QQHZZJKFDY9132G5A65C2","xpath-injection-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxpath-injection-prevention-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79QQB9ZSD3DJG8658EHQXR1","xml-security-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-security-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M79QQ60WKV7PFMXWT9CW8PM6","xml-external-entity-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-external-entity-prevention-cheat-sheet\u002FSKILL.md",[],[]]