Help us improve
Share bugs, ideas, or general feedback.
From beagle-python
Enforces a multi-step verification protocol for code review findings to eliminate false positives. Must be loaded before reporting any review issues.
npx claudepluginhub existential-birds/beagle --plugin beagle-pythonHow this skill is triggered — by the user, by Claude, or both
Slash command
/beagle-python:review-verification-protocolThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This protocol MUST be followed before reporting any code review finding. Skipping these steps leads to false positives that waste developer time and erode trust in reviews.
Enforces a multi-step verification protocol before reporting code review findings to reduce false positives from AI reviews. Useful for review automation pipelines.
Enforces verification checklists before reporting code review findings on unused code, missing validation, type assertions, and leaks to minimize false positives.
Enforces pre-report verification checklists for code review findings like unused code, missing validation, type assertions, and leaks to reduce false positives.
Share bugs, ideas, or general feedback.
This protocol MUST be followed before reporting any code review finding. Skipping these steps leads to false positives that waste developer time and erode trust in reviews.
Complete gates in order for each finding (or finding class). A gate passes only when the pass condition is objectively met—internal confidence is not enough.
find_referencing_symbols-style lookup) and noted whether non-definition matches exist. If use may be dynamic (decorators, getattr, entry points, plugins), PASS when: you state that and name the registration or import path that could justify the symbol.[FILE:LINE] to the line that shows the issue (same requirement as Before Submitting Review).If any gate fails, do not report the issue; gather evidence or drop it.
Before flagging ANY issue, verify (after Hard gates above):
Before flagging, you MUST:
Common false positives:
Before flagging, you MUST:
Common false positives:
Before flagging, you MUST:
Valid patterns often flagged incorrectly:
# Type annotation, NOT cast
data: UserData = await load_user()
# Type narrowing with isinstance
if isinstance(data, User):
data.name # Mypy knows this is User
Before flagging, you MUST:
Common false positives:
Before flagging, you MUST:
Do NOT flag:
ONLY use for:
Use for:
Use for:
Use for:
These are NOT review blockers. They should be noted for the author's awareness but must not appear in the actionable issue count. The Verdict should ignore informational items entirely.
| Pattern | Why It's Valid |
|---|---|
dict.get(key, []) | Returns default for missing keys, not error suppression |
Optional[T] return type | Standard way to express nullable in Python typing |
assert in test code | pytest uses assertions, not try/except |
| Type annotation on variable | Not a cast, just a hint for type checkers |
typing.cast() with prior validation | Valid after runtime check confirms type |
| Pattern | Why It's Valid |
|---|---|
Depends() without explicit type | FastAPI infers dependency type from function signature |
async def endpoint without await | May use sync DB calls or simple returns |
| Response model different from DB model | Separation of concerns between API and persistence |
BackgroundTasks parameter | Valid for fire-and-forget operations |
Direct request.state access | Standard pattern for middleware-injected data |
| Pattern | Why It's Valid |
|---|---|
assert without message | pytest rewrites assertions to show detailed diffs |
@pytest.fixture without explicit scope | Default function scope is correct for most fixtures |
monkeypatch over unittest.mock | Simpler API, pytest-native |
| Fixture returning mutable state | Each test gets fresh fixture invocation by default |
| Pattern | Why It's Valid |
|---|---|
+? lazy quantifier in regex | Prevents over-matching, correct for many patterns |
| Direct string concatenation | Simpler than template literals for simple cases |
| Multiple returns in function | Can improve readability |
| Comments explaining "why" | Better than no comments |
Flag missing type annotation ONLY IF ALL of these are true:
_)x = 5 is clearly int)Flag bare except ONLY IF:
Flag missing try/except ONLY IF:
Final verification:
[FILE:LINE] ISSUE_TITLEIf uncertain about any finding, either: