[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CW82G3ZDMVMCA0JJM0WJVG":3,"skill-same:01M7CW82G3ZDMVMCA0JJM0WJVG":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7CW82G3ZDMVMCA0JJM0WJVG","add-plugin",null,"Adds a new VGV Claude Code plugin to vgv_ai_cli so `vgv_ai install` ports it to every harness — pinning it in vgvPlugins, auditing its contents against what the parser and translators support, extending the parser when the plugin needs it, updating every test that lists the pinned plugins, and verifying against the real plugin. Use when asked to \"add \u003Cplugin> to vgv_ai\", \"pin \u003Cplugin>\", \"install \u003Cplugin> for every agent\", \"support the \u003Cname> plugin\", or when a new plugin lands in the VGV marketplace. Not for bumping a plugin that is already pinned (the weekly bot does that) or for adding a coding agent (use add-harness).","VeryGoodOpenSource\u002Fvgv_ai_cli","VeryGoodOpenSource","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F74265434?v=4","01M7CW770P0YPKWG5QA4T3FBG4","Very Good Open Source","01M7CW7718QX43YBMZB620XNXJ",5,"MIT","https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002Fvgv_ai_cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-plugin\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: add-plugin\ndescription: Adds a new VGV Claude Code plugin to vgv_ai_cli so `vgv_ai install` ports it to every harness — pinning it in vgvPlugins, auditing its contents against what the parser and translators support, extending the parser when the plugin needs it, updating every test that lists the pinned plugins, and verifying against the real plugin. Use when asked to \"add \u003Cplugin> to vgv_ai\", \"pin \u003Cplugin>\", \"install \u003Cplugin> for every agent\", \"support the \u003Cname> plugin\", or when a new plugin lands in the VGV marketplace. Not for bumping a plugin that is already pinned (the weekly bot does that) or for adding a coding agent (use add-harness).\n---\n\n# Adding a plugin\n\nA plugin is pinned in one place, `vgvPlugins` in\n`packages\u002Fvgv_ai_plugins\u002Flib\u002Fsrc\u002Fplugin_ref.dart`, and everything else iterates that list. So the\npin itself is a few lines of code. The real work is the audit: a plugin can contain things the\nparser has never seen, and the CLI fails on them quietly. A skill whose `${CLAUDE_PLUGIN_ROOT}`\nnever resolves, a skill name another plugin already took, or a `commands\u002F` folder nobody reads all\ninstall cleanly and then do nothing. Steps 1 and 2 are there to catch that before code is written.\n\nRun commands from the repo root unless a step says otherwise. Paths are written in full from the\nroot.\n\n## Step 1: research, then report before writing code\n\nFind the release to pin and confirm Claude Code can get it:\n\n```sh\ngh release view -R VeryGoodOpenSource\u002F\u003Cplugin> --json tagName,publishedAt\ngh api repos\u002FVeryGoodOpenSource\u002F\u003Cplugin>\u002Fcontents\u002F.claude-plugin\u002Fplugin.json?ref=\u003Ctag> \\\n  --jq .content | base64 -d\ngh api repos\u002FVeryGoodOpenSource\u002Fvery-good-claude-code-marketplace\u002Fcontents\u002F.claude-plugin\u002Fmarketplace.json \\\n  --jq .content | base64 -d\n```\n\nRecord:\n\n- **`name`**: what `plugin.json` declares. It becomes the `--plugin` value, the manifest key and\n  the Claude Code cache folder, so it must match the marketplace entry exactly.\n- **`version`**: what `plugin.json` declares at the tag. This is **not** the tag. `PluginRef`\n  explains why both are kept: the cache folder is named after the version, while git clones the\n  tag.\n- **`gitRef`**: the release tag, usually `v`-prefixed.\n- **Whether the marketplace lists the plugin at that version.** The Claude harness enables\n  `\u003Cname>@very-good-claude-code-marketplace` for every pin. If the marketplace doesn't list the\n  plugin, Claude Code reports a plugin it can't find. Stop and get it listed first.\n\nThen clone the tag and audit it against the plugins already pinned:\n\n```sh\nwork=$(mktemp -d)\ngit clone -q --depth 1 --branch \u003Ctag> https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002F\u003Cplugin>.git \"$work\u002Fnew\"\n# Each existing pin, at its pinned gitRef from plugin_ref.dart:\ngit clone -q --depth 1 --branch \u003CgitRef> https:\u002F\u002Fgithub.com\u002F\u003Crepo>.git \"$work\u002F\u003Cname>\"\n.claude\u002Fskills\u002Fadd-plugin\u002Fscripts\u002Faudit_plugin.sh \"$work\u002Fnew\" \"$work\"\u002F\u003Ceach pinned name>\n```\n\nThe script only reports; it changes nothing. Here is what each section means:\n\n| Section                                                        | Fine when                                                                                                                                 | Otherwise                                                                                                                                                                                                                                                                                         |\n| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Top-level entries the parser does not read                     | Only folders that bodies read in place through `${CLAUDE_PLUGIN_ROOT}`, such as `references\u002F`, `scripts\u002F` or `config\u002F`, plus repo tooling | A Claude feature the parser does not port, such as `commands\u002F` or `output-styles\u002F`. Report it: it is either new parser work or a known gap the PR states                                                                                                                                          |\n| Contributes                                                    | —                                                                                                                                         | Hook events and handler types tell you which harnesses will print notes. Translators already report those, so this is for your report, not a blocker                                                                                                                                              |\n| `${CLAUDE_PLUGIN_ROOT}` in files that are copied               | `none`                                                                                                                                    | A skill's other files are copied byte for byte, so the placeholder there never resolves outside Claude Code. That needs parser or translator work                                                                                                                                                 |\n| Bare paths to plugin files                                     | `none`                                                                                                                                    | Upstream bug: the path resolves against the user's project, not the plugin. File an issue on the plugin repo (step 6). Do not work around it in the CLI                                                                                                                                           |\n| Paths through `${CLAUDE_PLUGIN_ROOT}` the plugin does not hold | `none`                                                                                                                                    | Upstream bug, same as above                                                                                                                                                                                                                                                                       |\n| Names already taken by a pinned plugin                         | `none`                                                                                                                                    | `PluginAssets.merge` keeps the **first** skill, agent or MCP server of a name and drops the rest without a word. Compare the two definitions: identical, as with the `very-good-cli` MCP server that two VGV plugins both declare, is harmless. If they differ, stop and ask which one should win |\n\n**Stop and report**, with the audit output, before writing code. Say what will be ported, what will\nbe noted as unsupported, and what needs CLI changes. A guess here produces config that silently does\nnothing.\n\n## Step 2: CLI changes the plugin needs, if any\n\nMost plugins need none. When the audit shows one, such as a placeholder the parser does not yet\nresolve, make that change on its own, in its own commit (`feat(plugins): …`), before the pin. That\nway the pin commit reads as data. The ffca plugin is the precedent: it needed `${CLAUDE_PLUGIN_ROOT}`\nresolved in skill and agent bodies, which went into `ClaudePluginParser` in `vgv_ai_plugins`.\n\n- Put Claude-specific interpretation in `ClaudePluginParser`. It is the one place that knows what\n  \"Claude-specific\" means. A harness-specific rendering goes in that harness's translator.\n- Test it against fixtures in `packages\u002Fvgv_ai_plugins\u002Ftest\u002Fsrc\u002Fparser\u002F`, not against the real\n  plugin.\n- **If the change alters what an existing install renders**, every user's files read as\n  `outdated` in `doctor` until they run `install` again. Say so in the PR. Also add a `doctor` test\n  in `packages\u002Fvgv_ai_cli\u002Ftest\u002Fsrc\u002Fcommands\u002Fdoctor\u002Fdoctor_command_test.dart` for the case that\n  flips. `a skill pointing into the plugin root` in that file is the model.\n- Update the docs of the model types you touched (`HookCommand`, `SkillAsset`, `AgentAsset`, …) so\n  they still describe the contract.\n- Both packages' CI runs a cognitive complexity check (max 15 per function) on `lib`. Split a\n  function before it crosses that.\n- **Prove the change leaves the existing pins alone.** Fixture tests can't show what real plugins\n  render. Install the existing pins into one home before the change and into another after it,\n  then diff the two with the home path normalized. Only files the change is meant to affect may\n  differ. Run this with the change committed, before the pin:\n\n  ```sh\n  cd packages\u002Fvgv_ai_cli\n  only=$(dart run bin\u002Fvgv_ai.dart install --help | sed -n 's\u002F.*\\[\\([a-z]*\\)\\] .*\u002F--only \\1\u002Fp' | xargs)\n  pins=$(dart run bin\u002Fvgv_ai.dart install --help | sed -n 's\u002F.*\\[\\(.*-.*\\)\\]$\u002F\\1\u002Fp' | tr -d ',' | sed 's\u002F[^ ][^ ]*\u002F--plugin &\u002Fg')\n  install_into() {\n    local home; home=$(mktemp -d)\n    HOME=$home dart run bin\u002Fvgv_ai.dart install $only $pins > \u002Fdev\u002Fnull\n    rg -l --hidden --no-ignore -F \"$home\" \"$home\" | xargs perl -pi -e \"s|\\Q$home\\E|HOME|g\"\n    echo \"$home\"\n  }\n  git switch -q --detach \u003Ccommit before the change>; before=$(install_into); git switch -q -\n  after=$(install_into)\n  diff -r -x .vgv_ai -x .dart-tool \"$before\" \"$after\"   # clones and Dart telemetry differ anyway\n  ```\n\n## Step 3: the pin\n\nAppend a block to `vgvPlugins`:\n\n```dart\nPluginRef(\n  name: '\u003Cname>',\n  repo: 'VeryGoodOpenSource\u002F\u003Cplugin>',\n  version: '\u003Cplugin.json version>',\n  gitRef: '\u003Ctag>',\n),\n```\n\n- **Keep exactly this shape.** `packages\u002Fvgv_ai_plugins\u002Ftool\u002Fbump_plugin_pins.dart` finds the block\n  with `PluginRef\\([^)]*\\)` and the `repo: '…',` line, then rewrites `version` and `gitRef` in place.\n  A reformatted block makes the weekly bump fail.\n- **Append; do not insert.** List order decides which plugin wins a name collision (step 1). It is\n  also the order of `--plugin` in `install --help`.\n\n## Step 4: the tests that list the plugins\n\nMost tests iterate `vgvPlugins` and adapt on their own. Find the ones that do not:\n\n```sh\nrg -n \"vgv-wingspan|vgv-ai-flutter-plugin|vgvPlugins\\.(first|last)\" packages\u002F*\u002Ftest\n```\n\nThese are the known ones. Update each, then check the `rg` output for any the list has missed:\n\n- `packages\u002Fvgv_ai_plugins\u002Ftest\u002Ftool\u002Fbump_plugin_pins_test.dart`: the `pinsSource` copy of the pin\n  list, and **every** `releases({...})` map, which needs an entry for the new plugin. Add a test that\n  bumps only the new plugin, modeled on `bumps the FFCA plugin like any other`.\n- `packages\u002Fvgv_ai_cli\u002Ftest\u002Fsrc\u002Ftranslate\u002Ftranslators\u002Fclaude_translator_test.dart`: the\n  `enabledPlugins` map.\n- `packages\u002Fvgv_ai_cli\u002Ftest\u002Fsrc\u002Fcommands\u002Finstall_command_test.dart`: any expectation that names\n  only the first plugin where every pinned plugin is meant. The `--plugin` test that skips\n  `vgvPlugins.last` is one. With a third pin, \"every plugin but the skipped one\" is no longer just\n  `first`.\n\nLeave alone the tests that use a plugin name only as sample data, such as `install_manifest_test.dart`\nor the `vgv-wingspan` fixture in `test\u002Fsrc\u002Ftranslate\u002F_assets.dart`.\n\n## Step 5: verify\n\nFrom each package:\n\n```sh\ncd packages\u002Fvgv_ai_plugins\ndart format --set-exit-if-changed . && dart analyze --fatal-infos --fatal-warnings lib test\ndart run test\ncd ..\u002Fvgv_ai_cli\ndart format --set-exit-if-changed . && dart analyze --fatal-infos --fatal-warnings lib test\ndart run test --run-skipped -t pinned-plugins\n```\n\n`pinned-plugins` is the check that matters for a new pin. It clones every real pinned plugin at its\n`gitRef`, so this is the first time the parser's strict schemas meet the new plugin's actual files.\nIt then translates them for every harness and checks that every plugin path a rendered body names\nexists. It is skipped by default, which is why the command passes `--run-skipped`.\n\nIf the clone fails with exit 128 and no message, a global git hook, such as a `post-checkout` from\n`init.templateDir`, is failing inside the fresh clone. Run with hooks off for that command only:\n\n```sh\nGIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=core.hooksPath GIT_CONFIG_VALUE_0=\u002Fdev\u002Fnull \\\n  dart run test --run-skipped -t pinned-plugins\n```\n\nThen run the full suite with coverage, which must stay at 100%. If the `very_good_cli` MCP server\nis available, use its `test` tool: a hook denies `dart test` and `very_good test` in Bash there.\nOtherwise run `very_good test -j 4 --coverage --min-coverage 100 --optimization` in each package.\n\nFinally, run the plugin through the CLI for real, for every harness, in a throwaway home. **Put a\nspace in the home path**, because that is where shell quoting breaks. The FFCA hooks already quote\n`${CLAUDE_PLUGIN_ROOT}`, and the CLI used to quote the path a second time inside them, which split\nthe command at the space. Neither the tests nor `--check` caught it; a real install did.\n\n```sh\ncd packages\u002Fvgv_ai_cli\nonly=$(dart run bin\u002Fvgv_ai.dart install --help | sed -n 's\u002F.*\\[\\([a-z]*\\)\\] .*\u002F--only \\1\u002Fp' | xargs)\nhome=\"$(mktemp -d)\u002FJane Doe\"; mkdir -p \"$home\"\nHOME=\"$home\" dart run bin\u002Fvgv_ai.dart install $only --plugin \u003Cname>\nHOME=\"$home\" dart run bin\u002Fvgv_ai.dart doctor\n```\n\nThen check each of these:\n\n- **Every asset is accounted for.** Each skill, agent, MCP server and hook script the audit counted\n  was written, or got a note from `install` saying why a harness can't take it. Anything in neither\n  place is silently missing. That is a bug, not something to report as unsupported.\n- **`doctor` exits 0.**\n- **The rendered paths work.** No rendered file outside a copied hook folder still contains\n  `CLAUDE_PLUGIN_ROOT`, and every plugin path a body names exists.\n- **The hooks run.** Read the commands out of a harness's hook config, such as\n  `jq -r '.. | .command? \u002F\u002F empty' \"$home\u002F.codex\u002Fhooks.json\"`. Check that each one is a single\n  correctly quoted word despite the space. Then run one with a payload that should trigger it, in a\n  scratch project, and confirm it behaves as it does in Claude Code.\n\n## Step 6: upstream issues\n\nProblems in the plugin's own content go to the plugin repository as issues, not into CLI\nworkarounds. Examples are bare paths, references to files the plugin doesn't ship, and a\nplaceholder in a file the CLI copies. Search first, then file one issue covering them all:\n\n```sh\ngh issue list -R VeryGoodOpenSource\u002F\u003Cplugin> --state all --search \"CLAUDE_PLUGIN_ROOT\"\ngh issue create -R VeryGoodOpenSource\u002F\u003Cplugin> --title \"fix: …\" --body-file \u003Cfile>\n```\n\nGive each finding its file and line, why it breaks outside Claude Code, and the fix. Link the issue\nfrom the PR. When the plugin releases the fix, the weekly bump bot picks it up.\n\n## Step 7: the PR\n\n- Branch `feat\u002Fadd-\u003Cplugin>`. Never commit to `main`.\n- One logical change per commit. The precedent is #125: `feat(plugins): …` for parser work and its\n  tests, `test(doctor): …` when the rendered output changes, `feat: pin \u003Cname> v\u003Cversion>` with the\n  test updates, then `docs: …`.\n- Do not touch any `CHANGELOG.md` or version. Release automation owns them.\n- Document user-visible behavior the plugin introduces in the **Notes** list of\n  `packages\u002Fvgv_ai_cli\u002FREADME.md`. Do not edit the plugin lists in `AGENTS.md` and `CONTRIBUTING.md`:\n  they describe this repo's own `.claude\u002Fsettings.json`, not what `install` ships.\n- **Spelling is checked in every markdown file and in the PR title**, against the VGV dictionaries\n  plus the `words` in `.github\u002Fcspell.json`. A plugin's acronym fails both, as \"ffca\" did. Add the\n  acronym to `words` in its own commit (`chore: …`). That also runs `vgv_ai_cli.yaml`, whose\n  filters include `.github\u002Fcspell.json`. Editing the title does not re-run CI, so after fixing a\n  title, close and reopen the PR.\n- Fill in `.github\u002FPULL_REQUEST_TEMPLATE.md`. Under a \"Known limitations\" heading, list what the\n  audit found that the PR does not fix, with links to the upstream issues.\n\nThen report: the pinned `version` and `gitRef`, the audit output and what you did about each\nfinding, the commands from step 5 and their results, and any upstream issues filed. If you could not\nrun a check, say so plainly rather than implying it passed.\n\n## Common failures\n\n| Symptom                                                                      | Cause                                                                                                                                       |\n| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |\n| `pinned-plugins` fails in `setUpAll` with `Could not parse \u003Cplugin>`         | The plugin ships a shape `claude_schemas.dart` does not admit. Step 2 work, or an upstream fix                                              |\n| `pinned-plugins` fails in `setUpAll` with `Could not clone …` and no message | A global git hook. See the workaround in step 5                                                                                             |\n| `bump_plugin_pins_test.dart` fails after the pin                             | `pinsSource` or a `releases({...})` map is missing the new plugin                                                                           |\n| The weekly bump PR fails on the new plugin                                   | The `PluginRef(...)` block was reformatted, so `rewritePin` cannot find it                                                                  |\n| A skill or agent from the new plugin never installs                          | Its name collides with one an earlier pin declares. `merge` dropped it                                                                      |\n| `spell-check \u002F build` fails on **Spell Check PR Title**                      | An acronym missing from `words` in `.github\u002Fcspell.json`. Add it, then close and reopen the PR                                              |\n| `doctor` reports every file of the plugin as outdated after `install`        | Expected once Claude Code caches the plugin: bodies point at whichever copy the resolver found. See the plugin-files note in the CLI README |\n","# Adding a plugin\n\nA plugin is pinned in one place, `vgvPlugins` in\n`packages\u002Fvgv_ai_plugins\u002Flib\u002Fsrc\u002Fplugin_ref.dart`, and everything else iterates that list. So the\npin itself is a few lines of code. The real work is the audit: a plugin can contain things the\nparser has never seen, and the CLI fails on them quietly. A skill whose `${CLAUDE_PLUGIN_ROOT}`\nnever resolves, a skill name another plugin already took, or a `commands\u002F` folder nobody reads all\ninstall cleanly and then do nothing. Steps 1 and 2 are there to catch that before code is written.\n\nRun commands from the repo root unless a step says otherwise. Paths are written in full from the\nroot.\n\n## Step 1: research, then report before writing code\n\nFind the release to pin and confirm Claude Code can get it:\n\n```sh\ngh release view -R VeryGoodOpenSource\u002F\u003Cplugin> --json tagName,publishedAt\ngh api repos\u002FVeryGoodOpenSource\u002F\u003Cplugin>\u002Fcontents\u002F.claude-plugin\u002Fplugin.json?ref=\u003Ctag> \\\n  --jq .content | base64 -d\ngh api repos\u002FVeryGoodOpenSource\u002Fvery-good-claude-code-marketplace\u002Fcontents\u002F.claude-plugin\u002Fmarketplace.json \\\n  --jq .content | base64 -d\n```\n\nRecord:\n\n- **`name`**: what `plugin.json` declares. It becomes the `--plugin` value, the manifest key and\n  the Claude Code cache folder, so it must match the marketplace entry exactly.\n- **`version`**: what `plugin.json` declares at the tag. This is **not** the tag. `PluginRef`\n  explains why both are kept: the cache folder is named after the version, while git clones the\n  tag.\n- **`gitRef`**: the release tag, usually `v`-prefixed.\n- **Whether the marketplace lists the plugin at that version.** The Claude harness enables\n  `\u003Cname>@very-good-claude-code-marketplace` for every pin. If the marketplace doesn't list the\n  plugin, Claude Code reports a plugin it can't find. Stop and get it listed first.\n\nThen clone the tag and audit it against the plugins already pinned:\n\n```sh\nwork=$(mktemp -d)\ngit clone -q --depth 1 --branch \u003Ctag> https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002F\u003Cplugin>.git \"$work\u002Fnew\"\n# Each existing pin, at its pinned gitRef from plugin_ref.dart:\ngit clone -q --depth 1 --branch \u003CgitRef> https:\u002F\u002Fgithub.com\u002F\u003Crepo>.git \"$work\u002F\u003Cname>\"\n.claude\u002Fskills\u002Fadd-plugin\u002Fscripts\u002Faudit_plugin.sh \"$work\u002Fnew\" \"$work\"\u002F\u003Ceach pinned name>\n```\n\nThe script only reports; it changes nothing. Here is what each section means:\n\n| Section                                                        | Fine when                                                                                                                                 | Otherwise                                                                                                                                                                                                                                                                                         |\n| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Top-level entries the parser does not read                     | Only folders that bodies read in place through `${CLAUDE_PLUGIN_ROOT}`, such as `references\u002F`, `scripts\u002F` or `config\u002F`, plus repo tooling | A Claude feature the parser does not port, such as `commands\u002F` or `output-styles\u002F`. Report it: it is either new parser work or a known gap the PR states                                                                                                                                          |\n| Contributes                                                    | —                                                                                                                                         | Hook events and handler types tell you which harnesses will print notes. Translators already report those, so this is for your report, not a blocker                                                                                                                                              |\n| `${CLAUDE_PLUGIN_ROOT}` in files that are copied               | `none`                                                                                                                                    | A skill's other files are copied byte for byte, so the placeholder there never resolves outside Claude Code. That needs parser or translator work                                                                                                                                                 |\n| Bare paths to plugin files                                     | `none`                                                                                                                                    | Upstream bug: the path resolves against the user's project, not the plugin. File an issue on the plugin repo (step 6). Do not work around it in the CLI                                                                                                                                           |\n| Paths through `${CLAUDE_PLUGIN_ROOT}` the plugin does not hold | `none`                                                                                                                                    | Upstream bug, same as above                                                                                                                                                                                                                                                                       |\n| Names already taken by a pinned plugin                         | `none`                                                                                                                                    | `PluginAssets.merge` keeps the **first** skill, agent or MCP server of a name and drops the rest without a word. Compare the two definitions: identical, as with the `very-good-cli` MCP server that two VGV plugins both declare, is harmless. If they differ, stop and ask which one should win |\n\n**Stop and report**, with the audit output, before writing code. Say what will be ported, what will\nbe noted as unsupported, and what needs CLI changes. A guess here produces config that silently does\nnothing.\n\n## Step 2: CLI changes the plugin needs, if any\n\nMost plugins need none. When the audit shows one, such as a placeholder the parser does not yet\nresolve, make that change on its own, in its own commit (`feat(plugins): …`), before the pin. That\nway the pin commit reads as data. The ffca plugin is the precedent: it needed `${CLAUDE_PLUGIN_ROOT}`\nresolved in skill and agent bodies, which went into `ClaudePluginParser` in `vgv_ai_plugins`.\n\n- Put Claude-specific interpretation in `ClaudePluginParser`. It is the one place that knows what\n  \"Claude-specific\" means. A harness-specific rendering goes in that harness's translator.\n- Test it against fixtures in `packages\u002Fvgv_ai_plugins\u002Ftest\u002Fsrc\u002Fparser\u002F`, not against the real\n  plugin.\n- **If the change alters what an existing install renders**, every user's files read as\n  `outdated` in `doctor` until they run `install` again. Say so in the PR. Also add a `doctor` test\n  in `packages\u002Fvgv_ai_cli\u002Ftest\u002Fsrc\u002Fcommands\u002Fdoctor\u002Fdoctor_command_test.dart` for the case that\n  flips. `a skill pointing into the plugin root` in that file is the model.\n- Update the docs of the model types you touched (`HookCommand`, `SkillAsset`, `AgentAsset`, …) so\n  they still describe the contract.\n- Both packages' CI runs a cognitive complexity check (max 15 per function) on `lib`. Split a\n  function before it crosses that.\n- **Prove the change leaves the existing pins alone.** Fixture tests can't show what real plugins\n  render. Install the existing pins into one home before the change and into another after it,\n  then diff the two with the home path normalized. Only files the change is meant to affect may\n  differ. Run this with the change committed, before the pin:\n\n  ```sh\n  cd packages\u002Fvgv_ai_cli\n  only=$(dart run bin\u002Fvgv_ai.dart install --help | sed -n 's\u002F.*\\[\\([a-z]*\\)\\] .*\u002F--only \\1\u002Fp' | xargs)\n  pins=$(dart run bin\u002Fvgv_ai.dart install --help | sed -n 's\u002F.*\\[\\(.*-.*\\)\\]$\u002F\\1\u002Fp' | tr -d ',' | sed 's\u002F[^ ][^ ]*\u002F--plugin &\u002Fg')\n  install_into() {\n    local home; home=$(mktemp -d)\n    HOME=$home dart run bin\u002Fvgv_ai.dart install $only $pins > \u002Fdev\u002Fnull\n    rg -l --hidden --no-ignore -F \"$home\" \"$home\" | xargs perl -pi -e \"s|\\Q$home\\E|HOME|g\"\n    echo \"$home\"\n  }\n  git switch -q --detach \u003Ccommit before the change>; before=$(install_into); git switch -q -\n  after=$(install_into)\n  diff -r -x .vgv_ai -x .dart-tool \"$before\" \"$after\"   # clones and Dart telemetry differ anyway\n  ```\n\n## Step 3: the pin\n\nAppend a block to `vgvPlugins`:\n\n```dart\nPluginRef(\n  name: '\u003Cname>',\n  repo: 'VeryGoodOpenSource\u002F\u003Cplugin>',\n  version: '\u003Cplugin.json version>',\n  gitRef: '\u003Ctag>',\n),\n```\n\n- **Keep exactly this shape.** `packages\u002Fvgv_ai_plugins\u002Ftool\u002Fbump_plugin_pins.dart` finds the block\n  with `PluginRef\\([^)]*\\)` and the `repo: '…',` line, then rewrites `version` and `gitRef` in place.\n  A reformatted block makes the weekly bump fail.\n- **Append; do not insert.** List order decides which plugin wins a name collision (step 1). It is\n  also the order of `--plugin` in `install --help`.\n\n## Step 4: the tests that list the plugins\n\nMost tests iterate `vgvPlugins` and adapt on their own. Find the ones that do not:\n\n```sh\nrg -n \"vgv-wingspan|vgv-ai-flutter-plugin|vgvPlugins\\.(first|last)\" packages\u002F*\u002Ftest\n```\n\nThese are the known ones. Update each, then check the `rg` output for any the list has missed:\n\n- `packages\u002Fvgv_ai_plugins\u002Ftest\u002Ftool\u002Fbump_plugin_pins_test.dart`: the `pinsSource` copy of the pin\n  list, and **every** `releases({...})` map, which needs an entry for the new plugin. Add a test that\n  bumps only the new plugin, modeled on `bumps the FFCA plugin like any other`.\n- `packages\u002Fvgv_ai_cli\u002Ftest\u002Fsrc\u002Ftranslate\u002Ftranslators\u002Fclaude_translator_test.dart`: the\n  `enabledPlugins` map.\n- `packages\u002Fvgv_ai_cli\u002Ftest\u002Fsrc\u002Fcommands\u002Finstall_command_test.dart`: any expectation that names\n  only the first plugin where every pinned plugin is meant. The `--plugin` test that skips\n  `vgvPlugins.last` is one. With a third pin, \"every plugin but the skipped one\" is no longer just\n  `first`.\n\nLeave alone the tests that use a plugin name only as sample data, such as `install_manifest_test.dart`\nor the `vgv-wingspan` fixture in `test\u002Fsrc\u002Ftranslate\u002F_assets.dart`.\n\n## Step 5: verify\n\nFrom each package:\n\n```sh\ncd packages\u002Fvgv_ai_plugins\ndart format --set-exit-if-changed . && dart analyze --fatal-infos --fatal-warnings lib test\ndart run test\ncd ..\u002Fvgv_ai_cli\ndart format --set-exit-if-changed . && dart analyze --fatal-infos --fatal-warnings lib test\ndart run test --run-skipped -t pinned-plugins\n```\n\n`pinned-plugins` is the check that matters for a new pin. It clones every real pinned plugin at its\n`gitRef`, so this is the first time the parser's strict schemas meet the new plugin's actual files.\nIt then translates them for every harness and checks that every plugin path a rendered body names\nexists. It is skipped by default, which is why the command passes `--run-skipped`.\n\nIf the clone fails with exit 128 and no message, a global git hook, such as a `post-checkout` from\n`init.templateDir`, is failing inside the fresh clone. Run with hooks off for that command only:\n\n```sh\nGIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=core.hooksPath GIT_CONFIG_VALUE_0=\u002Fdev\u002Fnull \\\n  dart run test --run-skipped -t pinned-plugins\n```\n\nThen run the full suite with coverage, which must stay at 100%. If the `very_good_cli` MCP server\nis available, use its `test` tool: a hook denies `dart test` and `very_good test` in Bash there.\nOtherwise run `very_good test -j 4 --coverage --min-coverage 100 --optimization` in each package.\n\nFinally, run the plugin through the CLI for real, for every harness, in a throwaway home. **Put a\nspace in the home path**, because that is where shell quoting breaks. The FFCA hooks already quote\n`${CLAUDE_PLUGIN_ROOT}`, and the CLI used to quote the path a second time inside them, which split\nthe command at the space. Neither the tests nor `--check` caught it; a real install did.\n\n```sh\ncd packages\u002Fvgv_ai_cli\nonly=$(dart run bin\u002Fvgv_ai.dart install --help | sed -n 's\u002F.*\\[\\([a-z]*\\)\\] .*\u002F--only \\1\u002Fp' | xargs)\nhome=\"$(mktemp -d)\u002FJane Doe\"; mkdir -p \"$home\"\nHOME=\"$home\" dart run bin\u002Fvgv_ai.dart install $only --plugin \u003Cname>\nHOME=\"$home\" dart run bin\u002Fvgv_ai.dart doctor\n```\n\nThen check each of these:\n\n- **Every asset is accounted for.** Each skill, agent, MCP server and hook script the audit counted\n  was written, or got a note from `install` saying why a harness can't take it. Anything in neither\n  place is silently missing. That is a bug, not something to report as unsupported.\n- **`doctor` exits 0.**\n- **The rendered paths work.** No rendered file outside a copied hook folder still contains\n  `CLAUDE_PLUGIN_ROOT`, and every plugin path a body names exists.\n- **The hooks run.** Read the commands out of a harness's hook config, such as\n  `jq -r '.. | .command? \u002F\u002F empty' \"$home\u002F.codex\u002Fhooks.json\"`. Check that each one is a single\n  correctly quoted word despite the space. Then run one with a payload that should trigger it, in a\n  scratch project, and confirm it behaves as it does in Claude Code.\n\n## Step 6: upstream issues\n\nProblems in the plugin's own content go to the plugin repository as issues, not into CLI\nworkarounds. Examples are bare paths, references to files the plugin doesn't ship, and a\nplaceholder in a file the CLI copies. Search first, then file one issue covering them all:\n\n```sh\ngh issue list -R VeryGoodOpenSource\u002F\u003Cplugin> --state all --search \"CLAUDE_PLUGIN_ROOT\"\ngh issue create -R VeryGoodOpenSource\u002F\u003Cplugin> --title \"fix: …\" --body-file \u003Cfile>\n```\n\nGive each finding its file and line, why it breaks outside Claude Code, and the fix. Link the issue\nfrom the PR. When the plugin releases the fix, the weekly bump bot picks it up.\n\n## Step 7: the PR\n\n- Branch `feat\u002Fadd-\u003Cplugin>`. Never commit to `main`.\n- One logical change per commit. The precedent is #125: `feat(plugins): …` for parser work and its\n  tests, `test(doctor): …` when the rendered output changes, `feat: pin \u003Cname> v\u003Cversion>` with the\n  test updates, then `docs: …`.\n- Do not touch any `CHANGELOG.md` or version. Release automation owns them.\n- Document user-visible behavior the plugin introduces in the **Notes** list of\n  `packages\u002Fvgv_ai_cli\u002FREADME.md`. Do not edit the plugin lists in `AGENTS.md` and `CONTRIBUTING.md`:\n  they describe this repo's own `.claude\u002Fsettings.json`, not what `install` ships.\n- **Spelling is checked in every markdown file and in the PR title**, against the VGV dictionaries\n  plus the `words` in `.github\u002Fcspell.json`. A plugin's acronym fails both, as \"ffca\" did. Add the\n  acronym to `words` in its own commit (`chore: …`). That also runs `vgv_ai_cli.yaml`, whose\n  filters include `.github\u002Fcspell.json`. Editing the title does not re-run CI, so after fixing a\n  title, close and reopen the PR.\n- Fill in `.github\u002FPULL_REQUEST_TEMPLATE.md`. Under a \"Known limitations\" heading, list what the\n  audit found that the PR does not fix, with links to the upstream issues.\n\nThen report: the pinned `version` and `gitRef`, the audit output and what you did about each\nfinding, the commands from step 5 and their results, and any upstream issues filed. If you could not\nrun a check, say so plainly rather than implying it passed.\n\n## Common failures\n\n| Symptom                                                                      | Cause                                                                                                                                       |\n| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |\n| `pinned-plugins` fails in `setUpAll` with `Could not parse \u003Cplugin>`         | The plugin ships a shape `claude_schemas.dart` does not admit. Step 2 work, or an upstream fix                                              |\n| `pinned-plugins` fails in `setUpAll` with `Could not clone …` and no message | A global git hook. See the workaround in step 5                                                                                             |\n| `bump_plugin_pins_test.dart` fails after the pin                             | `pinsSource` or a `releases({...})` map is missing the new plugin                                                                           |\n| The weekly bump PR fails on the new plugin                                   | The `PluginRef(...)` block was reformatted, so `rewritePin` cannot find it                                                                  |\n| A skill or agent from the new plugin never installs                          | Its name collides with one an earlier pin declares. `merge` dropped it                                                                      |\n| `spell-check \u002F build` fails on **Spell Check PR Title**                      | An acronym missing from `words` in `.github\u002Fcspell.json`. Add it, then close and reopen the PR                                              |\n| `doctor` reports every file of the plugin as outdated after `install`        | Expected once Claude Code caches the plugin: bodies point at whichever copy the resolver found. See the plugin-files note in the CLI README |\n",{"name":5,"description":7},"main","66059715170256e3c9ec7ac0f702256137c7496a",".claude\u002Fskills\u002Fadd-plugin",1,"https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002Fvgv_ai_cli","https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource","https:\u002F\u002Fverygood.ventures\u002F","Open source code from Very Good Ventures (@VGVentures)","2026-11-14 05:14:41",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add VeryGoodOpenSource\u002Fvgv_ai_cli --skill add-plugin",{"tool":39,"command":40},"bunx","bunx skills add VeryGoodOpenSource\u002Fvgv_ai_cli --skill add-plugin",{"tool":42,"command":43},"pnpm","pnpm dlx skills add VeryGoodOpenSource\u002Fvgv_ai_cli --skill add-plugin","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002Fvgv_ai_cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-plugin\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"scripts\u002Faudit_plugin.sh","SCRIPT","脚本",4851,"https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002Fvgv_ai_cli\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-plugin\u002Fscripts\u002Faudit_plugin.sh",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CWA4A7QRCQAGXGRCSX8XKS","only","The only skill here.","https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002Fvgv_ai_cli\u002Fblob\u002Fmain\u002Fpackages\u002Fvgv_ai_plugins\u002Ftest\u002Ffixtures\u002Fplugin_no_mcp\u002Fskills\u002Fonly\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CWA1ZFZ3MBTQDKWNDNGRRV","unnamed-skill","Declares no name, so the directory names it.","https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002Fvgv_ai_cli\u002Fblob\u002Fmain\u002Fpackages\u002Fvgv_ai_plugins\u002Ftest\u002Ffixtures\u002Fplugin\u002Fskills\u002Funnamed-skill\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CWA0RYYGDDD7G9QQ6CP3FE","ui-package","Building a Flutter UI package.","https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002Fvgv_ai_cli\u002Fblob\u002Fmain\u002Fpackages\u002Fvgv_ai_plugins\u002Ftest\u002Ffixtures\u002Fplugin\u002Fskills\u002Fui-package\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CW9M1MAWRR4YH28E6QTKWH","testing","Best practices for Dart unit tests.\nSecond line folds away.","https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002Fvgv_ai_cli\u002Fblob\u002Fmain\u002Fpackages\u002Fvgv_ai_plugins\u002Ftest\u002Ffixtures\u002Fplugin\u002Fskills\u002Ftesting\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CW97031AEN015N7EMJ8Y0M","rebase","Rebase the branch onto its base.","https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002Fvgv_ai_cli\u002Fblob\u002Fmain\u002Fpackages\u002Fvgv_ai_plugins\u002Ftest\u002Ffixtures\u002Fplugin\u002Fskills\u002Frebase\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7CW8X5H92G5ZZSASP58VQJ8","elements-of-style","Writing style guidance.","https:\u002F\u002Fgithub.com\u002FVeryGoodOpenSource\u002Fvgv_ai_cli\u002Fblob\u002Fmain\u002Fpackages\u002Fvgv_ai_plugins\u002Ftest\u002Ffixtures\u002Fplugin\u002Fskills\u002Felements-of-style\u002FSKILL.md",[],[]]