Command Palette

Search for a command to run...

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

extracting-templates

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

Use when extracting a library or feature implementation from an existing project to create generic create-faster templates - triggers on phrases like "add…

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

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

Extracting Templates from External Projects

Overview

Extract a library or feature implementation from a real project and convert it into generic, production-ready create-faster templates. The external project is a starting point for understanding the use case, not a source to copy from.

Core principle: Understand the library deeply through docs and real usage, then write generic templates. Never copy-paste from a project.

When to Use

Use this skill when:

  • You have a working implementation in an external project and want to make it a create-faster addon
  • The user says "I used X in this project, let's add it to create-faster"
  • Converting project-specific code into generic templates

Do NOT use for:

  • Adding templates without an external reference project (use adding-templates skill directly)
  • Fixing existing templates (use fixing-templates skill)

The Process

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

    "Start" [shape=doublecircle];
    "Locate files" [shape=box];
    "Understand implementation" [shape=box];
    "Map cross-lib integrations" [shape=box];
    "Research library docs\n(context7)" [shape=box];
    "Research monorepo patterns\n(context7)" [shape=box];
    "Confident in understanding?" [shape=diamond];
    "Design META entry" [shape=box];
    "Genericize templates" [shape=box];
    "Hand off to\nadding-templates" [shape=box];
    "Done" [shape=doublecircle];

    "Start" -> "Locate files";
    "Locate files" -> "Understand implementation";
    "Understand implementation" -> "Map cross-lib integrations";
    "Map cross-lib integrations" -> "Research library docs\n(context7)";
    "Research library docs\n(context7)" -> "Research monorepo patterns\n(context7)";
    "Research monorepo patterns\n(context7)" -> "Confident in understanding?";
    "Confident in understanding?" -> "Design META entry" [label="yes"];
    "Confident in understanding?" -> "Research library docs\n(context7)" [label="no — re-read docs"];
    "Design META entry" -> "Genericize templates";
    "Genericize templates" -> "Hand off to\nadding-templates";
    "Hand off to\nadding-templates" -> "Done";
}

Phase 1: Locate

Find all files related to the feature in the external project.

  1. User tells you: project path + what to extract
  2. Search the project for related files:
    • Grep for import statements referencing the library
    • Check package.json for related dependencies and versions
    • Map the complete file tree for the feature

Output: A file list with each file's role.

Example for tRPC:

src/trpc/trpc.ts              → Server init, context, procedures
src/trpc/router.ts            → Root router combining domain routers
src/trpc/query-client.ts      → QueryClient factory
src/trpc/query-providers.tsx   → Client provider setup
src/trpc/server.tsx           → RSC proxy + HydrateClient
src/app/api/trpc/[trpc]/route.ts → API catch-all route

Phase 2: Understand

Read each file and classify every piece of code:

Classification Action
Library boilerplate Keep — this is the generic setup
Integration with other libs Keep conditionally — Handlebars {{#if (hasLibrary "x")}}
Business logic Strip — domain routers, custom procedures, specific schemas
Project-specific config Generalize — hardcoded URLs, app names, ports

Critical questions to answer:

  • What does the library need at minimum to work?
  • What's added when integrating with other libraries? (e.g., tRPC + TanStack Query = @trpc/tanstack-react-query)
  • What's purely this project's business logic?

Phase 3: Map Cross-Library Integrations

Identify how the library connects with other libraries already in create-faster.

For each integration found, document:

  1. Which library it integrates with
  2. What changes — additional imports, config, providers, files
  3. Is it optional — does the library work without this integration?

CRITICAL: require vs conditional. The require field in META means "cannot function at all without this." Use it ONLY for hard dependencies. If the library CAN work standalone — even with reduced functionality — the integration is optional and goes in Handlebars conditionals, NOT in require.

The test: Can a user install ONLY this library and get a working (if basic) setup? If yes → no require. The richer integration is a bonus when both are selected.

Example — how to classify:

tRPC alone              → works: vanilla @trpc/client, direct calls         → NO require
tRPC + tanstack-query   → better: hooks, SSR, caching via @trpc/tanstack-react-query → conditional
tRPC + better-auth      → better: protected procedures with auth context    → conditional
better-auth alone       → BROKEN without database: cannot store sessions    → require: { orm: [...] }

The first row is the standalone test. If it works, everything else is conditional. Only better-auth truly require

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

Установить extracting-templates в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл extracting-templates?

Use when extracting a library or feature implementation from an existing project to create generic create-faster templates - triggers on phrases like "add tRPC from my project", "extract auth setup", "make this reusable in create-faster"

Как установить скилл extracting-templates?

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

Скилл extracting-templates запускает скрипты?

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

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

Сравнить extracting-templates с