orchex 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- orchex-0.1.0/.gitignore +50 -0
- orchex-0.1.0/CLAUDE.md +34 -0
- orchex-0.1.0/PKG-INFO +276 -0
- orchex-0.1.0/README.md +263 -0
- orchex-0.1.0/ai_orchestra/__init__.py +3 -0
- orchex-0.1.0/ai_orchestra/cli.py +64 -0
- orchex-0.1.0/packages/README.md +190 -0
- orchex-0.1.0/packages/agent-routing/agents/ai-architect.md +137 -0
- orchex-0.1.0/packages/agent-routing/agents/ai-dev.md +161 -0
- orchex-0.1.0/packages/agent-routing/agents/api-designer.md +118 -0
- orchex-0.1.0/packages/agent-routing/agents/architect.md +110 -0
- orchex-0.1.0/packages/agent-routing/agents/architecture-reviewer.md +117 -0
- orchex-0.1.0/packages/agent-routing/agents/auth-designer.md +111 -0
- orchex-0.1.0/packages/agent-routing/agents/backend-go-dev.md +157 -0
- orchex-0.1.0/packages/agent-routing/agents/backend-python-dev.md +142 -0
- orchex-0.1.0/packages/agent-routing/agents/code-reviewer.md +110 -0
- orchex-0.1.0/packages/agent-routing/agents/data-modeler.md +114 -0
- orchex-0.1.0/packages/agent-routing/agents/debugger.md +136 -0
- orchex-0.1.0/packages/agent-routing/agents/docs-writer.md +122 -0
- orchex-0.1.0/packages/agent-routing/agents/frontend-dev.md +142 -0
- orchex-0.1.0/packages/agent-routing/agents/general-purpose.md +191 -0
- orchex-0.1.0/packages/agent-routing/agents/performance-reviewer.md +119 -0
- orchex-0.1.0/packages/agent-routing/agents/planner.md +61 -0
- orchex-0.1.0/packages/agent-routing/agents/prompt-engineer.md +101 -0
- orchex-0.1.0/packages/agent-routing/agents/rag-engineer.md +147 -0
- orchex-0.1.0/packages/agent-routing/agents/requirements.md +65 -0
- orchex-0.1.0/packages/agent-routing/agents/researcher.md +121 -0
- orchex-0.1.0/packages/agent-routing/agents/security-reviewer.md +113 -0
- orchex-0.1.0/packages/agent-routing/agents/spec-reviewer.md +101 -0
- orchex-0.1.0/packages/agent-routing/agents/spec-writer.md +139 -0
- orchex-0.1.0/packages/agent-routing/agents/tester.md +144 -0
- orchex-0.1.0/packages/agent-routing/agents/ux-reviewer.md +183 -0
- orchex-0.1.0/packages/agent-routing/config/cli-tools.yaml +136 -0
- orchex-0.1.0/packages/agent-routing/hooks/agent-router.py +68 -0
- orchex-0.1.0/packages/agent-routing/hooks/route_config.py +238 -0
- orchex-0.1.0/packages/agent-routing/manifest.json +46 -0
- orchex-0.1.0/packages/agent-routing/rules/agent-routing-policy.md +40 -0
- orchex-0.1.0/packages/agent-routing/rules/orchestra-usage.md +209 -0
- orchex-0.1.0/packages/agent-routing/tests/test_agent_router.py +209 -0
- orchex-0.1.0/packages/agent-routing/tests/test_agent_router_e2e.py +127 -0
- orchex-0.1.0/packages/cli-logging/hooks/log-cli-tools.py +215 -0
- orchex-0.1.0/packages/cli-logging/manifest.json +21 -0
- orchex-0.1.0/packages/cli-logging/scripts/analyze-cli-usage.py +315 -0
- orchex-0.1.0/packages/cli-logging/tests/test_analyze_cli_usage.py +268 -0
- orchex-0.1.0/packages/cli-logging/tests/test_log_cli_tools.py +75 -0
- orchex-0.1.0/packages/cocoindex/config/cocoindex.yaml +29 -0
- orchex-0.1.0/packages/cocoindex/hooks/provision-mcp-servers.py +344 -0
- orchex-0.1.0/packages/cocoindex/hooks/proxy_manager.py +285 -0
- orchex-0.1.0/packages/cocoindex/hooks/stop-mcp-proxy.py +50 -0
- orchex-0.1.0/packages/cocoindex/manifest.json +20 -0
- orchex-0.1.0/packages/cocoindex/rules/cocoindex-usage.md +100 -0
- orchex-0.1.0/packages/cocoindex/tests/test_provision.py +485 -0
- orchex-0.1.0/packages/cocoindex/tests/test_proxy_manager.py +430 -0
- orchex-0.1.0/packages/codex-suggestions/hooks/check-codex-after-plan.py +108 -0
- orchex-0.1.0/packages/codex-suggestions/hooks/check-codex-before-write.py +162 -0
- orchex-0.1.0/packages/codex-suggestions/manifest.json +19 -0
- orchex-0.1.0/packages/codex-suggestions/rules/codex-delegation.md +93 -0
- orchex-0.1.0/packages/codex-suggestions/rules/codex-suggestion-compliance.md +51 -0
- orchex-0.1.0/packages/codex-suggestions/skills/codex-system/SKILL.md +112 -0
- orchex-0.1.0/packages/codex-suggestions/skills/codex-system/references/agent-prompts.md +105 -0
- orchex-0.1.0/packages/codex-suggestions/skills/codex-system/references/code-review-task.md +94 -0
- orchex-0.1.0/packages/codex-suggestions/skills/codex-system/references/delegation-patterns.md +134 -0
- orchex-0.1.0/packages/codex-suggestions/skills/codex-system/references/refactoring-task.md +108 -0
- orchex-0.1.0/packages/codex-suggestions/skills/codex-system/references/troubleshooting.md +78 -0
- orchex-0.1.0/packages/codex-suggestions/tests/test_check_codex_after_plan.py +154 -0
- orchex-0.1.0/packages/codex-suggestions/tests/test_check_codex_before_write.py +65 -0
- orchex-0.1.0/packages/core/config/task-memory.yaml +18 -0
- orchex-0.1.0/packages/core/hooks/check-plan-gate.py +103 -0
- orchex-0.1.0/packages/core/hooks/clear-plan-gate.py +50 -0
- orchex-0.1.0/packages/core/hooks/hook_common.py +249 -0
- orchex-0.1.0/packages/core/hooks/load-task-state.py +294 -0
- orchex-0.1.0/packages/core/hooks/log_common.py +82 -0
- orchex-0.1.0/packages/core/hooks/set-plan-gate.py +95 -0
- orchex-0.1.0/packages/core/manifest.json +31 -0
- orchex-0.1.0/packages/core/rules/coding-principles.md +86 -0
- orchex-0.1.0/packages/core/rules/config-loading.md +72 -0
- orchex-0.1.0/packages/core/rules/skill-review-policy.md +117 -0
- orchex-0.1.0/packages/core/rules/task-memory-usage.md +87 -0
- orchex-0.1.0/packages/core/skills/checkpointing/SKILL.md +222 -0
- orchex-0.1.0/packages/core/skills/checkpointing/checkpoint.py +576 -0
- orchex-0.1.0/packages/core/skills/plan/SKILL.md +103 -0
- orchex-0.1.0/packages/core/skills/startproject/SKILL.md +393 -0
- orchex-0.1.0/packages/core/skills/startproject/references/task-patterns.md +127 -0
- orchex-0.1.0/packages/core/skills/task-state/SKILL.md +112 -0
- orchex-0.1.0/packages/core/tests/test_config_loading.py +237 -0
- orchex-0.1.0/packages/core/tests/test_hook_common.py +81 -0
- orchex-0.1.0/packages/core/tests/test_load_task_state.py +437 -0
- orchex-0.1.0/packages/core/tests/test_log_common.py +76 -0
- orchex-0.1.0/packages/core/tests/test_plan_gate.py +298 -0
- orchex-0.1.0/packages/gemini-suggestions/hooks/suggest-gemini-research.py +128 -0
- orchex-0.1.0/packages/gemini-suggestions/manifest.json +17 -0
- orchex-0.1.0/packages/gemini-suggestions/rules/gemini-delegation.md +185 -0
- orchex-0.1.0/packages/gemini-suggestions/rules/gemini-suggestion-compliance.md +31 -0
- orchex-0.1.0/packages/gemini-suggestions/skills/gemini-system/SKILL.md +209 -0
- orchex-0.1.0/packages/gemini-suggestions/skills/gemini-system/references/lib-research-task.md +115 -0
- orchex-0.1.0/packages/gemini-suggestions/skills/gemini-system/references/use-cases.md +169 -0
- orchex-0.1.0/packages/gemini-suggestions/tests/test_suggest_gemini_research.py +43 -0
- orchex-0.1.0/packages/issue-workflow/config/sandbox-requirements.json +7 -0
- orchex-0.1.0/packages/issue-workflow/manifest.json +13 -0
- orchex-0.1.0/packages/issue-workflow/skills/issue-create/SKILL.md +153 -0
- orchex-0.1.0/packages/issue-workflow/skills/issue-fix/SKILL.md +257 -0
- orchex-0.1.0/packages/quality-gates/hooks/lint-on-save.py +124 -0
- orchex-0.1.0/packages/quality-gates/hooks/post-implementation-review.py +117 -0
- orchex-0.1.0/packages/quality-gates/hooks/post-test-analysis.py +200 -0
- orchex-0.1.0/packages/quality-gates/hooks/test-gate-checker.py +176 -0
- orchex-0.1.0/packages/quality-gates/manifest.json +31 -0
- orchex-0.1.0/packages/quality-gates/skills/design-tracker/SKILL.md +57 -0
- orchex-0.1.0/packages/quality-gates/skills/release-readiness/SKILL.md +60 -0
- orchex-0.1.0/packages/quality-gates/skills/review/SKILL.md +236 -0
- orchex-0.1.0/packages/quality-gates/skills/simplify/SKILL.md +91 -0
- orchex-0.1.0/packages/quality-gates/skills/tdd/SKILL.md +120 -0
- orchex-0.1.0/packages/quality-gates/tests/test_post_test_analysis.py +117 -0
- orchex-0.1.0/packages/quality-gates/tests/test_test_gate_checker.py +186 -0
- orchex-0.1.0/packages/route-audit/config/delegation-policy.json +12 -0
- orchex-0.1.0/packages/route-audit/config/orchestration-flags.json +33 -0
- orchex-0.1.0/packages/route-audit/hooks/orchestration-bootstrap.py +64 -0
- orchex-0.1.0/packages/route-audit/hooks/orchestration-expected-route.py +141 -0
- orchex-0.1.0/packages/route-audit/hooks/orchestration-route-audit.py +221 -0
- orchex-0.1.0/packages/route-audit/manifest.json +28 -0
- orchex-0.1.0/packages/route-audit/scripts/dashboard.py +244 -0
- orchex-0.1.0/packages/route-audit/scripts/log-viewer.py +222 -0
- orchex-0.1.0/packages/route-audit/scripts/orchestration-kpi-report.py +271 -0
- orchex-0.1.0/packages/route-audit/tests/test_route_audit.py +364 -0
- orchex-0.1.0/packages/route-audit/tests/test_route_audit_orchestration_hooks.py +205 -0
- orchex-0.1.0/packages/tmux-monitor/hooks/tmux-format-output.py +85 -0
- orchex-0.1.0/packages/tmux-monitor/hooks/tmux-pre-task.py +51 -0
- orchex-0.1.0/packages/tmux-monitor/hooks/tmux-session-end.py +111 -0
- orchex-0.1.0/packages/tmux-monitor/hooks/tmux-session-start.py +161 -0
- orchex-0.1.0/packages/tmux-monitor/hooks/tmux-subagent-start.py +164 -0
- orchex-0.1.0/packages/tmux-monitor/hooks/tmux-subagent-stop.py +99 -0
- orchex-0.1.0/packages/tmux-monitor/hooks/tmux_common.py +89 -0
- orchex-0.1.0/packages/tmux-monitor/manifest.json +27 -0
- orchex-0.1.0/packages/tmux-monitor/tests/test_tmux_monitor_hooks.py +141 -0
- orchex-0.1.0/presets.json +10 -0
- orchex-0.1.0/pyproject.toml +63 -0
- orchex-0.1.0/scripts/orchestra-manager.py +1440 -0
- orchex-0.1.0/scripts/sync-orchestra.py +552 -0
- orchex-0.1.0/templates/codex/AGENTS.md +100 -0
- orchex-0.1.0/templates/codex/config.toml +19 -0
- orchex-0.1.0/templates/codex/skills/context-loader/SKILL.md +26 -0
- orchex-0.1.0/templates/gemini/GEMINI.md +97 -0
- orchex-0.1.0/templates/gemini/settings.json +24 -0
- orchex-0.1.0/templates/gemini/skills/context-loader/SKILL.md +23 -0
- orchex-0.1.0/templates/project/.claudeignore +62 -0
- orchex-0.1.0/templates/project/.claudeignore.local.example +5 -0
- orchex-0.1.0/templates/project/CLAUDE.md +49 -0
- orchex-0.1.0/templates/project/Plans.md +20 -0
- orchex-0.1.0/templates/project/checkpoints/.gitkeep +0 -0
- orchex-0.1.0/templates/project/docs/DESIGN.md +56 -0
- orchex-0.1.0/templates/project/docs/libraries/_TEMPLATE.md +56 -0
- orchex-0.1.0/templates/project/docs/research/.gitkeep +0 -0
- orchex-0.1.0/templates/project/logs/orchestration/.gitkeep +0 -0
- orchex-0.1.0/templates/project/state/.gitkeep +0 -0
orchex-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# OS
|
|
2
|
+
.DS_Store
|
|
3
|
+
Thumbs.db
|
|
4
|
+
|
|
5
|
+
# Editor
|
|
6
|
+
*.swp
|
|
7
|
+
*.swo
|
|
8
|
+
*~
|
|
9
|
+
|
|
10
|
+
# Test
|
|
11
|
+
pytest-of-*/
|
|
12
|
+
|
|
13
|
+
# Python
|
|
14
|
+
__pycache__/
|
|
15
|
+
*.pyc
|
|
16
|
+
*.pyo
|
|
17
|
+
*.egg-info/
|
|
18
|
+
dist/
|
|
19
|
+
build/
|
|
20
|
+
.venv/
|
|
21
|
+
venv/
|
|
22
|
+
env/
|
|
23
|
+
|
|
24
|
+
# Environment / Secrets
|
|
25
|
+
.env
|
|
26
|
+
.env.local
|
|
27
|
+
|
|
28
|
+
# Logs
|
|
29
|
+
*.log
|
|
30
|
+
|
|
31
|
+
# Claude Code
|
|
32
|
+
.claude/docs/
|
|
33
|
+
.claude/logs/
|
|
34
|
+
.claude/state/
|
|
35
|
+
.claude/checkpoints/
|
|
36
|
+
.claude/Plans.md
|
|
37
|
+
.claude/.mcp-proxy.pid
|
|
38
|
+
|
|
39
|
+
# sync-orchestra.py により packages/ から自動同期(SessionStart で再生成)
|
|
40
|
+
.claude/agents/
|
|
41
|
+
.claude/skills/
|
|
42
|
+
.claude/rules/
|
|
43
|
+
.claude/config/
|
|
44
|
+
|
|
45
|
+
# Project-specific
|
|
46
|
+
docs/*
|
|
47
|
+
!docs/specs/
|
|
48
|
+
|
|
49
|
+
# CocoIndex local search index
|
|
50
|
+
.cocoindex_code/
|
orchex-0.1.0/CLAUDE.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# AI Orchestra
|
|
2
|
+
|
|
3
|
+
マルチエージェント協調フレームワーク。詳細は `README.md` を参照。
|
|
4
|
+
|
|
5
|
+
## 構成
|
|
6
|
+
|
|
7
|
+
packages/ 配下がメインのソースコード:
|
|
8
|
+
- core/ — 共通基盤(hooks・rules)
|
|
9
|
+
- agent-routing/ — エージェント定義・ルーティング hooks・config
|
|
10
|
+
- cli-logging/ — CLI ログ・checkpointing
|
|
11
|
+
- codex-suggestions/ — Codex 相談提案・rules
|
|
12
|
+
- gemini-suggestions/— Gemini リサーチ提案・rules
|
|
13
|
+
- quality-gates/ — 品質ゲート・review/tdd スキル
|
|
14
|
+
- route-audit/ — ルーティング監査
|
|
15
|
+
- tmux-monitor/ — tmux 監視
|
|
16
|
+
|
|
17
|
+
管理:
|
|
18
|
+
- scripts/ — orchestra-manager.py, sync-orchestra.py
|
|
19
|
+
- templates/ — テンプレート
|
|
20
|
+
|
|
21
|
+
## References
|
|
22
|
+
|
|
23
|
+
作業前に以下を確認すること(上から優先):
|
|
24
|
+
|
|
25
|
+
1. `packages/agent-routing/config/cli-tools.yaml` — CLI モデル名・フラグ設定
|
|
26
|
+
2. `packages/agent-routing/rules/orchestra-usage.md` — エージェント・ワークフロー全体
|
|
27
|
+
|
|
28
|
+
## Gotchas
|
|
29
|
+
|
|
30
|
+
- `.claudeignore` は AI Orchestra が自動生成する。直接編集しないこと
|
|
31
|
+
- プロジェクト固有パターンは `.claudeignore.local` に記載
|
|
32
|
+
- SessionStart で ベース + `.claudeignore.local` がマージ生成される
|
|
33
|
+
- `packages/` 内の hooks は `$AI_ORCHESTRA_DIR` 経由で直接参照される(`git pull` で即反映)
|
|
34
|
+
- agents/skills/rules は SessionStart の `sync-orchestra.py` で `.claude/` に差分同期される
|
orchex-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: orchex
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Multi-agent orchestration framework for Claude Code + Codex CLI + Gemini CLI
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Requires-Python: >=3.12
|
|
7
|
+
Requires-Dist: pyyaml>=6.0
|
|
8
|
+
Provides-Extra: dev
|
|
9
|
+
Requires-Dist: pytest-cov>=6.0; extra == 'dev'
|
|
10
|
+
Requires-Dist: pytest>=9.0; extra == 'dev'
|
|
11
|
+
Requires-Dist: ruff>=0.9; extra == 'dev'
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# AI Orchestra
|
|
15
|
+
|
|
16
|
+
Claude Code用のマルチエージェントオーケストレーションシステム
|
|
17
|
+
|
|
18
|
+
## 構成
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
ai-orchestra/
|
|
22
|
+
├── packages/ # パッケージ(hooks・scripts・agents・skills・rules・config)— 詳細は packages/README.md
|
|
23
|
+
│ ├── core/ # 共通基盤ライブラリ + coding-principles / config-loading ルール
|
|
24
|
+
│ ├── agent-routing/ # 25 エージェント定義 + ルーティング hooks + orchestra-usage ルール
|
|
25
|
+
│ ├── cli-logging/ # Codex/Gemini CLI ログ記録 + checkpointing スキル
|
|
26
|
+
│ ├── codex-suggestions/ # Codex 相談提案 + codex-delegation ルール + codex-system スキル
|
|
27
|
+
│ ├── gemini-suggestions/# Gemini リサーチ提案 + gemini-delegation ルール + gemini-system スキル
|
|
28
|
+
│ ├── quality-gates/ # 品質ゲート + review/tdd/simplify/release-readiness (+ design-tracker)
|
|
29
|
+
│ ├── route-audit/ # ルーティング監査・KPIレポート
|
|
30
|
+
│ ├── issue-workflow/ # GitHub Issue 起票 + 計画→実装→テスト→レビューの開発フロー
|
|
31
|
+
│ ├── cocoindex/ # cocoindex MCP サーバーの自動プロビジョニング
|
|
32
|
+
│ └── tmux-monitor/ # tmux サブエージェント監視
|
|
33
|
+
├── scripts/ # 管理CLI
|
|
34
|
+
├── templates/ # テンプレート(エージェント・スキル・プロジェクト)
|
|
35
|
+
├── tests/ # Python 単体テスト
|
|
36
|
+
├── docs/ # ドキュメント(設計・マイグレーション等)
|
|
37
|
+
├── taskfiles/ # Task CLI 用タスク定義
|
|
38
|
+
└── Taskfile.yml # メインタスクファイル
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## エージェント一覧
|
|
42
|
+
|
|
43
|
+
### コア
|
|
44
|
+
- `planner` - タスク分解・マイルストーン策定
|
|
45
|
+
- `researcher` - リサーチ・ドキュメント解析
|
|
46
|
+
|
|
47
|
+
### 要件・仕様
|
|
48
|
+
- `requirements` - 要件抽出・NFR整理
|
|
49
|
+
- `spec-writer` - 仕様書生成
|
|
50
|
+
|
|
51
|
+
### 設計
|
|
52
|
+
- `architect` - アーキテクチャ設計・技術選定
|
|
53
|
+
- `api-designer` - API/IF設計
|
|
54
|
+
- `data-modeler` - データモデリング・スキーマ設計
|
|
55
|
+
- `auth-designer` - 認証認可設計
|
|
56
|
+
|
|
57
|
+
### 実装
|
|
58
|
+
- `frontend-dev` - React/Next.js/TypeScript
|
|
59
|
+
- `backend-python-dev` - Python API
|
|
60
|
+
- `backend-go-dev` - Go API
|
|
61
|
+
|
|
62
|
+
### AI/ML
|
|
63
|
+
- `ai-architect` - AIアーキテクチャ・モデル選定
|
|
64
|
+
- `ai-dev` - AI機能実装
|
|
65
|
+
- `prompt-engineer` - プロンプト設計
|
|
66
|
+
- `rag-engineer` - RAG実装
|
|
67
|
+
|
|
68
|
+
### テスト・デバッグ
|
|
69
|
+
- `debugger` - バグ原因分析
|
|
70
|
+
- `tester` - テスト戦略・実装
|
|
71
|
+
|
|
72
|
+
### レビュー(実装)
|
|
73
|
+
- `code-reviewer` - コード品質
|
|
74
|
+
- `security-reviewer` - セキュリティ
|
|
75
|
+
- `performance-reviewer` - パフォーマンス
|
|
76
|
+
|
|
77
|
+
### レビュー(設計・仕様)
|
|
78
|
+
- `spec-reviewer` - 仕様整合性
|
|
79
|
+
- `architecture-reviewer` - アーキテクチャ妥当性
|
|
80
|
+
- `ux-reviewer` - UX・アクセシビリティ
|
|
81
|
+
|
|
82
|
+
### ドキュメント
|
|
83
|
+
- `docs-writer` - 技術文書・手順書
|
|
84
|
+
|
|
85
|
+
### ユーティリティ
|
|
86
|
+
- `general-purpose` - 汎用タスク・Codex/Gemini委譲
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## セットアップ
|
|
91
|
+
|
|
92
|
+
### 1. リポジトリをクローン
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
git clone https://github.com/yoshihiko555/ai-orchestra.git ~/ai-orchestra
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### 2. セットアップ(推奨)
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# チームメンバー向け: 最低限のパッケージを一括インストール
|
|
102
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project /path/to/project
|
|
103
|
+
|
|
104
|
+
# 管理者・開発者向け: 全パッケージを一括インストール
|
|
105
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup all --project /path/to/project
|
|
106
|
+
|
|
107
|
+
# 事前確認(dry-run)
|
|
108
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project /path/to/project --dry-run
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
プリセットは `presets.json` で定義されています:
|
|
112
|
+
- **essential** — core, route-audit, quality-gates
|
|
113
|
+
- **all** — 全パッケージ
|
|
114
|
+
|
|
115
|
+
### 2b. 個別インストール
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# 個別にパッケージをインストールする場合
|
|
119
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py install core --project /path/to/project
|
|
120
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py install tmux-monitor --project /path/to/project
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
orchestra-manager が内部で以下を実行:
|
|
124
|
+
1. `~/.claude/settings.json` に `env.AI_ORCHESTRA_DIR` を設定
|
|
125
|
+
2. `.claude/orchestra.json` にパッケージ情報を記録
|
|
126
|
+
3. `.claude/settings.local.json` に hooks を登録(`$AI_ORCHESTRA_DIR/packages/...` 参照)
|
|
127
|
+
4. `sync-orchestra.py` の SessionStart hook を登録(初回のみ)
|
|
128
|
+
5. skills/agents/rules の初回同期を実行
|
|
129
|
+
|
|
130
|
+
### セットアップ完了条件
|
|
131
|
+
|
|
132
|
+
以下をすべて満たしたらセットアップ完了です:
|
|
133
|
+
|
|
134
|
+
- `~/.claude/settings.json` に `env.AI_ORCHESTRA_DIR` が設定されている
|
|
135
|
+
- `.claude/settings.local.json` に AI Orchestra の hooks が登録されている
|
|
136
|
+
- `.claude/orchestra.json` が存在し、インストール済みパッケージが記録されている
|
|
137
|
+
- Claude Code 次回起動時に SessionStart hook が走り `.claude/` 配下へ差分同期される
|
|
138
|
+
|
|
139
|
+
### 3. 管理スクリプト
|
|
140
|
+
|
|
141
|
+
| スクリプト | 用途 |
|
|
142
|
+
|-----------|------|
|
|
143
|
+
| `orchestra-manager.py` | パッケージのインストール・管理 |
|
|
144
|
+
| `sync-orchestra.py` | SessionStart 時の自動同期 |
|
|
145
|
+
| `analyze-cli-usage.py` | Codex/Gemini の使用状況分析 |
|
|
146
|
+
|
|
147
|
+
### 3b. ログ仕様
|
|
148
|
+
|
|
149
|
+
- 全ログの役割・参照先は `docs/specs/logging.md` を参照
|
|
150
|
+
|
|
151
|
+
### 4. パッケージ管理コマンド
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# プリセットで一括セットアップ
|
|
155
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project .
|
|
156
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup all --project .
|
|
157
|
+
|
|
158
|
+
# パッケージ一覧
|
|
159
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py list
|
|
160
|
+
|
|
161
|
+
# プロジェクトでの導入状況
|
|
162
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py status --project .
|
|
163
|
+
|
|
164
|
+
# インストール / アンインストール
|
|
165
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py install <package> --project .
|
|
166
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py uninstall <package> --project .
|
|
167
|
+
|
|
168
|
+
# 一時的な有効化 / 無効化(hooks の登録/解除のみ)
|
|
169
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py enable <package> --project .
|
|
170
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py disable <package> --project .
|
|
171
|
+
|
|
172
|
+
# パッケージ内スクリプトの一覧表示
|
|
173
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py scripts
|
|
174
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py scripts --package route-audit
|
|
175
|
+
|
|
176
|
+
# パッケージ内スクリプトの実行(-- 以降はスクリプトにパススルー)
|
|
177
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py run route-audit dashboard
|
|
178
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py run route-audit log-viewer --project /path/to/project -- --last 10
|
|
179
|
+
|
|
180
|
+
# dry-run(変更内容を表示のみ)
|
|
181
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project . --dry-run
|
|
182
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py install <package> --project . --dry-run
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## 更新フロー
|
|
188
|
+
|
|
189
|
+
| 変更内容 | 操作 |
|
|
190
|
+
|---------|------|
|
|
191
|
+
| Hook スクリプト修正 | `git pull` のみ(即反映) |
|
|
192
|
+
| Skills/Agents/Rules 修正 | `git pull`(次回 Claude Code 起動時に自動同期) |
|
|
193
|
+
| 新フックイベント追加 | `git pull` + `install` 再実行 |
|
|
194
|
+
| CLI スクリプト修正 | `git pull` のみ(即反映) |
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## .claudeignore の管理
|
|
199
|
+
|
|
200
|
+
- `.claudeignore` は AI Orchestra が自動生成するため直接編集しないでください
|
|
201
|
+
- プロジェクト固有の除外パターンは `.claudeignore.local` に記載
|
|
202
|
+
- SessionStart 時に ベース + `.claudeignore.local` がマージ生成されます
|
|
203
|
+
|
|
204
|
+
## .gitignore の管理
|
|
205
|
+
|
|
206
|
+
- `orchestra-manager.py init` 実行時に `.gitignore` へ AI Orchestra 用 block を追加/更新します
|
|
207
|
+
- 対象: `.claude/docs/`, `.claude/logs/`, `.claude/state/`, `.claude/checkpoints/`, `.claude/Plans.md`
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## 使い方
|
|
212
|
+
|
|
213
|
+
### エージェントの呼び出し
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
Task(subagent_type="planner", prompt="このタスクを分解して")
|
|
217
|
+
Task(subagent_type="code-reviewer", prompt="このコードをレビューして")
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### スキル一覧
|
|
221
|
+
|
|
222
|
+
| スキル | 用途 |
|
|
223
|
+
|--------|------|
|
|
224
|
+
| `/review` | コード・セキュリティ・設計レビュー(並列実行対応) |
|
|
225
|
+
| `/startproject` | マルチエージェント協調で新規開発を開始 |
|
|
226
|
+
| `/codex-system` | `cli-tools.yaml` に基づく Codex 利用ガイド(config-driven) |
|
|
227
|
+
| `/gemini-system` | Gemini CLI でのリサーチ・マルチモーダル処理 |
|
|
228
|
+
| `/checkpointing` | セッションコンテキストの保存・復元 |
|
|
229
|
+
| `/design-tracker` | 設計記録スキル(現運用は `CLAUDE.md`/`Plans.md`/ADR/docs を優先) |
|
|
230
|
+
| `/plan` | 実装計画の策定 |
|
|
231
|
+
| `/simplify` | コードの簡素化 |
|
|
232
|
+
| `/tdd` | テスト駆動開発ワークフロー |
|
|
233
|
+
|
|
234
|
+
### レビュースキル
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
/review # 全レビュアー並列実行
|
|
238
|
+
/review code # コードレビューのみ
|
|
239
|
+
/review security # セキュリティレビューのみ
|
|
240
|
+
/review impl # 実装系レビュー
|
|
241
|
+
/review design # 設計系レビュー
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## アーキテクチャ
|
|
247
|
+
|
|
248
|
+
```
|
|
249
|
+
Claude Code (Orchestrator)
|
|
250
|
+
│
|
|
251
|
+
├── Codex CLI # `cli-tools.yaml` の設定に応じて利用(役割は config-driven)
|
|
252
|
+
├── Gemini CLI # `cli-tools.yaml` の設定に応じて利用(役割は config-driven)
|
|
253
|
+
│
|
|
254
|
+
├── $AI_ORCHESTRA_DIR/packages/
|
|
255
|
+
│ ├── core/ # 共通ユーティリティ
|
|
256
|
+
│ ├── cli-logging/ # CLI 呼び出しログ
|
|
257
|
+
│ ├── codex-suggestions/ # Codex 相談提案
|
|
258
|
+
│ ├── gemini-suggestions/ # Gemini リサーチ提案
|
|
259
|
+
│ ├── quality-gates/ # 品質ゲート
|
|
260
|
+
│ ├── route-audit/ # ルーティング監査
|
|
261
|
+
│ ├── issue-workflow/ # GitHub Issue 開発フロー
|
|
262
|
+
│ ├── cocoindex/ # MCP サーバー自動プロビジョニング
|
|
263
|
+
│ └── tmux-monitor/ # tmux リアルタイム監視
|
|
264
|
+
│
|
|
265
|
+
└── 25 Specialized Agents
|
|
266
|
+
├── Planning: planner, researcher, requirements
|
|
267
|
+
├── Design: architect, api-designer, data-modeler, auth-designer, spec-writer
|
|
268
|
+
├── Implementation: frontend-dev, backend-*-dev, ai-*, debugger, tester
|
|
269
|
+
└── Review: code-reviewer, security-reviewer, performance-reviewer, ...
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### 仕組み
|
|
273
|
+
|
|
274
|
+
- **Hooks**: `$AI_ORCHESTRA_DIR` 環境変数で直接参照(シンボリックリンク不要)
|
|
275
|
+
- **Skills/Agents/Rules**: SessionStart hook (`sync-orchestra.py`) で `$AI_ORCHESTRA_DIR` から `.claude/` に差分コピー
|
|
276
|
+
- **CLI Scripts**: `$AI_ORCHESTRA_DIR/packages/{pkg}/scripts/` を直接実行
|
orchex-0.1.0/README.md
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# AI Orchestra
|
|
2
|
+
|
|
3
|
+
Claude Code用のマルチエージェントオーケストレーションシステム
|
|
4
|
+
|
|
5
|
+
## 構成
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
ai-orchestra/
|
|
9
|
+
├── packages/ # パッケージ(hooks・scripts・agents・skills・rules・config)— 詳細は packages/README.md
|
|
10
|
+
│ ├── core/ # 共通基盤ライブラリ + coding-principles / config-loading ルール
|
|
11
|
+
│ ├── agent-routing/ # 25 エージェント定義 + ルーティング hooks + orchestra-usage ルール
|
|
12
|
+
│ ├── cli-logging/ # Codex/Gemini CLI ログ記録 + checkpointing スキル
|
|
13
|
+
│ ├── codex-suggestions/ # Codex 相談提案 + codex-delegation ルール + codex-system スキル
|
|
14
|
+
│ ├── gemini-suggestions/# Gemini リサーチ提案 + gemini-delegation ルール + gemini-system スキル
|
|
15
|
+
│ ├── quality-gates/ # 品質ゲート + review/tdd/simplify/release-readiness (+ design-tracker)
|
|
16
|
+
│ ├── route-audit/ # ルーティング監査・KPIレポート
|
|
17
|
+
│ ├── issue-workflow/ # GitHub Issue 起票 + 計画→実装→テスト→レビューの開発フロー
|
|
18
|
+
│ ├── cocoindex/ # cocoindex MCP サーバーの自動プロビジョニング
|
|
19
|
+
│ └── tmux-monitor/ # tmux サブエージェント監視
|
|
20
|
+
├── scripts/ # 管理CLI
|
|
21
|
+
├── templates/ # テンプレート(エージェント・スキル・プロジェクト)
|
|
22
|
+
├── tests/ # Python 単体テスト
|
|
23
|
+
├── docs/ # ドキュメント(設計・マイグレーション等)
|
|
24
|
+
├── taskfiles/ # Task CLI 用タスク定義
|
|
25
|
+
└── Taskfile.yml # メインタスクファイル
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## エージェント一覧
|
|
29
|
+
|
|
30
|
+
### コア
|
|
31
|
+
- `planner` - タスク分解・マイルストーン策定
|
|
32
|
+
- `researcher` - リサーチ・ドキュメント解析
|
|
33
|
+
|
|
34
|
+
### 要件・仕様
|
|
35
|
+
- `requirements` - 要件抽出・NFR整理
|
|
36
|
+
- `spec-writer` - 仕様書生成
|
|
37
|
+
|
|
38
|
+
### 設計
|
|
39
|
+
- `architect` - アーキテクチャ設計・技術選定
|
|
40
|
+
- `api-designer` - API/IF設計
|
|
41
|
+
- `data-modeler` - データモデリング・スキーマ設計
|
|
42
|
+
- `auth-designer` - 認証認可設計
|
|
43
|
+
|
|
44
|
+
### 実装
|
|
45
|
+
- `frontend-dev` - React/Next.js/TypeScript
|
|
46
|
+
- `backend-python-dev` - Python API
|
|
47
|
+
- `backend-go-dev` - Go API
|
|
48
|
+
|
|
49
|
+
### AI/ML
|
|
50
|
+
- `ai-architect` - AIアーキテクチャ・モデル選定
|
|
51
|
+
- `ai-dev` - AI機能実装
|
|
52
|
+
- `prompt-engineer` - プロンプト設計
|
|
53
|
+
- `rag-engineer` - RAG実装
|
|
54
|
+
|
|
55
|
+
### テスト・デバッグ
|
|
56
|
+
- `debugger` - バグ原因分析
|
|
57
|
+
- `tester` - テスト戦略・実装
|
|
58
|
+
|
|
59
|
+
### レビュー(実装)
|
|
60
|
+
- `code-reviewer` - コード品質
|
|
61
|
+
- `security-reviewer` - セキュリティ
|
|
62
|
+
- `performance-reviewer` - パフォーマンス
|
|
63
|
+
|
|
64
|
+
### レビュー(設計・仕様)
|
|
65
|
+
- `spec-reviewer` - 仕様整合性
|
|
66
|
+
- `architecture-reviewer` - アーキテクチャ妥当性
|
|
67
|
+
- `ux-reviewer` - UX・アクセシビリティ
|
|
68
|
+
|
|
69
|
+
### ドキュメント
|
|
70
|
+
- `docs-writer` - 技術文書・手順書
|
|
71
|
+
|
|
72
|
+
### ユーティリティ
|
|
73
|
+
- `general-purpose` - 汎用タスク・Codex/Gemini委譲
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## セットアップ
|
|
78
|
+
|
|
79
|
+
### 1. リポジトリをクローン
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
git clone https://github.com/yoshihiko555/ai-orchestra.git ~/ai-orchestra
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### 2. セットアップ(推奨)
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
# チームメンバー向け: 最低限のパッケージを一括インストール
|
|
89
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project /path/to/project
|
|
90
|
+
|
|
91
|
+
# 管理者・開発者向け: 全パッケージを一括インストール
|
|
92
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup all --project /path/to/project
|
|
93
|
+
|
|
94
|
+
# 事前確認(dry-run)
|
|
95
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project /path/to/project --dry-run
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
プリセットは `presets.json` で定義されています:
|
|
99
|
+
- **essential** — core, route-audit, quality-gates
|
|
100
|
+
- **all** — 全パッケージ
|
|
101
|
+
|
|
102
|
+
### 2b. 個別インストール
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# 個別にパッケージをインストールする場合
|
|
106
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py install core --project /path/to/project
|
|
107
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py install tmux-monitor --project /path/to/project
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
orchestra-manager が内部で以下を実行:
|
|
111
|
+
1. `~/.claude/settings.json` に `env.AI_ORCHESTRA_DIR` を設定
|
|
112
|
+
2. `.claude/orchestra.json` にパッケージ情報を記録
|
|
113
|
+
3. `.claude/settings.local.json` に hooks を登録(`$AI_ORCHESTRA_DIR/packages/...` 参照)
|
|
114
|
+
4. `sync-orchestra.py` の SessionStart hook を登録(初回のみ)
|
|
115
|
+
5. skills/agents/rules の初回同期を実行
|
|
116
|
+
|
|
117
|
+
### セットアップ完了条件
|
|
118
|
+
|
|
119
|
+
以下をすべて満たしたらセットアップ完了です:
|
|
120
|
+
|
|
121
|
+
- `~/.claude/settings.json` に `env.AI_ORCHESTRA_DIR` が設定されている
|
|
122
|
+
- `.claude/settings.local.json` に AI Orchestra の hooks が登録されている
|
|
123
|
+
- `.claude/orchestra.json` が存在し、インストール済みパッケージが記録されている
|
|
124
|
+
- Claude Code 次回起動時に SessionStart hook が走り `.claude/` 配下へ差分同期される
|
|
125
|
+
|
|
126
|
+
### 3. 管理スクリプト
|
|
127
|
+
|
|
128
|
+
| スクリプト | 用途 |
|
|
129
|
+
|-----------|------|
|
|
130
|
+
| `orchestra-manager.py` | パッケージのインストール・管理 |
|
|
131
|
+
| `sync-orchestra.py` | SessionStart 時の自動同期 |
|
|
132
|
+
| `analyze-cli-usage.py` | Codex/Gemini の使用状況分析 |
|
|
133
|
+
|
|
134
|
+
### 3b. ログ仕様
|
|
135
|
+
|
|
136
|
+
- 全ログの役割・参照先は `docs/specs/logging.md` を参照
|
|
137
|
+
|
|
138
|
+
### 4. パッケージ管理コマンド
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# プリセットで一括セットアップ
|
|
142
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project .
|
|
143
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup all --project .
|
|
144
|
+
|
|
145
|
+
# パッケージ一覧
|
|
146
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py list
|
|
147
|
+
|
|
148
|
+
# プロジェクトでの導入状況
|
|
149
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py status --project .
|
|
150
|
+
|
|
151
|
+
# インストール / アンインストール
|
|
152
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py install <package> --project .
|
|
153
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py uninstall <package> --project .
|
|
154
|
+
|
|
155
|
+
# 一時的な有効化 / 無効化(hooks の登録/解除のみ)
|
|
156
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py enable <package> --project .
|
|
157
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py disable <package> --project .
|
|
158
|
+
|
|
159
|
+
# パッケージ内スクリプトの一覧表示
|
|
160
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py scripts
|
|
161
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py scripts --package route-audit
|
|
162
|
+
|
|
163
|
+
# パッケージ内スクリプトの実行(-- 以降はスクリプトにパススルー)
|
|
164
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py run route-audit dashboard
|
|
165
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py run route-audit log-viewer --project /path/to/project -- --last 10
|
|
166
|
+
|
|
167
|
+
# dry-run(変更内容を表示のみ)
|
|
168
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py setup essential --project . --dry-run
|
|
169
|
+
python3 ~/ai-orchestra/scripts/orchestra-manager.py install <package> --project . --dry-run
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 更新フロー
|
|
175
|
+
|
|
176
|
+
| 変更内容 | 操作 |
|
|
177
|
+
|---------|------|
|
|
178
|
+
| Hook スクリプト修正 | `git pull` のみ(即反映) |
|
|
179
|
+
| Skills/Agents/Rules 修正 | `git pull`(次回 Claude Code 起動時に自動同期) |
|
|
180
|
+
| 新フックイベント追加 | `git pull` + `install` 再実行 |
|
|
181
|
+
| CLI スクリプト修正 | `git pull` のみ(即反映) |
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## .claudeignore の管理
|
|
186
|
+
|
|
187
|
+
- `.claudeignore` は AI Orchestra が自動生成するため直接編集しないでください
|
|
188
|
+
- プロジェクト固有の除外パターンは `.claudeignore.local` に記載
|
|
189
|
+
- SessionStart 時に ベース + `.claudeignore.local` がマージ生成されます
|
|
190
|
+
|
|
191
|
+
## .gitignore の管理
|
|
192
|
+
|
|
193
|
+
- `orchestra-manager.py init` 実行時に `.gitignore` へ AI Orchestra 用 block を追加/更新します
|
|
194
|
+
- 対象: `.claude/docs/`, `.claude/logs/`, `.claude/state/`, `.claude/checkpoints/`, `.claude/Plans.md`
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## 使い方
|
|
199
|
+
|
|
200
|
+
### エージェントの呼び出し
|
|
201
|
+
|
|
202
|
+
```
|
|
203
|
+
Task(subagent_type="planner", prompt="このタスクを分解して")
|
|
204
|
+
Task(subagent_type="code-reviewer", prompt="このコードをレビューして")
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### スキル一覧
|
|
208
|
+
|
|
209
|
+
| スキル | 用途 |
|
|
210
|
+
|--------|------|
|
|
211
|
+
| `/review` | コード・セキュリティ・設計レビュー(並列実行対応) |
|
|
212
|
+
| `/startproject` | マルチエージェント協調で新規開発を開始 |
|
|
213
|
+
| `/codex-system` | `cli-tools.yaml` に基づく Codex 利用ガイド(config-driven) |
|
|
214
|
+
| `/gemini-system` | Gemini CLI でのリサーチ・マルチモーダル処理 |
|
|
215
|
+
| `/checkpointing` | セッションコンテキストの保存・復元 |
|
|
216
|
+
| `/design-tracker` | 設計記録スキル(現運用は `CLAUDE.md`/`Plans.md`/ADR/docs を優先) |
|
|
217
|
+
| `/plan` | 実装計画の策定 |
|
|
218
|
+
| `/simplify` | コードの簡素化 |
|
|
219
|
+
| `/tdd` | テスト駆動開発ワークフロー |
|
|
220
|
+
|
|
221
|
+
### レビュースキル
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
/review # 全レビュアー並列実行
|
|
225
|
+
/review code # コードレビューのみ
|
|
226
|
+
/review security # セキュリティレビューのみ
|
|
227
|
+
/review impl # 実装系レビュー
|
|
228
|
+
/review design # 設計系レビュー
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## アーキテクチャ
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
Claude Code (Orchestrator)
|
|
237
|
+
│
|
|
238
|
+
├── Codex CLI # `cli-tools.yaml` の設定に応じて利用(役割は config-driven)
|
|
239
|
+
├── Gemini CLI # `cli-tools.yaml` の設定に応じて利用(役割は config-driven)
|
|
240
|
+
│
|
|
241
|
+
├── $AI_ORCHESTRA_DIR/packages/
|
|
242
|
+
│ ├── core/ # 共通ユーティリティ
|
|
243
|
+
│ ├── cli-logging/ # CLI 呼び出しログ
|
|
244
|
+
│ ├── codex-suggestions/ # Codex 相談提案
|
|
245
|
+
│ ├── gemini-suggestions/ # Gemini リサーチ提案
|
|
246
|
+
│ ├── quality-gates/ # 品質ゲート
|
|
247
|
+
│ ├── route-audit/ # ルーティング監査
|
|
248
|
+
│ ├── issue-workflow/ # GitHub Issue 開発フロー
|
|
249
|
+
│ ├── cocoindex/ # MCP サーバー自動プロビジョニング
|
|
250
|
+
│ └── tmux-monitor/ # tmux リアルタイム監視
|
|
251
|
+
│
|
|
252
|
+
└── 25 Specialized Agents
|
|
253
|
+
├── Planning: planner, researcher, requirements
|
|
254
|
+
├── Design: architect, api-designer, data-modeler, auth-designer, spec-writer
|
|
255
|
+
├── Implementation: frontend-dev, backend-*-dev, ai-*, debugger, tester
|
|
256
|
+
└── Review: code-reviewer, security-reviewer, performance-reviewer, ...
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
### 仕組み
|
|
260
|
+
|
|
261
|
+
- **Hooks**: `$AI_ORCHESTRA_DIR` 環境変数で直接参照(シンボリックリンク不要)
|
|
262
|
+
- **Skills/Agents/Rules**: SessionStart hook (`sync-orchestra.py`) で `$AI_ORCHESTRA_DIR` から `.claude/` に差分コピー
|
|
263
|
+
- **CLI Scripts**: `$AI_ORCHESTRA_DIR/packages/{pkg}/scripts/` を直接実行
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""AI Orchestra CLI entry point.
|
|
3
|
+
|
|
4
|
+
uv tool install / pipx install 経由でインストールされた場合の
|
|
5
|
+
`ai-orchestra` コマンドのエントリポイント。
|
|
6
|
+
内部で scripts/orchestra-manager.py の main() に委譲する。
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import importlib.util
|
|
10
|
+
import sys
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def get_orchestra_dir() -> Path:
|
|
15
|
+
"""AI Orchestra のルートディレクトリを解決する。
|
|
16
|
+
|
|
17
|
+
解決順序:
|
|
18
|
+
1. インストール済みパッケージ(force-include で packages/ が同梱されている場合)
|
|
19
|
+
2. リポジトリ直下(開発モード / editable install)
|
|
20
|
+
"""
|
|
21
|
+
pkg_dir = Path(__file__).resolve().parent # ai_orchestra/
|
|
22
|
+
|
|
23
|
+
# インストール済みパッケージ: ai_orchestra/packages/ が存在する
|
|
24
|
+
if (pkg_dir / "packages").is_dir():
|
|
25
|
+
return pkg_dir
|
|
26
|
+
|
|
27
|
+
# 開発モード: ai_orchestra/../packages/ (リポジトリルート)
|
|
28
|
+
repo_root = pkg_dir.parent
|
|
29
|
+
if (repo_root / "packages").is_dir():
|
|
30
|
+
return repo_root
|
|
31
|
+
|
|
32
|
+
# フォールバック: 環境変数
|
|
33
|
+
import os
|
|
34
|
+
|
|
35
|
+
env_dir = os.environ.get("AI_ORCHESTRA_DIR", "")
|
|
36
|
+
if env_dir and Path(env_dir).is_dir():
|
|
37
|
+
return Path(env_dir)
|
|
38
|
+
|
|
39
|
+
print("エラー: AI Orchestra ディレクトリが見つかりません", file=sys.stderr)
|
|
40
|
+
sys.exit(1)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def main() -> None:
|
|
44
|
+
"""orchestra-manager.py の main() を呼び出す。"""
|
|
45
|
+
orchestra_dir = get_orchestra_dir()
|
|
46
|
+
script_path = orchestra_dir / "scripts" / "orchestra-manager.py"
|
|
47
|
+
|
|
48
|
+
if not script_path.exists():
|
|
49
|
+
print(f"エラー: {script_path} が見つかりません", file=sys.stderr)
|
|
50
|
+
sys.exit(1)
|
|
51
|
+
|
|
52
|
+
# orchestra-manager.py を動的にロードして main() を呼び出す
|
|
53
|
+
spec = importlib.util.spec_from_file_location("orchestra_manager", script_path)
|
|
54
|
+
if spec is None or spec.loader is None:
|
|
55
|
+
print(f"エラー: {script_path} をロードできません", file=sys.stderr)
|
|
56
|
+
sys.exit(1)
|
|
57
|
+
|
|
58
|
+
mod = importlib.util.module_from_spec(spec)
|
|
59
|
+
spec.loader.exec_module(mod)
|
|
60
|
+
mod.main()
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
if __name__ == "__main__":
|
|
64
|
+
main()
|