feat: runtime-split-shared-builder shared builder#46
Conversation
takemi-ohama
left a comment
There was a problem hiding this comment.
🤖 cross-review | round 1 | codex | REQUEST_CHANGES
生成契約に修正が必要です。plugins/ndf/skills の互換性と Codex 向け skills-codex の再生成/検証対象化を揃えてください。
takemi-ohama
left a comment
There was a problem hiding this comment.
🤖 cross-review | round 1 | gemini | REQUEST_CHANGES
- 現在の
plugins/ndfが各ランタイム共通で使われている状況下で、plugins/ndf/skillsの生成をclaude-skills.txtに限定しているため、意図せず多くの既存スキル(playwright-*など)が削除され後方互換性が壊れています。ndf-codexなどへの完全移行まではplugins/ndfに全スキルを残す修正を提案します。 - ビルドスクリプトの検査ロジックにおいて、一時ファイルのパスが固定になっているため並行実行時の競合リスクがあります。
/ndf:fix 46 --defer-nit Summary
対応内容:
|
takemi-ohama
left a comment
There was a problem hiding this comment.
🤖 cross-review | round 2 | codex | REQUEST_CHANGES
Codex runtime 向けの生成パス変換に不足があり、公開済み skill が実行時に誤ったディレクトリを参照します。
takemi-ohama
left a comment
There was a problem hiding this comment.
🤖 cross-review | round 2 | gemini | APPROVE
PRの目的である plugins/ndf-shared の導入とビルドスクリプトの追加を確認しました。生成物との整合性も取れており、適切にディレクトリ構造が再編されています。
Pythonスクリプト内に1点だけ未使用の変数が残っているため、将来の保守のために整理を提案します。
|
/ndf:fix 46 --defer-nit Round 2 対応を完了しました。
対応内容:
|
takemi-ohama
left a comment
There was a problem hiding this comment.
🤖 cross-review | round 3 | codex | REQUEST_CHANGES
plugins/ndf-codex 生成経路では Codex runtime 用の root 解決が未適用のため、生成物が Claude 専用環境変数に依存したままになる点を修正してください。
takemi-ohama
left a comment
There was a problem hiding this comment.
🤖 cross-review | round 3 | gemini | REQUEST_CHANGES
macOS 環境でのビルドスクリプト実行互換性のため、sed -i の書き換え処理を修正してください。また、対象の Skill が manifest から外れた際のエラーハンドリングを追加してください。
|
/ndf:fix 46 --defer-nit Round 3 対応を完了しました。
対応内容:
|
takemi-ohama
left a comment
There was a problem hiding this comment.
🤖 cross-review | round 4 | codex | APPROVE
指摘はありません。
takemi-ohama
left a comment
There was a problem hiding this comment.
🤖 cross-review | round 4 | gemini | APPROVE
設計と実装は妥当であり、build-runtime-plugins.sh の同期ロジック(cp -a による一時ディレクトリ経由の更新、一時ファイルの削除、sed によるパス置換)は正しく機能していることを確認しました。
1点だけ、今後の運用保守に向けた提案があります。
plugins/ndf/skillsやplugins/ndf/scriptsが生成物(artifact)となったため、利用者が誤って手動編集するのを防ぐ目的で、ルートの.gitattributesにplugins/ndf/skills/** linguist-generated=true等を追加するか、または各生成先ディレクトリにREADME.md(ここは直接編集しないでください、等の警告) を生成・配置することを推奨します。
現在の実装で既存の互換性は完全に保たれており、リスクへの対応もできているため APPROVE します。
Summary
変更内容
plugins/ndf-shared/を追加し、共有Skill、共有script、runtime別Skill公開manifestを配置scripts/build-runtime-plugins.shを追加し、共有ソースから生成物を同期できるようにしたplugins/ndf/skillsとplugins/ndf/scriptsは生成済み状態で残したplugins/ndf-claude/plugins/ndf-codex/plugins/ndf-kiroディレクトリが存在する場合も、同じbuild scriptでskills/とscripts/を同期できる入口を用意したTest plan
bash scripts/build-runtime-plugins.shbash scripts/build-runtime-plugins.sh --checkpython3 -m json.tool plugins/ndf/.claude-plugin/plugin.json >/dev/nullpython3 -m json.tool plugins/ndf/.codex-plugin/plugin.json >/dev/nullclaude plugin validate plugins/ndf