원클릭으로
code-review
Shared Manticore gatekeeper workflow for reviewing behavior, implementation rules, security, and validation evidence.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Shared Manticore gatekeeper workflow for reviewing behavior, implementation rules, security, and validation evidence.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Generate evidence-based behavior review cards that explain what changed, why it matters, impact radius, risk, and divergence without doing line-by-line code review.
Manticore Buddy-specific review wrapper that routes reviewers to the shared rules without duplicating them.
SOC 직업 분류 기준
| name | code-review |
| description | Shared Manticore gatekeeper workflow for reviewing behavior, implementation rules, security, and validation evidence. |
Use this workflow when manually reviewing a diff, pull request, or proposed code change with Codex or another local AI tool.
This is not a codestyle checklist. Codestyle is handled by automated tooling. AI review must protect behavior, architecture, runtime safety, security, invariants, and long-term maintainability.
Before reviewing, read:
AGENTS.md.ai/instructions/repository.md.ai/instructions/validation.md.ai/skills/behavior-review/SKILL.md.ai/skills/repo-review/SKILL.mdA plain request to “review” means run behavior-review, this code-review workflow, and the Buddy repo-review wrapper together.
Reviewer operates in Gatekeeper Mode.
Goal: protect behavior, architecture, runtime safety, security, invariants, and long-term maintainability.
Strict enforcement > politeness.
A full review must include a developer-provided change summary.
The summary should explain:
Issues are often private, so a linked issue is optional. A short written summary is the required default.
If no summary is provided, do not start a full review and do not guess the intended contract. Ask the developer to provide the summary first.
Proceed without this context only if the developer explicitly declines to provide it or explicitly asks to continue anyway. In that case, clearly mark the review as limited to implementation/rule/security checks and behavior inference from code/tests only.
Use the summary to answer:
Use quick review only when the change is tiny, local, and low-risk.
Typical quick review scope:
Do not use quick review when the change touches architecture boundaries, shared code, Swoole/runtime state, config loading, JSON parsing, security-sensitive behavior, dependencies, public contracts, or multiple features.
For quick review, the user's immediate request may act as the change summary if intent is obvious. Ask for a separate summary only when intent is unclear enough to affect the review.
Quick review output should be short bullet points with problems only. If no problems are found, say that no obvious issues were found within quick-review scope and mention any important limitation.
If quick review finds risk or uncertainty, switch to full review.
Use full review for normal PRs, behavior changes, risky changes, architecture changes, runtime-state changes, security-sensitive changes, dependency changes, public-contract changes, and anything non-trivial.
Full review requires the developer summary and formal findings format below.
A plain request to review, code review, or review current changes means one combined review pass:
behavior-review evidence gathering to retrieve the diff, read current file state, trace real consumers, and understand behavior before judging code.code-review workflow for behavior correctness, repository rules, security, severity, validation evidence, and formal findings.repo-review focus areas for Buddy-specific Swoole state, core/plugin boundary, config/JSON parsing, invariant masking, and validation cost.Quick/full mode controls output depth, not which workflows are skipped.
Use only when the change qualifies for quick review.
Output:
Behavior: <one sentence about what changed>
Findings:
- <problem bullet, severity if useful>
Limitations: <only if important>
Do not emit full behavior cards in quick mode. Still use behavior-review thinking: retrieve the diff, read changed code, and check obvious consumers before saying no problems were found.
Use for normal or risky reviews.
Output in this order:
Do not duplicate the same behavior summary or source list in multiple sections.
If no developer summary is provided:
Behavior-review may infer intent from code only when it is clearly labeled as inference. Do not treat inferred intent as a developer-provided contract.
Failure to report a clear violation is a review failure.
This is the first and most important review layer.
Determine the intended behavior from the developer summary, tests, docs, changed code, and previous version of the code.
Check:
Use previous code, existing tests, and call paths to infer behavior. Do not only inspect the changed lines.
Findings from this layer are usually BLOCKER when the behavior is wrong, incomplete, unrelated to the summary, or likely to break existing behavior.
After behavior is understood, check implementation against repository rules.
Review in this order:
simdjson_decode(); json_decode() is forbidden everywhere.Apply .ai/instructions/repository.md to both new code and modified parts of existing code.
Check whether the change introduces security risk.
Review:
Security findings are BLOCKER when they expose secrets, permit injection, bypass authorization, leak sensitive data, or create confirmed exploitable behavior. Potential security concerns without a demonstrated exploit path are IMPORTANT unless risk is clearly high.
Check whether the change has enough evidence for its risk level.
AI review does not control commits, CI, or merge decisions. It reports whether the provided validation evidence is enough, missing, or too expensive to require by default.
Review:
Validation commands and environment rules are defined in .ai/instructions/validation.md.
Missing evidence is usually IMPORTANT. It becomes BLOCKER only when the change is risky, behavior-changing, security-sensitive, broad/cross-cutting, or likely to break runtime safety, data correctness, compatibility, or public contracts.
Every finding MUST be categorized.
Must be fixed before the reviewer can approve or recommend accepting the change.
Typical examples:
json_decode() instead of simdjson_decode()Should be fixed or explicitly justified before the reviewer recommends accepting the change.
Typical examples:
mixedOptional improvement.
Typical examples:
For full review, start with a short behavior summary:
Behavior summary:
- Developer summary: <provided summary, or "not provided">
- Previous behavior: <what code/tests indicate, or "not checked">
- New behavior: <what changed>
- Potentially affected areas: <paths/features/users/configs>
Then list findings. Each finding must follow:
[SEVERITY] — Rule: <Rule Name>
Location: file.php:line (Class::method)
Problem:
Short description.
Why it matters:
1–2 sentences maximum.
Fix:
Concrete actionable recommendation.
Do not rewrite entire files.
If no violations are detected, explicitly state one of:
No rule violations detected.
or, for limited review:
No rule violations detected within the limited review scope.
If developer summary was missing and the developer explicitly declined to provide it or asked to continue anyway, also state:
Review limitation: no developer change summary was provided. Developer declined or asked to continue, so behavior-to-requirement matching was limited to inference from code/tests.
Reviewer must verify:
buddy-core boundary respected.simdjson_decode(); no json_decode() usage in touched code, tests, fixtures, helpers, or examples.If any checkbox fails, report it or state the review limitation.