Skip to content

docs: use real plugin ids in examples and expand troubleshooting - #1

Open
Alishahzad1903 wants to merge 1 commit into
mainfrom
docs/real-plugin-examples
Open

docs: use real plugin ids in examples and expand troubleshooting#1
Alishahzad1903 wants to merge 1 commit into
mainfrom
docs/real-plugin-examples

Conversation

@Alishahzad1903

Copy link
Copy Markdown
Collaborator

Why

The README and --help examples used plugin ids that the marketplace does not list — discourse-api-documentation-sdk, acme-payments-sdk, my-sdk. Copying any of them verbatim gets you '<plugin>' is not listed in context-plugins, which is a bad first run.

What changed

  • Real ids in examples. paypal and acme-payments replace the invented ones. The README now leads with a generic npx context-plugins install <plugin>, shows paypal as the concrete case, and points at list so discovery does not depend on the example staying current.
  • --long is documented. list has supported it since it was added (src/cli.js:14, :209, :242); it was just missing from the options table.
  • doctor section moved below the options table and state-directory layout, so the command list is immediately followed by the flags that apply to it.
  • Troubleshooting rows. The duplicate-marketplace row now quotes the message as it reads after 2ca833c (already has a marketplace named '<name>', from <other-repo>). Two new rows: an unlisted plugin id, and an upstream rename breaking update.

Notes for the reviewer

  • Docs and help text only — no behavior change. src/cli.js touches nothing but the Examples block string.
  • Ids verified against context-plugins/plugin-marketplace@main, which currently lists 29 plugins including paypal and discourse-documentation.
  • The CI smoke test still installs discourse-api-documentation-sdk and so cannot pass. The one-line fix is committed locally on ci/real-plugin-id but could not be pushed: the token available here has no workflow scope, so GitHub rejects any push touching .github/workflows/. That needs pushing separately with a workflow-scoped token.
  • The doctor sample output in this branch says 16 plugins; the registry actually has 29. It is illustrative output, so I left the number as-is rather than change authored content — say the word and I will make it 29.

🤖 Generated with Claude Code

The examples referenced plugin ids that do not exist in the marketplace
(`discourse-api-documentation-sdk`, `acme-payments-sdk`, `my-sdk`), so
copying one straight out of the README or `--help` failed. Point them at
ids the registry actually serves, and lead with a generic `<plugin>` plus
a pointer to `list` so discovery does not depend on the example.

Also:
- document `--long`, which `list` already supports
- move the `doctor` section below the options and layout reference, so
  the command list is followed by the flags that apply to it
- match the duplicate-marketplace troubleshooting row to the message
  text as of 2ca833c, and add rows for an unlisted plugin id and for an
  upstream rename breaking `update`

The matching fix to the CI smoke test is on a separate branch; pushing it
needs a token with the `workflow` scope.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant