Skip to content

feat: Add Kiro Power support with POWER.md generation and manifest sync#17

Draft
antonbabenko wants to merge 2 commits into
masterfrom
claude/kiro-powers-integration-9MkMl
Draft

feat: Add Kiro Power support with POWER.md generation and manifest sync#17
antonbabenko wants to merge 2 commits into
masterfrom
claude/kiro-powers-integration-9MkMl

Conversation

@antonbabenko
Copy link
Copy Markdown
Owner

Description

Plugin(s) affected: Infrastructure / CI tooling (all plugins)

Type of change:

  • New plugin
  • New content (best practices, patterns, guidance)
  • Fix (correcting outdated or incorrect information)
  • Refactor (reorganizing or improving clarity)
  • Documentation (README, CONTRIBUTING, CLAUDE.md)
  • CI / tooling

Summary:

This PR adds Kiro Power support to the agent-plugins marketplace, enabling inline plugins to be installed as Kiro Powers alongside their Claude Code and Codex/agents availability.

Key Changes

  1. New build_power.py script (.github/scripts/build_power.py):

    • Generates POWER.md from SKILL.md as a CI-owned artifact (like .codex-plugin/plugin.json)
    • Extracts frontmatter (name, description, author, version) from SKILL.md
    • Reuses displayName and keywords from .codex-plugin/plugin.json
    • Rewrites relative links in references to resolve from plugin root
    • Optionally appends MCP Tools trailer if mcp.json exists
    • Supports --check mode for CI validation
    • Pure stdlib (no PyYAML); deterministic and idempotent
  2. New .kiro/plugins/marketplace.json:

    • Mirrors .agents/plugins/marketplace.json for external plugins (pin-sync parity)
    • Includes local entry for code-intelligence with source: { source: local, path: ./plugins/code-intelligence }
    • Ensures three-way manifest consistency (Claude, Codex/agents, Kiro)
  3. Generated plugins/code-intelligence/POWER.md:

    • Example output showing the shape: frontmatter + banner comment + rewritten body + optional MCP trailer
    • Never hand-edited; regenerated by release pipeline
  4. CI validation enhancements (validate.yml):

    • New "Validate inline POWER.md (Kiro) sync" job: runs build_power.py --check on all POWER.md files
    • Verifies frontmatter completeness (name, displayName, description, keywords, author, version)
    • Validates keywords is a non-empty list
    • Extended manifest sync check to include .kiro/plugins/marketplace.json alongside Claude and agents
    • Updated link checker to skip POWER.md files (generated content)
    • Updated trigger paths to include .kiro/plugins/** and .github/scripts/**
  5. External plugin update pipeline (update_external_plugins.py, update-external-plugins.yml):

    • Extended to sync .kiro/plugins/marketplace.json alongside .claude-plugin and .agents
    • Validates all three manifests stay in sync (repo URL and ref)
    • Regenerates POWER.md for inline plugins during release
  6. Release pipeline (automated-release.yml):

    • Added step to regenerate POWER.md from updated SKILL.md during inline plugin releases
    • Ensures version bumps are reflected in all artifacts
  7. Documentation updates (CLAUDE.md, CONTRIBUTING.md, README.md):

    • Documented .kiro/plugins/marketplace.json and its role (mirror for drift guard, not consumed for install today)
    • Added Kiro Power installation instructions to README
    • Clarified that POWER.md is generated, CI-owned, never hand-edited
    • Updated contributing guidelines for adding inline plugins (step 6: optional Kiro Power generation)
    • Explained the three-manifest sync requirement for external plugins

Design Rationale

  • Single source of truth: SKILL.md is the canonical source; POWER.md is derived (like plugin.json)
  • Manifest parity: Three manifests (Claude, Codex/agents, Kiro) stay in sync via CI validation and the update workflow
  • Kiro install model: Kiro installs

https://claude.ai/code/session_01R8XutkcqBDWDCEWMJJ8w2f

claude and others added 2 commits May 19, 2026 17:47
Add a stdlib POWER.md generator (build_power.py) that derives a Kiro
Power from each inline plugin's SKILL.md (single source of truth;
references stay put, links rewritten), and generate one for
code-intelligence. Wire it into the release pipeline and validate.yml
(--check blocks drift). Add a third .kiro/plugins/marketplace.json
mirroring .agents for external-pin parity, with the auto-update script
and both sync checks extended to keep all three manifests in lockstep.
Kiro installs Powers by GitHub URL, not this manifest - documented as a
drift guard, not an install source.

https://claude.ai/code/session_01R8XutkcqBDWDCEWMJJ8w2f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants