get_patterns
Retrieve coding patterns and conventions for the codebase, including naming, structure, and idioms. Optionally filter by query. Follow existing conventions before writing new code.
Instructions
Get coding patterns and conventions for this codebase.
Returns a catalog of naming conventions, structural patterns, module roles,
and repeated idioms. Use this before writing new code to ensure you follow
the project's existing conventions.
query: optional filter (e.g. "render", "plugin", "test", "handler")
max_tokens: cap output size (default 4000)
exclude_dirs: comma-separated directory prefixes to skip
output_format: "text" (default) or "json"
Examples:
- get_patterns(".") → full convention catalog
- get_patterns(".", query="plugin") → plugin-related patterns
- get_patterns(".", query="render") → rendering conventionsInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | /demo | |
| query | No | ||
| max_tokens | No | ||
| exclude_dirs | No | ||
| output_format | No | text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |