xiaohongshu
xiaohongshu
marketplace-update
Updates the .claude-plugin/marketplace.json file when plugins are added, modified, or removed. Use when creating or updating plugin entries in the marketplace catalog.
Full skill instructions
This skill provides functionality to update the .claude-plugin/marketplace.json file when plugins are added, modified, or removed from the marketplace.
Maintain the marketplace catalog by:
Use this skill when:
The marketplace.json file follows this schema:
{
"name": "marketplace-name",
"owner": {
"name": "Owner Name",
"email": "[email protected]",
"url": "https://github.com/username"
},
"metadata": {
"description": "Marketplace description",
"version": "1.0.0"
},
"plugins": [
{
"name": "plugin-name",
"source": "./plugins/plugin-name",
"description": "Plugin description",
"version": "1.0.0",
"author": {
"name": "Author Name",
"url": "https://github.com/username"
},
"homepage": "https://github.com/username/repo",
"repository": "https://github.com/username/repo",
"license": "MIT",
"keywords": ["keyword1", "keyword2"],
"category": "category-name",
"strict": false,
"commands": ["./commands/command-name.md"],
"agents": ["./agents/agent-name.md"],
"skills": ["./skills/skill-name"]
}
]
}
Add a new plugin entry to the marketplace:
# Use the provided Python script
python marketplace_update.py add \
--name "plugin-name" \
--description "Plugin description" \
--version "1.0.0" \
--category "category-name" \
--agents "agent1.md,agent2.md" \
--commands "command1.md,command2.md" \
--skills "skill1,skill2"
Required Fields:
name - Plugin name (hyphen-case)description - Brief plugin descriptionversion - Semantic version (e.g., "1.0.0")Optional Fields:
category - Plugin category (default: "general")agents - Comma-separated list of agent filescommands - Comma-separated list of command filesskills - Comma-separated list of skill directorieskeywords - Comma-separated list of keywordslicense - License type (default: "MIT")strict - Strict mode flag (default: false)Update an existing plugin entry:
python marketplace_update.py update \
--name "plugin-name" \
--description "Updated description" \
--version "1.1.0" \
--add-agent "new-agent.md" \
--remove-command "old-command.md"
Update Operations:
--description - Update description--version - Update version--category - Update category--keywords - Update keywords (replaces all)--add-agent - Add agent file--remove-agent - Remove agent file--add-command - Add command file--remove-command - Remove command file--add-skill - Add skill directory--remove-skill - Remove skill directoryRemove a plugin from the marketplace:
python marketplace_update.py remove --name "plugin-name"
Validate the marketplace.json structure:
python marketplace_update.py validate
This checks:
The skill includes a Python script at marketplace_update.py that provides command-line interface for all operations.
When invoked as a skill:
Read Plugin Structure
Execute Python Script
Validate Result
# Plugin: golang-development
# Components: 3 agents, 1 command, 4 skills
python marketplace_update.py add \
--name "golang-development" \
--description "Go language development tools" \
--version "1.0.0" \
--category "languages" \
--keywords "golang,go,development" \
--agents "golang-pro.md,gin-pro.md,charm-pro.md" \
--commands "golang-scaffold.md" \
--skills "async-golang-patterns,golang-testing-patterns,golang-packaging,golang-performance-optimization"
# Update version and add new agent
python marketplace_update.py update \
--name "golang-development" \
--version "1.1.0" \
--add-agent "gorm-pro.md"
python marketplace_update.py remove --name "obsolete-plugin"
The /claude-plugin:create and /claude-plugin:update commands should invoke this skill automatically:
After creating a new plugin:
1. Scan plugin directory for components
2. Extract metadata from agent/command frontmatter
3. Invoke marketplace-update skill:
- Operation: add
- Plugin name: [from user input]
- Components: [scanned from directory]
- Metadata: [extracted from frontmatter]
After updating a plugin:
1. Determine what changed (added/removed/modified)
2. Invoke marketplace-update skill:
- Operation: update
- Plugin name: [from user input]
- Changes: [specific updates]
Error: Plugin 'plugin-name' already exists in marketplace.
Suggestion: Use 'update' operation instead.
Error: Plugin 'plugin-name' not found in marketplace.
Suggestion: Use 'add' operation to create it.
Error: marketplace.json contains invalid JSON.
Suggestion: Fix JSON syntax before proceeding.
Warning: Component file './agents/agent-name.md' not found.
Suggestion: Create the file or remove from plugin entry.
Error: Marketplace validation failed:
- Plugin 'plugin-a' missing required field 'description'
- Plugin 'plugin-b' references non-existent agent 'missing.md'
Suggestion: Fix errors and validate again.
Always Validate After Changes
Scan Plugin Directory
Semantic Versioning
Consistent Metadata
Backup Before Changes
Common plugin categories:
languages - Language-specific tools (Python, Go, Rust, etc.)development - General development toolssecurity - Security scanning and analysistesting - Test generation and automationoperations - DevOps and operations toolsinfrastructure - Cloud and infrastructure toolsdocumentation - Documentation generationarchitecture - Architecture and design toolsworkflow - Workflow orchestrationgeneral - General purpose toolsplugins/claude-plugin/skills/marketplace-update/
├── SKILL.md # This file
├── marketplace_update.py # Python implementation
└── references/ # Optional examples
└── examples.md
.claude-plugin/marketplace.jsonAfter running this skill:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience