Fixing A Bug
Testing & Qualityfixing-a-bugFixing A Bug is an Agent Skill for testing & quality published in the hitobito/hitobito repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when fixing a bug, unhandled exception, or edge-case error of unknown or unclear cause in hitobito, before writing implementation code.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/hitobito/hitobito/blob/HEAD/.agents/skills/fixing-a-bug/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/fixing-a-bug, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Fixing a Bug
Overview
Workflow for resolving an error that affects a user — typically an edge case or data-based exception that isn't currently handled.
When to Use
Any bugfix task: reproducing and resolving a defect. For new functionality, use the development skill instead. For structural changes with no behavior change, use the refactoring skill instead.
Process
- State the reason for the bugfix — the error affecting the user.
- Verify
rubocopandbrakemanreport no errors locally before starting. - Write a spec that reproduces the bug BEFORE changing any other code. It must fail first.
- Implement the fix.
- Do not touch locales other than
de. - Confirm the spec now passes.
- Update the copyright notice at the top of touched files to cover the current year.
- Run
brakeman— no new security findings. - Run
rubocop— code style must be clean. - Write a commit message summarizing the need for the change.