Установка
SKILL.md
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.
Governance Principles
- Source is truth — The local source repo is canonical. If the cache is older or different, rebuild the cache from source.
- Official methods only — Use
claude plugin marketplace,claude plugin update,claude plugin uninstall, andclaude plugin install. Manual cache deletion or file copying is only a cleanup step, never the primary installation method. - Scope preservation — Reinstall each plugin at the scope (
userorproject) where it was originally installed. - One version per skill in cache — After syncing, remove old semver version subdirectories so only the latest remains.
- No-op safety — Drift checks are read-only. Sync and cleanup run only after user confirmation or an explicit trigger.
- Workspace dirs are not plugins — Ignore
*-workspace,dist,scripts,tests,references,demos, and other non-plugin directories when deciding what belongs in the cache. - Retire loose skills, do not destroy them — For untracked userSettings skills that have no SSOT or are obsolete duplicates, move the active directory to a dated
retired-skills/backup instead of deleting outright.
What to ignore when comparing source to cache
.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.
Workflow A: Check skill drift / 检查 skill 漂移
This is a read-only report. It does not modify anything.
- Identify the marketplaces to check. Defaults are
daymade-skillsanddaymade-skills-pro; use the marketplace the user names if they name one. - For each marketplace, find its source repo by reading
.claude-plugin/marketplace.jsonin the source directory. - For each plugin entry in
marketplace.json:<!-- -->- Locate the source directory (
sourcefield). - If the plugin is a suite with a
skillsarray, treat the suite root as the source for the bundled sub-skills. Do not inspect the individual sub-skill directories separately. - Find the latest semver version subdirectory in
~/.claude/plugins/cache/<marketplace>/<plugin>/. - Compare the source directory to that version directory, ignoring the patterns above.
- Record:<!-- -->
- Stale — content differs.
- Version mismatch —
marketplace.jsonversion != latest cache version. - Missing from cache — listed in source but no cache subdirectory exists.
- Orphaned in cache — cache subdirectory exists but plugin is not in
marketplace.json.
- Locate the source directory (
- Check
~/.claude/skills/for direct-copy installs:<!-- -->- Any directory there that is not a symlink and differs from its source is flagged as a direct-copy drift.
- Symlinks are expected for dev skills and are ignored.
- Return a concise markdown report grouped by marketplace, with sections: Stale, Version mismatch, Missing, Orphaned, Direct-copy drift.
Workflow B: Sync skills from source / 以源码为准同步 skill 缓存
This mutates cache state. Confirm with the user before proceeding unless they explicitly triggered the sync.
- Determine target marketplace(s). If none specified, use both
daymade-skillsanddaymade-skills-pro. - For each marketplace:<!-- -->
- Run
claude plugin marketplace listto verify the marketplace points to the expected local source path. - If it points elsewhere, run Workflow D first to switch it to the local source.
- Run
claude plugin marketplace update <marketplace>.
- Run
- Run Workflow A to get the drift report.
- For each stale or missing plugin:<!-- -->
- Determine its installed scope. Look at the existing install metadata in
~/.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. - For suite plugins, install the suite once. Do not install individual sub-skills separately.
- Run:<!-- -->
claude plugin uninstall <plugin>@<marketplace> --scope <scope> claude plugin install <plugin>@<marketplace> --scope <scope> - This forces the cache to re-fetch from the current local source.
- Determine its installed scope. Look at the existing install metadata in
- For orphaned plugins, uninstall them at the scope they were installed at.
- After installation, run Workflow C to clean old version subdirectories.
- Report what was updated, what was uninstalled, and any failures.
Workflow C: Clean old skill cache versions / 清理 skill 缓存旧版本
This deletes cache directories. Confirm with the user before proceeding.
- For each skill directory under
~/.claude/plugins/cache/<marketplace>/:<!-- -->- List all semver version subdirectories (e.g.,
1.0.0,1.1.0). - Identify the latest version by semver ordering.
- Before deleting, verify the latest version matches the source (e.g., by re-running Workflow A or comparing the latest cache dir to source). If it does not match, do not delete old versions; warn the user and stop.
- Delete every version subdirectory except the latest.
- List all semver version subdirectories (e.g.,
- Report which versions were removed and which remain.
Workflow D: Switch marketplace to local source / marketplace 切到本地源码
- Run
claude plugin marketplace listto see the current source. - If the marketplace is not already pointing to the desired local path:<!-- -->
claude plugin marketplace remove <marketplace-name> claude plugin marketplace add <local-path> --scope user - Verify with
claude plugin marketplace list. - Report the new source path.
Workflow E: Audit loose userSettings skills / 清理松散 user skill
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.
- Enumerate direct skill directories and line counts with
findpluswc -l. Do not recurse into unrelated repos. - Classify each candidate:<!-- -->
- Lock-managed — present in
.skill-lock.jsonor installed plugin metadata. Do not manually move it; use official uninstall/sync flows. - Source-backed copy — content matches a canonical source repo. Prefer symlink, marketplace install, or source sync before removing the copy.
- Loose template — short generic prompt, no scripts/references/assets, no user-specific methodology, no source record.
- Loose but valuable — contains scripts, references, credentials flow, domain-specific SOP, or user-specific methodology. Keep until it is migrated into a source repo.
- Obsolete backup — active directory name or frontmatter shows backup/deprecated status and a newer canonical skill exists.
- Lock-managed — present in
- For each retire candidate, verify all three before moving:<!-- -->
- It is absent from lock-managed sources.
- It has a replacement or no meaningful unique capability.
- A backup destination under the matching profile's
retired-skills/<reason>-<date>/does not already exist.
- Move retire candidates out of the active skill root with
mv, preserving the full directory. Do not userm -rf. - Verify:<!-- -->
- Active skill roots no longer contain the retired frontmatter names.
- Kept valuable skills still exist.
- The retired directories contain the expected
SKILL.mdfiles and hashes.
- Report kept, retired, backup locations, unresolved drift, and whether the current running session may still have a cached skill list.
Suite plugins
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-skill
Reporting format
Use 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
- ...
Troubleshooting
- Cache version differs but marketplace update did nothing — The marketplace may still point to an old source. Run Workflow D first.
- Uninstall fails because scope is wrong — Re-check
installed_plugins.jsonor the cache directory metadata for the actual scope. - Latest cache dir does not match source after sync — The marketplace may have cached metadata. Run
claude plugin marketplace update <marketplace>again and reinstall. - Suite sub-skills reported individually — This is a mistake. Suites are installed as one unit; bundle sub-skills only for comparison purposes, not for install/uninstall.
- Old versions reappear after cleanup — A stale marketplace source or an active Claude Code session may recreate them. Re-run Workflow B first, then Workflow C.
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: skill-governance](https://darkplay.ru/ai/skills/daymade-claude-code-skills-skill-governance)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
mattpocock-skillsmattpocock · Агентские навыки Matt Pocock для настоящей инженерии: разбор задач, потоки спецификаций и…
superpowersobra · Базовая библиотека навыков для Claude Code: TDD, отладка, паттерны совместной работы и…
eccaffaan-m · Нативный для harness операторский слой ECC: 67 агентов, 278 навыков, 94 шима устаревших…
andrej-karpathy-skillsmultica-ai · Правила поведения для снижения типичных ошибок LLM при программировании: думай перед…
Agent Evaluatoraffaan-m · Оценивает результат агента по рубрике качества из 5 критериев (точность, полнота…
Network Architectaffaan-m · Проектирует корпоративные и распределённые сети с маршрутизацией и автоматизацией.
Opensource Forkeraffaan-m · Форкает проект для open-source: чистит секреты, ссылки и историю git.
Opensource Packageraffaan-m · Готовит open-source упаковку: CLAUDE.md, README, LICENSE, CONTRIBUTING и шаблоны.
Opensource Sanitizeraffaan-m · Проверяет open-source форк на утечки секретов, PII и опасные файлы перед релизом.
Skill Createaffaan-m · Анализирует локальную историю Git, извлекает паттерны кодирования и генерирует файлы…Лучшие ИИ-инструменты для программирования
Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные
GenAPIGenapi
Notepad++ AINotepad-plus-plus
Creatium MaxCremax
Emacs AIGnu
KiteKite
Amazon Q DeveloperAmazonЛучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachat