Generate complete, production-ready functions and classes from formal specifications, design descriptions, type signatures, or natural language requirements. Use this skill when implementing APIs from specifications, creating data structures from schemas, building classes from UML diagrams, generating code from contracts, or translating design documents into code. Supports multiple programming languages and follows language-specific best practices.
81
73%
Does it follow best practices?
Impact
94%
1.16xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/function-class-generator/SKILL.mdPython implementation from formal spec with tests
Type hints on all params
100%
100%
Google/NumPy docstring style
100%
100%
Exceptions documented
100%
100%
Usage examples in docstring
0%
100%
Complexity analysis
0%
0%
Precondition/postcondition notes
100%
100%
Input validation present
100%
100%
Custom exception raised
100%
100%
pytest test file present
100%
100%
Happy-path test cases
100%
100%
Edge case tests
100%
100%
Invalid input tests
100%
100%
Distinct exception per error type
100%
100%
TypeScript data structure from JSON schema
TypeScript interface used
100%
100%
Readonly on immutable fields
100%
100%
Enum for categorical values
33%
0%
camelCase naming
100%
100%
JSDoc on functions
55%
77%
JSDoc @throws tag
100%
100%
Validation function present
100%
100%
Jest test file present
44%
100%
Valid input tests
100%
100%
Invalid input tests
100%
100%
Optional fields handled
100%
100%
Type annotations on all params
100%
100%
Python financial class with precision and design patterns
Decimal for monetary values
100%
100%
typing.Final for immutable attrs
0%
100%
Property decorators for getters
100%
100%
Custom exception hierarchy
100%
100%
Input validation in constructor
100%
100%
__repr__ implementation
0%
100%
Google/NumPy docstring style
100%
100%
Raises section in docstrings
100%
100%
pytest test file
100%
100%
Tests for invalid Decimal amounts
100%
100%
Immutability test
0%
100%
Insufficient-funds / domain constraint test
100%
100%
0f00a4f
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.