Add Kiro Power support with POWER.md generation and MCP integration#32
Draft
antonbabenko wants to merge 2 commits into
Draft
Add Kiro Power support with POWER.md generation and MCP integration#32antonbabenko wants to merge 2 commits into
antonbabenko wants to merge 2 commits into
Conversation
Generate a root POWER.md from SKILL.md (single source of truth; references are not moved, links are rewritten to resolve from repo root) plus an optional read-only terraform-mcp-server mcp.json. The release pre-commit hook regenerates and stages POWER.md alongside the SKILL.md/codex version sync so tags carry an in-sync tree, and validate.yml runs build-power.js --check to block drift. https://claude.ai/code/session_01R8XutkcqBDWDCEWMJJ8w2f
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.
Description
This PR adds support for distributing the terraform-skill as a Kiro Power alongside the existing Claude Code plugin. It introduces:
POWER.md generation — A new build script (
build-power.js) that generatesPOWER.mdfrom the single source of truth (SKILL.md), rewriting relative links to resolve from the repo root. The generated file includes frontmatter (name, displayName, keywords, author, version) sourced fromSKILL.mdand.codex-plugin/plugin.json.MCP integration — An optional
mcp.jsonthat registers the HashiCorpterraform-mcp-serverfor read-only Terraform Registry and provider/module documentation lookups. The Kiro Power references this server in its documentation.CI validation — Extended
validate.ymlto check thatPOWER.mdis in sync withSKILL.md(viabuild-power.js --check), validate frontmatter structure, and confirm MCP servers referenced inmcp.jsonare mentioned inPOWER.md.Release automation — Updated
pre-commit.jsto regeneratePOWER.mdduring the release process, ensuring the release commit and tag carry an in-sync tree (same pattern as the Codex manifest).Documentation — Updated
CLAUDE.mdandREADME.mdto explain the Kiro Power distribution channel and how users can install it.Type of change:
Summary:
The terraform-skill now ships as a Kiro Power in addition to the Claude Code plugin. Users can install it via Kiro's "Add power from GitHub" feature. The skill content remains in
SKILL.md(single source of truth);POWER.mdis generated deterministically and CI-owned, never hand-edited. This mirrors the existing pattern for.codex-plugin/plugin.json.Testing Evidence
Scenarios Tested
Baseline Behavior (WITHOUT changes)
No POWER.md or MCP support existed. Users could only install via Claude Code plugin or manual symlink.
Compliance Behavior (WITH changes)
Evidence of Improvement
Standards Compliance Checklist
Frontmatter (POWER.md)
.codex-plugin/plugin.jsonToken Efficiency
https://claude.ai/code/session_01R8XutkcqBDWDCEWMJJ8w2f