Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill covers the creation of Pydantic v2 request and response schemas. Trigger: Load this skill when defining schemas for the RepoForge Web API.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -64% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -57% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -64% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -38% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -49% | 0% |
<!-- L1:START -->
This skill covers the creation of Pydantic v2 request and response schemas.
Trigger: Load this skill when defining schemas for the RepoForge Web API. <!-- L1:END -->
<!-- L2:START -->
| Task | Pattern | |------|---------| | Define user info schema | UserInfo | | Create token response schema | TokenResponse |
<!-- L2:END -->
<!-- L3:START -->
Defines the structure for user information using Pydantic.
pythonfrom apps.server.app.models.schemas import UserInfo user_info = UserInfo(username="john_doe", email="john@example.com")
Specifies the format for token responses, ensuring proper validation.
pythonfrom apps.server.app.models.schemas import TokenResponse token_response = TokenResponse(access_token="abc123", token_type="bearer")
bashdocker-compose up python repoforge/cli.py run
Using unvalidated data can lead to security vulnerabilities and data integrity issues.
python# BAD user_info = UserInfo(username="john_doe", email="not-an-email")
<!-- L3:END -->
Other measured skills in the registry, with their headline benchmark lift.