daymade/skill-governance
>- Enforce source-of-truth discipline for Claude Code skill marketplaces, caches, and loose userSettings skills. Use whenever the user says "check skill drift", "检查 skill 漂移", "sync skills from source", "以源码为准同步 skill 缓存", "clean old skill cache versions", "清理 skill 缓存旧版本", "switch marketplace to local source", "marketplace 切到本地源码", "thin skills", "薄 skill", "loose skills", "清理 user skills", or talks about skill caches being stale, version mismatches, orphaned plugins, duplicate direct-copy skills, untracked user skills, or rebuilding the marketplace cache from a local source repo.
npx skills add https://github.com/daymade/claude-code-skills --skill skill-governance
This skill keeps Claude Code skill marketplaces and their caches aligned with their source repositories. The source directory is the single source of truth; the cache is a derived copy. When the source changes, the cache must be rebuilt through official claude plugin commands, not by hand-copying files.
claude plugin marketplace, claude plugin update, claude plugin uninstall, and claude plugin install. Manual cache deletion or file copying is only a cleanup step, never the primary installation method.user or project) where it was originally installed.*-workspace, dist, scripts, tests, references, demos, and other non-plugin directories when deciding what belongs in the cache.retired-skills/ backup instead of deleting outright..git, .in_use, .security-scan-passed, .orphaned_at, .DS_Store, .gitignore, __pycache__, .pytest_cache, .venv, node_modules, *.pyc, *.pyo.
Also ignore top-level directories that are not skills: *-workspace, dist, scripts, tests, references, demos.
This is a read-only report. It does not modify anything.
daymade-skills and daymade-skills-pro; use the marketplace the user names if they name one..claude-plugin/marketplace.json in the source directory.marketplace.json:source field).skills array, treat the suite root as the source for the bundled sub-skills. Do not inspect the individual sub-skill directories separately.~/.claude/plugins/cache/<marketplace>/<plugin>/.marketplace.json version != latest cache version.marketplace.json.~/.claude/skills/ for direct-copy installs:This mutates cache state. Confirm with the user before proceeding unless they explicitly triggered the sync.
daymade-skills and daymade-skills-pro.claude plugin marketplace list to verify the marketplace points to the expected local source path.claude plugin marketplace update <marketplace>.~/.claude/plugins/cache/<marketplace>/<plugin>/latest/ or infer from ~/.claude/plugins/installed_plugins.json. Default to the scope it was originally installed at; if unknown, ask the user. claude plugin uninstall <plugin>@<marketplace> --scope <scope>
claude plugin install <plugin>@<marketplace> --scope <scope>
This deletes cache directories. Confirm with the user before proceeding.
~/.claude/plugins/cache/<marketplace>/:1.0.0, 1.1.0).claude plugin marketplace list to see the current source. claude plugin marketplace remove <marketplace-name>
claude plugin marketplace add <local-path> --scope user
claude plugin marketplace list.Use when the user asks where thin skills came from, why generic skills are loaded, or whether loose user skills should be removed. This workflow covers direct directories under ~/.claude/skills, ~/.codex/skills, and ~/.agents/skills; plugin caches are handled by Workflows A-D.
find plus wc -l. Do not recurse into unrelated repos..skill-lock.json or installed plugin metadata. Do not manually move it; use official uninstall/sync flows.retired-skills/<reason>-<date>/ does not already exist.mv, preserving the full directory. Do not use rm -rf.SKILL.md files and hashes.The following suites bundle multiple sub-skills. Install or reinstall the suite once; never try to install the individual sub-skills separately:
daymade-audiodaymade-claude-codedaymade-docsdaymade-financialdaymade-skillUse this markdown template for drift reports and sync summaries:
# Skill Governance Report: <Marketplace>
## Drift Summary
- Stale: N
- Version mismatch: N
- Missing from cache: N
- Orphaned in cache: N
- Direct-copy drift: N
## Stale Plugins
| Plugin | Cache Version | Source Version | Scope |
|--------|---------------|----------------|-------|
## Version Mismatch
| Plugin | Cache Version | Marketplace Version |
|--------|---------------|---------------------|
## Missing from Cache
| Plugin | Source Version |
|--------|----------------|
## Orphaned in Cache
| Plugin | Cache Version |
|--------|---------------|
## Direct-Copy Drift in ~/.claude/skills/
| Skill | Issue |
|-------|-------|
## Actions Taken
- ...
## Failures
- ...
installed_plugins.json or the cache directory metadata for the actual scope.claude plugin marketplace update <marketplace> again and reinstall.Take daymade/skill-governance from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.