skills/92bilal26/prompt-template-designer/SKILL.md
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.
npx skillsauth add aiskillstore/marketplace prompt-template-designerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
# 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
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.
"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.
"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 |
"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
"Does this encode domain-specific intelligence?"
High-value: Team conventions, quality standards, project constraints Low-value: Generic "ask AI a question" or "generate code"
"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.
# Before (hard-coded)
DEBUG backup.sh with "Permission denied" error
# After (parameterized)
DEBUG {{SCRIPT_NAME}} with "{{ERROR_MESSAGE}}" error
Templates must include:
### 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
| Metric | Target | |--------|--------| | Success rate | >85% | | Time saved | Measurable | | Iterations needed | <3 | | Team adoption | >50% |
---
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}}
---
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 refresh endpoint [PROJ-1234]
- Add /auth/refresh: improves mobile UX by eliminating re-logins
- Extend token to 24h: reduces authentication friction
\```
## Common Mistakes
- Forgetting Jira ticket
- Past tense ("Added") instead of imperative ("Add")
- Explaining WHAT instead of WHY
| Anti-Pattern | Symptom | Fix | |--------------|---------|-----| | Template Before Pattern | Creating for unused prompts | Use manually 2+ times first | | Over-Parameterization | 15+ parameters | Aim for 3-7, split if more | | Under-Parameterization | Only works for one scenario | Must apply to 3+ use cases | | No Success Metrics | Never tracked quality | Track success rate, time saved |
Template Creation Checklist:
Parameter Design:
Transition signal: Student has written similar prompts 2+ times with 85%+ success
Teaching sequence:
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.