Option
HeimHeim Skill Codeüberprüfung ce-code-review

Strukturierte Codeüberprüfung auf Fehler, Regressionen, Tests und Standards. Vor PRs oder bei angeforderter Überprüfung verwenden; der interaktive Modus kann lokal beheben, während der Modus:agent nur für Pipeline-Aufrufende berichtet.

...Alle erweitern
11
Zeit aktualisiert 26. August 2026

Über ce-code-review

Eine strukturierte Code-Review-Funktion, die Codeänderungen mithilfe dynamisch ausgewählter Reviewer-Personas bewertet. Sie startet parallele Unteragenten, die strukturiertes JSON zurückgeben, und fusioniert sowie dedupliziert deren Ergebnisse zu einem einzigen Bericht. Sie soll vor dem Erstellen eines Pull Requests ausgeführt werden, nach Abschluss einer Aufgabe während der iterativen Implementierung oder immer dann, wenn Feedback zu einer Änderung benötigt wird, und sie kann standalone oder eingebettet in einen größeren Workflow aufgerufen werden.

Zwei Betriebsmodi teilen sich denselben Review-Pipeline. Im standardmäßigen interaktiven Modus erzeugt sie einen Markdown-Bericht mit pipe-getrennten Findungstabellen und einer Zusammenfassung umsetzbarer Erkenntnisse, und sie wendet sichere, verifizierte Korrekturen an und committet diese, wenn der Arbeitsbaum vor der Vorschau sauber war. Im Modus:agent (mit mode:headless als veraltetem Alias) ist sie nur berichterstellend: Sie gibt ein einzelnes JSON-Objekt als deterministischen Vertrag für programmatische Aufrufer und Cross-Harness-Aufrufende zurück und verändert den Arbeitsbaum niemals, sodass der Aufrufer die Anwendung übernimmt. Ein grundlegendes Betriebsprinzip lautet „lokal anwenden; niemals pushen“ — sie pusht nie, öffnet keine PRs oder erstellt Tickets in irgendeinem Modus. Sie vermeidet zudem blockierende Abfragen und wechselt niemals Branches; die Übergabe einer PR-Nummer, URL oder eines Branchnamens wählt nur den Review-Umfang aus, nicht jedoch die Berechtigung zur Veränderung des Baums. Argumente werden auf Tokens wie base:, plan: und grouping:auto/off/always analysiert, mit expliziten Konfliktregeln, die den Lauf vor dem Versenden der Reviewer stoppen.

Findungen verwenden eine P0-P3-Schweregradskala, die die Dringlichkeit beantwortet, während autofix_class (gated_auto, manual, advisory) und owner die Form der Folgemaßnahmen beschreiben, anstatt eine Anwendungsberechtigung zu gewähren. Die Synthese besitzt die letzte Route, wählt den konservativeren Weg bei Uneinigkeit und lehnt unsichere Klassen wie safe_auto ab. Ein Quick-Review-Kurzschluss kann sich an das integrierte Review des Harness für schnelle, leichte Reviews delegieren, aber mode:agent führt immer die vollständige Multi-Agenten-Pipeline aus und gibt JSON zurück.

FAQ

Was ist der Unterschied zwischen dem Standardmodus und mode:agent?

Der standardmäßige interaktive Modus gibt einen Markdown-Bericht zurück und wendet sichere, verifizierte Korrekturen an (und committet diese, wenn der Baum sauber war). mode:agent ist nur berichterstellend: Er gibt ein einzelnes JSON-Objekt zurück und verändert den Arbeitsbaum niemals, sodass der Aufrufer die Anwendung übernimmt.

Gibt die Funktion meine Änderungen jemals auf einen Remote-Server hoch oder erstellt sie einen Pull Request?

Nein. Ein grundlegendes Prinzip lautet „lokal anwenden; niemals pushen“ — sie pusht nie, öffnet keine PRs oder erstellt Tickets in irgendeinem Modus, da das Pushen der Schritt ist, den der Benutzer selbst verantwortet.

Wenn ich eine PR-Nummer oder einen Branchnamen angebe, wird dieser Branch dann ausgecheckt?

Nein. Die Angabe einer PR-Nummer, URL oder eines Branchnamens wählt nur den Review-Umfang aus. Sie führt niemals gh pr checkout, git checkout oder git switch aus; um lokale Arbeiten auf einem Branch zu überprüfen, müssen Sie diesen selbst auschecken.

Was bedeutet die Schweregradskala und wie hängt sie mit der automatischen Korrektur zusammen?

Die Schweregrade reichen von P0 (kritisch, muss vor dem Merge behoben werden) bis P3 (geringfügig, nach Ermessen des Benutzers) und beantworten die Dringlichkeit. Die Felder autofix_class und owner beschreiben die Form der Folgemaßnahmen, nicht die Anwendungsberechtigung — die Entscheidung zur Anwendung ist eine Urteilsbildung während der Synthese.

Kann ich anstelle der vollständigen Multi-Agenten-Pipeline eine schnelle Überprüfung erhalten?

Ja, wenn die Argumente auf eine schnelle, schnelle oder leichte Überprüfung hinweisen und mode:agent nicht aktiv ist, führt sie das integrierte Code-Review des Harness aus und stoppt. mode:agent umgeht diesen Kurzschluss immer und führt die vollständige Pipeline aus.

Alle Dateien

24 Dateienreferences/personas/julik-frontend-races-reviewer.md3,2 KBAnzeigenreferences/personas/maintainability-reviewer.md4,8 KBAnzeigenreferences/personas/previous-comments-reviewer.md3,3 KBAnzeigenreferences/personas/reliability-reviewer.md3,3 KBAnzeigenreferences/personas/swift-ios-reviewer.md10,5 KBAnzeigenreferences/review-output-template.md12,6 KBAnzeigenreferences/validator-template.md5,1 KBAnzeigenreferences/action-class-rubric.md1,5 KBAnzeigenreferences/findings-schema.json8,4 KBAnzeigenreferences/personas/adversarial-reviewer.md7,8 KBAnzeigenreferences/personas/api-contract-reviewer.md3,3 KBAnzeigenreferences/personas/data-migration-reviewer.md4,8 KBAnzeigenreferences/diff-scope.md2,4 KBAnzeigenreferences/persona-catalog.md5,4 KBAnzeigenreferences/personas/agent-native-reviewer.md9,1 KBAnzeigenreferences/personas/correctness-reviewer.md3,5 KBAnzeigenreferences/personas/deployment-verification-agent.md4,9 KBAnzeigenreferences/personas/learnings-researcher.md16,1 KBAnzeigenreferences/personas/performance-reviewer.md3,5 KBAnzeigenreferences/personas/project-standards-reviewer.md6,6 KBAnzeigenreferences/personas/security-reviewer.md3,7 KBAnzeigenreferences/personas/testing-reviewer.md3,8 KBAnzeigenreferences/subagent-template.md20,5 KBAnzeigenSKILL.md67,0 KBAnzeigen

Auf GitHub ansehen

Setup

Run this once at the start of this invocation, before any subagent dispatch, and follow the directives it prints — except where one conflicts with this skill's own rules on asking the user questions, whether those rules are scoped to a non-interactive mode or apply in every mode, in which case this skill's rules win and no blocking question is asked. Run the fence exactly as written, as its own command: do not pipe or filter it (no head, tail, or grep), do not truncate its output, and do not bundle it into a batch with other commands. Its output opens with a === skill context header and ends with CE_CONTEXT_END; if you received one of those lines without the other, the output was truncated — rerun the fence verbatim once. That recovery is the only rerun: otherwise do not rerun it within the same invocation; a later invocation of this or any other skill runs its own. If no Node runtime is available the skill proceeds unchanged.

SKILL_DIR="<absolute path of the directory containing the SKILL.md you just read>";NODE="$(for c in node nodejs; do command -v "$c" >/dev/null 2>&1 && "$c" -e '' >/dev/null 2>&1 && { echo "$c"; break; }; done)";if [ -n "$NODE" ]; then"$NODE" "$SKILL_DIR/scripts/context.mjs" || echo "context script failed; continue with the skill's normal behavior";elseecho "no Node runtime; continue with the skill's normal behavior";fi

Artifact Root

Resolve the CE artifact root <root> before composing any artifact path.

  • Read docs_root from <repo-root>/.compound-engineering/config.yaml only (<repo-root> = git rev-parse --show-toplevel). Do not read it from config.local.yaml. Unset -> <root> is docs, exactly as before.
  • Validate a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under .git/. Otherwise stop with an error naming docs_root and the value -- never fall back to docs.
  • Use <root> as the sole artifact location: create it if absent, compose each path as <root>/<subdir> with this skill's own subdirectory, and never also read docs.

Execution spine

Follow these steps in order; the references supply the detail but never change the order. Each reference named below is a required read for its step: load it before doing that step's work.

  1. Read references/modes-and-output.md first. It settles what the arguments mean, which argument conflicts stop the run before any reviewer is dispatched, whether the quick-review short-circuit applies, and what this invocation returns.
  2. Stage 1. Read references/scope.md and resolve the reviewed diff, the scope mode, and the deterministic scope signals.
  3. Stage 2. Read references/intent-and-plan.md, write the intent summary every reviewer receives, and discover the plan Stage 6 verifies requirements against.
  4. Stage 3. Read references/persona-catalog.md and references/select-and-route.md, then select the risk-driven reviewer roster, discover applicable standards paths, and bind the adversarial route.
  5. Stage 3d. When adversarial is selected for a local reviewed tree, start and persist the sanctioned cross-model job that references/cross-model-review.md defines, before any local persona dispatch. Invoking this skill is itself the authorization for its configured or allowlisted peer route, once you have made the required disclosure of the recipient and of the code that leaves the machine. Do not ask the user to confirm a second time, and do not skip the peer because the user did not repeat that authorization. An explicit user prohibition on external review overrides it, as does a checkout that sets cross_model_review_mode: off with no live opt-in; both are resolved before you bind a route. A started peer replaces the local adversarial persona at this stage, and only a real failure to scope, allowlist, reach, authenticate, or start it leaves the local fallback in the roster; a later stage may still restore the local reviewer under the conditions that reference states.
  6. Stage 4. Read references/dispatch-reviewers.md. Dispatch the materialized local roster as one foreground concurrent batch sized to the host's active-agent cap, and collect every reviewer before synthesis however this host returns them: one blocking wait where same-message calls run concurrently, repeated non-polling collection waits where the subagent primitive is asynchronous, and serial dispatch where neither applies. Detaching local review into a polled background job is forbidden. The cross-model peer is the only detached work, and it may overlap this batch.
  7. Stages 5 and 6. Once the reviewer returns are ready, read references/finish-review.md. Fold in the peer once, run the documented findings mechanics, and run every validator the reference selects; only then return the report. Never synthesize directly from raw reviewer artifacts. In the multi-agent path, emit only this skill's report: do not also invoke a harness-native findings or reporting tool, which belongs to the quick-review short-circuit alone.

Operating principles

  • Report-only by default; never push. A bare ce-code-review invocation produces findings and does not apply them. Entering the apply stage requires apply:local, or an explicit user request in the invoking prompt to apply or fix this review's findings; a deprecated mode:autofix token is neither. mode:agent never mutates the tree, even when nested inside a workflow that later applies findings. Never push, open PRs, or file tickets in any mode.
  • No blocking prompts. Never use AskUserQuestion, request_user_input, ask_user, or other blocking question tools. Infer intent, plan, and scope from explicit tokens, git state, PR metadata, and conversation. Note uncertainty in Coverage or the verdict — do not stop to ask.
  • Explicit mutations only. Never run gh pr checkout, git checkout, git switch, or similar branch-switch commands. Passing a PR number, URL, or branch name selects review scope, not permission to mutate the working tree. Uncommitted work can only be reviewed from the checkout that holds it, so to review it on a feature branch, stay on that branch (or check it out yourself) and pass base: or no target.
  • Report outcomes, not machinery. What you show the user is about the review: what is being examined, which coverage is included and the one-line reason for each conditional lens, the independent cross-model pass, and the findings. Name what the user would recognize — a PR number, a reviewer's concern, a peer model — rather than this skill's plumbing, whose internal labels, dispatch bookkeeping, and setup narration stay out of user-facing text. Never claim more about the peer than its receipt attests. This governs what you surface and suppress, not the wording; use your own voice.

Task Visibility

For the multi-agent path, once the review scope is resolved, use the platform's task-tracking capability when available to show a short user-facing view derived from the execution spine. Track review outcomes, not individual personas, setup mechanics, or tool calls; add conditional work only when its gate fires, and update the view at meaningful transitions. If no task-tracking capability is available, continue with the normal progress and final report without simulating a task list in chat.

Alle Dateien

0 Dateien

ce-code-review installieren

Laden Sie die Skill-Dateien herunter und extrahieren Sie diese in Ihr .claude/skills/-Verzeichnis.

ZIP herunterladen

Klonen Sie das Repository und kopieren Sie die Skill-Dateien in Ihr Projekt.

git clone https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-code-review/SKILL.md # Copy SKILL.md to your .claude/skills/ directory

Kopieren Kopieren
Schnelle Einrichtung: Kopieren Sie den Ordner „skill“ nach .claude/skills/ Claude erkennt und verwendet die Fähigkeit automatisch

Ähnliche Skills

code-simplify
Zeit aktualisiert 2. Juli 2026
requesting-code-review
Zeit aktualisiert 29. Juni 2026
Git Commit Helper
Zeit aktualisiert 29. Juni 2026
commit-standards
Zeit aktualisiert 29. Juni 2026
OR