mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-07 03:15:56 +00:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.2 KiB
1.2 KiB
Refactoring and Optimization
After Every Commit
After every commit you MUST ask the user:
"Do you want to refactor and optimize the affected files?"
- If the user answers no, continue without refactoring.
- If the user answers yes, follow the steps below.
Refactoring Steps
- You MUST re-read
AGENTS.mdand follow all instructions in it before proceeding. - You MUST apply all rules from
AGENTS.mdanddocs/contributing/to every affected file — not only code rules, but also documentation, naming, structure, and any other applicable guidelines. - For every affected documentation file, you MUST optimize the text so it follows the standards defined in documentation.md, including RFC 2119 keywords, link formatting, and writing style.
- If the change affects an Ansible role, you MUST refactor and optimize the entire role, not only the files that were directly modified.
- If the change affects more than one role, you MUST ask the user before proceeding:
"The following roles are affected: [list]. Which roles should be refactored — specific ones, or all?"
- Then refactor only the roles confirmed by the user.
- If the change affects more than one role, you MUST ask the user before proceeding: