feat: add Kiro CLI support (make install-kiro)#207
Open
naohito2000 wants to merge 1 commit into
Open
Conversation
… branch) - skills/sdpm-vibe/SKILL.md: branch Step 6 dispatch by client — Task tool (Claude Code) keeps the existing sdpm:sdpm-composer flow; subagent tool (Kiro CLI) dispatches parallel stages with role sdpm-composer. If the role is missing, instruct the user to run make install-kiro and restart the session (no auto retry). - clients/kiro/: new. sdpm-composer.json.tmpl (agent config template with file:// prompt reference and mcpServers pinned to the checkout; allowedTools includes read + @SDPM to avoid approval hangs) and install.py (idempotent: symlinks skills into ~/.kiro/skills/, renders the composer agent config, registers the sdpm MCP server via kiro-cli mcp add — global by default, --agent NAME optional). - Makefile: add install-kiro target. - README.md / README_ja.md: add Kiro CLI setup section (clone -> make install-kiro -> kiro-cli chat; git pull tracks updates). Kiro CLI subagents do not inherit the parent's MCP servers or trust, and there is no plugin mechanism to ship agents/sdpm-composer.md — so the composer needs its own agent config with its own mcpServers/allowedTools. The repo stays the single source of truth: skills are symlinks and the composer prompt is a file:// reference.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds first-class Kiro CLI support so external/OSS users can run the full sdpm-vibe flow (Phase 1 orchestration + parallel Phase 2 composer sub-agents) from
kiro-cli chat.Kiro CLI subagents do not inherit the parent's MCP servers or trust (each subagent only reads its own
~/.kiro/agents/<role>.json), and there is no plugin mechanism to distributeagents/sdpm-composer.md— so until now the composer sub-agent could not call the sdpm MCP tools on Kiro CLI.Changes
skills/sdpm-vibe/SKILL.md— Step 6 (dispatch) now branches by client: Task tool (Claude Code) keeps the existingsdpm:sdpm-composerflow unchanged; subagent tool (Kiro CLI) dispatches parallel stages with rolesdpm-composer, reusing the same per-group prompt template. If the role is missing, the skill instructs the user to runmake install-kiroand restart the session (no auto retry — the role list is fixed at session start).clients/kiro/(new)sdpm-composer.json.tmpl— Kiro agent config template.promptis afile://reference toagents/sdpm-composer.md(no copy;git pulltracks),mcpServers.sdpmlaunchesmcp-localviauv, andallowedToolsincludesread+@sdpmto prevent approval hangs.install.py— idempotent installer: symlinksskills/*into~/.kiro/skills/, renders{{CHECKOUT}}and writes~/.kiro/agents/sdpm-composer.json, registers thesdpmMCP server in the global~/.kiro/settings/mcp.jsonviakiro-cli mcp add(skips when present;--agent NAMEtargets a specific agent config; warns but still generates files whenkiro-cliis absent).Makefile—install-kirotarget.README.md/README_ja.md— Kiro CLI setup section (clone →make install-kiro→kiro-cli chat; updates viagit pull, reinstall only when the checkout moves).The repo stays the single source of truth: only the mcpServers checkout path is baked in. Shared workflows under
skill/references/, the CC plugin, ACP configs, andmcp-localare untouched.Testing
install.pyrun twice against a temp$HOME: first run creates symlinks + agent config; second run is a no-op (idempotent)kiro-cli agent validate --path ~/.kiro/agents/sdpm-composer.json→ OKmake install-kiro, thenkiro-cli chat --agent sdpm-composer --no-interactive "call list_styles"→ composer loaded the sdpm MCP server and executedlist_styleswithout an approval prompt (allowedTools effective), returnedaws-proserveinitialize+tools/list→ 21 tools exposedmake lint(ruff, incl.ruff check clients/) andmake test→ 295 passed, 1 skipped