recipe-template
Template for commands that implement a structured recipe: validate preconditions, then execute numbered steps. Fork this and replace the placeholder content. The 'Context Validation Checkpoints' section is the key pattern, forcing Claude to verify preconditions before starting.
- License 许可
- MIT
- 最近更新
- 2026-10-18
- Stars
- ★ 0
- Forks
- 2
01 前言 Front Matter
- name
- recipe-template
- effort
- low
- description
- Template for commands that implement a structured recipe: validate preconditions, then execute numbered steps. Fork this and replace the placeholder content. The 'Context Validation Checkpoints' section is the key pattern, forcing Claude to verify preconditions before starting.
- argument-hint
- [optional-arg]
- disable-model-invocation
- true
03 SKILL.md 正文
Recipe command template
This is a template. Replace all
[placeholder]content with your specifics.
When to use
- [Describe the exact situation where this command applies]
- [Describe when NOT to use it, with a common misuse case]
Context validation checkpoints
Before executing any step, verify all of these are true. If any checkpoint fails, stop and explain why to the user.
- [ ] [Precondition 1: e.g., "The target branch exists and is up to date with main"]
- [ ] [Precondition 2: e.g., "No uncommitted changes in the affected files"]
- [ ] [Precondition 3: e.g., "Required config file exists at path X"]
- [ ] [Precondition 4: e.g., "Necessary permissions or credentials are available"]
Recipe steps
Step 1: [Action name]
[Clear instructions for this step. Be specific about what to read, what to check, what to write.]
Validation: [How Claude verifies this step completed correctly before moving to Step 2]
Step 2: [Action name]
[Instructions]
Validation: [How to verify]
Step 3: [Action name]
[Instructions]
Validation: [How to verify]
Step 4: Confirm completion
Summarize what was done:
- [Item 1 completed]
- [Item 2 completed]
- Files modified: [list]
- Next action for the user (if any): [instruction]
Error handling
| Situation | Response |
|---|---|
| [Error condition 1] | [What to do: retry / stop / ask user] |
| [Error condition 2] | [What to do] |
| Precondition checkpoint fails | Stop. Explain which checkpoint failed and what the user needs to fix before re-running |
Arguments
If $ARGUMENTS[0] was provided: [how to use it]
If no argument was provided: [default behavior]
The "Context Validation Checkpoints" section is the key pattern from this template. It forces Claude to verify preconditions explicitly rather than discovering failures mid-execution. Inspired by recurring patterns in Packmind commands (Apache 2.0).
04 同仓库更多 Skills
voice-refine
Transform verbose voice input into structured, token-efficient Claude prompts. Use when cleaning up voice memos, dictation output, or speech-to-text transcriptions that contain filler words, repetitions, and unstructured thoughts.
validate-changes
Evaluate staged changes using LLM-as-a-Judge before committing
update-threat-db
Delegate threat-intelligence research and updates to AgentSec, then validate the guide and landing mirrors.
token-audit
Audit Claude Code configuration to measure fixed-context token overhead and produce a prioritized action plan. Use when hitting rate limits, experiencing early context compression, or after adding significant config files.
talk-stage6-revision
Produces revision sheets with quick navigation by act, a master concept-to-URL table, Q&A cheat-sheet with 6-10 anticipated questions, glossary, and external resources list. Use when preparing for a talk with Q&A, creating shareable reference material for attendees, or building a safety-net glossary for live delivery.
talk-stage5-script
Produces a complete 5-act pitch with speaker notes, a slide-by-slide specification, and a ready-to-paste Kimi prompt for AI slide generation. Requires validated angle and title from Stage 4. Use when you have a confirmed talk angle and need the full script, slide spec, and AI-generated presentation prompt.