Claude Code の許可設定(permissions)を Kiro CLI カスタムエージェント設定に翻訳する。 Triggers on "translate-permissions", "Kiro変換", "kiro config", "permission to kiro", "Kiroエージェント", "kiro agent". 将来的に --reverse フラグで Kiro → Claude の逆変換にも対応予定。
Ships in tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Claude Code の許可設定を Kiro CLI カスタムエージェント設定 JSON に翻訳する。
タスク進捗:
- [ ] Step 1: スクリプト実行(設定読み込み+翻訳)
- [ ] Step 2: 出力確認(スキップされたルールの説明)
- [ ] Step 3: 保存先の案内
絶対パスで実行すること(allow ルールにマッチさせるため)。
python3 /path/to/skills/translate-permissions/scripts/translate-permissions.py [OPTIONS]
スキルの Base directory からスクリプトの絶対パスを組み立てる。
| Flag | Description | Default |
|---|---|---|
--agent-name <name> | Kiro エージェント名 | translated-agent |
--description <text> | エージェント説明文 | Translated from Claude Code settings |
--scope <scope> | 読み込み対象: global, project, all | all |
--input <path> | 設定ファイルパス(自動検出の代わり) | 自動検出 |
ユーザーが --agent-name を明示していない場合、カレントリポジトリ名を使用する。
出力 JSON を確認し、以下を説明する:
_skippedClaudeRules に含まれるルール — Kiro に対応がないためスキップされたもの(Skill ルール、MCP deny 等)@server/tool) — サーバー定義 (mcpServers) は手動追加が必要*) が Kiro の regex (.*) に変換されている点を確認toolsSettings の各ツール設定 — read/write/glob/grep の allowedPaths/deniedPaths、shell の allowedCommands/deniedCommands、web_fetch の trusted/blocked以下の Kiro 固有設定はスクリプトでは自動生成しない。必要に応じて手動追加を案内する:
| 設定 | 推奨条件 |
|---|---|
shell.autoAllowReadonly: true | Claude の SAFE 分類コマンド(ls, cat, git status 等)が多い場合 |
shell.denyByDefault: true | Claude で厳格な allow リストを使っている場合 |
glob.allowReadOnly: true / grep.allowReadOnly: true | Claude で Glob/Grep がスコープなし allow の場合 |
マッピングの詳細は references/mapping-rules.md を参照。
生成された JSON の保存先をユーザーに案内する:
.kiro/agents/<agent-name>.json~/.kiro/agents/<agent-name>.json_skippedClaudeRules フィールドは情報提供用。Kiro は未知のフィールドを無視するため、そのまま保存しても問題ない。不要であれば削除を案内する。
User: 「Kiro変換して」 → カレントリポジトリの Claude Code 設定を読み込み、Kiro エージェント JSON を生成。
User: "translate-permissions --scope global" → グローバル設定のみを対象に翻訳。
~/.claude/settings.json または .claude/settings.json が必要。--input で直接パスを指定することも可能。
Kiro のエージェント設定では mcpServers の定義が別途必要。_skippedClaudeRules を参照して手動設定する。
このスキルは以下のツールを自動承認して使用する:
Bash(python3 *translate-permissions.py:*) — 翻訳スクリプトの実行Bash(python3 ~/.claude/plugins/cache/ikeisuke-skills/tools/*/skills/translate-permissions/*) — プラグインキャッシュ経由での実行スクリプトは ~/.claude/settings.json および .claude/settings*.json を読み取り専用で解析する。ファイルの書き換えや外部通信は行わない。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/tools:translate-permissions [--agent-name {name}] [--scope global|project|all]from tools
npx claudepluginhub ikeisuke/claude-skills --plugin tools9 skills in this plugin
/cross-platform-reviewReviews shell scripts and config files for macOS / Linux (incl. WSL2) cross-platform compatibility. Triggers on "cross-platform-review", "クロスプラットフォームレビュー", "macOS Linux 互換", "両対応レビュー", "BSD GNU 差", or requests to audit dotfiles / setup scripts for portability. Catches portability issues that shellcheck / `bash -n` cannot (BSD vs GNU command flags, path differences, OS branching asymmetry).
/gh-api-fallbackgh CLI サブコマンドがトークンスコープ不足で失敗した際に、 gh api (REST/GraphQL) で代替する方法のリファレンス。 Triggers on "gh-api-fallback", "gh api 代替", "gh コマンド失敗", "token scope error", "gh api workaround", "GraphQL mutation".
/git-attributionManages Claude Code's git attribution (Co-Authored-By) settings per repository. Triggers on "署名有効化", "enable attribution", "Claude署名", "git-attribution", or requests to toggle commit/PR attribution in the current repository's .claude/settings.json. Also triggers when asking about the current attribution status.