.claude/skills/tdd-workflow/SKILL.md
Enforce TDD workflow and ensure proper execution of the Red-Green-Refactor cycle. Use when starting a new feature implementation, bug fix, or refactoring.
npx skillsauth add drillan/mixseek-plus tdd-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Enforce TDD workflow and ensure proper execution of the Red-Green-Refactor cycle.
Create/identify test file
test_<feature>.pytests/ directoryDesign test cases
test_<feature>_<situation>_<expected_result>Run test and confirm failure
uv run pytest tests/test_<feature>.py -v
User approval (required)
Create implementation file
Run test and confirm success
uv run pytest tests/test_<feature>.py -v
Quality checks
uv run ruff check --fix . && uv run ruff format . && uv run mypy .
Improve code
Re-run all tests
uv run pytest
| Implementation File | Test File |
|---------------------|-----------|
| src/auth.py | tests/test_auth.py |
| src/article.py | tests/test_article.py |
| src/services/user.py | tests/test_user.py |
test_<feature>_<situation>_<expected_result>
Examples:
test_login_with_valid_credentials_returns_sessiontest_login_with_invalid_password_raises_errortest_create_user_with_duplicate_email_failsIf test file doesn't exist
If test is not failing (Red)
After test succeeds (Green)
When implementing a feature:
tools
MixSeekワークスペースを初期化し、設定ファイル用ディレクトリ構造を作成します。「ワークスペースを初期化」「mixseekのセットアップ」「設定ディレクトリを作成」「新しいプロジェクトを始める」といった依頼で使用してください。
development
MixSeekのチーム設定ファイル(team.toml)を生成します。「チームを作成」「エージェント設定を生成」「Web検索チームを作って」「分析チームを設定」といった依頼で使用してください。Leader AgentとMember Agentの構成を定義します。
development
MixSeekのプロンプトビルダー設定ファイル(prompt_builder.toml)を生成します。「プロンプトを設定」「プロンプトビルダーを作成」「ラウンド別プロンプト」といった依頼で使用してください。
data-ai
MixSeekのオーケストレーター設定ファイル(orchestrator.toml)を生成します。「オーケストレーターを設定」「チーム競合設定」「複数チームで競わせる」「マルチチーム実行設定」といった依頼で使用してください。複数チームを並列実行して最良の結果を選択する設定を定義します。