adding-blueprints
БесплатноБез исполняемых скриптовНе проверенUse when creating a new blueprint for create-faster from scratch - covers META entry design, application template creation, and testing for complete starter…
от plvo★ 31 звезда на GitHubОб этом скилле
Adding Blueprints to create-faster
Overview
Create a new blueprint — a pre-composed, functional starter project. Blueprints combine existing building blocks (stacks, libraries, project addons) AND add opinionated application code (pages, layouts, components) to give users a working app out of the box.
Core principle: A blueprint is a functional application, not just a preset of libraries. Every blueprint must produce a working app that a user can run immediately after generation.
When to Use
Use this skill when:
- Creating a new blueprint from scratch
- User describes a project type ("landing page with analytics", "AI chatbot app", "web3 dapp")
- User has a specific composition in mind ("nextjs + shadcn + motion + vercel-analytics")
Do NOT use for:
- Extracting a blueprint from an existing project (use
extracting-blueprintsskill first, then come here) - Adding individual libraries or stacks (use
adding-templatesskill) - Fixing existing blueprint templates (use
fixing-templatesskill)
What is a Blueprint
A blueprint is a complete starter project that combines:
- A preset composition — stacks, libraries, and project addons defined in
META.blueprints - Application code — pages, layouts, components, routes in
templates/blueprints/{name}/ - Extra dependencies — blueprint-specific packages not covered by the composition (e.g.,
rechartsfor a dashboard) - Extra env vars — blueprint-specific environment variables
How it works at generation time:
- Normal template resolution runs first (stacks → libraries → project addons → repo config)
- Blueprint templates are collected from
templates/blueprints/{name}/ - Blueprint templates override any structural templates with the same destination path
- Blueprint
packageJsonis merged into app packages - Blueprint
envsare collected alongside library/project envs
What blueprints do NOT do:
- They don't change the CLI code — resolution is generic
- They don't define new stacks or libraries — they compose existing ones
- They can't have conflicting library selections — the composition must be valid per META rules
Data Model (MetaBlueprint in types/meta.ts)
interface MetaBlueprint {
label: string; // Display name in CLI
hint: string; // Description shown during selection
category: string; // Grouping category (e.g. 'Web3', 'Business')
context: {
apps: { appName: string; stackName: StackName; libraries: string[] }[];
project: { database?: string; orm?: string };
};
extends?: string; // Parent blueprint whose templates are inherited
packageJson?: PackageJsonConfig; // Extra deps for the blueprint
envs?: EnvVar[]; // Extra env vars
}
Override Semantics
Blueprint templates at templates/blueprints/{name}/src/app/page.tsx.hbs override the stack's templates/stack/nextjs/src/app/page.tsx.hbs because they resolve to the same destination path. The blueprint version wins.
This means:
- You only need blueprint templates for files you want to REPLACE or ADD
- Structural templates (tsconfig, tailwind config, etc.) are kept as-is
- Library templates (auth setup, query providers, etc.) are kept as-is
Extending a Blueprint (extends)
A framework variant of an existing blueprint does not copy its templates: set extends: 'parent-blueprint' in its META entry. The resolver applies the folders of the chain [parents..., blueprint] in order, and the later folder wins per destination (structural templates are replaced the same way).
- Only templates are inherited.
context,packageJson,envs,rootPackageJson,pkgPackageJson,firstRunandagentArchitecturestay explicit on the child; share a value through a constant in__meta__.ts. - Framework-specific files of the parent carry the stack suffix (
page.tsx.nextjs.hbs) so only an app on that stack gets them. An unsuffixed file of a parent must not importnextornext/*(a unit test fails otherwise). blueprintSkipmatches only the selected blueprint: a child lists its own name to drop an inherited file it does not replace.- An unknown parent or a cycle fails
tests/unit/lib/template-resolver-extends.test.ts.
Template Resolution for Blueprints
- Scans
templates/blueprints/{blueprintName}/(and the folders of itsextendschain first) - Supports stack suffixes:
file.tsx.nextjs.hbs(filtered to matching stacks) - Supports frontmatter with
only: mono|singlefiltering - Default scope is
app(blueprints target the first app in turborepo) - Frontmatter
mono.scope: rootavailable for root-level files
The Process
digraph adding_blueprint {
node [fontsize=11];
edge [fontsize=9];
"Start" [shape=doublecircle];
"Clarify composition" [shape=box];
"Research library docs\n(context7)" [shape=box];
"Confident in understanding?" [shape=diamond];
"Read types/meta.ts" [shape=box];
"Design META en
Установить adding-blueprints в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл adding-blueprints?
Use when creating a new blueprint for create-faster from scratch - covers META entry design, application template creation, and testing for complete starter projects
Как установить скилл adding-blueprints?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл adding-blueprints запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic