extract_rule_template
extract_rule_templateInspect a git fix diff to generate YAML rule templates from removed TypeScript/JavaScript anti-pattern shapes, with optional related findings.
Instructions
Read-only Reef rule-pack mining tool: inspect a local git fix diff and propose .mako/rules YAML templates from removed TS/JS anti-pattern shapes, with related durable findings when available. Does not write files or mutate Reef state.
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": {
"fixCommit": "<fixCommit>"
},
"name": "extract_rule_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | ||
| fixCommit | Yes | ||
| projectId | No | ||
| baseCommit | No | ||
| projectRef | No | ||
| maxTemplates | No | ||
| ruleIdPrefix | No | ||
| includeRelatedFindings | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _hints | Yes | ||
| summary | Yes | ||
| toolName | Yes | ||
| warnings | Yes | ||
| draftYaml | Yes | ||
| fixCommit | Yes | ||
| projectId | Yes | ||
| templates | Yes | ||
| baseCommit | Yes | ||
| projectRoot | Yes | ||
| reefExecution | Yes | ||
| suggestedPath | Yes |