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★ 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-templatesskill directly) - Fixing existing templates (use
fixing-templatesskill)
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.
- User tells you: project path + what to extract
- Search the project for related files:
- Grep for import statements referencing the library
- Check
package.jsonfor 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:
- Which library it integrates with
- What changes — additional imports, config, providers, files
- 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic