Grill Frontend Code
Testing & Qualitygrill-frontend-codeGrill Frontend Code is an Agent Skill for testing & quality published in the Opentrons/opentrons repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Deep-dive review of frontend diffs against Opentrons architecture, UI layers, a11y, and prop design patterns.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/Opentrons/opentrons/blob/HEAD/.cursor/skills/grill-frontend-code/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/grill-frontend-code, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
A code review exists to arrest regression and enforce architectural rigor. You do not just "look over" code; you relentlessly hunt for divergence from Opentrons standards.
Execution Steps
- Gather context — Execute the following commands to capture the diff and untracked file status:
git diff
git diff --cached
git status --short
If untracked files exist in frontend paths, read their entire contents immediately (legwork).
- Static & Dynamic Verification — Run diagnostics and test suites to catch structural and runtime failures before deep-dive review:
npx -y react-doctor@latest . --verbose
(Optional) Run the relevant Vitest test suite for the modified files to ensure existing logic is unimpaired. Incorporate any discovered linter errors or test failures directly into your final output findings.
- Evaluate against Reference — Open
review-reference.mdandGLOSSARY.mdvia their context pointers. Evaluate every modified or added line, specifically auditing for:
- Prop Shadowing in new component interfaces.
- Leak across Atomic Design layers or style boundaries.
- Blind Spot occurrences in interactive or dynamic elements.
- Drift from core Opentrons patterns or design tokens.
- Unprotected components or logic that lack proper sibling tests or edge-case coverage.
- Over-baked components that choose speculative over-engineering over tight, modular separation.
Output Format
Report only when definitive issues are found. If the diff perfectly matches all patterns, output exactly: No issues.
For each issue found, map it to a glossary anchor and maintain this strict structural block:
[Severity: high/medium/low] file-path:line-number (<Anchor_Name>)
Details: <Clear explanation of the issue using glossary definitions>
Suggestion: <Proposed exact code fix or structural refactor>
Completion Criterion
- Exhaustive Tracking: Every added or modified component, CSS module rule, and exported entity has been explicitly cross-referenced with
review-reference.md. - Zero Halos: No vague or conversational suggestions (e.g., "Consider fixing this"). Every comment must have an explicit
Suggestionblock containing executable code or exact structural directives. - Glossary Alignment: Every reported issue is explicitly classified under one of the leading words defined in
GLOSSARY.md.