From prompt-template
Prompt template manager — store, list, and invoke reusable parameterized prompt templates. Use this skill whenever the user types /pt followed by a subcommand (add, list, use, show, edit, delete). Triggers: /pt add, /pt list, /pt use, /pt show, /pt edit, /pt delete. Also trigger when user mentions "prompt template", "提示词模板", or wants to reuse a saved prompt.
How this skill is triggered — by the user, by Claude, or both
Slash command
/prompt-template:ptThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Manage reusable prompt templates with `{{param}}` placeholders. Templates are stored as Markdown files in `~/.claude/prompt-templates/`.
Manage reusable prompt templates with {{param}} placeholders. Templates are stored as Markdown files in ~/.claude/prompt-templates/.
Each template is a .md file with YAML frontmatter:
---
name: <template-name>
category: <category-tag>
description: <one-line description>
params:
- name: <param_name>
description: <what this param is>
example: <example value>
---
<template body with {{param_name}} placeholders>
Parse the user's input after /pt to determine which command to run.
add — Add a new templateOne-shot mode: If user provides --name=<n>, --category=<c>, --body="<content>", use those values directly. Auto-detect {{...}} placeholders from body as params.
Interactive mode (default): Ask the following one at a time:
{{param_name}} for placeholders){{...}} patterns. For each detected param, ask for description and example (user can skip).Before saving:
~/.claude/prompt-templates/<name>.md already exists. If yes, ask whether to overwrite.~/.claude/prompt-templates/ directory doesn't exist, create it.Save: Write the template file to ~/.claude/prompt-templates/<name>.md with proper frontmatter and body.
Confirm: Output ✓ 模板已保存到 ~/.claude/prompt-templates/<name>.md
list [category] — List templates~/.claude/prompt-templates/*.mdWithout argument: Display all templates grouped by category:
[category]
name — description
With category argument: Display only that category, include param names:
[category]
name — description (params: p1, p2)
If no templates exist, output: 还没有模板。使用 /pt add 创建第一个。
use [name] [--param=value ...] — Render and execute a templateWithout name argument: List all available templates with parameterized usage examples:
~/.claude/prompt-templates/*.md可用模板:
repo-reset — 重置 repo 到干净状态
用法: /pt use repo-reset --project=<工程路径> --branch=<分支名>
task-env — 创建任务分支环境
用法: /pt use task-env --project=<工程根目录> --repo=<仓库列表> --task=<分支名>
还没有模板。使用 /pt add 创建第一个。With name argument:
~/.claude/prompt-templates/<name>.md. If not found, output error and suggest /pt use (without name) to see available templates.--param=value arguments in the command{{param}} unrendered{{param_name}} in body with provided values.show <name> — Display template without executing~/.claude/prompt-templates/<name>.md. If not found, output error.名称: <name> | 分类: <category>
描述: <description>
参数: <p1> (<desc>), <p2> (<desc>)
---
<body content>
edit <name> — Modify existing template~/.claude/prompt-templates/<name>.md. If not found, output error.{{params}} are introduced, offer to add descriptions.✓ 模板已更新delete <name> — Delete a template~/.claude/prompt-templates/<name>.md exists. If not, output error.确认删除模板 "<name>" (category: <cat>)?✓ 已删除/pt: show available commands (add, list, use, show, edit, delete)模板 "<name>" 不存在。使用 /pt list 查看可用模板。模板文件格式异常,请用 /pt show <name> 查看或 /pt edit <name> 修复。Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub kaben123/prompt-template --plugin prompt-template