Skip to content
Back to skills

Configuring Kiro

ASecurity

Use when setting up or debugging Kiro IDE or CLI v3 hooks, command actions, or agent actions. Triggers on `.kiro/hooks` JSON, SessionStart, UserPromptSubmit, PreToolUse, PreTaskExec, file events, exit-code blocking, generated hooks, or testing and enabling hooks, even when the user doesn't say 'Kiro hook'.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsrustgotestingdebuggingdocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill configuring-kiro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Configuring Kiro?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Configuring Kiro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-configuring-kiro/badge)](https://www.skillsdirectory.com/skills/xonovex-configuring-kiro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: configuring-kiro
description: "Use when setting up or debugging Kiro IDE or CLI v3 hooks, command actions, or agent actions. Triggers on `.kiro/hooks` JSON, SessionStart, UserPromptSubmit, PreToolUse, PreTaskExec, file events, exit-code blocking, generated hooks, or testing and enabling hooks, even when the user doesn't say 'Kiro hook'."
---

# Kiro Hooks

Configure Kiro's native hook and action surface without inventing unsupported guarantees or a universal hook file.

## Essentials

- **Pin schema and surface** - Record v1 hook schema, IDE/CLI surface, documentation snapshot, and observed runtime.
- **Prefer command actions** - Use deterministic commands for policy, formatting, validation, and audit.
- **Bound agent actions** - Treat Ask Kiro actions as model execution with credits, authority, and output limits.
- **Use exit code 2 precisely** - Blocking applies only to documented pre-events.
- **Respect workspace roots** - File events and configuration are scoped to the defining workspace root.
- **Onboard transactionally** - Follow **configuring-harness-integrations**; treat a generated hook as an untrusted draft.

## Gotchas

- Command exit code `2` blocks only `PreToolUse`, `UserPromptSubmit`, and `PreTaskExec` in the v1 reference.
- Other non-zero exits warn and normally continue.
- Agent actions start another agent loop and consume credits; they are not deterministic commands.
- Setting timeout `0` disables the command timeout and violates bounded-module defaults.
- Generated hook configurations must be reviewed before saving or sharing.

## Example

A pre-tool protected-path hook uses a v1 workspace JSON file and a bounded command action; its preview includes the matcher, exit-2 denial, command timeout, workspace trust, stdout/stderr exposure, enable flag, test cases, and removal rollback.

## Progressive Disclosure

- Read [references/capabilities.md](references/capabilities.md) - Load when mapping semantic intents to native events, handlers, guarantees, versions, ordering, context, or limitations
- Read [references/onboarding.md](references/onboarding.md) - Load when discovering, previewing, applying, verifying, disabling, rolling back, updating, or detecting drift
- Read [references/patterns.md](references/patterns.md) - Load when translating deterministic hooks, model evaluators, specialist agents, or managed adoption recipes

Files in this skill

  • SKILL.md2.3 KB
  • eval-output.json1.9 KB
  • eval-trigger.json4.9 KB
  • moon.yml86 B
  • references/capabilities.md2.1 KB
  • references/onboarding.md2.5 KB
  • references/patterns.md1.1 KB
  • sources.json2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.