Add terraform-policy-controls plugin with terraform-runtask skill#69
Open
srlynch1 wants to merge 2 commits intohashicorp:mainfrom
Open
Add terraform-policy-controls plugin with terraform-runtask skill#69srlynch1 wants to merge 2 commits intohashicorp:mainfrom
srlynch1 wants to merge 2 commits intohashicorp:mainfrom
Conversation
Retrieves HCP Terraform run task stages, results, and outcomes via the TFE REST API to fill gaps not covered by the MCP terraform tools.
Add the plugin manifest and marketplace entry so the new terraform-runtask skill is installable alongside the other HashiCorp plugins.
Tessl Skill Review Results
Detailed Reviewterraform/policy-controls/skills/terraform-runtask — 92% (PASSED)Suggestions:
Checks: frontmatter validity, required fields, body structure, examples, line count. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
terraform-policy-controlsplugin underterraform/policy-controls/with aterraform-runtaskskill that fetches HCP Terraform/TFE run task stages, results, and outcomes via the REST API — filling a gap not covered by the Terraform MCP server..claude-plugin/marketplace.jsonso it's discoverable alongside the other HashiCorp plugins.The skill ships a shell script (
scripts/get-run-task-results.sh) that authenticates withTFE_TOKEN, sideloads task results viainclude=task_results, then fetches each outcome's HTML body for rich reporting. The SKILL.md guides Claude to present results in a four-tier structure (summary → stages → task results → outcomes) and synthesize actionable findings from the HTML bodies.Test plan
jq .parsesterraform/policy-controls/.claude-plugin/plugin.jsonand.claude-plugin/marketplace.jsonwithout error./terraform/policy-controls/skills/terraform-runtask/scripts/get-run-task-results.sh run-<id>returns valid JSON withtask_stages,summary, and per-outcomebody_htmlcontent against a real HCP Terraform runTFE_TOKEN, invalid run ID format, 401/404 responses.../runs/run-abc123) correctly extracts run ID and auto-detectsTFE_HOSTNAMEterraform-runtaskskill activates on relevant prompts ("check the run tasks", "get task results for run-xxx")