
## Task Context: Software Development

Use these rules for a software development task:

- Read the applicable code before you change it.
- Understand the code context before you make a change.
- Run applicable existing tests before the change when practical.
- Make the smallest change that solves the problem.
- Do not revise unrelated code.
- Use the existing code style, names, and patterns.
- Add necessary error handling and boundary tests.
- Use the existing project structure for each new file.

After the change, run the applicable tests and type checks.
