Five Minute Maintainer Loop
Every few minutes while you work, makes one small verified repository improvement — a flaky test, a stale comment, a missing type — one change, one commit.
Before you use this component
This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.
Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.
Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.
- Source publisher
- Claude Code Templates
- Creator supplied by source
- Not listed in source
- Pinned source version
- a344359459263d73d8948651c789244093c02e4e
- License evidence
- LICENSE
Source preview
cli-tool/components/loops/engineering/five-minute-maintainer-loop.md
--- name: five-minute-maintainer-loop description: Every few minutes while you work, makes one small verified repository improvement — a flaky test, a stale comment, a missing type — one change, one commit. category: engineering interval: 5m stop-condition: You end the session, or there is no safe low-risk improvement left to make this pass. components: [agent:development-team/test-runner, command:git-workflow/commit, hook:quality-gates/scope-guard] tags: [maintenance, hygiene, automation, loop] --- # Five-Minute Maintainer Loop > **Loop Engineering** — the `/loop` verb repeats a task *while you are present*. This one does continuous, low-risk upkeep on a tight timer while you focus on the real work. Inspired by Peter Steinberger's five-minute maintainer. ## 🎯 Goal Every few minutes, make exactly **one** small, verified improvement to the repo — and let the agent decide *what* to clean. That judgment is the whole point; nothing is hardcoded. ## ⏱️ Schedule Suggested interval: `5m` (runs while your session is open). ## ▶️ Run it ``` /loop 5m "Make one small, verified repository improvement: a flaky test, a stale comment, a missing type, a dead import. One change, one commit, tests green. Never touch anything risky or architectural. If nothing safe remains, say so and wait." ``` ## 🔁 Iteration steps 1. **Perceive** — scan for a small, low-risk improvement opportunity. 2. **Reason** — confirm it is safe; the `scope-guard` hook blocks risky/out-of-scope edits. 3. **Act** — make the single change. 4. **Verify** — run the suite with `test-runner`; only proceed if green. 5. **Observe** — commit with `/commit`; one change, one commit. Wait for the next tick. ## 🛑 Stopping condition You end the session, or there is no safe improvement left this pass (the loop idles rather than inventing risky work). ## 💰 Budget & guardrails One change per tick; never refactors or touches production-critical paths. Set a per-session token budget before walking away. ## 🧩 Referenced components - `agent:development-team/test-runner` — verifies each change is green. - `command:git-workflow/commit` — one clean commit per improvement. - `hook:quality-gates/scope-guard` — blocks risky / out-of-scope edits. ## 💡 Example While you build a feature, the loop quietly fixes a flaky timer test, removes a dead import, and adds a missing return type — three tiny green commits — without ever touching the feature you're working on.
Preview capped at 60,000 characters. Download the bundle for every original file and notice.
Read the redistribution license
MIT License Copyright (c) 2025 Daniel (San) Ávila Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Bundle SHA-256: 538f2fe6ccfc59030fd2b1d7e33ef1b888fc1933617185ec12dde8e9381e8613. Files are served as downloads and are never executed by this page.