This guide explains how to make the cli-anything plugin installable and publish it.
-
Copy to Claude Code plugins directory:
cp -r /root/cli-anything/cli-anything-plugin ~/.claude/plugins/cli-anything -
Reload plugins in Claude Code:
/reload-plugins
-
Verify installation:
/help cli-anything
Package as a tarball:
cd /root/cli-anything
tar -czf cli-anything-plugin-v1.0.0.tar.gz cli-anything-plugin/Others can install:
cd ~/.claude/plugins
tar -xzf cli-anything-plugin-v1.0.0.tar.gzcd /root/cli-anything/cli-anything-plugin
# Initialize git
git init
git add .
git commit -m "Initial commit: cli-anything plugin v1.0.0"
# Create repo on GitHub (via web or gh CLI)
gh repo create cli-anything-plugin --public --source=. --remote=origin
# Push
git push -u origin main# Tag the release
git tag -a v1.0.0 -m "Release v1.0.0: Initial release"
git push origin v1.0.0
# Create GitHub release
gh release create v1.0.0 \
--title "cli-anything Plugin v1.0.0" \
--notes "Initial release with 4 commands and complete 6-phase methodology"Users can install directly:
cd ~/.claude/plugins
git clone https://github.com/yourusername/cli-anything-plugin.gitOr via Claude Code (if you set up a plugin registry):
/plugin install cli-anything@github:yourusername/cli-anything-pluginTo publish to the official Claude Plugin Directory:
Ensure your plugin meets requirements:
- ✅ Complete
plugin.jsonwith all metadata - ✅ Comprehensive README.md
- ✅ LICENSE file (MIT recommended)
- ✅ All commands documented
- ✅ No security vulnerabilities
- ✅ Tested and working
-
Fork the official repository:
gh repo fork anthropics/claude-plugins-official
-
Add your plugin to external_plugins:
cd claude-plugins-official mkdir -p external_plugins/cli-anything cp -r /root/cli-anything/cli-anything-plugin/* external_plugins/cli-anything/
-
Create pull request:
git checkout -b add-cli-anything-plugin git add external_plugins/cli-anything git commit -m "Add cli-anything plugin to external plugins" git push origin add-cli-anything-plugin gh pr create --title "Add cli-anything plugin" \ --body "Adds cli-anything plugin for building CLI harnesses for GUI applications"
-
Fill out submission form:
- Visit: https://forms.anthropic.com/claude-plugin-submission
- Provide plugin details
- Link to your PR
Anthropic will review:
- Code quality and security
- Documentation completeness
- Functionality and usefulness
- Compliance with plugin standards
Approval typically takes 1-2 weeks.
Users can install via:
/plugin install cli-anything@claude-plugin-directoryIf you want to distribute via npm:
{
"name": "@yourusername/cli-anything-plugin",
"version": "1.0.0",
"description": "Claude Code plugin for building CLI harnesses",
"main": ".claude-plugin/plugin.json",
"scripts": {
"install": "bash scripts/setup-cli-anything.sh"
},
"keywords": ["claude-code", "plugin", "cli", "harness"],
"author": "Your Name",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/yourusername/cli-anything-plugin.git"
}
}npm login
npm publish --access publiccd ~/.claude/plugins
npm install @yourusername/cli-anything-pluginFollow semantic versioning (semver):
- Major (1.0.0 → 2.0.0): Breaking changes
- Minor (1.0.0 → 1.1.0): New features, backward compatible
- Patch (1.0.0 → 1.0.1): Bug fixes
Update version in:
.claude-plugin/plugin.jsonREADME.md- Git tags
Before publishing:
- All commands tested and working
- README.md is comprehensive
- LICENSE file included
- plugin.json has correct metadata
- No hardcoded paths or credentials
- Scripts are executable (
chmod +x) - Documentation is up to date
- Version number is correct
- Git repository is clean
- Tests pass (if applicable)
- Make changes
- Update version in
plugin.json - Update CHANGELOG.md
- Commit and tag:
git commit -am "Release v1.1.0: Add new features" git tag v1.1.0 git push origin main --tags - Create GitHub release
- Notify users of update
If deprecating:
- Mark as deprecated in
plugin.json - Update README with deprecation notice
- Provide migration path
- Keep available for 6 months minimum
- Keep README.md updated
- Document breaking changes
- Provide migration guides
Use GitHub Issues for:
- Bug reports
- Feature requests
- Questions
- Respond to issues promptly
- Accept pull requests
- Credit contributors
Create SECURITY.md:
# Security Policy
## Reporting a Vulnerability
Email: security@yourdomain.com
Please do not open public issues for security vulnerabilities.- No credentials in code
- Validate all inputs
- Use secure dependencies
- Regular security audits
MIT License allows:
- Commercial use
- Modification
- Distribution
- Private use
Requires:
- License and copyright notice
If using "Claude" or "Anthropic":
- Follow brand guidelines
- Don't imply official endorsement
- Use "for Claude Code" not "Claude's plugin"
- Claude Code Plugin Docs: https://code.claude.com/docs/en/plugins
- Plugin Directory: https://github.com/anthropics/claude-plugins-official
- Submission Form: https://forms.anthropic.com/claude-plugin-submission
- Community: Claude Code Discord/Forum
- GitHub Issues: https://github.com/yourusername/cli-anything-plugin/issues
- Email: your-email@example.com
- Discord: Your Discord handle