Kiro CI Recipes

Safety and Slash Commands

AI-in-CI workflows cross a real trust boundary. These recipes separate read-only review, CI blocking, issue writing, and branch writing so teams can adopt only the authority they need.

Trust Boundary Rules

Slash Command Contract

Command Authority Required checks
/open-issue <n> Creates a GitHub issue. PR-only, write/maintain/admin commenter, file-based command parsing, structured REVIEW_DATA.
/kiro-fix <n> Creates a branch and pull request. PR-only, write/maintain/admin commenter, file-based command parsing, structured REVIEW_DATA, scoped write agent.

Shared Parsing

Both slash-command workflows use the same helper scripts:

node scripts/parse-review-command.mjs /open-issue --file comment-body.txt
node scripts/parse-review-command.mjs /kiro-fix --file comment-body.txt
node scripts/check-comment-permission.mjs write

Production Notes

The demo workflows use the public Kiro installer for readability. Production deployments should pin or verify the installer, or install Kiro from an approved package source before secrets are available. Kiro's official headless setup guidance is available in the headless mode docs.