Command Palette

Search for a command to run...

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

universal-templating

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

Master all templating formats - Handlebars, Cookiecutter, Copier, Maven, and Harness - with format selection matrix, generation workflows, and best practices

TheLobbiот TheLobbi★ 22 звезды на GitHub

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

Universal Templating Skill

Comprehensive guide to template format selection, design patterns, generation workflows, and best practices across Handlebars, Cookiecutter, Copier, Maven, and Harness templates.

Template Format Matrix

Handlebars

Use Cases:

  • Simple variable substitution
  • Email templates
  • Document generation
  • Configuration files
  • Quick string templating

Syntax:

Hello {{name}},
{{#if premium}}Welcome to premium!{{/if}}
{{#each items}}- {{this}}{{/each}}

Strengths:

  • Minimal learning curve
  • Fast execution
  • Great for config files
  • Small file size
  • No external dependencies

Weaknesses:

  • Limited logic capabilities
  • No native loops/conditionals
  • Requires helpers for complex operations

Best For: Configuration file templating, simple document generation


Cookiecutter

Use Cases:

  • Interactive project scaffolding
  • Multi-step wizard templates
  • Python package templates
  • Post-generation hooks

Syntax:

{
  "project_name": "{{ cookiecutter.project_name }}",
  "author": "{{ cookiecutter.author_name }}"
}

Strengths:

  • Interactive CLI prompts
  • Python ecosystem integration
  • Post-generation hooks
  • Conditional rendering
  • JSON-based config

Weaknesses:

  • Python dependency required
  • Jinja2 templates (verbose)
  • Less flexible validation
  • Community templates vary in quality

Best For: Python projects, quick prototypes, community templates


Copier

Use Cases:

  • Modern project scaffolding
  • Template versioning and updates
  • Multi-template composition
  • Complex validation rules

Syntax:

_templates_suffix: .jinja
_copy_without_render:
  - "*.png"
  - "*.jpg"

project_name:
  type: str
  help: What is your project name?
  default: my_project

Strengths:

  • Powerful Jinja2 templating
  • Template versioning
  • Update existing projects
  • Composite templates
  • Advanced validation
  • Excellent documentation

Weaknesses:

  • Python dependency
  • Steeper learning curve
  • Larger footprint
  • Development active (API changes possible)

Best For: Enterprise templates, versioned scaffolding, complex projects


Maven

Use Cases:

  • Java/JVM project archetypes
  • Enterprise Java scaffolding
  • Build system integration
  • Dependency management

Syntax:

<archetype>
  <groupId>org.apache.maven.archetypes</groupId>
  <artifactId>maven-archetype-quickstart</artifactId>
</archetype>

Strengths:

  • Native Maven integration
  • Build tool awareness
  • Dependency management
  • Enterprise adoption
  • IDEs have built-in support

Weaknesses:

  • Java/JVM only
  • XML-heavy
  • Complex archetype internals
  • Verbose setup

Best For: Java/JVM projects, Maven-based builds


Harness Templates

Use Cases:

  • CI/CD pipeline steps
  • Reusable stage definitions
  • Pipeline patterns
  • Deployment strategies

Syntax:

template:
  name: Deploy Service
  type: StepGroup
  spec:
    steps:
      - step:
          name: Deploy K8s
          identifier: deploy_k8s
          type: K8sDeploy
          spec:
            service: <+input>

Strengths:

  • Native Harness integration
  • Expression language support
  • Runtime inputs
  • Pipeline-aware
  • Built-in approval flows

Weaknesses:

  • Harness-specific only
  • YAML complexity
  • Requires Harness setup
  • Limited reusability outside Harness

Best For: Harness pipelines, deployment templates


Format Selection Decision Tree

START: Need to generate what?
│
├─ Configuration files
│  ├─ Simple substitution → Handlebars
│  └─ Complex validation → Copier
│
├─ Project scaffold
│  ├─ Python project → Cookiecutter
│  ├─ Enterprise/versioned → Copier
│  └─ Java/JVM → Maven
│
├─ CI/CD pipeline
│  ├─ Harness platform → Harness Templates
│  └─ Other CI → Handlebars + custom
│
├─ Document/email
│  └─ Handlebars
│
└─ Reusable components
   ├─ Code snippets → Handlebars
   └─ Full modules → Copier

Generation Workflow Steps

Step 1: Template Planning

Inputs:

  • Target audience (users, developers, automation)
  • Use cases and scenarios
  • Complexity level (simple, moderate, advanced)
  • Maintenance burden tolerance
  • Integration requirements

Deliverables:

  • Template specification document
  • Format selection justification
  • Variable naming convention document
  • Example instantiation

Questions to Answer:

  1. What will be generated?
  2. Who uses it (users, scripts, tools)?
  3. How often will it change?
  4. Will it need versioning?
  5. What validation is needed?

Step 2: Variable Definition

Essential Variables:

project_name         - Primary identifier
author_name         - Creator/maintainer
organization        - Company/org name
description         - Brief description
license             - License type (MIT, Apache, etc.)
target_framework    - Framework/language version

Optional Variables (by use case):

// Python projects
python_version      - Target Python version
package_name
Полный SKILL.md на GitHub

Установить universal-templating в Claude Code и Claude Desktop

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

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

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

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

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

Bash
Read
Write
Edit
Glob
Grep
Task
WebFetch
WebSearch

FAQ

Что делает скилл universal-templating?

Master all templating formats - Handlebars, Cookiecutter, Copier, Maven, and Harness - with format selection matrix, generation workflows, and best practices

Как установить скилл universal-templating?

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

Скилл universal-templating запускает скрипты?

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

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

Сравнить universal-templating с