pattern_create
Document reusable development patterns and conventions so they can be discovered and adopted across projects, capturing context, rationale, examples, and scope for consistent implementation.
Instructions
Create a reusable development pattern or convention. Use to document patterns like "always use Zod for validation" or "error responses follow RFC 7807" so they can be discovered and adopted across projects.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"description": "<description>"
},
"name": "pattern_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags for categorization | |
| scope | No | Scope: global (all projects) or project (specific projects). Default: global | |
| title | Yes | Pattern title (e.g., "Zod validation at API boundaries") | |
| category | No | Category (e.g., "validation", "error-handling", "auth", "testing") | |
| description | Yes | Full description with context, rationale, and when to apply this pattern | |
| example_code | No | Code snippet demonstrating the pattern | |
| source_project | No | Slug of the project where this pattern was first established |