Skip to content

feat(cli): add plugin system with marketplace integration#121

Open
amdmax wants to merge 2 commits intomainfrom
refactor/relocate-skills-module
Open

feat(cli): add plugin system with marketplace integration#121
amdmax wants to merge 2 commits intomainfrom
refactor/relocate-skills-module

Conversation

@amdmax
Copy link
Collaborator

@amdmax amdmax commented Feb 3, 2026

Summary

Add a complete plugin system that enables skill sharing via plugins, compatible with Claude Code's official plugin format.

Changes

  • Plugin System Core: PluginRegistry, PluginLoader, PluginDiscovery, PluginManifestParser for discovering and loading plugins from ~/.codemie/plugins/
  • Marketplace Integration: MarketplaceClient, MarketplaceRegistry, PluginInstaller for searching, installing, and managing plugins from GitHub-based marketplaces (default: anthropics/claude-plugins-official)
  • CLI Commands: New codemie plugin command with subcommands: list, install, uninstall, update, search, info, marketplace
  • Skill Integration: Extended SkillDiscovery to load skills from installed plugins with proper priority (750 for plugin skills)
  • Namespaced Patterns: Support for /plugin-name:skill-name invocation pattern in pattern-matcher.ts
  • Schema Compatibility: Made plugin manifest schema compatible with Claude Code format (optional version, author as string or object)

Impact

Users can now:

# Search plugins from Anthropic's official repository
codemie plugin search code-review

# Install plugins
codemie plugin install example-plugin

# List installed plugins with skill counts
codemie plugin list

# Use plugin skills with namespaced invocation
/example-plugin:example-skill

Checklist

  • Self-reviewed
  • Manual testing performed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)

Add a complete plugin system that enables skill sharing via plugins:

- Plugin discovery, loading, and registry (PluginRegistry, PluginLoader)
- Marketplace integration with Anthropic's claude-plugins-official repo
- Plugin CLI commands: list, install, uninstall, update, search, info
- Skill discovery from plugins with namespaced pattern support (/plugin:skill)
- Compatible with Claude Code's .claude-plugin/plugin.json format

The plugin system allows users to:
- Search and install plugins from the official Anthropic marketplace
- Discover skills from installed plugins automatically
- Use namespaced skill invocation (e.g., /example-plugin:example-skill)
- Manage plugins via `codemie plugin` CLI commands

Generated with AI

Co-Authored-By: AI/Run CodeMie <noreply@codemieai.com>
@amdmax amdmax force-pushed the refactor/relocate-skills-module branch from fc53203 to b99a4ca Compare February 3, 2026 18:22
…mprovements

- Add path traversal protection via validatePluginName and isPathWithinDirectory checks
- Replace silent catch blocks with logger.debug() for consistent error diagnostics
- Migrate console.error to logger.error in MarketplaceClient
- Fix broken dynamic import of exec.js with static import from processes.ts
- Improve type safety by replacing `as any` with proper ReadableStream type
- Add null check for response.body before Readable.fromWeb
- Parallelize dev plugin discovery with Promise.all instead of sequential await

Generated with AI

Co-Authored-By: AI/Run CodeMie <noreply@codemieai.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