← スキル一覧に戻る

development
by channingwalton
⭐ 3🍴 0📅 2026年1月22日
SKILL.md
name: Development description: Implement features using strict test-driven development. Use for the DEVELOP phase of XP workflow.
Development (TDD)
Core Rules (Non-Negotiable)
- NEVER write production code without a failing test first
- One behaviour per test
- Write minimum code to make the test pass
- Run tests and verify green state before proceeding
The TDD Cycle
🔴 RED → Write ONE failing test
🟢 GREEN → Write MINIMUM code to pass
✅ VERIFY → Run all tests, confirm green
Detailed Steps
🔴 RED — Write a Failing Test
- Identify the next behaviour to implement
- Write a test that specifies that behaviour
- Run the test — it MUST fail
- If it passes, you've either:
- Written the wrong test, or
- The behaviour already exists
🟢 GREEN — Make It Pass
- Write the simplest code that makes the test pass
- Do not write more than necessary
- Do not refactor yet
- Run the test — it MUST pass
✅ VERIFY — Confirm Green State
- Run ALL tests, not just the new one
- All tests must pass
- If any fail, fix before continuing
What Counts as "Minimum Code"
- Hard-coded values are acceptable initially
- Duplication is acceptable initially
- "Ugly" code is acceptable initially
- Refactoring comes AFTER green using the refactoring skill
Test Naming
Use descriptive names that document behaviour:
// Good
"return empty list when library has no books"
"return error when member not found"
// Bad
"test1"
"testGetBooks"
Announcing Progress
🔴 RED → [behaviour being tested]
🟢 GREEN → Test passes
✅ VERIFY → All tests green
Common Mistakes
- Writing production code before the test
- Writing multiple tests before making any pass
- Refactoring while still red
- Skipping the verify step
- Writing tests that test implementation, not behaviour
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です