brain_record_golden_pattern
Save verified code snippets as reusable golden patterns so AI agents copy proven boilerplate instead of reinventing it.
Instructions
Save a battle-tested code snippet that agents must copy/adopt instead of reinventing boilerplate.
Args: title: Short descriptive title context: Stack/domain keywords (e.g., 'php mysql pdo') code_snippet: The exact verified working code explanation: Explanation of why this pattern is preferred project: Project identifier or 'global'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| context | Yes | ||
| project | No | global | |
| explanation | No | ||
| code_snippet | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |