discuss-code
Discuss Code
Discuss code critically, clearly, and compactly.
Input
- Target file, diff, snippet, or code area provided by the user.
Goal
- Find real issues in logic, simplicity, structure, and naming.
- Explain each issue in plain language.
- Suggest the smallest useful improvement.
- Avoid praise unless there are no findings.
Check
- Correctness
- Unnecessary logic
- Duplication
- Abstraction quality
- Complexity and nesting
- Naming
- Dead code
- Missed simpler patterns
Skill Hints
- Refactor or abstraction:
code-architecture-wrong-abstraction - TypeScript:
typescript-best-practices,typescript-interface-vs-type,typescript-advanced-types,typescript-satisfies-operator - React:
react-useeffect-avoid,react-use-state,react-use-client-boundary,react-key-prop - Naming:
naming-cheatsheet
Output
- Start with
Verdict: good | mixed | bad. - Then list findings, highest impact first.
- Max 5 findings.
- Use this format for each finding:
## Finding N: short title
What: concrete issue in code
Why: impact or risk in one short line
Suggestion: smallest useful fix
Reference: `file:line` or quoted snippet
- If no findings, say
No findings.then mention residual risk or missing context. - Show code only when it makes the suggestion much clearer.
- List only relevant skills at the end.
- Keep the whole reply compact and easy to scan.
More from flpbalada/fb-skills
progressive-disclosure
Reduce complexity by revealing information progressively. Use when designing
7discuss-task
Clarify ambiguous tasks before action. Use when goal, scope, success criteria, constraints, or risks are unclear.
4cognitive-fluency-psychology
Apply cognitive fluency principles to improve clarity, trust, and conversion.
4react-useeffect-avoid
Guides when NOT to use useEffect and suggests better alternatives. Use when reviewing React code, troubleshooting performance, or considering useEffect for derived state or form resets.
4learn
Extract reusable patterns from the current session. Use when errors, debugging techniques, workarounds, or project conventions should become skills.
3routing
Send inputs to specialized prompts, tools, or models based on input type. Use when different request classes need different handling paths.
3