Skip to content

Conversation

@leonardocouy
Copy link
Contributor

Summary

  • Each plugin install was caching the entire repository because all plugins had "source": "./" in marketplace.json
  • Added scripts/build_plugins.py that generates per-plugin directories under dist/plugins/, each containing only its own files
  • Updated all 55 plugin source paths in marketplace.json to point to their isolated dist directory
  • CI auto-bump now rebuilds dist/ on every content change
  • CI validation checks that dist/ stays in sync

Before vs After

Before: Installing mermaid-diagrams@agent-toolkit cached ~2.5MB (entire repo: 44 skills, 6 agents, 7 commands)

After: Installing mermaid-diagrams@agent-toolkit caches ~40KB (just skills/mermaid-diagrams/ with its references)

Test plan

  • Run python3 scripts/build_plugins.py --verbose - verify all 55 plugins build
  • Check dist/plugins/mermaid-diagrams/ contains only skills/mermaid-diagrams/
  • Check dist/plugins/agent-ui-ux-designer/ contains only agents/ui-ux-designer.md
  • Run build twice - verify idempotent (no diff)
  • Install a plugin and verify only its files are cached: /plugin install mermaid-diagrams@agent-toolkit
  • Run /context and verify no duplicates

Each plugin's source in marketplace.json pointed to "./" (repo root),
causing every plugin install to cache the entire repository. Now each
plugin has its own directory under dist/plugins/ containing only its
files.

- Add scripts/build_plugins.py to generate per-plugin dist directories
- Update all marketplace.json source paths to dist/plugins/<name>
- Add build step to auto-bump CI workflow
- Add dist/ freshness validation to CI
@leonardocouy leonardocouy merged commit 1c0662a into main Jan 28, 2026
1 check passed
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.

2 participants