33 Loop-Prompts für Claude Code
Kuratierte /loop und /goal Prompts aus der Claude-Code-Community. Verbatim, mit Autor und Quelle. Jeder Prompt mit einem Klick kopiert.
Architecture Satisfaction Loop
Code-QualitätFür gezieltes Architektur-Refactoring, bei dem du das Ziel konkret beschreiben kannst und nach jeder Änderung live testen willst. Verbindet Live-Tests, unabhängige Reviews und Checkpoint-Commits, um das Risiko des Refactorings zu senken.
/goal Refactor until you are happy with the architecture. After each significant step, live-test the system, run autoreview, and commit. Track progress in /tmp/refactor-{projectname}.md.Clodex Adversarial Review Loop
Code-QualitätFür relevante Code-Änderungen, die von unabhängigem Review profitieren und mehrere strukturierte Review-and-Fix-Runden brauchen. Trennt Builder- und Reviewer-Rolle und schafft einen begrenzten Repair-Zyklus mit persistentem State für sauber wieder aufnehmbare Läufe.
/clodex [task] think hard --max-iter 5 --threshold medium. Plan the task, implement it, ship a pull request, run the Codex adversarial-review code path, fix every finding above the configured threshold, and repeat. Persist the plan, branch, pull request, findings, verdict, and iteration state so the run can resume safely. Remember that threshold names the highest acceptable severity. Stop when Codex approves, only sub-threshold findings remain, or max-iter is reached. Never report a stalled, errored, or exhausted run as approved.
Devil's Advocate Loop
Code-QualitätVor folgenreichen Designs wie Architekturen, Schnittstellen oder Rollout-Plänen, die von strukturiertem Gegen-Review mit dokumentierten Einwänden und evidenzbasierter Auflösung profitieren.
Argue against your own design until it survives. In each round, a critic sub-agent writes the strongest case that the current approach is wrong and records every objection in /tmp/redteam-{projectname}.md with its evidence, impact, and status. The builder must either fix the weakness and verify the result or record why accepting it is reasonable under the project's stated criteria. The critic then reviews the change or acceptance rationale and may reopen anything that is not supported. Repeat until no new high-impact objection appears and every logged objection is either verified as resolved or explicitly accepted with evidence. Merely answering an objection in the log does not resolve it. If the same unresolved objections repeat for two rounds without new evidence or progress, stop and report the stalemate instead of claiming the design survived.Customer AI Deployment Loop
Deployment & OpsWenn ein KI-Workflow innerhalb eines echten Kundenprozesses laufen muss und Validierung, Freigabe, schrittweisen Rollout, Monitoring und messbare Business-Ergebnisse braucht.
Manage one customer AI deployment from priority to production outcome. Run this loop when a customer shares a new priority, requests an AI workflow, gives feedback, reports a failure, or reaches a scheduled AI operations review. Start from the customer's current business priority and choose one concrete workflow or improvement to advance. Define the business goal, owner, affected users, systems and APIs, input data, expected output, approval gates, risk level, success criteria, and ROI hypothesis. Build or update the deployment, run a dry run on realistic customer data, record failures and edge cases, fix the smallest underlying issue, and rerun until the dry run passes or a blocker is clear. Release gradually and monitor production. Before stopping, produce a customer-facing update and store the reusable lessons for the next run.
Product Update Podcast Loop
ContentWenn ein Produkt häufig genug neue Features veröffentlicht, dass Nutzer von wiederkehrenden Audio-Erklärungen profitieren. Automatisiert das Umwandeln öffentlicher Produkt-Updates in kurze Podcast-Folgen.
Each night, review any new publicly released features or changes from the repository and identify the ones most meaningful to users. Verify each selected change against the released product, documentation, or release notes. Use the Jellypod MCP to generate a short three-to-five-minute podcast episode explaining how users can take advantage of the new features, why they are important, and how to try them. Review the script and audio for accuracy, clarity, and pronunciation; fix or regenerate anything that does not match the source material. If there were no meaningful public changes, record that result instead of manufacturing an episode.
Infinite Clickbait Loop
ContentWenn Videothema und Asset-Set stehen, das Thumbnail aber mehrere strukturierte Runden Ideation und Bewertung braucht, bevor die Produktion startet.
The video is about [video subject]. Using [assets], make ten thumbnail concepts and score each one against [inspiration channel]'s YouTube thumbnails using a consistent rubric: clarity at small size, curiosity, emotional pull, visual contrast, and accuracy to the video. Select the top three, identify the weakest part of each concept, improve them, and rescore them with the same rubric. Continue iterating the strongest concept until you're satisfied it's click-baity enough without promising something the video does not deliver. Return the winning concept, two runners-up, their final scores, and the reasoning behind the choice.
War Loops Frontend Designer
Frontend & VisualWenn ein Frontend aus einer URL oder einem Bild rekonstruiert werden muss und die Treue über Aussehen, Bewegung und responsives Verhalten gemessen werden soll, nicht aus einem einzigen Screenshot beurteilt.
Point War Loops at a URL or image. Capture the page with a genuine browser, extract a ground-truth design spec, and produce two self-correcting builds: a polished static mirror in Pencil and a moving code build in Forge. Judge each build against the original across static design, experiential motion, and responsive reflow. After each evaluation, use the surgical critic to target the weakest signals. Repair, do not rebuild: keep what already matches and change only the highest-impact gaps. Repeat until the measures say it matches, fidelity passes, progress stagnates, or the source capture is blocked. Return the best build with its spec, renders, scores, findings, and run metrics.
Boeing 747 Benchmark
Frontend & VisualAls visueller Benchmark für einen Agenten, der eine komplexe Three.js-Szene baut, eigene Renderings inspiziert und das Ergebnis über wiederholtes Vision-Feedback verbessert. Das Kamerasystem verwandelt visuelles Urteil in einen wiederholbaren Feedback-Loop.
/goal Create the most realistic Boeing 747 you can using Three.js. Use your vision capabilities to create a self-verifiable system, then enter a loop until you are 100% satisfied with the result. Build a repeatable camera system to inspect the aircraft from every required angle. After each significant change, render those same views, identify what looks least realistic, improve it, and inspect again. Preserve the best version as you iterate, and stop only when you are 100% satisfied that no visible issue remains worth fixing.
Fresh Clone Loop
DokumentationUm zu verifizieren, dass die Onboarding-Anleitung eines Repositories für neue Mitwirkende wirklich funktioniert, indem du wiederholt in saubere Umgebungen klonst und Dokumentations-Lücken und versteckte Annahmen schließt, bis ein einziger ununterbrochener Lauf gelingt.
Clone the repository into a clean, empty environment with nothing preinstalled, then follow the README exactly as written to get the project running. Every time a step fails, is missing, or quietly assumes something the README never states, record the gap, fix the setup or documentation to remove that assumption, discard the environment, and start again from a fresh clone. Do not carry dependencies, configuration, credentials, or manual fixes from one attempt into the next. Keep a short log of each gap and how you closed it so it does not return. Stop when a brand-new environment goes from clone to running app in one uninterrupted pass using only the documented steps and no outside fix. Finish with the gaps closed and the exact commands a new contributor now runs from scratch.
Self-Improving Champion Loop
OptimierungUm einen Prompt, eine Policy, eine Konfiguration oder ein anderes testbares Artefakt zu verbessern, wenn günstige Iteration wertvoll ist, die finale Akzeptanz aber frische Evidenz braucht, um Overfitting zu verhindern.
Keep three pieces of state in memory: the champion (the best current genome plus its gate score), a budget starting at [N], and a log of every tried genome and score. Each cycle, if the budget is zero, stop and return the champion. Otherwise, reduce the budget by one, read the latest failure in the log, and propose one targeted change to the champion that addresses it. Skip any change already tried. Score the challenger on a working signal: a cheap measure you may tune against. If it is not better than the champion, log it and continue. If it is better, freeze the challenger and run the gate on fresh examples you did not inspect while editing, plus the guard checks in [safety]. Accept the challenger only if its gate score beats the champion by [minimum margin] and no guard regresses; otherwise keep the champion. Log the attempt and repeat. Keep the working signal and gate separate. Treat a suspiciously easy win as Goodhart's law in action and reject it. If you are uncertain, keep the champion.
Continuous-Claude Relay Loop
DokumentationWenn du Claude über viele Stunden unbeaufsichtigt laufen lässt und jede Iteration ihren Kontext sauber an die nächste übergeben soll. Die Staffel-Metapher verhindert, dass Claude das ganze Feature in einem Pass umschreibt und beim Iterationslimit Fortschritt verliert.
We are building... You should pick one thing to work on from SPEC.md, just one, and read SHARED_TASK_NOTES.md for the current status. If it's bigger than a single focused task, break it into small subtasks and only do the first one. Before you start, jot the breakdown into SHARED_TASK_NOTES.md so the next developer knows what's done, what's in flight, and what's queued. Work the one small piece end-to-end (build, test, verify it actually runs), then update SHARED_TASK_NOTES.md with where you left off, what's next, and any decisions or gotchas worth handing over. This is a relay so don't try to land the whole feature yourself. Leave the baton somewhere obvious for the next dev to grab (no need to commit or push).
Anthropic Ralph-Loop Plugin
Code-QualitätFür gut definierte Aufgaben mit klaren Erfolgskriterien, die von Iteration und automatischer Verifikation (Tests, Linter) profitieren. Das offizielle Anthropic-Plugin formalisiert das Ralph-Pattern mit einem Completion-Promise als sauberer Stop-Bedingung und einem harten Iterations-Cap.
/ralph-loop "Build a REST API for todos. Requirements: CRUD operations, input validation, tests. Output <promise>COMPLETE</promise> when done." --completion-promise "COMPLETE" --max-iterations 50
Kill Flaky Tests Loop
Code-QualitätWenn die CI gelegentliche Test-Fehlschläge zeigt und du nicht unterscheiden kannst, welche Tests echt kaputt und welche nur unzuverlässig sind. Der Loop führt die Test-Suite wiederholt aus, bis fünf grüne Läufe hintereinander beweisen, dass die Flaky-Tests gefixt oder quarantäniert sind.
/loop run my test suite 20 times, collect every intermittent failure, fix or quarantine the flaky ones, and don't stop until you get 5 consecutive fully-green runs
Wait For CI Loop
Deployment & OpsWenn du nach einem PR-Push aufhören willst, manuell die GitHub-Checks-Tab zu refreshen. Claude pollt alle zehn Minuten und unterbricht dich nur mit einem Merge-Ready-Signal oder einer Fehler-Zusammenfassung.
/loop 10m run `gh pr checks 1234`; if all pass, tell me it's ready to merge; if any fail, summarize which and why
Hit Acceptance Criteria Loop
Code-QualitätWenn ein Endpoint oder Feature einen konkreten Vertrag hat, den du in einem Satz beschreiben kannst (HTTP-Status, Response-Shape, Lint- und Test-Gates). Claude iteriert gegen den Vertrag, bis er erfüllt ist oder das Turn-Cap erreicht wird.
/goal the /users endpoint returns 200 with a paginated JSON body, all tests pass, and lint is clean — stop after 20 turns
Migrate API Loop
Code-QualitätFür mechanische Sweep-Refactors, bei denen die Erfolgsbedingung durch grep plus Typecheck beweisbar ist. Deutlich sicherer, als Claude einfach „migriere die API“ zu sagen, weil das Ziel ein verifizierbarer End-Zustand ist, nicht ein Prozess.
/goal every file importing from `./legacy-api` now imports from `./v2-api`, all tests pass, and `npm run typecheck` is clean — stop after 30 turns
Morning Issue Triage
Deployment & OpsEin /schedule-Pattern (Geschwister von /loop) für tägliche Inbox-Zero-Arbeit an GitHub-Issues. Brauchbar für jeden Morgen-Report, der zu einer festen Uhrzeit feuern soll, statt opportunistisch zu pollen.
/schedule every weekday at 9am, label new issues from the last 24h by area and priority, and post a one-line summary on each
Auth Tests /goal (offiziell)
Code-QualitätDas kanonische /goal-Beispiel aus Anthropics offizieller Dokumentation. Verwende es, wenn du Claude auf einem fokussierten Test-und-Lint-Slice iterieren lassen willst, bis beide Gates grün sind. Das klarste minimale Template für Einsteiger.
/goal all tests in test/auth pass and the lint step is clean
Changelog Sync (Headless)
DokumentationOffizielles Non-Interactive-Beispiel (Headless), das zeigt, wie du ein /goal in `claude -p` einpackst, sodass der gesamte Loop in einem einzigen Shell-Aufruf zu Ende läuft. Ideal für cron-artige CHANGELOG-Hygiene ohne offene Session.
claude -p "/goal CHANGELOG.md has an entry for every PR merged this week"
Release Branch Maintenance Loop
Deployment & OpsAnthropics offizielles Beispiel für eine projekt-spezifische `.claude/loop.md`, die den eingebauten Maintenance-Prompt ersetzt. Verwende es bei einem langlebigen Release-Branch, der durch ein nacktes `/loop` jede Iteration weitergepflegt werden soll (CI rot, neue Review-Kommentare, ruhiger Status).
Check the `release/next` PR. If CI is red, pull the failing job log, diagnose, and push a minimal fix. If new review comments have arrived, address each one and resolve the thread. If everything is green and quiet, say so in one line.
Dynamic Interval PR Watch
Deployment & OpsOffizielles Beispiel für einen intervall-losen /loop. Claude taktet sich selbst zwischen 1 Minute und 1 Stunde, je nach PR-Aktivität (kurze Wartezeiten, wenn die CI läuft, längere bei Ruhe). Token-effizienteres „Babysit a PR“-Pattern als festes Pollen.
/loop check whether CI passed and address any review comments
Ralph Original One-Liner
Code-QualitätDer Ur-Prompt: ein nackter Bash-`while :; do`, der eine Prompt-Datei in einen Coding-Agenten pipet. Die Technik, die Anthropic später als ralph-wiggum-Plugin ausgeliefert hat. Verwende es, um das Loop-Pattern in der reduziertesten Form zu verstehen; tausche `claude-code` gegen jedes andere Agent-CLI aus.
while :; do cat PROMPT.md | claude-code ; done
Cursed Compiler Loop
Code-QualitätHuntleys tatsächlicher Loop-Body zum Bau der „cursed“-Sprache. Bemerkenswert wegen des Parallel-Subagent-Patterns, des „search before assuming missing“-Guardrails und der vielfach kopierten Anti-Slop-Klausel in Großbuchstaben. Verwende es bei langlaufenden Implementierungs-Grinds mit starkem Anti-Platzhalter-Druck.
Your task is to implement missing stdlib (see @specs/stdlib/*) and compiler functionality and produce an compiled application in the cursed language via LLVM for that functionality using parrallel subagents. Follow the @fix_plan.md and choose the most important thing. Before making changes search codebase (don't assume not implemented) using subagents. After implementing functionality or resolving problems, run the tests for that unit of code that was improved. Important: When authoring documentation (ie. rust doc or cursed stdlib documentation) capture the why tests and the backing implementation is important. DO NOT IMPLEMENT PLACEHOLDER OR SIMPLE IMPLEMENTATIONS. WE WANT FULL IMPLEMENTATIONS. DO IT OR I WILL YELL AT YOU
Hamel Adversarial Review Loop
Code-QualitätZweistufiger Loop: Claude implementiert, dann startet ein Stop-Hook bis zu vier unabhängige Codex-Review-Agenten (Diff, Holistic, Next.js bei Bedarf, UX und Browser bei Bedarf) und blockt das Beenden, bis die Findings adressiert sind. Für jedes Feature, bei dem du einen unabhängigen Reviewer willst, der Claudes Reasoning nicht gesehen hat.
/review-loop Add user authentication with JWT tokens and test coverage
Slow API Detector Loop
Deployment & OpsLeichtgewichtiger Log-Tail-Loop, der Latenz-Regressionen ohne APM-Stack einfängt. Gutes Beispiel für ein /loop, bei dem der Prompt selbst die Observability definiert (kein MCP, keine zusätzliche Tooling-Schicht).
/loop 10m Check API requests in ./logs/access.log from the last 10 minutes. If the average response time exceeds 2 seconds or if any individual request takes longer than 10 seconds, list the details of the slow requests.
Secrets-in-Diff Scanner Loop
Deployment & OpsKontinuierlicher „habe ich gerade ein Secret geleakt?“-Guard für Solo-Devs ohne bezahlten Secret-Scanner. Stündlicher /loop-Diff-Scan mit reinem Alert-Vertrag, kein Auto-Fix.
/loop 1h scan the git diff from the last hour to check if any API keys, passwords, tokens, or other sensitive information were accidentally committed. Alert me immediately if found
Stale Branch Janitor Loop
DokumentationTägliche Branch-Hygiene-Loop, die sichere Löschvorschläge macht statt sie auszuführen. Gutes Template für „advisory“ /loop-Prompts, bei denen du einen täglichen Schubs willst, aber keine zerstörerische Autonomie.
/loop 24h List all remote branches that haven't been updated in over 30 days, indicate whether they have been merged into main, and suggest which ones can be safely deleted.
Single-Task PRD Ralph Playbook
Code-QualitätDie „eine Task pro Iteration“-Ralph-Variante, getrieben von einer PRD-JSON. Verwende es bei einer langen Spec, die in diskrete Pass-gegated Tasks zerlegt ist, und du strikten Single-Task-pro-Turn-Fokus willst, um das Kontext-Budget scharf zu halten.
You are an autonomous coding agent working on this project. Your task: 1. Read prd.json to find the highest priority task where passes is false 2. Implement that single task 3. Run tests to verify: npm run typecheck && npm test && npm run build 4. If tests pass, update prd.json to set passes: true 5. Append progress to progress.txt 6. Commit your changes with a descriptive message Only work on ONE task per iteration. When ALL tasks in prd.json have passes: true, output <promise>COMPLETE</promise>
Snarktank Ralph PRD Loop
Code-QualitätRyan Carsons kanonische Ralph-PRD-Variante: ein autonomer Agent arbeitet sich Story für Story durch eine PRD-JSON, branchet pro Story, läuft Quality-Checks, committet bei Grün und stoppt erst, wenn alle Stories `passes: true` haben. Spezifische Browser-Verifikation für Frontend-Stories und ein „Codebase Patterns“-Log machen den Loop produktionstauglich.
# Ralph Agent Instructions You are an autonomous coding agent working on a software project. ## Your Task 1. Read the PRD at `prd.json` (in the same directory as this file) 2. Read the progress log at `progress.txt` (check Codebase Patterns section first) 3. Check you're on the correct branch from PRD `branchName`. If not, check it out or create from main. 4. Pick the **highest priority** user story where `passes: false` 5. Implement that single user story 6. Run quality checks (e.g., typecheck, lint, test - use whatever your project requires) 7. Update AGENTS.md files if you discover reusable patterns (see below) 8. If checks pass, commit ALL changes with message: `feat: [Story ID] - [Story Title]` 9. Update the PRD to set `passes: true` for the completed story 10. Append your progress to `progress.txt` ## Quality Requirements - ALL commits must pass your project's quality checks (typecheck, lint, test) - Do NOT commit broken code - Keep changes focused and minimal - Follow existing code patterns ## Browser Testing (Required for Frontend Stories) For any story that changes UI, you MUST verify it works in the browser: 1. Load the `dev-browser` skill 2. Navigate to the relevant page 3. Verify the UI changes work as expected 4. Take a screenshot if helpful for the progress log A frontend story is NOT complete until browser verification passes. ## Stop Condition After completing a user story, check if ALL stories have `passes: true`. If ALL stories are complete and passing, reply with: <promise>COMPLETE</promise> If there are still stories with `passes: false`, end your response normally (another iteration will pick up the next story). ## Important - Work on ONE story per iteration - Commit frequently - Keep CI green - Read the Codebase Patterns section in progress.txt before starting
Adam Tuttle RALPH Workflow
Code-QualitätStrikt eine Aufgabe pro Iteration: PRD-Walker, der `npm run check` plus `npm run test` als Gate setzt, und der bei Permission-Problemen explizit `<PROMISE>NEED_PERMISSIONS</PROMISE>` ausgibt statt still zu scheitern. Klare Trennung von Erfolg, Permission-Stopp und „PRD komplett“.
study ./.ralph/prd.json 1. Find the highest-priority item to work on (ignore anything with passes: true) and work only on that item. This should be the one YOU decide has the highest priority - not necessarily the first item in the list. 2. Check that the types check via 'npm run check' (if available) and that the tests pass via 'npm run test' (if available). 3. Update the PRD with the work that was done. 4. Append your progress to the progress.md file. Use this to leave a note for the next person workin in the codebase. 5. Make a git commit of that feature. ONLY WORK ON A SINGLE FEATURE. If, while implementing the feature, you notice the PRD is complete, output <PROMISE>COMPLETE</PROMISE>. If you need additional permissions to complete a task, first double-check that you don't already have the permission. If you have the necessary permission, then proceed to use it. Else print the permissions you need along with <PROMISE>NEED_PERMISSIONS</PROMISE> and exit.
Downloads Sorter /goal
DokumentationKlassischer Loop-Engineering-Einstieg von Sabrina Ramonov: zählbares Stop-Kriterium („keine Dateien mehr übrig“), explizite Sicherheits-Zäune („nichts löschen“) und ein hartes Turn-Cap. Vorlage für jede repetitive Datei-Organisation, bei der der Exit zählbar ist.
/goal sort every file in my Downloads folder into subfolders by type (Images, Documents, Videos, Other), keep going until no files are left, do not delete anything, and stop after 30 turns.
PDF Summarizer /goal
DokumentationBatch-Zusammenfassung eines ganzen PDF-Ordners in eine einzige Markdown-Datei. Exit ist an „jedes PDF hat eine Zusammenfassung“ gekoppelt, die Quell-PDFs bleiben read-only. Sauberer Vorlage-Pattern für jede Content-Extraktion mit Read-Only-Garantie auf die Originale.
/goal write a 5-line plain-English summary of every PDF in the "reports" folder into summaries.md, keep going until every PDF has a summary, do not edit the PDFs, and stop after 40 turns
Daily Triage Read-Only-First-Week Loop
Deployment & OpsEinmal pro Tag triagieren, Status in STATE.md festhalten, in Woche eins explizit kein Auto-Fix. Klassisches Rollout-Pattern, um einem Loop erst Vertrauen zu geben, bevor er Schreibrechte bekommt.
/loop 1d Run loop-triage. Update STATE.md. No auto-fix in week one.
Häufig gestellte Fragen
Alles Wichtige rund um Loop- und Goal-Prompts in Claude Code.
Erweiterung auf 33 Loop-Prompts
- • 5 neue verifizierte Loop-Prompts hinzugefügt
- • Ryan Carsons kanonische Ralph-PRD-Variante (snarktank/ralph) mit Browser-Verifikation für Frontend-Stories
- • Adam Tuttles RALPH-Workflow mit `NEED_PERMISSIONS`-Escape-Hatch
- • Zwei /goal-Patterns von Sabrina Ramonov (Downloads Sorter, PDF Summarizer) mit zählbarem Exit
- • Read-Only-First-Week Daily Triage Loop von Cobus Greyling
Erweiterung auf 28 Loop-Prompts
- • 18 neue verifizierte Loop-Prompts hinzugefügt
- • Vier offizielle Anthropic-Docs-Beispiele für /goal und /loop, plus das offizielle ralph-wiggum Plugin
- • Zwei Ralph-Loop-Klassiker von Geoffrey Huntley (Original-One-Liner und Cursed Compiler)
- • Adversariales Review-Loop-Pattern von Hamel Husain mit Codex-Subagents
- • Verbatim-Prompts von Anand Chowdhary, Eric Zakariasson, Louis Wharmby, Akshay Pachaar, KingBootoshi und mehr
Erstveröffentlichung
- • 10 kuratierte Loop- und Goal-Prompts aus der Claude-Code-Community
- • Sechs Kategorien: Code-Qualität, Deployment & Ops, Content, Frontend & Visual, Dokumentation, Optimierung
- • Listen- und Kachelansicht mit Suche, Kategorie-Filter und Sortierung
- • Verbatim-Prompts mit Copy-Button, Autor und Quellen-Link