← スキル一覧に戻る

running-tests
by GGPrompts
running-testsは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
⭐ 122🍴 10📅 2026年1月23日
SKILL.md
name: running-tests description: "Test runner checkpoint for conductor gates. Detects test framework (jest, pytest, cargo test, go test, etc.), runs tests, and captures output. Returns structured result with pass/fail status and failed test details. Use when: 'run tests', 'test runner', 'check tests pass'." user-invocable: true
Test Runner Checkpoint
Auto-detects test framework and runs tests, writing results to .checkpoints/test-runner.json.
Workflow
Progress:
- [ ] Step 1: Detect test framework
- [ ] Step 2: Run tests with timeout
- [ ] Step 3: Write checkpoint result
Step 1: Detect Test Framework
| Indicator | Command |
|---|---|
package.json with test script | npm test -- --run (preferred), fallback npm test |
pytest.ini or conftest.py | pytest --tb=short |
Cargo.toml | cargo test |
go.mod | go test ./... |
Makefile with test target | make test |
Step 2: Run Tests
timeout 300 <test-command> 2>&1 | tee /tmp/test-output.txt
TEST_EXIT_CODE=${PIPESTATUS[0]}
Step 3: Write Checkpoint Result
mkdir -p .checkpoints
cat > .checkpoints/test-runner.json << 'EOF'
{
"checkpoint": "test-runner",
"timestamp": "...",
"passed": true,
"framework": "vitest",
"command": "npm test -- --run",
"exit_code": 0,
"stats": {"total": 17, "passed": 17, "failed": 0},
"failed_tests": [],
"summary": "All 17 tests passed"
}
EOF
Decision Criteria
Pass: Exit code 0, no test failures
Fail: Any test fails, tests error out, or timeout (300s default)
No tests found: Pass with "framework": "none"
JSON Output Flags (optional)
For complex parsing, use framework JSON output:
- Jest:
npx jest --json --outputFile=/tmp/results.json - Pytest:
pytest --json-report(requires plugin) - Go:
go test -json ./...
スコア
総合スコア
70/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
✓人気
GitHub Stars 100以上
+5
○最近の活動
3ヶ月以内に更新がある
0/10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です