跳到正文
cccskills
免费在 GitHub 公开

recipe-template

Create a reusable command with explicit preconditions, numbered actions, checks after each step, and error handling. This template provides a structure to customize so Claude verifies the required context before starting a defined workflow.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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.

查看安装方法

适用场景

  • Turning a recurring task into a reusable command
  • Defining checks for files, permissions, and configuration before work
  • Adding validation after each workflow step
  • Documenting error responses and completion summaries

包含的文件(1)

  • SKILL.md2.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

SituationResponse
[Error condition 1][What to do: retry / stop / ask user]
[Error condition 2][What to do]
Precondition checkpoint failsStop. 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).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Audit Claude Code agents, skills, and commands for quality and production readiness. Use when evaluating skill quality, checking production readiness scores, or comparing agents against best-practice templates.

中文简介正在准备中。当前显示原文说明。

FlorianBruniaux/claude-code-ultimate-guide62012026年10月18日 更新

Assess a codebase across seven areas, including exposed credentials, security, dependencies, structure, and tests. Receive category scores, findings tied to file locations, and a prioritized improvement plan with smaller tasks that can be completed quickly.

中文简介正在准备中。当前显示英语简介。

  • Assessing the overall health of an inherited project
  • Reviewing exposed credentials and security risks
  • Identifying dependency and test coverage gaps
FlorianBruniaux/claude-code-ultimate-guide62012026年10月18日 更新

Measure code patterns such as casts to any or disabled lint rules, then run repeated, targeted edits. Keep changes that improve the chosen metric, revert unsuccessful changes, and track results for each improvement loop.

中文简介正在准备中。当前显示英语简介。

  • Finding code patterns to prioritize for cleanup
  • Preparing measurement files for an improvement loop
  • Repeating targeted edits to reduce casts to any
FlorianBruniaux/claude-code-ultimate-guide62012026年10月18日 更新

best-of-n

免费

Generate several separate solutions, compare them against criteria fixed in advance, and verify the selected result through executable checks or an independent reviewer. Keep a proof log documenting candidates, evidence, failures, and remaining limits.

中文简介正在准备中。当前显示英语简介。

  • Comparing implementation options before choosing one
  • Verifying a solution when a wrong choice would be costly
  • Keeping evaluation evidence for delivery or audit
FlorianBruniaux/claude-code-ultimate-guide62012026年10月18日 更新

canary

免费

Post-deploy monitoring: watch production after a deploy and alert on regressions

中文简介正在准备中。当前显示原文说明。

FlorianBruniaux/claude-code-ultimate-guide62012026年10月18日 更新

catchup

免费

Restore context after /clear by summarizing recent work and project state

中文简介正在准备中。当前显示原文说明。

FlorianBruniaux/claude-code-ultimate-guide62012026年10月18日 更新

查看 FlorianBruniaux 的全部技能

报告此技能的问题