check_before_suggesting
Verifies imports, methods, and patterns in code suggestions to prevent AI hallucinations and ensure accuracy before proposing solutions.
Instructions
CRITICAL: AI must use this before suggesting any code to prevent hallucinations
Input Schema
Name | Required | Description | Default |
---|---|---|---|
imports | Yes | List of imports to verify (e.g., ["react", "useState from react"]) | |
methods | Yes | List of methods to verify (e.g., ["Array.prototype.findLast", "String.prototype.replaceAll"]) | |
patterns | Yes | List of patterns to verify (e.g., ["async/await", "error boundaries"]) |
Input Schema (JSON Schema)
{
"properties": {
"imports": {
"description": "List of imports to verify (e.g., [\"react\", \"useState from react\"])",
"items": {
"type": "string"
},
"type": "array"
},
"methods": {
"description": "List of methods to verify (e.g., [\"Array.prototype.findLast\", \"String.prototype.replaceAll\"])",
"items": {
"type": "string"
},
"type": "array"
},
"patterns": {
"description": "List of patterns to verify (e.g., [\"async/await\", \"error boundaries\"])",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"imports",
"methods",
"patterns"
],
"type": "object"
}