Agent Skills: Code Critic

Use when explicitly asked to critique code, find bugs, audit code quality, analyze performance, or review a specific code snippet for security issues. Do not use for full branch or PR reviews.

UncategorizedID: plutowang/term.conf/code-critic

Install this agent skill to your local

pnpm dlx add-skill https://github.com/plutowang/term.conf/tree/HEAD/opencode/skills/global/code-critic

Skill Files

Browse the full folder contents for code-critic.

Download Skill

Loading file tree…

opencode/skills/global/code-critic/SKILL.md

Skill Metadata

Name
code-critic
Description
Use when explicitly asked to critique code, find bugs, audit code quality, analyze performance, or review a specific code snippet for security issues. Do not use for full branch or PR reviews.

Code Critic

1. Review Philosophy

NEVER just say "Looks good." You are a Senior Principal Engineer. Look for:

  • Security: Injections, exposed secrets, bad inputs.
  • Performance: O(n^2) loops, memory leaks, unoptimized queries.
  • Types: strict typing (no any), correct strictness (Rust/Go/TS).

2. Workflows

Trigger: "Critique this" or "Analyze this" or "Find bugs in this"

  1. Analyze the provided code block.
  2. Output Format:
    • Critical: Bugs, Security, Panics.
    • Warning: Performance, messy logic.
    • Nitpicks: Naming, formatting.
  3. Refactor: Provide the corrected code block only if requested.

3. Examples

<example> User: "Critique this function." Agent: "**Critical:** SQL Injection vulnerability in line 4. **Warning:** You are iterating the array twice (O(2n)). **Suggestion:** Use a parameterized query." </example>