If no arguments are provided, ask the user for the following information:
- Language / Framework: TypeScript / React / Next.js / Firebase / Tailwind / shadcn
- Category: Common mistake category (e.g., error handling, type safety, Firestore data model, auth flow)
- Summary: One-line summary of the mistake
- Details: Description of the mistake and why it is a problem
- Code example (optional): NG/OK examples if applicable
Procedure
-
Read
.agents/skills/code-review/references/bad-review.md -
Check if a matching category already exists
- If it exists: add the entry under that category
- If not: create a new category section and add the entry
-
Add an entry in the following format:
markdown- **<Summary>** (<Language / Framework>) - Detail: <Details> - Example: (if code example provided) ```<language> // NG <NG code example> // OK <OK code example> ```
-
Check for duplicates before adding
-
Report completion to the user
Notes
- Use existing category names for consistency
- Keep entries concise and clear
- Always specify the language / framework (TypeScript / React / Next.js / Firebase / Tailwind / shadcn)


