example-skill

创建技能的模板。在编写新代码、审查代码或技能的特定领域适用时使用。用具体内容替换此描述。

📖 中文导读:创建技能的模板。在编写新代码、审查代码或技能的特定领域适用时使用。用具体内容替换此描述。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: example-skill description: Template for creating skills. Use when writing new code, reviewing code, or when the skill's specific domain applies. Replace this description with specifics.

Example Skill

When to Use

  • [Scenario 1 where this skill applies]
  • [Scenario 2 where this skill applies]
  • [Scenario 3 where this skill applies]

Principles

  1. [Principle 1]: [Explanation]
  2. [Principle 2]: [Explanation]
  3. [Principle 3]: [Explanation]

Process

Step 1: [First Step]

[What to do and why]

Step 2: [Second Step]

[What to do and why]

Step 3: [Third Step]

[What to do and why]

Patterns

[Pattern Name]

// Example code showing the pattern
function example() {
  // ...
}

When to use: [Situation where this pattern applies]

[Another Pattern]

// Another example
function anotherExample() {
  // ...
}

When to use: [Situation where this pattern applies]

Common Tasks

Task How
[Task 1] [Brief instructions]
[Task 2] [Brief instructions]
[Task 3] [Brief instructions]

Anti-Patterns

Don't do this:

// Bad example
function badExample() {
  // Why this is wrong...
}

Do this instead:

// Good example
function goodExample() {
  // Why this is right...
}

Gotchas

  • [Non-obvious behavior 1]
  • [Common mistake 2]
  • [Thing that trips people up 3]

References