Terraform Scanner
@figura/terraform-scannerv2026.07.21.1
01README
LLM-powered Terraform code quality scanner. Analyzes repositories (local or GitLab remote) for naming convention consistency, internal module usage patterns, code organization, and Terraform best practices. Uses LiteLLM-compatible API for intelligent pattern detection and produces structured findings with severity, suggestions, and agent-consumable output.
Methods
- scan — Scan a Terraform repo for code quality issues. Accepts a local path or GitLab project, analyzes all .tf files, and produces findings categorized by naming, modules, organization, and best practices.
Authentication
- LLM: LiteLLM-compatible base URL + API key - GitLab (optional): host + personal access token for remote repo scanning
02Models
@figura/terraform-scannerv2026.07.21.1terraform_scanner.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| llmBaseUrl | string | LiteLLM-compatible API base URL (e.g. http://localhost:4000/v1) |
| llmApiKey | string | LLM API key |
| llmModel | string | Model name for LLM calls (default: claude-haiku-3-5) |
| gitlabHost? | string | GitLab hostname for remote repos (e.g. git.bethelservice.org) |
| gitlabToken? | string | GitLab personal access token for remote repo access |
fn scan()
Scan a Terraform repository for code quality issues.
Resources
scan_results(30d)— Full scan results with findings, patterns, and summaries
03Reports
@figura/terraform-scan-reportworkflow
terraform_scan_report.ts
Terraform scan results formatted for human reading and agent consumption
terraformcode-qualityscanreport
04Stats
A
100 / 100
Downloads
0
Archive size
15.1 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
05Platforms
06Labels