prompt-template-designer
Design reusable prompt templates that encode domain-specific patterns for recurring AI tasks. Use when you've executed similar prompts 2+ times and need to…
от aiskillstore★ 509 звёзд на GitHub
Установить prompt-template-designer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Prompt Template Designer
Quick Start
# 1. Check if template-worthy
# Criteria: 2+ uses, 5+ decision points, domain-specific
# 2. Extract pattern
# Identify invariants (constants) vs variants (parameters)
# 3. Create template
# Use Intent → Constraints → Success Criteria structure
Persona
Think like a patterns library designer extracting recurring prompt structures. Identify what varies (parameters) vs what stays constant (pattern), encode domain knowledge into constraints, and design templates that reduce cognitive load while maintaining quality.
Analysis Questions
1. Recurrence Check
"Have I used this pattern 2+ times?"
| Scenario | Template? |
|---|---|
| "Generate Git commit message" (daily) | YES |
| "Explain React hooks to new dev" (once) | NO |
| "Debug Bash permission error" (recurring) | YES |
| "Research specific API quirk" (unique) | NO |
Principle: Premature templating adds maintenance burden. Wait for second use.
2. Variation Analysis
"What stays constant vs what changes?"
| Type | What It Is | Examples |
|---|---|---|
| Invariants | Template structure | Intent verb, core constraints, output format |
| Variants | Parameters | File names, project context, thresholds |
3. Complexity Check
"Does this have 5+ decision points?"
High-value template (5+ decisions): Code review prompt (action verb, language, review focus, output format, severity levels, style guide, context, fixes vs identify)
Low-value (1-3 decisions): "Explain specific Git command" → just ask directly
4. Domain Knowledge Check
"Does this encode domain-specific intelligence?"
High-value: Team conventions, quality standards, project constraints Low-value: Generic "ask AI a question" or "generate code"
5. Parameter Design
"What parameters make this flexible but not vague?"
| Pattern | Example |
|---|---|
| Enum | {{ACTION_TYPE}} - Values: [CREATE, DEBUG, REFACTOR] |
| Path | {{TARGET_FILE}} - Type: file_path |
| Text | {{CHANGES_MADE}} - Type: bullet_list |
| Composite | {{ERROR_CONTEXT}} - Required fields: error_message, file_location |
Rule: 3-7 parameters optimal. More → split into multiple templates.
Principles
Principle 1: Template When Recurs 2+
- First use: Write prompt directly
- Second use: Notice pattern, extract template
- Third+ uses: Use template, refine
Principle 2: Parameters Over Hard-Coding
# Before (hard-coded)
DEBUG backup.sh with "Permission denied" error
# After (parameterized)
DEBUG {{SCRIPT_NAME}} with "{{ERROR_MESSAGE}}" error
Principle 3: Document Success Patterns
Templates must include:
- When to use (trigger conditions)
- Why it works (pattern encoded)
- Example filled (concrete instantiation)
- Common mistakes (what to avoid)
Principle 4: Version and Evolve
### v2.0.0 (2025-11-18)
- BREAKING: Changed {{CHANGES}} to structured {{CHANGES_MADE}}
- Added "business value" requirement
### v1.0.0 (2025-10-15)
- Initial extraction from successful prompts
Principle 5: Measure Effectiveness
| Metric | Target |
|---|---|
| Success rate | >85% |
| Time saved | Measurable |
| Iterations needed | <3 |
| Team adoption | >50% |
Template Structure
---
template_name: {{descriptive-name}}
category: {{create|debug|refactor|optimize|analyze|generate}}
domain: {{backend|frontend|devops|testing|documentation}}
version: {{semantic-version}}
success_rate: {{percentage}}
---
# {{Template Name}}
## When to Use
{{Trigger conditions}}
## Parameters
### {{PARAM_1}}
- **Type**: {{enum|path|text|composite}}
- **Example**: {{value}}
- **Required**: {{yes|no}}
## Template
\```
INTENT:
{{ACTION_VERB}} {{description with parameters}}
CONSTRAINTS:
- {{invariant constraint}}
- {{parameterized constraint using {{PARAM}}}}
SUCCESS CRITERIA:
- {{measurable criterion}}
\```
## Example (Filled)
{{Concrete instantiation}}
## Common Mistakes
- {{Anti-pattern and how to avoid}}
Example: Git Commit Message Generator
---
template_name: git-commit-message-conventional
category: generate
version: 2.0.0
success_rate: 95%
---
## Parameters
- **CHANGES_MADE**: List of changes (required)
- **JIRA_TICKET**: PROJ-NNNN format (required)
- **SCOPE**: [auth, api, ui, db, devops] (required)
- **TYPE**: [feat, fix, docs, refactor, test] (required)
## Template
\```
GENERATE Git commit message
CHANGES: {{CHANGES_MADE}}
CONSTRAINTS:
- Format: {{TYPE}}({{SCOPE}}): <description> [{{JIRA_TICKET}}]
- Subject: Imperative mood, <50 chars
- Body: Explain WHY (business value)
SUCCESS CRITERIA:
- Passes commitlint
- Teammate understands without reading diff
\```
## Example (Filled)
\```
feat(auth): add JWT r
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- skill-report.json
FAQ
Что делает скилл prompt-template-designer?
Design reusable prompt templates that encode domain-specific patterns for recurring AI tasks. Use when you've executed similar prompts 2+ times and need to capture the pattern as reusable intelligence. NOT for one-off prompts or generic "ask AI a question" patterns.
Как установить скилл prompt-template-designer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prompt-template-designer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies 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…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…