Skip to content

feat: add Kiro power package (Agent Plugins 1.0.0) - #10

Open
alexkutsan wants to merge 5 commits into
mainfrom
feat/kiro-power
Open

alexkutsan wants to merge 5 commits into
mainfrom
feat/kiro-power

Conversation

@alexkutsan

@alexkutsan alexkutsan commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a self-contained Kiro power package under kiro/, built to the Agent Plugins 1.0.0 spec. The package ships Bright's agentic security-testing workflow to both Kiro IDE and Kiro CLI, installed at the system level (no per-repo copy).

Scope is deliberately minimal and self-contained: only the new kiro/ package, one additive change to scripts/check_package_sync.py, and a short pointer in the root README.md. No bright-gate, no test changes, no edits to other platforms' files.

What's in the package (kiro/)

  • plugin.json — Agent Plugins 1.0.0 manifest ($schema = .../1.0.0/plugin.schema.json).
  • mcp.json — Bright MCP server wired as streamable-http to https://${BRIGHT_HOSTNAME}/mcp with Authorization: Api-Key ${BRIGHT_TOKEN} ($schema = .../1.0.0/mcp.schema.json).
  • LICENSE, README.md — package license and system-level install docs.
  • 10 skills = 7 step skills + 3 agents-as-skills:
    • Step skills: compose-har, register-entrypoints, run-scan, setup-auth, setup-repeater, fix-and-validate, analyze-codebase.
    • Agents-as-skills: bright-discovery, bright-application-testing, bright-remediation-loop.

Why agents-as-skills

The Agent Plugins 1.0.0 spec has no portable agent component — there is no standard way to ship a Kiro sub-agent inside a power. To keep the package self-contained and installable with a single action, the three agent-level workflows are packaged as skills instead of agents. Users get the same capabilities without a separate manual agent-wiring step.

Repo-level change

scripts/check_package_sync.py — additive only:

  • kiro added to PACKAGES
  • kiro/skills/{agent}/SKILL.md added to AGENT_VARIANTS
  • kiro/plugin.json added to PLUGIN_MANIFESTS

No bright-gate logic, no weakened or removed checks. The existing cross-package sync guarantees now cover Kiro too.

Install (system level)

The package installs at the system level and works for both surfaces (see kiro/README.md for exact steps):

  • Kiro IDE — add the power via the IDE's power/plugin install flow.
  • Kiro CLI — install via the CLI path documented in the README.

Tested

  • Minimal-diff check — git diff --stat origin/main lists only kiro/**, scripts/check_package_sync.py, and root README.md.
  • Package sync check — scripts/check_package_sync.py reports all 63 skill and agent files in sync across 6 packages.
  • JSON / $schema validation — kiro/plugin.json and kiro/mcp.json parse cleanly and carry the correct Agent Plugins 1.0.0 $schema URLs.

Not verified headlessly

  • A live IDE "Add power" install could not be exercised in this environment.
  • Any Kiro CLI install path not explicitly confirmed by the docs — the README reflects the documented flow, but the CLI install was not run end-to-end here.

… and docs

Add kiro/ as the sixth tool package, packaged as an Agent Plugins 1.0.0
"power". Self-contained and minimal: no bright-gate, no kiro/agents/, no
kiro/scripts/, no tests, no .github/workflows changes.

Contents (14 files under kiro/):
- kiro/plugin.json  — Agent Plugins manifest; name bright-security, version
  0.2.0, MIT; no displayName (schema is closed).
- kiro/mcp.json     — portable Bright MCP server (brightsec), transport
  streamable-http, url https://$\{BRIGHT_HOSTNAME\}/mcp, Authorization: Api-Key
  ${BRIGHT_TOKEN}.
- kiro/skills/*/SKILL.md ×10 — 7 step skills (bodies byte-identical to
  claude-code/skills) + 3 orchestration workflows as skills (bodies
  byte-identical to claude-code/agents, frontmatter reduced to name +
  description, same shape as codex). Agent Plugins has no portable agent type.
- kiro/README.md    — system/user-level install for both Kiro IDE (Powers
  panel) and Kiro CLI (~/.kiro/skills + ~/.kiro/settings/mcp.json), env vars,
  project scoping, agents-as-skills rationale, MCP portability caveat, and a
  Verification status section listing what still needs a live Kiro pass.
- kiro/LICENSE      — MIT, mirroring the GUI packages.

scripts/check_package_sync.py — additive only: kiro added to PACKAGES,
AGENT_VARIANTS (kiro/skills/{agent}/SKILL.md), and PLUGIN_MANIFESTS. No
IDENTICAL_FILES, no bright-gate, no weakened checks.

README.md (root) — Kiro added to the intro, the Packages list, and the
agents-as-skills note.

Verification (run from the worktree):
- python3 scripts/check_package_sync.py --fix  -> "Already in sync; nothing to
  write." (confirms the 10 skill bodies are byte-identical to canonical).
- python3 scripts/check_package_sync.py         -> "All 63 skill and agent
  files are in sync across 6 packages.", exit 0.
- python3 -m json.tool on kiro/plugin.json and kiro/mcp.json -> valid JSON.
- field assertions pass: plugin $schema = plugin.schema.json, name
  bright-security, version 0.2.0, no displayName; mcp $schema = mcp.schema.json,
  brightsec type streamable-http, url and Authorization header as specified.
- git diff --stat origin/main lists only kiro/**, scripts/check_package_sync.py,
  and root README.md — no other-platform files, no tests/, no bright-gate, no
  .github/workflows.

Known LOW tradeoff (documented in README, not a defect): the portable mcp.json
keeps ${VAR} references, which Agent Plugins §7.2.1 says a strict client must
not expand; works on Kiro by design.
Addresses the blocking MEDIUM review finding (kiro-power-review.json): the
documented Kiro CLI install used `cp -R kiro/skills/* ~/.kiro/skills/`, which
merges into Kiro's flat global skill namespace and can silently overwrite a
same-named user skill (setup-auth, run-scan, analyze-codebase, ...); uninstall
then blindly removed those ten names, so removing Bright could delete a
pre-existing skill.

Fix (README-only, no behavior/name/version change):
- CLI install step B.2 now preflights all ten destination names and aborts
  before copying if any already exists, copying only when none pre-exist, and
  prints exactly which dirs it created. Points conflicts at a workspace
  .kiro/skills or selective symlinks instead.
- Uninstall now drives removal from the repo's own skill-name list (the ten
  Bright dirs) and leaves same-named skills the user owns; mcp.json edit removes
  only the brightsec key.
- CLI update note corrected to reflect the owned-names re-copy.

LOW findings #2 (live Kiro acceptance pass) and #3 (Kiro-specific MCP
placeholder expansion) are non-code / intentional-and-documented; the README
Verification-status and Portability-caveat sections already carry the
qualifiers, left in place.

Verification (run in worktree, cwd = repo root):
- git diff --name-only origin/main -> only kiro/**, scripts/check_package_sync.py,
  README.md (root). No other-platform files, tests/, bright-gate, or workflows.
- python3 scripts/check_package_sync.py --fix -> "Already in sync; nothing to write."
- python3 scripts/check_package_sync.py -> "All 63 skill and agent files are in
  sync across 6 packages." exit 0.
- python3 -m json.tool kiro/plugin.json / kiro/mcp.json -> valid.
- plugin.json: $schema=plugin.schema.json, name=bright-security, version=0.2.0,
  no displayName. mcp.json: $schema=mcp.schema.json, type=streamable-http,
  url=https://${BRIGHT_HOSTNAME}/mcp, Authorization=Api-Key ${BRIGHT_TOKEN}.
- markdownlint-cli -c .markdownlint.json kiro/README.md README.md -> clean.
- The 10 kiro skill bodies are byte-identical to canonical claude-code
  (enforced by the sync check above).
Resolves the blocking MEDIUM review finding (kiro-power-review.json): the
selective-symlink fallback preserved a pre-existing user-owned skill of a
conflicting name during install, but the uninstall loop removed all ten
Bright skill names unconditionally, so it could delete the user-owned skill
the fallback intentionally left alone.

Docs-only change (no plugin name/version/behavior or agents-as-skills change):
- Selective fallback now installs the non-conflicting names as SYMLINKS into
  the clone (ln -s), leaving any conflicting name untouched, so uninstall can
  distinguish this power's entries from a same-named skill the user owns.
- Uninstall loop is ownership-aware: a name is removed only when it is a
  symlink resolving into THIS clone's kiro/skills tree; a real directory is
  removed under the collision-safe copy flow (preflight guaranteed none
  pre-existed), with an explicit note to remove by hand if a name was reused.

Verification (run from the worktree root):
- git diff --stat origin/main: only kiro/**, scripts/check_package_sync.py,
  README.md (root). No other-platform files, tests/, bright-gate, or workflows.
- python3 scripts/check_package_sync.py --fix -> 'Already in sync; nothing to
  write.'; then python3 scripts/check_package_sync.py -> exit 0, 'All 63 skill
  and agent files are in sync across 6 packages' (confirms the 10 kiro skill
  bodies are byte-identical to canonical claude-code).
- kiro/plugin.json and kiro/mcp.json parse as valid JSON with correct $schema;
  name=bright-security, version=0.2.0, mcp type=streamable-http, no displayName.
- markdownlint-cli2 on kiro/README.md and README.md: 0 issues.
Rewrite the Kiro CLI install section to the behavior verified live on
kiro-cli 2.32.0: install with the native `kiro-cli powers install <path>`
command, which copies the power into ~/.kiro/powers/installed/ and manages
the bundled brightsec MCP server automatically. Remove the previously
documented manual flow (copying skills into ~/.kiro/skills/ and hand-editing
~/.kiro/settings/mcp.json), which does not match how kiro-cli installs powers.

- CLI argument is a catalog name or local path; a GitHub URL is rejected, so
  document the clone-then-path flow.
- Uninstall is `kiro-cli powers uninstall bright-security` (MCP goes with it).
- Verification status now records the live kiro-cli 2.32.0 pass (install,
  skills visible, brightsec MCP connected and returned live projects, GitHub
  URL rejected, clean uninstall).

Docs-only; no change to skills, manifests, or the sync check.
@alexkutsan
alexkutsan requested a balanced review from Copilot October 19, 2026 17:22
@alexkutsan alexkutsan changed the title Add Kiro power package (Agent Plugins 1.0.0) feat: add Kiro power package (Agent Plugins 1.0.0) Oct 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The installation verification command removes the package, and troubleshooting instructions expose the API token.

3 open issues
What changed in this PR

Adds a self-contained Kiro package for Bright’s existing security-testing workflows, with shared instructions synchronized across six platforms.

Changes:

  • Adds ten skills, plugin metadata, and Bright MCP configuration.
  • Documents Kiro installation and usage.
  • Extends package-sync checks to include Kiro.
File Description
scripts/​check_package_sync.py Includes Kiro in synchronization checks.
README.md Adds the Kiro package pointer.
kiro/​skills/​setup-repeater/​SKILL.md Configures projects and private-target connectivity.
kiro/​skills/​setup-auth/​SKILL.md Maps and verifies authentication.
kiro/​skills/​run-scan/​SKILL.md Selects and runs security scans.
kiro/​skills/​register-entrypoints/​SKILL.md Registers and verifies attack surfaces.
kiro/​skills/​fix-and-validate/​SKILL.md Guides remediation and validation.
kiro/​skills/​compose-har/​SKILL.md Supports bulk registration through HAR files.
kiro/​skills/​bright-remediation-loop/​SKILL.md Orchestrates scanning and remediation.
kiro/​skills/​bright-discovery/​SKILL.md Orchestrates discovery without scanning.
kiro/​skills/​bright-application-testing/​SKILL.md Orchestrates application security testing.
kiro/​skills/​analyze-codebase/​SKILL.md Inventories endpoints and safety exclusions.
kiro/​README.md Documents installation, usage, and safety.
kiro/​plugin.json Declares package metadata.
kiro/​mcp.json Configures the Bright MCP connection.
kiro/​LICENSE Adds the package’s MIT license.

Review effort: Balanced

Comment thread kiro/README.md Resolved
Comment thread kiro/README.md Resolved
Comment thread kiro/README.md Resolved
- Install verification no longer uninstalls the power; it starts a chat and
  checks /mcp and the / skill menu instead. Uninstall stays in its own section.
- Troubleshooting checks the token with `test -n` (set/MISSING) instead of
  `echo $BRIGHT_TOKEN`, so the credential is never printed to the terminal.
- CLI update path corrected to `./kiro` (relative to the clone root, where
  `git pull` runs), not the nonexistent nested `./bright-ai-plugins/kiro`.

Docs-only.
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