name: review
about: Critically analyze code for bugs and flaws using a powerful model
clipboard: true
notify: true
args:
- name: query
short: 'q'
expect: string
help: The code block or function to review
default: '{system_clipboard}'
- name: to
short: 'l'
expect: string
help: Target language (e.g., Russian, English, Chinese)
default: Russian
actions:
- tag: tag_review
run: llm_large
expect: string
action: |
[Task]
Analyze the provided code for logic flaws, concurrency bugs, memory leaks, and performance bottlenecks.
[Rules]
- Write strictly in the language specified in [User]. Keep feedback concise, blunt, and highly technical.
- If the code has no flaws, output exactly one word: PERFECT.
- Format each issue as a clear block: standard bullet point for the description, followed by a new line with a prefix " Fix: " and the exact 1-line code patch.
- Do NOT write explanation inside the fix line, provide ONLY the clean code patch.
[User]
{to}
[Code to Review]
{query}