スキル一覧に戻る
Grips001

bun-patterns

by Grips001

Chess trainer game against an AI opponent.

0🍴 0📅 2026年1月8日
GitHubで見るManusで実行

SKILL.md


name: bun-patterns description: Verify Bun-specific patterns in backend code. Use when reviewing or writing backend TypeScript files to ensure Bun APIs are used instead of Node.js patterns. allowed-tools: Read, Grep, Glob

Bun Patterns Verification

Automatically check that backend code uses Bun-specific APIs instead of Node.js patterns.

When to Apply

  • Reviewing files in src/backend/
  • Writing new backend code
  • Checking file I/O operations

Patterns to Enforce

File Operations

Correct (Bun):

// Reading files
const content = await Bun.file(path).text();
const json = await Bun.file(path).json();

// Writing files
await Bun.write(path, content);

// Checking existence
const exists = await Bun.file(path).exists();

Incorrect (Node.js):

// These should NOT be used in backend
import fs from 'fs';
import { readFile, writeFile } from 'fs/promises';
fs.readFileSync(path);

Process and Environment

Correct (Bun):

const port = Bun.env.PORT || 9339;

Incorrect:

const port = process.env.PORT; // Less preferred in Bun

HTTP Server

Correct (Bun):

Bun.serve({
  port: 9339,
  fetch(req) {
    return new Response('OK');
  },
});

Verification Steps

  1. Search for Node.js imports: import fs from, require('fs')
  2. Check file operations use Bun.file() or Bun.write()
  3. Verify WebSocket server uses Bun patterns
  4. Confirm no fs.readFile or fs.writeFile calls

Reference

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です