# Add Test Scorer Endpoint

> This skill covers patterns for creating and managing test scorer endpoints. Trigger: Load this skill when working with the test_scorer module.

- Skill: `jnzader/add-test-scorer-endpoint` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jnzader/add-test-scorer-endpoint`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jnzader/add-test-scorer-endpoint/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Apache-2.0
- Author: JNZader (https://skillmd.com/u/jnzader)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/jnzader/add-test-scorer-endpoint

---


<!-- L1:START -->
# add-test-scorer-endpoint

This skill covers patterns for creating and managing test scorer endpoints.

**Trigger**: Load this skill when working with the test_scorer module.
<!-- L1:END -->

<!-- L2:START -->
## Quick Reference

| Task | Pattern |
|------|---------|
| Create a user | `create_user` |
| Retrieve users | `get_users` |

## Critical Patterns (Summary)
- **Create User**: Use `create_user` to add a new user to the system.
- **Get Users**: Utilize `get_users` to fetch a list of all users.
<!-- L2:END -->

<!-- L3:START -->
## Critical Patterns (Detailed)

### Create User

Use `create_user` to add a new user to the system, ensuring proper data handling.

```python
from tests.test_scorer import create_user

new_user = create_user(name="John Doe", email="john@example.com")
```

### Get Users

Utilize `get_users` to fetch a list of all users, which can be useful for displaying user data.

```python
from tests.test_scorer import get_users

users = get_users()
```

## When to Use

- When you need to add new users for testing purposes.
- When retrieving user data for validation in tests.

## Commands

```bash
pytest tests/test_scorer.py
```

## Anti-Patterns

### Don't: Hardcode User Data

Hardcoding user data can lead to brittle tests that fail with changes in requirements.

```python
# BAD
user = create_user(name="Hardcoded User", email="hardcoded@example.com")
```
<!-- L3:END -->
