universal-templating
БесплатноБез исполняемых скриптовНе проверенMaster all templating formats - Handlebars, Cookiecutter, Copier, Maven, and Harness - with format selection matrix, generation workflows, and best practices
от 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:
- What will be generated?
- Who uses it (users, scripts, tools)?
- How often will it change?
- Will it need versioning?
- 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
Установить universal-templating в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepTaskWebFetchWebSearchFAQ
Что делает скилл 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic