跳到正文
cccskills
免费在 GitHub 公开

anthropic-skill-creator

Design, review, and improve Claude/Codex skills based on Anthropic's "The Complete Guide to Building Skills for Claude". Use when creating a new skill, rewriting SKILL.md frontmatter and workflows, fixing under-triggering or over-triggering, designing scripts/references/assets, building test cases, or preparing a skill for upload/distribution.

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

查看安装方法

包含的文件(9)

  • SKILL.md4.7 KB
  • assets/The-Complete-Guide-to-Building-Skill-for-Claude.pdf548.5 KB
  • references/checklist.md1.1 KB
  • references/failure-remedies.md1.4 KB
  • references/patterns.md953 B
  • references/prompt-templates.md1014 B
  • references/source.md661 B
  • references/trigger-examples.md1.1 KB
  • scripts/new_skill.sh1.3 KB

SKILL.md(原文)

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

Create Skills

Build skills that trigger correctly, execute reliably, and stay concise.

Core Principles

  • Use progressive disclosure:
    • Frontmatter (name, description) for trigger selection.
    • SKILL.md body for core workflow.
    • references/ for deep details loaded only when needed.
  • Keep skills composable: avoid assumptions that this is the only active skill.
  • Prefer deterministic scripts for fragile validation logic.

Workflow

  1. Define 2-3 concrete use cases.
  2. Draft trigger-strong frontmatter.
  3. Design reusable resources (scripts/, references/, assets/).
  4. Write actionable instructions and error handling.
  5. Run triggering/functional/performance tests.
  6. Iterate based on under-trigger/over-trigger signals.

1) Define Use Cases

Capture for each use case:

  • User phrasing (what they actually say)
  • Intended result
  • Multi-step workflow and required tools (built-in and/or MCP)
  • Failure points that need guardrails

If use cases are vague, ask targeted follow-up questions before authoring.

2) Frontmatter Design (Most Important)

Write only what is needed to trigger correctly.

Required fields:

  • name: kebab-case, matches folder name
  • description: include BOTH
    • What the skill does
    • When to use it (trigger phrases/context/file types)

Description formula:

  • [What it does] + [When to use it] + [Key capabilities]

Good pattern:

  • "Processes PDF legal documents for contract review. Use when users ask for clause extraction, risk flags, or redline summaries from .pdf contracts."

Bad pattern:

  • "Helps with projects."

Precision controls:

  • Add negative triggers to reduce over-triggering.
  • Mention relevant file types when applicable.
  • Keep wording aligned with real user phrases from use cases.

3) Resource Plan

  • scripts/: deterministic checks/transforms used repeatedly
  • references/: large docs, domain logic, variant-specific guidance
  • assets/: templates and artifacts used in outputs

Rules:

  • Keep SKILL.md compact; link to references/.
  • Avoid extra docs in skill folder (README.md, changelog, etc.).

4) Instruction Writing

Write imperative, testable steps.

Include:

  • Clear step order and dependencies
  • Validation checkpoints
  • Common errors with concrete fixes
  • Example user inputs and expected outputs

For critical checks, prefer scripts over prose-only checks.

5) Test Protocol

Run these three test groups.

A. Triggering Tests

  • Should trigger on obvious requests
  • Should trigger on paraphrased requests
  • Should NOT trigger on unrelated requests

Target benchmark:

  • Trigger on ~90% of relevant prompts in a 10-20 prompt suite

B. Functional Tests

Validate:

  • Correct outputs
  • Tool/API call success
  • Error handling paths
  • Edge cases

C. Performance Comparison

Compare with vs without skill:

  • Number of clarification turns
  • Failed tool/API calls
  • Token usage
  • End-to-end completion quality

6) Iteration Rules

Under-triggering signals:

  • Skill does not load when expected
  • Users keep manually invoking it

Fix:

  • Add clearer trigger phrases and technical terms to description.

Over-triggering signals:

  • Skill loads for unrelated requests

Fix:

  • Add negative triggers and tighten scope language.

Execution issues:

  • Inconsistent outputs, retries, user corrections

Fix:

  • Tighten instructions, add explicit validations, and script critical checks.

Troubleshooting Quick Guide

  • Upload fails with missing SKILL.md: file must be exactly SKILL.md.
  • Invalid frontmatter: verify YAML delimiters --- and valid syntax.
  • Invalid skill name: use lowercase kebab-case.
  • Skill not followed: move critical instructions to top and make them concrete.
  • Slow behavior: move long content to references/; reduce enabled skills.

Packaging

Validate and package before distribution:

# Scaffold a new skill directory
bash scripts/new_skill.sh <skill-name>

quick_validate.py and package_skill.py are not bundled in this skill. Use synapse skills show <name> to verify frontmatter, and synapse skills deploy <name> to distribute.

References

  • references/checklist.md
  • references/prompt-templates.md
  • references/patterns.md
  • references/source.md: source PDF and extracted principles
  • references/trigger-examples.md: trigger/non-trigger examples for description tuning
  • references/failure-remedies.md: failure patterns and minimum effective fixes

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

This skill enables web searching using Brave Search API directly via curl. Use when searching for current information, news, articles, or web content. MCP server not required - calls API directly.

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

s-hiraoku/vscode-sidebar-terminal222026年10月21日 更新

Run code quality checks (ruff, mypy, pytest) and optionally simplify code. This skill should be used when the user wants to check code quality, run linters, run tests, or simplify recently modified code. Triggered by /lint, /check, or /code-quality commands.

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

s-hiraoku/vscode-sidebar-terminal222026年10月21日 更新

Perform structured code reviews focusing on correctness, readability, security, and maintainability. Use this skill when reviewing pull requests, evaluating code changes, or establishing review standards for a team.

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

s-hiraoku/vscode-sidebar-terminal222026年10月21日 更新

Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. This skill should be used after implementing features or bug fixes to clean up code, when refactoring for readability, or when reducing unnecessary complexity. It launches the code-simplifier subagent provided by the code-simplifier@claude-plugins-official plugin.

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

s-hiraoku/vscode-sidebar-terminal222026年10月21日 更新

Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise. This skill should be used when code-quality checks pass but the code would benefit from structural cleanup — deduplication, branching simplification, naming improvements, or dead-code removal. Invoked as a subagent from /code-quality or directly via the Task tool.

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

s-hiraoku/vscode-sidebar-terminal222026年10月21日 更新

commit

免费

Create a well-formed git commit from current changes using session history for rationale and summary; use when asked to commit, prepare a commit message, or finalize staged work.

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

s-hiraoku/vscode-sidebar-terminal222026年10月21日 更新

查看 s-hiraoku 的全部技能

报告此技能的问题