Repository navigation
📝 README: ローカル clone からの導入手順を marketplace 経由に直す - #9
Open
rinjugatla wants to merge 1 commit into
Open
rinjugatla wants to merge 1 commit into
rinjugatla wants to merge 1 commit into
Conversation
`claude plugins install .` は現行 CLI では通らない。`plugins` は `plugin` の 別名で、`install` の引数はプラグイン名 (または 名前@marketplace) として登録済み marketplace から解決されるため、`.` は「`.` という名前の plugin」と解釈され `Plugin "." not found in any configured marketplace` で失敗する。パスを受け取る のは `marketplace add` の側 (`Add a marketplace from a URL, path, or GitHub repo`) で、`install` にパス指定の option は無い。 この repo は plugin root と marketplace root を兼ねるので、clone を marketplace として登録してから plugin 名で install する 2 段階にする。既に同じ形になって いる Codex 側の「Or clone and register locally」と揃えた。install 時に marketplace 名が要るため、説明文に `reviewable-html-workbench-local` を補う。 Windows と Linux の両方で、記載どおりの相対パス指定で marketplace 登録と install が通り、skill 3 件が cache へ展開されることを確認した。なお Windows で この手順を通すには、別 PR の symlink 修正も併せて必要になる。 version は bump していない。symlink 修正の PR と並行するため、bump の要否と値 の判断は作者に委ねる (AGENTS.md の規約に対する意図的な逸脱)。
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.
概要
README のローカル導入手順(Installation → Claude Code の "Alternatively, clone the repository and install locally")が現行の Claude Code CLI では通らないため修正します。
原因は
claude plugin installの引数仕様です。pluginsはpluginの単なる別名で、複数形にしても挙動は変わりません。installの<plugin>はプラグイン名(または名前@marketplace)で、登録済み marketplace の中から解決されます。パスは受け付けず、--path相当の option もありません(claude plugin install --helpで確認)。marketplace addの側です(Add a marketplace from a URL, path, or GitHub repo)。このため
.は「.という名前のプラグイン」と解釈され、どの marketplace にも存在せず失敗します。Linux でも同一のエラーになるため、OS 依存ではなく手順そのものの誤りです。この repo は plugin root と marketplace root を兼ねているので、clone を marketplace として登録してから plugin 名で install する 2 段階が正しい形になります。Codex 側の "Or clone and register locally" は既にこの形なので、それに揃えました。
変更内容
README.mdの Installation → Claude Code のローカル導入手順を変更します。変更前:
変更後:
cdが不要になり、Codex 側の同等ブロックと同じ 3 行構成になります。reviewable-html-workbench-localを補いました。これも Codex 側の記述に合わせています。README 以外に
claude plugins installを案内している箇所は無いことを確認済みです。なおclaude plugins validate .はvalidate <path>がパスを取る仕様のため正しく、変更していません。テスト計画
記載どおりの手順が通ること
親ディレクトリから README のコマンド列をそのまま実行し、marketplace 登録と install が通ることを Windows / Linux の両方で確認しました。
Windows 11:
Linux(
node:22-slim+claude2.1.226):いずれも
~/.claude/plugins/cache/.../skills/にplan-preview/reviewable-design-doc/visual-html-rendererの 3 skill が実体として展開されることを確認しています。パス表記の切り分け
marketplace addに渡すパスの表記を総当たりで確認しました。.単体はソース種別の判定に当てはまらず弾かれるため、README では相対パスで repo ディレクトリ名まで書く形(= Codex 側と同じ形)にしています。.Invalid marketplace source format. Try: owner/repo, https://..., or ./path././reviewable-html-workbench(採用)自動テスト
README のみの変更のためコードへの影響はありませんが、念のため実行しています。
失敗は
.shを直接 exec できない Windows 環境固有の既存のものだけで、本 PR とは無関係です(Linux 環境では発生しません)。Checklist
補足
version を bump していないことについて
AGENTS.md の規約では commit ごとに 4 ファイルの version を更新することになっていますが、本 PR ではあえて据え置きにしています。Windows で
claude plugin installがENOTDIRになる symlink 依存の修正 PR を並行して出しており、両方が version を上げると衝突するためです。bump の要否と値の判断は作者にお任せします。ご指示いただければこの PR 側で bump します。並行 PR との関係
本 PR は README のみの修正で、コードには触れていません。ただし Windows でこの手順を最後まで通すには、もう一方の PR(symlink 依存の除去)も必要です。
marketplace addまでは成功しますが、続くinstallがENOTDIRで失敗するためです。両者は独立して merge できますが、Windows ユーザー向けには両方揃って初めて「clone してローカル導入」が成立します。🤖 このPRは Claude Code(Claude Opus 5)を使用して作成しました。