
reedom-kiro-detect-specs
Detect Kiro specs with modified files in current branch. Use before PRs, spec-specific tests, or CI filtering.
Install
/plugin install reedom-kiro-detect-specs@reedom-commands-and-skillsRun it inside Claude Code after adding the marketplace with /plugin marketplace add reedom/claude-code-commands.
Contents
Discovered from sourceSkills 1
Modified Kiro Specs Detection
IMPORTANT:
Check .kiro/specs exists via ls before start.
If absent, quit immediately with empty list.
Usage
./scripts/main.sh [-b|--branch <branch>]
Options:
-b,--branch: Base branch (default: repo default)
Output
Newline-separated spec names, sorted:
user-auth
product-listing
Empty if no modified specs.
main.sh Internal Detection Logic
- List all specs from
.kiro/specs/ - Get modified files via
git diff <branch>...HEAD - Match files containing
/<spec-name>/pattern - Return distinct matches sorted alphabetically
Examples
# Default branch
./scripts/main.sh
# Specific branch
./scripts/main.sh -b develop
# Count
./scripts/main.sh | wc -l
# CI loop
for spec in $(./scripts/main.sh); do
run_tests "$spec"
done
Sponsors
Details
- Marketplace
- reedom/claude-code-commands
- Source
- kiro-detect-specs
- Author
- HANAI Tohru
- Category
- Productivity
- Keywords
- kiro