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

Open Beginner friendly
#43 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
dart
Domain
tooling

Research direction

Read agents/ffca-layer-auditor.md around line 39 and skills/ffca-audit/SKILL.md around lines 27 and 30. Quote the plugin script path in each documented command so paths containing spaces work. Review all three commands and confirm the quoting is consistent; the issue says the plugin-paths CI job could also catch unquoted references.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Dart
Stars
7
Forks
2
Avg merge
9h 59m
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from VeryGoodOpenSource/vgv-ffca-plugin

All issues in VeryGoodOpenSource/vgv-ffca-plugin

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.