| name | review-component |
| description | Review a BEEQ StencilJS component against design system guidelines and project standards. Use for: code review of bq-* components, checking section order, naming conventions, JSDoc completeness, prop validation, event documentation, accessibility, styling practices, and test coverage. Returns a structured review with pass/fail per category and actionable fixes. |
| argument-hint | Path to the component tsx file (e.g. packages/beeq/src/components/button/bq-button.tsx) |
Review a BEEQ Component
When to Use
- Before opening a PR for a new or modified
bq-* component
- Reviewing a PR that adds or modifies a
bq-* component
- Auditing an existing component for guideline compliance
- Self-checking a component before submitting for review
- When a component "feels off" and you want a holistic check across all dimensions.
Procedure
1. Load the instruction files
Read these before evaluating:
2. Read the component files
Read all files for the component:
bq-<name>.tsx — component logic
bq-<name>.types.ts — type definitions
scss/bq-<name>.scss — styles
scss/bq-<name>.variables.scss — CSS custom properties
__tests__/bq-<name>.e2e.tsx — E2E tests
_storybook/bq-<name>.stories.tsx — Storybook stories
3. Evaluate each category
For each category below, mark ✅ pass, ⚠️ needs improvement, or ❌ fail, and list specific issues.
A. File Structure & Section Order
B. Naming Conventions
C. JSDoc Completeness
D. Props & Events
E. Accessibility
F. Styling
G. Test Coverage
H. Storybook
4. Report Format
Return the review as:
## Component Review: bq-<name>
### Summary
<1-2 sentence overall assessment>
### Results
| Category | Status | Issues |
|---|---|---|
| File Structure | ✅/⚠️/❌ | ... |
| Naming | ✅/⚠️/❌ | ... |
| JSDoc | ✅/⚠️/❌ | ... |
| Props & Events | ✅/⚠️/❌ | ... |
| Accessibility | ✅/⚠️/❌ | ... |
| Styling | ✅/⚠️/❌ | ... |
| Tests | ✅/⚠️/❌ | ... |
| Storybook | ✅/⚠️/❌ | ... |
### Required Changes
<numbered list of blocking issues>
### Suggestions
<numbered list of non-blocking improvements>