One organized home for AI agent skills/plugins — vendored once, validated on entry,
and maintained by a small manifest-driven CLI. This is the standalone lab repo that ports
the proven patterns of claude-global-plugins (manifest CLI, atomic swap, validation
gating) into a portable, cross-tool design.
All-Global-Plugin/
├── universal-plugin/
│ ├── _universal/{official,oss}/
│ ├── fullstack/{official,oss}/
│ ├── frontend/{official,oss}/
│ ├── backend/{official,oss}/
│ ├── mobile/{official,oss}/
│ ├── cloud/{official,oss}/
│ ├── salesforce/{official,oss}/
│ └── _quarantine/ # failed-validation clones; never synced
├── plugins.json # single source of truth (schema v2)
├── state.json # auto-managed: version, upstream SHA, batch id
├── INDEX.md # generated human-readable catalog
├── QUARANTINE.md # failure log: plugin, gate failed, reason
├── release-notes/<name>-<ts>.md # upstream delta per update (Phase 4)
├── scripts/ # CLI + adapters
└── .github/workflows/maintain.yml # weekly automation (Phase 4)
Naming rules: plugin folders are lowercase-kebab; tier separation is physical
(official/ vs oss/); a plugin lives in exactly one category; skill identity comes
from SKILL.md frontmatter and is globally unique.
Requires Node.js ≥ 21 and git.
git clone <this-repo-url> && cd All-Global-Plugin
node bin/agp.mjs status # see what's installed
node bin/agp.mjs add --plugin superpowers --url https://github.com/obra/superpowers \
--category _universal --tier oss
node bin/agp.mjs index # regenerate INDEX.md
node bin/agp.mjs doctor # verify catalog healthA real seed example as run during Phase 1 (Task 10):
node bin/agp.mjs add --plugin azure-skills --url https://github.com/microsoft/azure-skills \
--category cloud --tier ossThe add verb clones upstream, runs all four validation gates, stages an atomic swap
into universal-plugin/<category>/<tier>/, records the entry in plugins.json, and
rolls the manifest back automatically if anything fails. Any gate failure quarantines
the clone instead of importing it.
| Verb | Usage | Effect |
|---|---|---|
update |
agp update [--all|--plugin N|--category C] [--dry-run] |
Pull upstream for installed plugins through the validation gates + atomic swap |
add |
agp add --plugin N --url U --category C [--tier oss] [--marketplace-key K] [--skill-entry P] [--disabled] [--dry-run] |
Clone, validate, import a new plugin |
remove |
agp remove --plugin N [--dry-run] |
Drop manifest entry; folder retained |
status |
agp status |
Table: category/tier/active/version/behind-by per plugin |
doctor |
agp doctor |
Structure checks + drift detection vs adopted tool configs |
verify |
agp verify |
CI smoke: manifest + structure + uniqueness + orphans (exit 0/1) |
index |
agp index |
Regenerate INDEX.md from plugins.json |
enable |
agp enable --plugin N |
Activate plugin in your local.json (manifest untouched) |
disable |
agp disable --plugin N |
Deactivate plugin in your local.json (manifest untouched) |
sync |
agp sync --all|--tool T|--plugin N|--category C [--dry-run] — tools: bridge|claude|opencode|gemini|qwen|mcp|codex|windsurf|q |
Push active plugins into all adopted tool configs/junction roots |
rollback |
agp rollback --plugin N [--to SHA] | agp rollback --batch last|<id> [--dry-run] |
Restore a plugin folder (or a whole update batch) to a previous state |
Unknown or missing commands print a usage line to stderr and exit with code 2; validation failures exit non-zero with JSON error output.
Every plugin must pass all four gates before entering a category (spec §6):
- Reachability —
git ls-remote <url>succeeds. - Structure —
.claude-plugin/marketplace.jsonparses OR at least one validSKILL.md(withname+descriptionfrontmatter) exists. - Uniqueness — no skill-name collisions with already-imported skills.
- Safety inventory —
hooks/,scripts/,.mcp.jsonare scanned; executable content is flagged for manual review and never synced cross-tool by default.
Updates use the same atomic-swap discipline: stage a temp clone on the same volume,
validate, rename-old/move-new, strip nested .git, re-validate, delete the retired
folder only after post-swap validation passes — reverse on any failure, so a broken
update never leaves the previous version behind.
Clones that fail any gate are parked in universal-plugin/_quarantine/<name>/ and
logged to QUARANTINE.md (plugin, gate, reason, timestamp). Quarantined plugins are
unreachable by every adapter by construction: they are not in the manifest's synced
set, so they can never leak into tool configs. Example from this repo's history:
flutter-agent-plugins was quarantined for duplicate skill names (code-review,
grill-with-docs). Fixing a quarantined plugin means resolving the failure upstream
(or locally) and re-running add.
Every non-dry-run agp update that changes at least one plugin records a batch:
an entry in state.json (batches[]: {id, pre, post, at, tag, plugins}) plus an
annotated git tag batch/<utc-timestamp> pointing at the bookkeeping commit. Per
plugin, state.json also accumulates a history[] of
{repo_commit, version, upstream_commit_sha, ts} entries, and snapshot_commit
holds the repo commit that vendored that version (never the upstream SHA).
Two rollback verbs give every update an instant undo path:
agp rollback --plugin superpowers # restore previous version
agp rollback --plugin superpowers --to SHA # restore a specific snapshot commit
agp rollback --batch last # undo the whole last update run
agp rollback --batch batch/2026-08-31T10-00-00-000Z
agp rollback --plugin superpowers --dry-run # plan only, mutate nothingSemantics:
- Per-plugin steps back through the plugin's distinct snapshot states (add →
v1 → v2 …), restoring folder content plus its
state.jsonfields, and creates a newRollback <name> → <version>commit. Repeating it keeps walking older. - Batch restores every plugin folder that batch touched to the batch's
prestate in a single commit. A plugin that did not exist atpre(added during the batch window) is skipped with a warning, never deleted.
Safety properties: history is never rewritten (rollback = git checkout <sha> -- <paths> + a new commit; tags are pointers, never moved); rollback touches only
the named plugin's folder (or the batch's plugin folders) plus their state.json
entries — plugins.json, unrelated plugins, and user tool configs are never
modified; every rollback path supports --dry-run.
Every recorded batch also generates documentation in the same Record batch
commit: one release-notes/<name>-<ts>.md per updated plugin (version and
upstream-SHA delta, plus a GitHub compare link when the upstream is a GitHub
repo) and a prepended CHANGELOG.md section (updated/skipped/failed per
batch). INDEX.md is regenerated at the same time.
- Phase 2 — Adapters & sync: ✅ complete. Six sync adapters (bridge junctions into
~/.agents/skills, claude settings merge, opencodeskills.pathsmarker block, gemini dual-path junctions, qwen junctions, mcp emitter), thesyncverb, drift-detectingdoctor, and the per-userlocal.jsoncustomize layer withenable/disableverbs. ECC is vendored as the flagship disabled-by-default showcase: present in the catalog,off (default)instatus, excluded from every sync target, and toggleable per user withagp enable --plugin eccwithout touching the manifest. - Phase 3 — Rollback & tags: ✅ complete. Batch tracking
(
batch/<utc-timestamp>annotated tags +state.jsonbatch records on every update run), per-plugin rollback (agp rollback --plugin N [--to SHA]) and whole-batch rollback (agp rollback --batch last|<id>). - Phase 3 Part 2 — Cross-tool compatibility: ✅ complete. Codex CLI TOML adapter
(
~/.codex/config.tomlmanaged marker block), Windsurf (mcp_config.json) and Amazon Q (~/.aws/amazonq/mcp.json) MCP targets, sync/doctor/CLI wiring for all three, plus the whole-catalog compatibility matrix (docs/COMPATIBILITY.md) and the Phase 4 testing strategy (docs/TESTING-STRATEGY.md). - Phase 4 — Automation: ✅ complete. Weekly
maintain.ymlloop (doctor → update --all → sync --all → status → push--follow-tags), per-pushci.ymlsmoke (full test suite +agp verify), and per-batch generated docs — release notes,CHANGELOG.md, and a regeneratedINDEX.mdride everyRecord batchcommit.
A gitignored local.json at the repo root holds your personal overlay. A plugin's
active state resolves as: local.json plugins.<name>.enabled wins if set;
otherwise the manifest's enabled_by_default (absent = true).
agp enable --plugin ecc # writes local.json only; plugins.json untouched
agp disable --plugin ui-ux-pro-max
agp status # shows 'active' | 'off (you)' | 'off (default)'Removing a plugin from your active set never deletes the vendored folder or the
manifest entry — agp remove retains the folder, and disable/enable only edit
local.json. local.json also accepts paths overrides for non-standard tool
config locations.
agp sync --all pushes every active plugin into each adopted tool:
| Target | Mechanism | Adoption gate |
|---|---|---|
~/.agents/skills (bridge) |
junctions per skill (Codex, Grok, Cline, Warp, Copilot, Cursor, Gemini-bridge) | root created on demand |
~/.claude/settings.json |
extraKnownMarketplaces + enabledPlugins merge, source:"agp" markers |
file must exist |
~/.config/opencode/opencode.jsonc |
// agp:skills-start/end managed block |
file must exist |
~/.gemini/skills + ~/.gemini/antigravity-cli/skills |
junctions, dual-path | roots created on demand |
~/.qwen/skills |
junctions | root created on demand |
~/.codex/config.toml |
# agp:mcp-start/end managed TOML block, [mcp_servers.<name>] tables (stdio servers only) |
file must exist |
~/.codeium/windsurf/mcp_config.json |
mcpServers merge from plugin .mcp.json |
file must exist |
~/.aws/amazonq/mcp.json |
mcpServers merge from plugin .mcp.json |
file must exist |
~/.cursor/mcp.json, ~/.gemini/settings.json, ~/.qwen/settings.json |
mcpServers merge from plugin .mcp.json |
file must exist |
Cross-tool compatibility: every tool in the
AI coding tools catalog is mapped — synced, bridge-consumer,
needs-verification, or not-applicable — in docs/COMPATIBILITY.md.
The Phase 4 testing strategy (error handling, test plan, scenario matrix) lives in
docs/TESTING-STRATEGY.md.
Safety rules on every target: user entries are preserved and never clobbered;
stale agp-owned entries (marked source:"agp" or resolving inside the repo) are
removed; existing config files get a .bak-<timestamp> backup before mutation;
MCP env values are emitted only as ${VAR} refs — literal secrets are skipped
with a warning. --dry-run on any verb shows the exact planned changes without
writing.
Two GitHub Actions workflows ship with the repo (.github/workflows/):
| Workflow | Trigger | Loop |
|---|---|---|
ci.yml |
every push (main) + PRs | npm test (full suite) → node bin/agp.mjs verify (manifest + structures + uniqueness + orphans; exit-code gated) |
maintain.yml |
weekly cron (Mon 04:23 UTC) + manual workflow_dispatch |
git identity → doctor (abort on structural problems) → update --all (generates release-notes + changelog + index per batch) → sync --all → status → git push origin HEAD --follow-tags |
Notes on how the weekly run behaves:
- Runner sync is a no-op by design. Sync is adoption-gated — the runner's
home has none of the adopted tool configs (
~/.claude,~/.codex, …), so every target reports{skipped: true}. The weekly run vendors, batches, tags, and documents; per-machine sync stays a localagp sync --all. - Failure isolation. A failing plugin lands in
failed[]and aborts only itself; successful plugins still get their batch, docs, and tag, and the push proceeds. The run then ends red with a warning naming the undo command. - Append-only, ever. The workflow pushes with
--follow-tagsand never force-pushes; commits and tags are created by the samebin/agp.mjsverbs humans use. No third-party actions beyondactions/checkoutandactions/setup-node; the defaultGITHUB_TOKENdoes the push. doctor --fixfrom the original design maps to plaindoctor+sync --all— drift repair is sync, so no separate flag exists.- Undo any weekly run with
agp rollback --batch last(restores every plugin folder that batch touched to its pre-pull state, in one commit). - A concurrency group (
maintain) prevents overlapping weekly runs.
Cloning this repo wires everything to your home directory, whoever you are.
All target paths in plugins.json are written as ~/... and expanded against
os.homedir() at runtime, with CLAUDE_CONFIG_DIR / XDG_CONFIG_HOME env overrides
respected ahead of that. No username or machine-specific absolute path appears in any
committed file, so the same checkout works unchanged across machines and operating
systems. Non-standard layouts are handled by an optional, gitignored paths.local.json.