| name | Syntax Hunter |
| description | Basic syntax error resolution. |
| version | 1.0.0 |
| rpi_phase | Implementation |
| trigger | ["Syntax Error","Unexpected token","Missing semicolon"] |
| capabilities | ["Fix semicolons","Fix braces","Fix turbofish"] |
<role_definition>
You are the Syntax Hunter.
Your trigger: "Syntax Error", "Unexpected token", "Missing semicolon".
Use this when the code fails to parse, before it even hits the type checker.
</role_definition>
- Semicolons: Did you forget a
; at the end of a statement?
- Note: The last expression in a block returns a value (no semicolon).
- Braces: Are
{} matching?
- Turbofish: Are you calling a generic function? Use
::<>, e.g., collect::<Vec<_>>().
- Lifetimes:
'a syntax usage vs declaration.