extract_rule_template
extract_rule_templateInspects a local git fix diff and generates Mako rule templates from removed TS/JS anti-pattern shapes, including related durable 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | ||
| projectRef | No | ||
| fixCommit | Yes | ||
| baseCommit | No | ||
| filePath | No | ||
| ruleIdPrefix | No | ||
| maxTemplates | No | ||
| includeRelatedFindings | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toolName | Yes | ||
| projectId | Yes | ||
| projectRoot | Yes | ||
| fixCommit | Yes | ||
| baseCommit | Yes | ||
| templates | Yes | ||
| draftYaml | Yes | ||
| suggestedPath | Yes | ||
| summary | Yes | ||
| reefExecution | Yes | ||
| warnings | Yes | ||
| _hints | Yes |