Skip to content

feat: add Kiro as a supported platform#267

Merged
tirth8205 merged 1 commit intotirth8205:mainfrom
jindalarpit:feature/kiro-platform-support
Apr 14, 2026
Merged

feat: add Kiro as a supported platform#267
tirth8205 merged 1 commit intotirth8205:mainfrom
jindalarpit:feature/kiro-platform-support

Conversation

@jindalarpit
Copy link
Copy Markdown
Contributor

Add Kiro as a supported platform

Summary

Adds Kiro as a fully supported AI coding platform in code-review-graph. Kiro uses .kiro/settings/mcp.json for MCP server configuration (same JSON object format as Claude Code's .mcp.json) and .kiro/steering/*.md for agent instruction files (analogous to CLAUDE.md).

What changed

code_review_graph/skills.py

  • Added "kiro" entry to the PLATFORMS dictionary with config path .kiro/settings/mcp.json, mcpServers key, object format, and needs_type=True
  • Added workspace-level detection in install_platform_configs(): when target="all", Kiro is included if repo_root/.kiro exists (even if ~/.kiro does not)
  • Added ".kiro/steering/code-review-graph.md": ("kiro",) to _PLATFORM_INSTRUCTION_FILES
  • Added file_path.parent.mkdir(parents=True, exist_ok=True) in _inject_instructions() to support nested paths like .kiro/steering/

code_review_graph/cli.py

  • Added "kiro" to --platform choices on both install and init commands

tests/test_skills.py

  • Added TestKiroPlatform class with 9 unit tests covering: PLATFORMS entry validation, MCP config creation, existing server preservation, duplicate prevention, steering file creation, steering idempotency, all-platform detection, workspace-level detection, and dry-run behavior
  • Updated two existing assertions in TestInjectPlatformInstructionsFiltering to include the new kiro steering file in the expected set

diagrams/generate_diagrams.py

  • Added Kiro to the d8() platform diagram with config path .kiro/settings/mcp.json
  • Regenerated .excalidraw file (PNG re-export from excalidraw.com still needed)

README.md

  • Added --platform kiro example to Quick Start
  • Updated platform lists in image alt text and footer

Detection logic

Condition Kiro detected?
~/.kiro exists Yes (via detect lambda)
<repo_root>/.kiro exists Yes (via workspace-level check in install_platform_configs)
Neither exists No

How to test

# Run the Kiro-specific tests
pytest tests/test_skills.py::TestKiroPlatform -v

# Run the full suite
pytest tests/ --tb=short -q

# Lint
ruff check code_review_graph/

Usage

code-review-graph install --platform kiro    # configure only Kiro
code-review-graph install                    # auto-detects Kiro if .kiro/ exists

This creates:

  • .kiro/settings/mcp.json with the code-review-graph MCP server entry
  • .kiro/steering/code-review-graph.md with graph-usage instructions

@tirth8205 tirth8205 merged commit 779b376 into tirth8205:main Apr 14, 2026
1 check passed
tirth8205 added a commit that referenced this pull request Apr 14, 2026
15 new features: hub/bridge node detection, knowledge gap analysis,
surprise scoring, suggested questions, BFS/DFS traversal, edge
confidence scoring, export formats (GraphML/Neo4j/Obsidian/SVG),
graph diff, token benchmarking, memory loop, community auto-splitting,
4 new languages (Zig/PowerShell/Julia/Svelte), visualization
enhancements (degree-scaled nodes, community legend toggles).

6 community PRs merged: #127, #184, #202, #249, #253, #267.
28 MCP tools (was 22). Schema v9. 788 tests pass.

README translations: zh-CN, ja-JP, ko-KR, hi-IN.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants