Back to list
so-ta

fix-bug

by so-ta

0🍴 0📅 Jan 23, 2026

SKILL.md


name: fix-bug description: | Bug fix workflow. Use when fixing bugs, errors, or unexpected behavior. Includes reproduction test creation, fix implementation, and verification.

Bug Fix Workflow

バグ修正時のワークフロー。

ステップ

1. 再現テストを書く

バグを修正する前に、まずバグを再現するテストを書く。

func TestBugXXX_Reproduction(t *testing.T) {
    // Setup
    // Execute
    // Assert - このテストは最初は失敗するはず
}

2. テスト失敗を確認

# Backend
cd backend && go test ./path/to/package/... -v -run TestBugXXX

# Frontend
cd frontend && npm run test:run -- --grep "bug description"

テストが失敗することを確認。

3. コードを修正

バグの原因を特定し、最小限の変更で修正。

4. テスト成功を確認

# Backend
cd backend && go test ./...

# Frontend
cd frontend && npm run check

5. 関連テストを追加

エッジケースのテストも追加:

  • 境界値
  • null/undefined
  • 空配列/空文字列
  • 異常系

6. サービス再起動(Docker環境)

docker compose restart api worker

7. 動作確認

ブラウザまたはcurlで実際に動作確認。

よくあるバグパターン

パターン確認ポイント
nil/undefinednullチェック漏れ
型変換暗黙の型変換、JSON.parse
非同期await漏れ、Promise handling
境界値off-by-one、空配列
状態管理race condition、stale state

参考

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

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

+20
LICENSE

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

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

0/5

Reviews

💬

Reviews coming soon