skill-governance

daymade/claude-code-skills

Синхронизация навыков маркетплейсов и кэша Claude Code с источником истины.

Звёзды1 537
Авторdaymade

Установка

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

  1. Source is truth — The local source repo is canonical. If the cache is older or different, rebuild the cache from source.
  2. Official methods only — Use 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.
  3. Scope preservation — Reinstall each plugin at the scope (user or project) where it was originally installed.
  4. One version per skill in cache — After syncing, remove old semver version subdirectories so only the latest remains.
  5. No-op safety — Drift checks are read-only. Sync and cleanup run only after user confirmation or an explicit trigger.
  6. Workspace dirs are not plugins — Ignore *-workspace, dist, scripts, tests, references, demos, and other non-plugin directories when deciding what belongs in the cache.
  7. 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.

  1. Identify the marketplaces to check. Defaults are daymade-skills and daymade-skills-pro; use the marketplace the user names if they name one.
  2. For each marketplace, find its source repo by reading .claude-plugin/marketplace.json in the source directory.
  3. For each plugin entry in marketplace.json:<!-- -->
    • Locate the source directory (source field).
    • If the plugin is a suite with a skills array, 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.json version != 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.
  4. 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.
  5. 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.

  1. Determine target marketplace(s). If none specified, use both daymade-skills and daymade-skills-pro.
  2. For each marketplace:<!-- -->
    • Run claude plugin marketplace list to 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>.
  3. Run Workflow A to get the drift report.
  4. 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.
  5. For orphaned plugins, uninstall them at the scope they were installed at.
  6. After installation, run Workflow C to clean old version subdirectories.
  7. 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.

  1. 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.
  2. Report which versions were removed and which remain.

Workflow D: Switch marketplace to local source / marketplace 切到本地源码

  1. Run claude plugin marketplace list to see the current source.
  2. 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
    
  3. Verify with claude plugin marketplace list.
  4. 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.

  1. Enumerate direct skill directories and line counts with find plus wc -l. Do not recurse into unrelated repos.
  2. Classify each candidate:<!-- -->
    • Lock-managed — present in .skill-lock.json or 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.
  3. 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.
  4. Move retire candidates out of the active skill root with mv, preserving the full directory. Do not use rm -rf.
  5. Verify:<!-- -->
    • Active skill roots no longer contain the retired frontmatter names.
    • Kept valuable skills still exist.
    • The retired directories contain the expected SKILL.md files and hashes.
  6. 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-audio
  • daymade-claude-code
  • daymade-docs
  • daymade-financial
  • daymade-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.json or 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»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

mattpocock-skillsmattpocock · Агентские навыки Matt Pocock для настоящей инженерии: разбор задач, потоки спецификаций и…
41 комп.
superpowersobra · Базовая библиотека навыков для Claude Code: TDD, отладка, паттерны совместной работы и…
16 комп.
eccaffaan-m · Нативный для harness операторский слой ECC: 67 агентов, 278 навыков, 94 шима устаревших…
441 комп.
andrej-karpathy-skillsmultica-ai · Правила поведения для снижения типичных ошибок LLM при программировании: думай перед…
1 комп.
Agent Evaluatoraffaan-m · Оценивает результат агента по рубрике качества из 5 критериев (точность, полнота…
225 587 ★
Network Architectaffaan-m · Проектирует корпоративные и распределённые сети с маршрутизацией и автоматизацией.
225 587 ★
Opensource Forkeraffaan-m · Форкает проект для open-source: чистит секреты, ссылки и историю git.
225 587 ★
Opensource Packageraffaan-m · Готовит open-source упаковку: CLAUDE.md, README, LICENSE, CONTRIBUTING и шаблоны.
225 587 ★
Opensource Sanitizeraffaan-m · Проверяет open-source форк на утечки секретов, PII и опасные файлы перед релизом.
225 587 ★
Skill Createaffaan-m · Анализирует локальную историю Git, извлекает паттерны кодирования и генерирует файлы…
225 587 ★

Лучшие ИИ-инструменты для программирования

ИИ для программирования

Подборка нейросетей и ИИ-ассистентов для разработки и автоматизации кода. Сервисы, которые ускоряют написание, ревью и отладку, экономят часы рутины и снижают порог входа в сложные

GenAPIGenapi
По запросу
5.0
Notepad++ AINotepad-plus-plus
По запросу
4.9
GitHub CopilotGitHub
По подписке
4.9
Creatium MaxCremax
По запросу
4.8
Emacs AIGnu
По запросу
4.8
KiteKite
По запросу
4.8
Amazon Q DeveloperAmazon
По запросу
4.8
VECTA
Есть бесплатный тариф
4.8
SoftPractice
Есть бесплатный тариф
4.8
VibeForge
Есть бесплатный тариф
4.7

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8