fix: quote the plugin path in the validate_layers.dart command

オープン 初心者向け
#43 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
85/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
dart
領域
tooling

調査の方向性

agents/ffca-layer-auditor.md の39行目付近と skills/ffca-audit/SKILL.md の27行目および30行目付近を読んでください。パスにスペースが含まれていても機能するように、文書化されている各コマンドでプラグインスクリプトのパスを引用符で囲んでください。3つのコマンドすべてを確認し、引用符の使い方に一貫性があることを確かめてください。issueによると、plugin-paths CIジョブでも引用符のない参照を検出できる可能性があります。

索引モデルが issue の本文から書いたものです。

説明

bug
Description

The ffca-layer-auditor agent and the ffca-audit skill tell the model to run:

dart run ${CLAUDE_PLUGIN_ROOT}/scripts/validate_layers.dart --all

Claude Code substitutes the installed plugin path into that text.
When the path has a space, the command splits and dart run gets the wrong file.
claude plugin validate only checks hook files for this, so CI won't flag it.

It appears in:

  • agents/ffca-layer-auditor.md, line 39
  • skills/ffca-audit/SKILL.md, lines 27 and 30
Steps To Reproduce
  1. Load the plugin from a path with a space, e.g. the Claude desktop app on macOS (~/Library/Application Support/Claude/…).
  2. Run the ffca-audit skill in an FFCA repo.
  3. The auditor runs the command as written, and dart run can't find the script.
Expected Behavior

The validator runs from any install path.
Quoting fixes it:

dart run "${CLAUDE_PLUGIN_ROOT}/scripts/validate_layers.dart" --all
Additional Context
  • I haven't reproduced it. The model may quote the path on its own, but nothing tells it to.
  • https://code.claude.com/docs/en/plugins-reference: "In skill, command, and agent content, write the ${...} reference in the Markdown body instead, and Claude Code substitutes the path inline when it loads the content."
  • The plugin-paths CI job could also fail on an unquoted ${CLAUDE_PLUGIN_ROOT} in a command.
  • Same root cause as VeryGoodOpenSource/vgv-ai-flutter-plugin#194, there in a hook.
主要言語
Dart
スター
7
フォーク
2
平均マージ
9時間 59分
マージ済み PR(30日)
7

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

VeryGoodOpenSource/vgv-ffca-plugin のほかの issue

VeryGoodOpenSource/vgv-ffca-plugin の issue をすべて見る

似ている issue

Dart の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。