tdd-workflows-tdd-red
Generate failing tests for TDD red phase
Starting TDD without clear test definitions leads to incomplete coverage. This skill creates comprehensive failing tests that define expected behavior before implementation begins.
スキルZIPをダウンロード
Claudeでアップロード
設定 → 機能 → スキル → スキルをアップロードへ移動
オンにして利用開始
テストする
「tdd-workflows-tdd-red」を使用しています。 Generate failing tests for a password validation function using Jest
期待される結果:
Complete test file with describe blocks, mock setups, and test cases for minimum length, special character requirements, and edge cases. Each test expects specific validation failures that will pass once implementation is complete.
「tdd-workflows-tdd-red」を使用しています。 Create property tests for a string reversal function using pytest and Hypothesis
期待される結果:
Parametrized test functions verifying that reversed string equals original when reversed again, maintains character count, and handles unicode characters correctly.
セキュリティ監査
安全All static analysis findings are false positives. The detected patterns are code examples in markdown documentation, not executable code. Lines 73-75 show JavaScript mock function syntax (jest.fn), lines 84-85 show Go t.Parallel() method calls, line 88 shows Ruby RSpec let blocks, and lines 134+ contain TypeScript test examples in markdown code blocks. No actual shell execution, cryptographic operations, or system reconnaissance code exists in this skill.
品質スコア
作れるもの
New feature TDD workflow
Generate comprehensive failing tests before implementing a new authentication service, covering valid credentials, invalid inputs, and edge cases.
API contract testing
Create contract tests that define expected API request and response formats before building the endpoint implementation.
Legacy code test coverage
Add missing test coverage to existing code by generating tests that document current behavior before refactoring.
これらのプロンプトを試す
Generate failing unit tests for a function that validates email addresses. Use pytest framework. Cover valid emails, invalid formats, empty strings, and null inputs.
Create failing tests for a UserService with methods: createUser, getUserById, deleteUser. Use Jest with mocked UserRepository. Include error handling for duplicate emails and missing users.
Generate property-based tests for a sorting function using fast-check. Verify that output is always sorted, maintains original length, and preserves all input elements.
Create failing integration tests for a payment processing workflow including: successful payment, declined card, insufficient funds, and network timeout scenarios. Use RSpec with shared examples.
ベストプラクティス
- Name tests using should_X_when_Y convention to document expected behavior clearly
- Keep tests isolated with no dependencies between test cases
- Verify tests fail for the right reason (missing behavior) not setup errors
回避
- Testing implementation details instead of observable behavior
- Creating tests that pass immediately without implementing functionality
- Using complex setup code that obscures test intent