AGENT SKILL
review
Run a Kiro code review against local git state
使用场景代码审查
- License 许可
- Apache-2.0
- 最近更新
- 2026-04-19
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- review
- description
- Run a Kiro code review against local git state
- allowed-tools
- Bash(node:*), Bash(git:*), AskUserQuestion
- argument-hint
- [--wait|--background] [--base <ref>]
- disable-model-invocation
- true
03 SKILL.md 正文
Run a Kiro review through the companion script.
Raw slash-command arguments:
$ARGUMENTS
Core constraint:
- This command is review-only.
- Do not fix issues, apply patches, or suggest that you are about to make changes.
- Your only job is to run the review and return Kiro's output verbatim to the user.
Execution mode rules:
- If the raw arguments include
--wait, do not ask. Run the review in the foreground. - If the raw arguments include
--background, do not ask. Run the review in a Claude background task. - Otherwise, estimate the review size before asking:
- For working-tree review, start with
git status --short --untracked-files=all. - For working-tree review, also inspect both
git diff --shortstat --cachedandgit diff --shortstat. - For base-branch review, use
git diff --shortstat <base>...HEAD. - Treat untracked files or directories as reviewable work even when
git diff --shortstatis empty. - Only conclude there is nothing to review when the relevant working-tree status is empty or the explicit branch diff is empty.
- Recommend waiting only when the review is clearly tiny, roughly 1-2 files total and no sign of a broader directory-sized change.
- In every other case, including unclear size, recommend background.
- When in doubt, run the review instead of declaring that there is nothing to review.
- For working-tree review, start with
- Then use
AskUserQuestionexactly once with two options, putting the recommended option first and suffixing its label with(Recommended):Wait for resultsRun in background
Argument handling:
- Preserve the user's arguments exactly.
- Do not strip
--waitor--backgroundyourself. - Do not add extra review instructions or rewrite the user's intent.
- The companion script parses
--waitand--background, but Claude Code'sBash(..., run_in_background: true)is what actually detaches the run.
Foreground flow:
- Run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/kiro-companion.mjs" review "$ARGUMENTS"
- Return the command stdout verbatim, exactly as-is.
- Do not paraphrase, summarize, or add commentary before or after it.
- Do not fix any issues mentioned in the review output.
Background flow:
- Launch the review with
Bashin the background:
Bash({
command: `node "${CLAUDE_PLUGIN_ROOT}/scripts/kiro-companion.mjs" review "$ARGUMENTS"`,
description: "Kiro review",
run_in_background: true
})
- Do not call
BashOutputor wait for completion in this turn. - After launching the command, tell the user: "Kiro review started in the background. Check
/kiro:statusfor progress."
04 同仓库更多 Skills
translate
Convert natural language to a shell command using Kiro
★ 1
status
Show active and recent Kiro jobs for this workspace
★ 1
setup
Check whether kiro-cli is installed and authenticated
★ 1
result
Show the output for a finished Kiro job
★ 1
kiro-cli-runtime
Internal helper contract for calling the kiro-companion runtime from Claude Code
★ 1
chat
Send a task or question to Kiro CLI
★ 1