a11y-ally
Use when running comprehensive WCAG accessibility audits with axe-core + pa11y + Lighthouse, generating context-aware…
Evidence-based investigative code review using deductive reasoning to determine what actually happened versus what was claimed. Use when verifying implementation claims, investigating bugs, validating fixes, or conducting root cause analysis. Elementary approach to finding truth
Claude Code
$ npx -y skills add proffesor-for-testing/agentic-qe --skill sherlock-review --agent claude-code
Codex
$ npx skills add proffesor-for-testing/agentic-qe --skill sherlock-review -a codex -y
Cursor
$ npx skills add proffesor-for-testing/agentic-qe --skill sherlock-review -a cursor -y
Gemini CLI
$ npx skills add proffesor-for-testing/agentic-qe --skill sherlock-review -a gemini-cli -y
GitHub Copilot
$ npx skills add proffesor-for-testing/agentic-qe --skill sherlock-review -a github-copilot -y
OpenCode
$ npx skills add proffesor-for-testing/agentic-qe --skill sherlock-review -a opencode -y
Windsurf
$ npx skills add proffesor-for-testing/agentic-qe --skill sherlock-review -a windsurf -y
name: sherlock-review description: "Evidence-based investigative code review using deductive reasoning to determine what actually happened versus what was claimed. Use when verifying implementation claims, investigating bugs, validating fixes, or conducting root cause analysis. Elementary approach to finding truth through systematic observation." category: quality-review priority: high tokenEstimate: 1100 agents: [qe-code-reviewer, qe-security-auditor, qe-performance-validator] implementation_status: optimized optimization_version: 1.0 last_optimized: 2025-12-03 dependencies: [] quick_reference_card: true tags: [investigation, evidence-based, code-review, root-cause, deduction] trust_tier: 2 validation: schema_path: schemas/output.json validator_path: scripts/validate-config.json eval_path: evals/sherlock-review.yaml
<default_to_action> When investigating code claims: 1. OBSERVE: Gather all evidence (code, tests, history, behavior) 2. DEDUCE: What does evidence actually show vs. what was claimed? 3. ELIMINATE: Rule out what cannot be true 4. CONCLUDE: Does evidence support the claim? 5. DOCUMENT: Findings with proof, not assumptions
**The 3-Step Investigation:**
# 1. OBSERVE: Gather evidence git diff <commit> npm test -- --coverage # 2. DEDUCE: Compare claim vs reality # Does code match description? # Do tests prove the fix/feature? # 3. CONCLUDE: Verdict with evidence # SUPPORTED / PARTIALLY SUPPORTED / NOT SUPPORTED
**Holmesian Principles:**
</default_to_action>
| Category | What to Check | How | |----------|---------------|-----| | **Claim** | PR description, commit messages | Read thoroughly | | **Code** | Actual file changes | `git diff` | | **Tests** | Coverage, assertions | Run independently | | **Behavior** | Runtime output | Execute locally | | **Timeline** | When things happened | `git log`, `git blame` |
| Verdict | Meaning | |---------|---------| | ✓ **TRUE** | Evidence fully supports claim | | ⚠ **PARTIALLY TRUE** | Claim accurate but incomplete | | ✗ **FALSE** | Evidence contradicts claim | | ? **NONSENSICAL** | Claim doesn't apply to context | | … **UNVERIFIED** | Not enough evidence either way; state what would settle it |
---
## Sherlock Investigation: [Claim] ### The Claim "[What PR/commit claims to do]" ### Evidence Examined - Code changes: [files, lines] - Tests added: [count, coverage] - Behavior observed: [what actually happens] ### Deductive Analysis **Claim**: [specific assertion] **Evidence**: [what you found] **Deduction**: [logical conclusion] **Verdict**: ✓/⚠/✗ ### Findings - What works: [with evidence] - What doesn't: [with evidence] - What's missing: [gaps in implementation/testing] ### Recommendations 1. [Action based on findings]
Every finding and every verdict must chain to observable evidence: code, command output, test results, history. There is no minimum number of observations. When the evidence supports the claim, the correct verdict is TRUE (the output schema's `case-closed-clean`), with a list of what was examined. Manufacturing clues to make an investigation look productive is the same failure Sherlock exists to catch. If the evidence is insufficient either way, say so, state what would settle it, and do not guess.
---
**Steps:** 1. Reproduce bug on commit before fix 2. Verify bug is gone on commit with fix 3. Check if fix addresses root cause or symptom 4. Test edge cases not in original report
**Red Flags:**
**Steps:** 1. Run benchmark on baseline commit 2. Run same benchmark on optimized commit 3. Compare in identical conditions 4. Verify measurement methodology
**Red Flags:**
**Steps:** 1. List all edge cases in code path 2. Check each has test coverage 3. Test boundary conditions 4. Verify error handling paths
**Red Flags:**
---
## Case: PR #123 "Fix race condition in async handler" ### Claims Examined: 1. "Eliminates race condition" 2. "Adds mutex locking" 3. "100% thread safe" ### Evidence: - File: src/handlers/async-handler.js - Changes: Added `async/await`, removed callbacks - Tests: 2 new tests for async flow - Coverage: 85% (was 75%) ### Analysis: **Claim 1: "Eliminates race condition"** Evidence: Added `await` to sequential operations. No actual mutex. Deduction: Race avoided by removing concurrency, not synchronization. Verdict: ⚠ PARTIALLY TRUE (solved differently than claimed) **Claim 2: "Adds mutex locking"** Evidence: No mutex library, no lock variables, no sync primitives. Verdict: ✗ FALSE **Claim 3: "100% thread safe"** Evidence: JavaScript is single-threaded. No worker threads used. Verdict: ? NONSENSICAL (meaningless in this context) ### Conclusion: Fix works but not for reasons claimed. Race condition avoided by making operations sequential, not by adding synchronization. ### Recommendations: 1. Update PR description to accurately reflect solution 2. Add test for concurrent request handling 3. Remove incorrect technical claims
---
// Evidence-based code review
await Task("Sherlock Review", {
prNumber: 123,
claims: [
"Fixes memory leak",
"ImQuality engineering tools for your coding agent. Generate tests, investigate coverage gaps, analyze flaky behavior and coordinate quality checks across the software lifecycle. Keep the findings close to the code and use them to make a better quality decision.
Use when running comprehensive WCAG accessibility audits with axe-core + pa11y + Lighthouse, generating context-aware…
WCAG 2.2 compliance testing, screen reader validation, and inclusive design verification. Use when ensuring legal compliance…
Master advanced AgentDB features including QUIC synchronization, multi-database management, custom distance metrics, hybrid…
Create and train AI learning plugins with AgentDB's 9 reinforcement learning algorithms. Includes Decision Transformer,…
Implement persistent memory patterns for AI agents using AgentDB. Includes session memory, long-term storage, pattern learning,…
Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch…
Produce the "Playwright 1.xx API Review" artifact for a range of commits - the public API additions and the breaking or behavior…
Write, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions,…
DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent,…