README.md
| source_url | https://github.com/ksimback/looper/blob/8a9b7981c212fcbcc4cfeb3cfde5d2bbac8cbb55/templates/loops/README.md |
|---|
Loop pattern library
Named, pre-designed loops the Looper wizard customizes instead of starting
from a blank interview:
/looper my-loop-dir --template <name>
Each template is a complete, compilable loop.yaml plus a README describing
when to use it and which {{PLACEHOLDER}} slots to fill. Templates with a
scripts/ directory ship helper checkers that the wizard copies next to the
emitted loop. A template is a pre-answered interview, not a bypass: the
wizard still critiques every stage, enforces the structural rules, and shows
the flow preview before emitting.
| Template | Use when |
|---|---|
| security-scan | Read-only sweep of a repo for secrets, PII, and vulnerabilities → triaged SECURITY-FINDINGS.md. |
| code-review | Review a branch's diff against its base → typed, severity-rated REVIEW.md grounded in the diff. |
| bug-hunt | Reproduce a reported bug, fix the root cause, prove it with before/after repro evidence. |
| docs-sync | Find and fix doc/code drift → per-item DRIFT-REPORT.md; docs follow code, code untouched. |
| research-synthesis | Synthesize collected sources into a cited REPORT.md; every claim traceable to a file. |
Conventions
{{PLACEHOLDER}}tokens mark the project-specific slots; the README table
in each template says what goes where.looper.py compilewarns if any
remain, and the wizard refuses to emit while one survives.- Every template compiles as-is (CI enforces this), so the catalog can't
drift from the compiler's contract. - Templates that edit files (
bug-hunt,docs-sync) do so under
side-effect approval and never commit; read-only templates say so in
theirexecution.side_effects.notes. - Programmatic checks invoke the interpreter as
python(matching the
repo's example loop). On a machine where onlypython3is on PATH, the
wizard should swap the interpreter token when it customizes the template.
Adding a template
Add templates/loops/<name>/ with loop.yaml (compilable, placeholders
only inside string values), README.md (use-when, emits, placeholder
table), and optional scripts/. Add a row to the table above. The test
suite compiles every template automatically.
Copyright (c) 2026 Kevin Simback License files are attached. MIT
MIT notice
MIT License
Copyright (c) 2026 Kevin Simback
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.
Children
No children yet.
Like how this is organised?
Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.