Command Palette

Search for a command to run...

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

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от 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-blueprints skill first, then come here)
  • Adding individual libraries or stacks (use adding-templates skill)
  • Fixing existing blueprint templates (use fixing-templates skill)

What is a Blueprint

A blueprint is a complete starter project that combines:

  1. A preset composition — stacks, libraries, and project addons defined in META.blueprints
  2. Application code — pages, layouts, components, routes in templates/blueprints/{name}/
  3. Extra dependencies — blueprint-specific packages not covered by the composition (e.g., recharts for a dashboard)
  4. Extra env vars — blueprint-specific environment variables

How it works at generation time:

  1. Normal template resolution runs first (stacks → libraries → project addons → repo config)
  2. Blueprint templates are collected from templates/blueprints/{name}/
  3. Blueprint templates override any structural templates with the same destination path
  4. Blueprint packageJson is merged into app packages
  5. Blueprint envs are 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, firstRun and agentArchitecture stay 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 import next or next/* (a unit test fails otherwise).
  • blueprintSkip matches 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 its extends chain first)
  • Supports stack suffixes: file.tsx.nextjs.hbs (filtered to matching stacks)
  • Supports frontmatter with only: mono|single filtering
  • Default scope is app (blueprints target the first app in turborepo)
  • Frontmatter mono.scope: root available 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
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

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

Сравнить adding-blueprints с