Back to list
moogah

software-testing

by moogah

0🍴 0📅 Jan 20, 2026

SKILL.md


name: software-testing description: Software testing guidance with decision tree. Use when: (1) Writing or improving tests, (2) User asks about testing approaches, (3) Need guidance on test scope or assertions, (4) Working with specific test frameworks. Routes to specialized testing strategies via reference files.

Software Testing

Testing Decision Tree

Need to write tests?
    ↓
    Legacy/undocumented code needing refactoring?
    ├─ YES → Use characterization-testing skill
    └─ NO  → Continue
              ↓
              What type of testing guidance needed?
              │
              ├─ Unit testing principles?
              │  └─→ See references/unit-testing.md
              │
              ├─ Using Jest?
              │  └─→ See references/jest-testing.md
              │
              ├─ Using Vitest?
              │  └─→ See references/vitest-testing.md
              │
              ├─ Testing React components?
              │  └─→ See references/react-testing.md
              │
              └─ Testing Node.js code?
                 └─→ See references/node-testing.md

Core Testing Principles

Apply these principles across all testing approaches:

Keep Test Scope Small

Run only the tests you need. Prefer narrow scope over full test suites.

Good:

npm test src/auth/login.test.js
npm test -- --testNamePattern="login validation"

Avoid:

npm test  # Running entire suite unnecessarily

Use Specific Assertion Values

Write assertions with actual expected values, not generic placeholders.

Good:

expect(user.name).toBe('Alice')
expect(getUserById).toHaveBeenCalledWith('user-123')

Avoid:

expect(users.length).toBe(2)
expect(getUserById).toHaveBeenCalledWith(expect.any(String))

Check Repo-Specific Skills First

Before running tests:

  1. Check what Project skills are available for testing guidance
  2. Check test configuration files
  3. Ask user if uncertain

Reference Guide

  • references/unit-testing.md - Unit testing principles (SRP, isolation, mocking, what to test)
  • references/jest-testing.md - Jest commands, matchers, and patterns
  • references/vitest-testing.md - Vitest commands and differences from Jest
  • references/react-testing.md - React Testing Library query priorities and patterns
  • references/node-testing.md - Node.js-specific testing (async, streams, file system)

Score

Total Score

50/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