Generate test assertions from existing code implementation. Use when the user has implementation code without tests or incomplete test coverage, and needs assertions synthesized by analyzing the code's behavior, inputs, outputs, and state changes. Supports Python (pytest/unittest), Java (JUnit/AssertJ), and JavaScript/TypeScript (Jest/Chai). Handles equality checks, collections, exceptions, and state verification.
87
82%
Does it follow best practices?
Impact
92%
1.10xAverage score across 3 eval scenarios
Passed
No known issues
Python pytest assertion patterns
Arrange-Act-Assert structure
0%
75%
Descriptive test names
100%
100%
pytest.raises with match parameter
100%
100%
Initial state assertion
100%
100%
Post-operation state assertion
100%
100%
Parametrize decorator used
0%
100%
Boundary and empty cases
100%
100%
All error paths covered
100%
100%
Collection length assertion
42%
100%
Collection membership assertion
100%
100%
Specific equality assertions
100%
100%
Exception message asserted
100%
100%
JavaScript/TypeScript Jest assertion patterns
toBe or toEqual for value equality
100%
100%
toContain for membership
0%
100%
toHaveLength for array length
100%
100%
toThrow with message string
100%
100%
describe blocks for grouping
100%
100%
Single behavior per test
85%
85%
All throw paths tested
100%
100%
Sorted/ordered result asserted
100%
100%
Empty state tested
100%
100%
Post-mutation state tested
100%
100%
Boolean result tested
100%
100%
Multiple tag sources in getAllTags
100%
100%
Java JUnit AssertJ assertion patterns
assertThat fluent equality
100%
100%
assertThat list contains
100%
100%
assertThat list size
0%
0%
assertThatThrownBy with isInstanceOf
100%
100%
hasMessage chained on assertThatThrownBy
100%
100%
assertThat boolean matchers
100%
100%
Explanatory phase comments
62%
25%
All exception paths covered
100%
100%
Empty cart state tested
100%
100%
List membership and size both asserted
0%
0%
Multiple exception classes tested
100%
100%
Numeric calculation asserted
100%
100%
0f00a4f
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.