commit 64eff6a335cccc37bfc57de4953a14c2850bbc1c Author: Zhongwei Li Date: Sun Nov 30 08:31:12 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..c8133a0 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "bun-skills", + "description": "Claude Code plugin", + "version": "0.0.0-2025.11.28", + "author": { + "name": "kfly8", + "email": "kentafly88@gmail.com" + }, + "skills": [ + "./skills" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..dec99d4 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# bun-skills + +Claude Code plugin diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..b952269 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:kfly8/claude-plugins:plugins/bun-skills", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "5cbedad9f70f340cfd511ec2b1fe42ba9089cb8d", + "treeHash": "fe3eed77a02987c8d72a5a65c78b92ee66af1e1aa88e37a3883889c632683961", + "generatedAt": "2025-11-28T10:19:28.316174Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "bun-skills", + "description": "Claude Code plugin", + "version": null + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "e5388cd04becf45fc6fcb884f2ea22d0591af3b5eaf436bd86bed538f812eb92" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "9ff1829839de5ecd8330d7d0fc40e551fd11e9a0f0f261a0b436b88e69e6a182" + }, + { + "path": "skills/bun/SKILL.md", + "sha256": "88cc73013d480789bcd68a4235814b6136e7be8383ea6ffefde5185f5bcf6478" + } + ], + "dirSha256": "fe3eed77a02987c8d72a5a65c78b92ee66af1e1aa88e37a3883889c632683961" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file diff --git a/skills/bun/SKILL.md b/skills/bun/SKILL.md new file mode 100644 index 0000000..de528cb --- /dev/null +++ b/skills/bun/SKILL.md @@ -0,0 +1,120 @@ +--- +name: bun +description: Default to using Bun instead of Node.js for all JavaScript/TypeScript operations including running files, testing, building, and package management. +--- + +# Bun Runtime + +Default to using Bun instead of Node.js for all JavaScript/TypeScript operations. + +## Core Commands + +- Use `bun ` instead of `node ` or `ts-node ` +- Use `bun test` instead of `jest` or `vitest` +- Use `bun build ` instead of `webpack` or `esbuild` +- Use `bun install` instead of `npm install` or `yarn install` or `pnpm install` +- Use `bun run + + +``` + +### Frontend Components + +```tsx +import React from "react"; + +// import .css files directly and it works +import './index.css'; + +import { createRoot } from "react-dom/client"; + +const root = createRoot(document.body); + +export default function Frontend() { + return

Hello, world!

; +} + +root.render(); +``` + +### Running the Server + +```sh +bun --hot ./index.ts +``` + +## Additional Resources + +For more information, read the Bun API docs in `node_modules/bun-types/docs/**.md`.