knowledge-work-plugins is a curated surface, but unlike claude-plugins-official
it had no gate on external pull requests — so the open-PR queue had accumulated
~87 external contributions (README edits, "fixes" to first-party plugins,
unsolicited new community plugins) that we do not accept here.
Ports the established -official mechanism verbatim:
- close-external-prs.yml — on PR opened, if the author is not an org member
(write/admin) and the PR is not an in-scope contribution, posts the standard
redirect comment (submit via clau.de/plugin-directory-submission) and closes it.
- external-pr-scope-guard.yml — advisory (NOT required) check surfacing the
in-scope carve-out for reviewers.
- .github/scripts/external-pr-scope.js — shared trust-the-source-repo logic
(MARKETPLACE = .claude-plugin/marketplace.json, matches this repo).
Carve-out (verbatim from -official): a non-member PR may stay open only if it
ADDS marketplace.json entries whose source repo already backs a live plugin
here, and changes nothing else. Members + the bump bot are exempt. Kill switch:
repo var DISABLE_EXTERNAL_PR_CHECK=true.
Prospective only (fires on `opened`) — does not touch the existing open queue.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
knowledge-work-plugins is the last marketplace still opening a single batch
bump/plugin-shas PR; official + community are already per-entry. Set
pr-mode: per-entry and replace the single scan dispatch with a per-entry
fan-out over pr-urls, dispatching scan-plugins.yml per bump/<slug> branch.
Scan-only fan-out (NOT official's 3-workflow loop): KWP's only bump-blocking
required check is scan — this repo has no validate-plugins.yml and check-mcp-urls
is local-source-only + not required. An in-code comment + header guard the next
editor against re-introducing the validate-plugins dispatch (would 404 nightly).
Uses official's tmpfile failure-accumulation idiom (the jq|while subshell would
drop a shell-variable counter). max-bumps default 130 → 30 (per-entry scans are
one workflow run per branch; conservative cap for the first nights).
revert-failed-bumps stays inert under per-entry (gated on the old bump/plugin-shas
branch), exactly as in official — failing bumps isolate in their own PR.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(bump-plugin-shas): re-pin to community 426e469f (subdir-existence guard #267)
Picks up anthropics/claude-plugins-community#267 — guards subdir existence
before manifest synthesis, so a strict:false external whose source.path subdir
vanished at the new SHA is a clean "subdir not found" skip instead of a phantom
synthesized manifest + false bump. Clean one-commit pull-forward from a27629fc.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(scan-plugins): re-pin to community 426e469f (self-healing install)
Folds the scan-plugins pin bump into this PR so KWP pins BOTH shared actions to the
same current community SHA (426e469f) in one go. scan-plugins was still on the old
e85f0d65 (no self-healing CLI install). Supersedes #344.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bumps the bump-plugin-shas action pin to the new claude-plugins-community SHA
(a27629fc), which adds (1) manifest synthesis for strict:false skills-only
externals — so they can be bumped instead of drifting — and (2) an `only`
input to target ONE plugin on demand.
Surfaces the targeting as a `plugin` workflow_dispatch input threaded into the
action's `with:` block:
gh workflow run bump-plugin-shas.yml --repo anthropics/knowledge-work-plugins -f plugin=<name>
(e.g. the now-eligible strict:false entry learn-with-coursera). Empty
`plugin` = unchanged nightly behavior.
The plugin->only->ONLY->bump.sh chain was reviewed (ultra) and e2e-verified
live on claude-plugins-community before this pin bump.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: migrate scan-plugins.yml to Workload Identity Federation auth
Replaces the static ANTHROPIC_API_KEY repo secret with Workload
Identity Federation: the scan-plugins shared action mints a GitHub
OIDC token (id-token: write) and the claude CLI exchanges it for a
short-lived bearer. The federation rule is bound to this repository
(repository_id-pinned).
Depends on anthropics/claude-plugins-community#34 (adds the WIF
inputs to the shared action). Pinned to that PR's head SHA; will
re-pin to a main-branch SHA once #34 merges.
Drops the 'Require ANTHROPIC_API_KEY' fail-closed guard — the WIF
inputs are literal in this file, so the action's skip-if-no-auth
path can't trigger. Updates the prompt-injection security comment
to reflect the short-lived bearer model.
* scan-plugins: re-pin to cpc#34 merge commit on main
claude-plugins-community#34 merged at e85f0d65b4fc87f07862e1dcdc467950514414ec — re-pinning from
the PR head SHA to the squash-merge commit on main so the pin survives
any future branch GC.
* Add SHA bump pipeline, policy scan, and MCP URL liveness check
Brings this marketplace's CI in line with claude-plugins-official:
- bump-plugin-shas.yml: nightly sweep that bumps every external entry's
pinned SHA to upstream HEAD, validates each at the new SHA, opens one
signed PR (createCommitOnBranch satisfies required_signatures), and
dispatches the policy scan on the bump branch.
- scan-plugins.yml: Claude policy review of changed external entries.
Caches verdicts in Actions cache keyed (plugin, sha, policy hash) so
the nightly force-reset doesn't re-burn scan time on already-reviewed
SHAs. Cached pass/fail verdicts are served from disk; only uncached
SHAs are scanned. Fails closed when ANTHROPIC_API_KEY is unset.
Designed to be a required status check on main.
- revert-failed-bumps.yml: drops policy-failing entries from a bump PR
via a follow-up signed commit and re-dispatches the scan, so one bad
upstream can't block the rest. Bounded at 3 passes/night, restricted
to SHA-only diffs and first-party-repo PRs.
- check-mcp-urls.yml: probes every http/sse MCP server URL declared by
vendored plugins. Fails on 404/410/unreachable; passes on auth/method
errors (expected without credentials). Deduplicates shared servers so
cost is bounded by unique URLs, not (plugins x servers). Skips empty
and templated URLs.
- .github/policy/: the policy prompt and structured-output schema the
scan reviews against.
Two operator steps after merge:
1. Set the ANTHROPIC_API_KEY repo secret (the scan refuses to silently
skip a required policy review without it).
2. Add a required_status_checks ruleset on main requiring the `scan`
check from GitHub Actions. Adding it before this merges would block
every PR.
* Fix MCP URL probe: connection failure was reported as PASS
curl writes "000" to -w '%{http_code}' on a connection failure AND exits
nonzero. The previous fallback put the echo inside the command
substitution — both wrote, the captured value was "000000", and the
case statement's 000) arm didn't match, so dead hosts fell through to
PASS. Move the fallback assignment outside the substitution so the
captured value is exactly "000" and connection failures fail.