スキル一覧に戻る
ljchg12-hue

test-fixing

by ljchg12-hue

Claude Code CLI configuration with multi-AI orchestration and ABSOLUTE RULES enforcement

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

SKILL.md


name: test-fixing description: Automatically diagnose and fix failing tests by analyzing errors, updating assertions, and refactoring test code

Test Fixing Skill

Diagnose and fix failing tests automatically using error analysis and intelligent refactoring.

When to Use

  • Failing test suite
  • Flaky tests
  • Test maintenance
  • CI/CD pipeline failures

Core Capabilities

  • Error analysis and root cause identification
  • Assertion updates
  • Mock/stub fixing
  • Timeout adjustments
  • Race condition detection
  • Test data refresh
  • Dependency updates

Common Fixes

// Fix 1: Update assertion
- expect(result).toBe(5);
+ expect(result).toBe(6); // Updated expected value

// Fix 2: Add async/await
- it('should fetch data', () => {
-   const data = fetchData();
+ it('should fetch data', async () => {
+   const data = await fetchData();

// Fix 3: Fix mock
- jest.mock('./api');
+ jest.mock('./api', () => ({
+   fetchUser: jest.fn().mockResolvedValue({ id: 1 })
+ }));

// Fix 4: Increase timeout
- it('slow test', () => {
+ it('slow test', () => {
+   jest.setTimeout(10000);

Best Practices

  • Analyze error messages first
  • Check for environmental issues
  • Update test data regularly
  • Fix flaky tests immediately
  • Run tests in isolation

Resources

スコア

総合スコア

50/100

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

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

レビュー

💬

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