Dokumentationerreichbar
Anthropic, Best practices for Claude Code
code.claude.com (externe Seite)
Die Sammlung der Muster, die sich bei Anthropic intern und bei Anwendern bewährt haben. Der erste Abschnitt der Seite ist zugleich ihre stärkste Aussage: Ein Agent braucht eine Prüfung, die er selbst fahren kann, sonst ist der Mensch die Prüfschleife und jeder Fehler wartet darauf, bemerkt zu werden. Die Seite nennt vier Stufen, wie hart die Prüfung das Ende einer Runde blockiert, vom Satz im Auftrag über eine Zielbedingung und einen Stop-Hook bis zum zweiten Modell, das den eigenen Befund zu widerlegen versucht. Sie ist außerdem die Quelle für den Unterschied zwischen einer Projektanweisung und einem Hook: Die eine ist beratend, der andere läuft.
geprüft 24.09.2026
Worauf sich diese Seite beruft, wörtlich, abgerufen am 04.08.2026:
Give Claude a check it can run: tests, a build, a screenshot to compare.
bestätigt 24.09.2026you become the verification loop: every mistake waits for you to notice it
bestätigt 24.09.2026The check is anything that returns a signal Claude can read in the conversation: a test suite, a build exit code, a linter, a script that diffs output against a fixture, or a browser screenshot compared against a design.
bestätigt 24.09.2026a fresh model try to refute the result, so the agent doing the work isn't the one grading it
bestätigt 24.09.2026Have Claude show evidence rather than asserting success
bestätigt 24.09.2026Unlike CLAUDE.md instructions which are advisory, hooks are deterministic and guarantee the action happens.
bestätigt 24.09.2026A reviewer running in a fresh subagent context sees only the diff and the criteria you give it, not the reasoning that produced the change
bestätigt 24.09.2026Claude Code overrides the hook and ends the turn after 8 consecutive blocks.
bestätigt 24.09.2026Claude produces a plausible-looking implementation that doesn't handle edge cases.
bestätigt 24.09.2026If you can't verify it, don't ship it.
bestätigt 24.09.2026write a failing test that reproduces the issue, then fix it
bestätigt 24.09.2026You can do something similar with tests: have one Claude write tests, then another write code to pass them.
bestätigt 24.09.2026Testing instructions and preferred test runners
bestätigt 24.09.2026If you could describe the diff in one sentence, skip the plan.
bestätigt 24.09.2026
ADR und Spezifikation: wie viel Papier ein Agent brauchtErst der rote Test07 Prüfen statt glauben08 Hooks und Skills09 Subagenten und Schleifen