Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill covers adding endpoints for user management in the test_ripgrep module. Trigger: When implementing user management features in the test_ripgrep context.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -33% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -59% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -37% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -45% | 0% |
<!-- L1:START -->
This skill covers adding endpoints for user management in the test_ripgrep module.
Trigger: When implementing user management features in the test_ripgrep context. <!-- L1:END -->
<!-- L2:START -->
| Task | Pattern | |------|---------| | Create User Endpoint | create_user | | Get Users Endpoint | get_users |
<!-- L2:END -->
<!-- L3:START -->
This pattern demonstrates how to create a FastAPI endpoint for user creation using the create_user function.
pythonfrom fastapi import FastAPI from your_module import create_user app = FastAPI() @app.post("/users/") def add_user(user_data: dict): return create_user(user_data)
This pattern shows how to implement an endpoint to fetch all users using the get_users function.
pythonfrom fastapi import FastAPI from your_module import get_users app = FastAPI() @app.get("/users/") def list_users(): return get_users()
bashpython -m pytest tests/test_ripgrep.py
Hardcoding user data can lead to maintenance issues and security vulnerabilities.
python# BAD def add_user(): user = {"name": "John Doe", "email": "john@example.com"} return create_user(user)
<!-- L3:END -->
Other measured skills in the registry, with their headline benchmark lift.