Builds and maintains Claude Code plugin marketplaces: converts a skills repo to spec-valid marketplace.json, adds/updates plugin entries, and migrates skills into or between suites.
Ships in daymade-claude-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Convert a Claude Code skills repository into an official plugin marketplace so users
can install skills via claude plugin marketplace add and get auto-updates.
Input: a repo with skills/ directories containing SKILL.md files.
Output: .claude-plugin/marketplace.json + validated + installation-tested + PR-ready.
| User intent | Route |
|---|---|
| Create marketplace support for a repo that does not have it | Follow Phases 0–4 below |
| Add or update an ordinary plugin entry | Follow “Maintaining an existing marketplace,” then Phase 3 |
| Consolidate standalone skills into a suite, create a suite from existing skills, move a skill between suites, or rename a skill (with or without a compatibility shim) | Read references/suite_consolidation_workflow.md completely and follow it instead of the generic Phase 4 constraints |
| Reconcile installed caches after a merged suite migration | Invoke daymade-skill:skill-governance and use its post-migration workflow; do not mutate cache state here |
| Audit the whole repository across code, docs, security, PRs, issues, and manifest integrity | Invoke marketplace-health-check:marketplace-health-check only when the user requested a broad health check; it is not a prerequisite for a targeted suite migration |
Before editing an existing marketplace, collect evidence instead of relying on the default template:
.claude-plugin/marketplace.json.CLAUDE.md, README install section, changelog).When that history source is approved, each project's sessions live under
~/.claude/projects/<escaped-cwd>/:
<session-id>.jsonl<session-id>/subagents/agent-*.jsonlUseful search patterns (adjust keywords to the failure you are debugging):
grep -lc "marketplace.json\|claude plugin validate\|claude plugin install" \
~/.claude/projects/<escaped-cwd>/*.jsonl
grep -lc "Unrecognized key\|Plugin not found\|No manifest found\|Duplicate plugin" \
~/.claude/projects/<escaped-cwd>/*.jsonl \
~/.claude/projects/<escaped-cwd>/*/subagents/*.jsonl
Extract lessons as evidence-backed rules: command attempted, observed output, root cause, final working command/config. Do not encode guesses from memory.
# Find every SKILL.md
find <repo-path>/skills -name "SKILL.md" -type f 2>/dev/null
For each skill, extract from SKILL.md frontmatter:
name — the skill identifierdescription — the ORIGINAL text, do NOT rewrite or translateVERSION file (if exists) — this becomes metadata.versionREADME.md — understand the project, author info, categoriesLICENSE — note the license typegit remote -v)Group skills by function. Categories are freeform strings. Good patterns:
business-diagnostics, content-creation, thinking-tools, utilitiesdeveloper-tools, productivity, documentation, securityAsk the user to confirm categories if grouping is ambiguous.
Claude Code has three separate levels:
marketplace -> plugin -> skill
plugin@marketplace./plugin-name:skill-name.SKILL.md frontmatter when the skill path points to a
directory containing SKILL.md directly.Choose each plugin boundary by installation/update/cache intent:
/daymade-docs:mermaid-tools.For detailed source/cache patterns and pitfalls, read
references/cache_and_source_patterns.md before changing source or skills.
Read references/marketplace_schema.md for the complete field reference.
Key rules that are NOT obvious from the docs:
$schema field is REJECTED by claude plugin validate. Do not include it.metadata fields: description, version, pluginRoot.
metadata.homepage does NOT exist — the validator accepts it silently but it's not in the spec.metadata.version is the marketplace catalog version, NOT individual plugin versions.
It should match the repo's VERSION file (e.g., "2.3.0").version is independent. For first-time marketplace registration, use "1.0.0".strict: false is required when there's no plugin.json in the repo.
With strict: false, the marketplace entry IS the entire plugin definition.
Having BOTH strict: false AND a plugin.json with components causes a load failure.source defines the installed plugin root. For single-skill plugins, point
source directly at the skill directory (e.g., "./tunnel-doctor") and omit
skills entirely. For suite plugins, use
source: "./<suite>" with explicit skills array listing subdirectories.
Avoid source: "./" (installs full repo as cache) and skills: ["./"]
(rejected by Claude Code 2.1.x path-escape validator).claude-code-marketplace,
claude-code-plugins, claude-plugins-official, anthropic-marketplace,
anthropic-plugins, agent-skills, knowledge-work-plugins, life-sciences.tags vs keywords: Both are optional. In the current Claude Code source,
keywords is defined but never consumed in search. tags only has a UI effect
for the value "community-managed" (shows a label). Neither affects discovery.
The Discover tab searches only name + description + marketplaceName.
Include keywords for future-proofing but don't over-invest.Use this template, filling in from the analysis:
{
"name": "<marketplace-name>",
"owner": {
"name": "<github-org-or-username>"
},
"metadata": {
"description": "<one-line description of the marketplace>",
"version": "<from-VERSION-file-or-1.0.0>"
},
"plugins": [
{
"name": "<skill-name>",
"description": "<EXACT text from SKILL.md frontmatter, do NOT rewrite>",
"source": "./<skill-name>",
"strict": false,
"version": "1.0.0",
"category": "<category>",
"keywords": ["<relevant>", "<keywords>"]
}
]
}
The name field is what users type after @ in install commands:
claude plugin install dbs@<marketplace-name>
Choose a name that is:
metadata.description at marketplace level can be a new summaryUse this section for ordinary entry additions or metadata updates. For a suite consolidation, source relocation, suite membership transfer, or standalone-to-suite migration, use the dedicated workflow linked in the routing table; those operations have a wider breaking-change and documentation surface than an ordinary entry addition.
When adding a new plugin to an existing marketplace.json:
metadata.version — this is the marketplace catalog version.
Follow semver: new plugin = minor bump, breaking change = major bump.metadata.description — append the new skill's summary.version to "1.0.0" — it's new to the marketplace.version when its SKILL.md content changes.
Claude Code uses version to detect updates — same version = skip update.
Pair the bump with a CHANGELOG entry in the same commit; nothing checks it
for you, and the Pre-flight Checklist is the only checklist item that asks for it.version when its source or skills changes.
The installed cache path and component resolution changed even if SKILL.md did not.metadata for invalid fields — metadata.homepage is a common
mistake (not in spec, silently ignored). Remove if found.Update the following together when adding a member to an existing suite:
skills array in marketplace.json lists the new member
(./skill-name). check_marketplace.py fails when a member dir with a SKILL.md
exists on disk but is absent from the array.metadata.version strictly increases. A new member changes the suite's
layout signature (source + skills); check_version_progression.py rejects any
layout change without a metadata bump above base — rule 5 above (bump the plugin
version) is necessary but not sufficient here.README.md and README.zh-CN.md each gain a ### **skill-name** detail
section. check_doc_skill_lists.py is a required check that extracts every
### **name** heading from both READMEs and fails if a marketplace skill is
missing (and flags the reverse as GHOST)./suite:skill-name) in both READMEs.Every new file must also avoid absolute user paths (/Users/<name>/…) — the PII
guard blocks the push. Write ~/-relative and verify by re-running the real
detector, not by eye.
Follow Skill Creator's versioning contract and release readiness for release bookkeeping and review. Include the CHANGELOG entry with the bump; a passing structural check does not establish that the release is documented.
The checkers take their base differently, and a usage error is not a verdict:
| command | base argument | a usage error gives |
|---|---|---|
check_version_progression.py | --base <ref> --candidate HEAD (see below) | exit 2 — argparse, a refused --candidate-index with nothing staged, or an unreadable base/manifest |
validate_changed_skills.sh | positional <base-ref> (defaults to origin/main) | exit 1, printing base ref '<x>' is unknown here |
check_marketplace.py | none | n/a |
So the code that means "my invocation was wrong" is per-script: exit 2 for
check_version_progression.py, exit 1 for validate_changed_skills.sh. In both cases
the repo was never judged — the same state as not having run it at all. Do not read
either code as "the checker found a problem": across the pair, exit 1 is a usage error
in validate_changed_skills.sh but a real finding in check_version_progression.py
— which is exactly why the printed message, not the number, is what you read.
The post_edit_sync_check hook only catches "SKILL.md edited but plugin version not
bumped". Items 2–4 have no hook, and the CHANGELOG entry has neither a hook nor a
checker — run check_version_progression.py and
check_doc_skill_lists.py locally before pushing rather than discovering them across
CI rounds. Pass --base <base-ref> --candidate HEAD. The script also accepts
--candidate-index, which reads the manifest blob out of the git index and diffs
staged paths only; with nothing staged that blob is HEAD's copy, so it re-verifies the
commit you already have and reports "no regression" about work it never saw. The green
is real about the index and silent about your edit.
The version gate in CI re-runs only when the PR head moves, and it resolves its base to
origin/$BASE_REF at run time. A PR whose base branch has since advanced therefore
keeps the green it earned against the older base, while its version number can already
be a regression against the current one. Re-run the gate against the current
origin/main immediately before merging, not only before pushing, and rebase if it
fails.
Run the bundled validator. It runs the following checks and exits non-zero on any required failure:
bash scripts/check_marketplace.sh # validates current repo
bash scripts/check_marketplace.sh /path # validates a target repo
What it checks:
| # | Check | Failure means |
|---|---|---|
| 1 | JSON syntax of .claude-plugin/marketplace.json | file is not parseable JSON |
| 2 | claude plugin validate . (skipped if claude CLI missing) | schema-level rejection (e.g. Unrecognized key: "$schema", duplicate names) |
| 3 | source + skills resolution for every plugin entry | a plugin entry points to a SKILL.md that does not exist on disk |
| 4 | Reverse sync (disk → manifest) | WARN-only: a SKILL.md on disk is not registered in any plugin entry |
Common schema failures and fixes:
Unrecognized key: "$schema" → remove the $schema fieldDuplicate plugin name → ensure all names are uniquePath contains ".." → use ./ relative paths onlyNo manifest found in directory when validating an installed cache path → validate
the marketplace manifest or plugin source, not a strict: false cache directory.# Add as local marketplace
claude plugin marketplace add .
# Install a plugin
claude plugin install <plugin-name>@<marketplace-name>
# Verify it appears
claude plugin list | grep <plugin-name>
# Check for updates (should say "already at latest")
claude plugin update <plugin-name>@<marketplace-name>
# Clean up
claude plugin uninstall <plugin-name>@<marketplace-name>
claude plugin marketplace remove <marketplace-name>
After installation or update, inspect the actual cache. This is the only way to
confirm source produced the intended snapshot:
PLUGIN=<plugin-name>
MARKET=<marketplace-name>
CACHE=$(jq -r --arg id "$PLUGIN@$MARKET" '.plugins[$id][0].installPath' ~/.claude/plugins/installed_plugins.json)
find "$CACHE" -maxdepth 1 -mindepth 1 -exec basename {} \; | sort
Expected results:
SKILL.md plus its own scripts/, references/,
assets/ as applicable.source is too broad.# Test from GitHub (requires the branch to be pushed)
claude plugin marketplace add <github-user>/<repo>
claude plugin install <plugin-name>@<marketplace-name>
# Verify
claude plugin list | grep <plugin-name>
# Clean up
claude plugin uninstall <plugin-name>@<marketplace-name>
claude plugin marketplace remove <marketplace-name>
Run this checklist after every marketplace.json change. Do not skip items.
bash scripts/check_marketplace.sh
Pass the required checks. Treat the reverse-sync WARN as a real signal: an
unregistered SKILL.md on disk is almost always either an accidentally-dropped
skill you forgot to register, or dead code that should be removed.
Verify these by reading marketplace.json:
metadata.version bumped from previous versionmetadata.description mentions all skill categoriesmetadata.homepage (not in spec, silently ignored)$schema field (rejected by validator)For each plugin entry:
description matches SKILL.md frontmatter EXACTLY (not rewritten)version is "1.0.0" for new plugins, bumped for changed pluginssource points directly at the skill directory (e.g., "./skill-name")skills field (auto-discovery from source)skills paths relative to sourcestrict is false (no plugin.json in repo)name is kebab-case, unique across all entriesbash scripts/check_marketplace.sh
Must print RESULT: PASSED before creating a PR. A WARN [4/4] is acceptable
only when you have consciously decided to leave a SKILL.md unregistered.
.claude-plugin/marketplace.json, optionally scripts/, optionally update READMEAdd the marketplace install method above existing install instructions:
## Install
 <!-- only if demo exists -->
**Claude Code plugin marketplace (one-click install, auto-update):**
\`\`\`bash
claude plugin marketplace add <owner>/<repo>
claude plugin install <skill>@<marketplace-name>
\`\`\`
Include:
claude plugin validate . passed)Use the bundled PostToolUse hooks under hooks/:
hooks/post_edit_validate.sh — runs claude plugin validate whenever a
marketplace.json file is written or edited.hooks/post_edit_sync_check.sh — warns when a SKILL.md is edited but the
matching plugin entry in marketplace.json does not bump its version.Both hooks are declared in this plugin's own manifest entry (plugins[].hooks),
so they activate automatically when the plugin is enabled in a Claude Code
session. No manual settings.json edit is required. To disable them, remove
the hooks block from this plugin entry in the user's installed copy or use
/plugin disable marketplace-dev (they take effect only when the plugin is
enabled).
These hooks are editor-time guardrails. They do NOT replace
scripts/check_marketplace.sh — always run the pre-flight check before a PR.
Read references/anti_patterns.md for the full list of pitfalls discovered during
real marketplace development. These are NOT theoretical — every one was encountered
and debugged in production.
hooks/post_edit_sync_check.sh (opens in a new tab)hooks/post_edit_validate.sh (opens in a new tab)references/anti_patterns.md (opens in a new tab)references/cache_and_source_patterns.md (opens in a new tab)references/marketplace_schema.md (opens in a new tab)references/suite_consolidation_workflow.md (opens in a new tab)scripts/check_doc_skill_lists.py (opens in a new tab)scripts/check_marketplace.sh (opens in a new tab)tests/test_check_doc_skill_lists.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
22 skills in this plugin
/agent-web-search-setupFixes web search on an agent whose model backend can't run it: a relay/reseller proxying Claude or Codex returns empty instead of failing. Use when web search returns nothing, a model insists a shipped product doesn't exist, someone wants to give an agent internet access, or the user is on a third-party base URL, relay, or 中转站. Diagnoses which built-in tools are dead, removes them, and installs a working replacement./claude-code-hooksWrites, tests, registers and debugs Claude Code hooks (PreToolUse, PostToolUse, SessionStart, Stop) that turn a rule the model keeps breaking into a hard gate. Use when the user wants to block or intercept a tool call, add a guard rail, fix a misfiring hook, or says 拦截 / 守卫 / 钩子 — including "make it stop doing X"./claude-code-ops-routerplugin/Skill repair,marketplace,permission-triage,statusline,model sync,1M/[1m], usage/quota ping,memory→docs,.txt repair,MCP startup context. Routes to one bundled Claude Code specialist, including auto-memory off. History, hooks, and Lark keep their own entries./claude-code-permission-triageDiagnose unexpected, missing, delayed, parked, or misdelivered Claude Code permission prompts and approval cards for subagents, background workers, and Agent Team teammates, including Plan Mode interactions. Use for evidence collection, known-issue matching, root-cause classification, and sanitized upstream feedback. Not for editing allow/deny rules, writing hooks, MCP OAuth, or reading conversation history./claude-code-ping-start-5h-quota睡前/离开前额度耗尽时,设置一次性本机定时器,在 Claude 订阅额度重置后自动发一条极简 claude -p 消息,立刻开启新的 5 小时用量窗口——用户睡醒时新窗口已跑掉大半,等于白赚一个 冷却期。Use when 用户说「还有 X 小时重置额度,帮我定时戳一下 Claude」「我去睡觉了, 到点 ping 一下开启新窗口」「额度用完了,重置后帮我踩个点」「设个定时器开启新的 5 小时 冷却期」,或提到 定时戳、戳 Claude、quota ping、开窗、额度重置后自动发消息。 仅限一次性定时任务与 macOS 本机(caffeinate/BSD date);周期性任务用 /loop 或 cron, 查询 ChatGPT/Codex 何时重置用 tibo-reset-codex,分析额度为什么烧完用 claude-usage-analyst。/fixing-claude-export-conversationsFixes broken line wrapping in Claude Code exported .txt conversation files — rebuilds tables, paragraphs, paths and tool calls hard-wrapped at a fixed width. Use for an export (YYYY-MM-DD-HHMMSS-*.txt) with broken tables, split paths, or mangled tool output, or "fix export" / "make export readable". Not for a live web conversation (use read-claude-web-conversation) or session history (use read-claude-code-history)./daymade-claude-code:marketplace-dev [repo-path]from daymade-claude-code
npx claudepluginhub daymade/claude-code-skills --plugin daymade-claude-codeOther plugins' skills for the same job