Skip to content

[NLPM Audit] Bug report: broken script reference in terraform-search-import #56

Description

@claude

Automated audit: This PR was generated by NLPM, a natural language programming linter, running via claude-code-action. Please evaluate the findings on their merits.

Summary

An automated NLPM (Natural Language Programming Manager) audit of this repository identified 1 verified bug in a skill file. This issue documents the finding and the suggested fix.

NLPM audits NL artifacts (skills, agents, commands) on a 100-point scale. This repository scored 98/100 overall — excellent quality. Only one bug was found that blocks the primary recommended workflow.


Bug: Broken script reference in terraform-search-import/SKILL.md

File: terraform/code-generation/skills/terraform-search-import/SKILL.md
Severity: High — breaks the primary recommended workflow
Priority: 1

Description

The skill references ./scripts/list_resources.sh in two places:

  1. Lines 30–31 — "IMPORTANT: Check Provider Support First" section:

    ./scripts/list_resources.sh aws      # Specific provider
    ./scripts/list_resources.sh          # All configured providers
  2. Lines 55–57 — "Discover Available List Resources" section:

    ./scripts/list_resources.sh aws      # Specific provider
    ./scripts/list_resources.sh          # All configured providers

However, scripts/list_resources.sh does not exist in the repository. Only scripts/validate-structure.sh is present.

Impact

Users following the "IMPORTANT: Check Provider Support First" instruction — which is the first mandatory step in the skill's decision tree — will immediately encounter a missing-file error. The primary recommended workflow is broken for all users.

Suggested Fix

The skill already documents an equivalent inline command (just below the script references):

terraform providers schema -json | jq '.provider_schemas | to_entries | map({key: (.key | split("/")[-1]), value: (.value.list_resource_schemas // {} | keys)})'

Option A (minimal change): Replace the ./scripts/list_resources.sh calls in both code blocks with the above terraform providers schema command, with appropriate comments indicating how to filter by provider.

Option B (preferred if scripts are part of the intended DX): Add scripts/list_resources.sh to the repository — a thin wrapper around the terraform providers schema -json | jq ... command that accepts an optional provider filter argument.


Note on PR submission

This audit ran as a GitHub App (claude[bot]), which does not have permission to fork repositories via the GitHub API. A PR could not be automatically submitted. The fix is straightforward — either approach above can be implemented in a few lines.


NLPM Audit Methodology

  • Tool: NLPM — Natural Language Programming Manager
  • Score: 98/100 (excellent)
  • Artifacts audited: 21 (skills, plugin manifests)
  • Bugs found: 1 (this issue)
  • Quality issues: 18 (vague quantifiers — informational only, not filed as bugs)
  • Security: CLEAR (0 Critical, 0 High, 2 Medium, 1 Low — Medium/Low findings are documentation suggestions, not security vulnerabilities)

Thank you for maintaining such a high-quality repository. The single bug found is a minor oversight that's easy to fix. The overall structure, documentation, and skill design are excellent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions