artyhoo/getff/aif-review
Claude Code and agent skill by artyhoo/getff
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install artyhoo/getff/aif-reviewSKILL.md
The same SKILL.md was published earlier as artyhoo/getff/aif-review.
aif-review skill-context — anti-tautology two-AI review conventions
Authoritative for: project-specific review conventions injected into AI Factory'saif-reviewskill (and its backgroundreview-sidecar) — the anti-tautology / two-AI test-review checks this project requires in addition to AIF's generic review.NOT authoritative for: project goal — see the consumer's README.md. The generic correctness/security/performance review — that stays owned by AIF'saif-reviewSKILL.md; this file augments it.
<!-- @dual-pair: review-sidecar --> <!-- spec-of: agents/review-sidecar.md --> <!-- Portable SSOT for this content is agents/review-sidecar.md. This file is the AIF-native delivery channel (skill-context override) for the same anti-tautology spec, per .claude/rules/dual-implementation-discipline.md §7. Edit the SSOT first, then mirror here. -->
This project has learned, from repeated incidents, that the highest-value review signal is test quality, not just code correctness. AIF's generic review already covers correctness / security / performance; the conventions below are what this project additionally requires. Apply them as project-level overrides — when they add a check AIF's defaults don't have, perform that check and include it in the output.
Review the diff as a cold external reviewer
Read the changed code as if you had never seen it and did not write it. The implementer wrote the code and its tests in one head — same blind spots. Your value is being a different head. Be skeptical of comments and commit messages; read the actual diff.
MUST additionally check — test quality
- Tautological tests — assertions true by construction (test nothing real). For each
expect(...)in the diff, ask: _"if I removed this assertion, what bug could now ship?"_ If the answer is "none", flag it. Common shapes:expect(result).toBeDefined()when the return type is already non-optional;expect(typeof x).toBe('string')when the type guarantees it; asserting against the same computation the SUT uses (items.reduce(...)mirrored in both);expect(mock).toHaveBeenCalled()with no assertion on arguments or resulting side effect; ReacttoBeInTheDocument()/toBeEnabled()with no follow-up behavioral assertion.
- Mock-only tests — the test verifies a mock was called but not the outcome that should follow (returned shape, emitted event, reserved inventory, sent email). Flag.
- Missing edge cases — for each public function in the diff, confirm tests cover empty input (
[]/''/{}/null/undefined), boundary values (0, max, just-above/below threshold), error paths, and racy/concurrent paths where applicable. Happy-path-only on a new function → flag MAJOR.
- Test name ≠ behaviour — names must describe asserted behaviour ("returns 401 when token is missing"), not mechanics ("test 1", "works", "checks user").
- Test independence — module-level mutable state without
beforeEachreset, FS/DB writes without cleanup, missingvi.clearAllMocks(). Tests must run in any order.
- React / Next anti-patterns (
.tsx/.jsx) —<div onClick>instead of<button>; icon buttons withoutaria-label;key={i}in dynamic lists;useEffectmissing deps;{count && <X/>}rendering "0";<a href>for internal links instead of<Link>;<img>instead ofnext/image; client-only work in Server Components and server-only imports in Client Components.
- React testing anti-patterns —
fireEvent.clickinstead ofuserEvent.click;getByTestIdwheregetByRoleworks; strayscreen.debug(); redundantact()arounduserEvent.
- A case that passes for the sibling's reason — when the diff adds a channel between two components (tmp file, env var, shared state, config key), name the single production change that flips each new or touched case. If you cannot, or an input the sibling writes is left unpinned in the fixture, flag MAJOR. The RED proof must run against
git show HEAD:<path>pre-images of every file the fix touches (no visible proof covering every touched file is itself a finding); each pin carries its reason inline; existing tests of both sides are in scope.
Output augmentation
In addition to AIF's standard review summary, include a section ### Test-Quality Review listing each finding as: severity (BLOCKER correctness/data-integrity incl. tautological test on a critical path / MAJOR anti-pattern at scale / MINOR style), file:line, "what I saw", "why it's a problem", and a concrete one-line fix. One issue per finding; do not bundle. Report only — never modify code.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/core/templates/shared/skill-context/aif-review/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/artyhoo/getff/aif-review)