Repository navigation
claude-plugins CI: each plugin's files match its public source at the tag its version names, so the marketplace copy cannot drift again - #15
Merged
houman44 merged 5 commits intoNov 12, 2026
Conversation
…ory and path Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eck, red until the check exists Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ource at the tag its version names Every file byte for byte, the README by section (the copy may add "Install" and "Changes..." sections), extra files fail except .claude-plugin/icon.png, and an unreadable source or a missing tag fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ests and pushes to main package.json gains two scripts, test and check, and no dependency. The workflow reads contents only, uses no secret, pins its actions by full commit SHA, and passes the job's own token for API rate limits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ith its tagged source Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Goal:
goal_claude_plugins_mirror_matches_tagged_source_2026-11-11. Propose-only: please review, do not merge as is (see Finding).Finding: the cejel copy has already drifted, so this check fails on
maintodayRun against the real tags, the check passes dunstan and fails cejel:
The card says every section of cejel's source README is in the copy unchanged. One isn't. In the second bullet of
## Known issues, the source atv0.6.11says:The copy has only "…instead of the pinned version. Run it from another directory." (the text from before 0.6.4). The card says not to edit
plugins/, so this PR does not touch the copy. If this PR merges as is, the new workflow will be red onmainuntilplugins/cejel/README.mdis synced fromBargLabs/cejel@v0.6.11in a separate PR. That PR should land first, or together with this one.Items
Done: A.
scripts/plugin-sources.jsonlists the source of each plugin inmarketplace.json:BargLabs/dunstanandBargLabs/cejel, atplugins/<name>. If a plugin has no entry, or an entry has no plugin, the check fails.Done: B.
scripts/check-plugin-sources.mjsuses Node built-ins only. It reads the version from each copy'splugin.json, then reads the source tree atv<version>through GitHub's REST API (git refs, trees and blobs), sendingGITHUB_TOKENwhen it is set. Every file exceptREADME.mdis compared byte for byte. The README rule:##section of the source must be present, byte-identical and in the same order.## Installor starting with## Changes.##line inside a fenced code block is not a heading.A file only in the copy fails, except
.claude-plugin/icon.png. A file only in the source fails. A missing tag fails. A source it cannot read (an API error, a truncated tree, a submodule, a path with no files) fails and is never a pass. The check prints one line per plugin and one per mismatch, naming the file and the tag, and exits 1 on any failure.Done: C.
scripts/check-plugin-sources.test.mjshas 14node:testcases. They run against fixture directories built in a temp dir, through a local source reader, with no network. They cover every case on the card, plus three more: an added section with another name fails, an edited introduction fails, and an entry with no plugin fails. Each failure test checks the exact line the check prints, not just the exit status. The tests were committed red first (d317d8b, failing withERR_MODULE_NOT_FOUNDbecause the script did not exist yet).Done: D.
package.jsongains only thetestandcheckscripts, andpnpm-lock.yamlis unchanged..github/workflows/plugin-sources.ymlrunsnpm testand thennpm run checkonpull_requestand onpushtomain. It uses Node 22 andpermissions: contents: read.actions/checkout(v7.0.1) andactions/setup-node(v7.1.0) are pinned by full SHA, and checkout setspersist-credentials: false. The workflow has no secrets. It passes the job's owngithub.tokenasGITHUB_TOKENfor rate limits only.Done: E.
README.mdgets an "Updating a plugin" section.Verification
pnpm test: 14 of 14 pass locally (Node 26.7.0).pnpm run checkagainst the real tags: output above. It exits 1 because of the cejel finding.npm testunder Node 22. The sandbox did not allow runningnpm, and CI has not run on this branch yet.plugins/changes.No tests claim: this repository has no turbo pipeline, and its CI publishes no JUnit record that a claim could be checked against. No checks claim, per alfred#2645.
🤖 Generated with Claude Code