Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

updating-libraries

БесплатноБез исполняемых скриптовНе проверен

Use when updating library or project addon versions in create-faster __meta__.ts, especially when the update may involve breaking changes, new packages…

plvoот plvo★ 31 звезда на GitHub

Об этом скилле

Updating Libraries in create-faster

Overview

Safely update library and project addon versions, catching breaking changes before they reach generated projects.

Core principle: Research first, inventory second, change third, verify fourth. Never change a version without understanding its full blast radius.

When to Use

Use this skill when:

  • Bumping a version in META.libraries or META.project options
  • A library has released a new major/minor with breaking changes
  • Adapters, plugins, or integrations have been restructured
  • New peer dependencies or renamed packages

Do NOT use for:

  • Adding new libraries (use adding-templates skill)
  • Fixing template formatting (use fixing-templates skill)
  • Updating stack frameworks (Next.js, Expo, Hono) — different surface area

Scope: One library/addon per invocation. Atomic commits. If a cascading peer dependency bump is needed (e.g., updating library X requires bumping library Y), that's a separate invocation.

The Process

digraph updating {
    node [fontsize=11];
    edge [fontsize=9];

    "Start" [shape=doublecircle];
    "Phase 1:\nResearch" [shape=box];
    "Breaking changes\nidentified?" [shape=diamond];
    "Phase 2:\nMap Touchpoints" [shape=box];
    "Inventory complete?" [shape=diamond];
    "Phase 3:\nUpdate" [shape=box];
    "Phase 4:\nVerify" [shape=box];
    "Tests pass?" [shape=diamond];
    "Generation builds?" [shape=diamond];
    "Phase 5:\nCommit" [shape=box];
    "Done" [shape=doublecircle];

    "Start" -> "Phase 1:\nResearch";
    "Phase 1:\nResearch" -> "Breaking changes\nidentified?";
    "Breaking changes\nidentified?" -> "Phase 2:\nMap Touchpoints" [label="yes or no\n(always proceed)"];
    "Phase 2:\nMap Touchpoints" -> "Inventory complete?";
    "Inventory complete?" -> "Phase 2:\nMap Touchpoints" [label="no — keep searching"];
    "Inventory complete?" -> "Phase 3:\nUpdate" [label="yes"];
    "Phase 3:\nUpdate" -> "Phase 4:\nVerify";
    "Phase 4:\nVerify" -> "Tests pass?";
    "Tests pass?" -> "Phase 3:\nUpdate" [label="no — fix"];
    "Tests pass?" -> "Generation builds?" [label="yes"];
    "Generation builds?" -> "Phase 3:\nUpdate" [label="no — fix"];
    "Generation builds?" -> "Phase 5:\nCommit" [label="yes"];
    "Phase 5:\nCommit" -> "Done";
}

Hard gates:

  • Phase 2 gates Phase 3 (no changes without complete inventory)
  • Tests gate generation in Phase 4 (no generation until bun run test passes)
  • Generation gate commit in Phase 5 (no commit until generated projects build)

Phase 1 — Research

DO NOT skip this. DO NOT rely on assumptions about what changed.

The baseline failure pattern is: agent reads the user's description of breaking changes and starts modifying code immediately, making assumptions about backward compatibility without verification.

Step 1: Resolve the library with context7

Use context7 MCP: resolve-library-id for the library name
Then: query-docs for migration guide, changelog, breaking changes

If context7 doesn't have the library, move to Step 2 — web search is the fallback, not an excuse to skip research entirely.

Step 2: Fetch changelog/migration guide

Use WebFetch or WebSearch to find:

  • The library's GitHub releases page
  • Migration guide (if one exists)
  • Changelog entries between current and target version

At least one of Step 1 or Step 2 must produce concrete findings. If neither yields results, state this explicitly and proceed with extra caution in Phase 4 (test more combinations, not fewer).

Step 3: Document findings

Produce a structured research summary:

Library: better-auth
Current: ^1.4.10
Target: ^1.5.3

Breaking changes:
- Adapters moved to separate packages (@better-auth/drizzle-adapter, @better-auth/prisma-adapter)
- Import path changed: 'better-auth/adapters/drizzle' → '@better-auth/drizzle-adapter'

New packages: @better-auth/drizzle-adapter, @better-auth/prisma-adapter
Removed packages: none (core package still exists)
Renamed APIs: none
New peer dependencies: none
New env vars: none
New configuration: none

DO NOT proceed to Phase 2 without this summary. If you can't find a changelog, state that explicitly and proceed with caution.

Phase 2 — Map Touchpoints

DO NOT change anything yet. Build the full inventory first.

The baseline failure pattern is: agent finds files by browsing around, misses cross-references, and starts editing before understanding the full picture.

4-category systematic search

Category 1: META entry

Read the library/addon entry in apps/cli/src/__meta__.ts. Document:

  • Version string
  • All dependencies (including $when conditionals)
  • Env vars
  • Exports
  • Require constraints
  • Mono scope
  • Support (which stacks)

Category 2: Direct templates

# For libraries:
ls apps/cli/templates/libraries/{name}/

# For project addons:
ls apps/cli/templates/project/{category}/{name}/

List every template file with its purpose.

**Category 3: Cross-referenc

Полный SKILL.md на GitHub

Установить updating-libraries в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл updating-libraries?

Use when updating library or project addon versions in create-faster __meta__.ts, especially when the update may involve breaking changes, new packages, renamed APIs, or cross-integration impacts

Как установить скилл updating-libraries?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл updating-libraries запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить updating-libraries с