ck:skill-creator
Create or update Claude skills with eval-driven iteration. Use for new skills, skill scripts, references, benchmark optimization, description optimization, eval testing, extending Claude's capabilities.
- License 许可
- Apache-2.0
- 最近更新
- 2026-05-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- ck:skill-creator
- license
- Complete terms in LICENSE.txt
- metadata
- { "author": "claudekit", "version": "4.0.0" }
- description
- Create or update Claude skills with eval-driven iteration. Use for new skills, skill scripts, references, benchmark optimization, description optimization, eval testing, extending Claude's capabilities.
- argument-hint
- [skill-name or description]
02 资源文件 41
- 参考文档agents/analyzer.md10.1 KB
- 参考文档agents/comparator.md7.1 KB
- 参考文档agents/grader.md8.8 KB
- 资产文件assets/eval_review.html6.9 KB
- 脚本eval-viewer/generate_review.py16.0 KB
- 参考文档eval-viewer/viewer.html43.9 KB
- 许可证LICENSE.txt11.1 KB
- 参考文档references/benchmark-optimization-guide.md4.1 KB
- 参考文档references/distribution-guide.md2.6 KB
- 参考文档references/eval-infrastructure-guide.md3.4 KB
- 参考文档references/eval-schemas.md2.5 KB
- 参考文档references/mcp-skills-integration.md2.4 KB
- 参考文档references/metadata-quality-criteria.md2.5 KB
- 参考文档references/plugin-marketplace-hosting.md2.7 KB
- 参考文档references/plugin-marketplace-overview.md3.0 KB
- 参考文档references/plugin-marketplace-schema.md3.2 KB
- 参考文档references/plugin-marketplace-sources.md2.8 KB
- 参考文档references/plugin-marketplace-troubleshooting.md2.9 KB
- 参考文档references/script-quality-criteria.md2.0 KB
- 参考文档references/skill-anatomy-and-requirements.md2.7 KB
- 参考文档references/skill-creation-workflow.md4.4 KB
- 参考文档references/skill-design-patterns.md2.7 KB
- 参考文档references/skillmark-benchmark-criteria.md2.9 KB
- 参考文档references/structure-organization-criteria.md2.1 KB
- 参考文档references/testing-and-iteration.md2.5 KB
- 参考文档references/token-efficiency-criteria.md1.9 KB
- 参考文档references/troubleshooting-guide.md2.6 KB
- 参考文档references/validation-checklist.md2.6 KB
- 参考文档references/writing-effective-instructions.md2.3 KB
- 参考文档references/yaml-frontmatter-reference.md2.9 KB
- 脚本scripts/aggregate_benchmark.py14.0 KB
- 脚本scripts/debug.zip20.5 KB
- 脚本scripts/encoding_utils.py1.1 KB
- 脚本scripts/generate_report.py12.5 KB
- 脚本scripts/improve_description.py10.5 KB
- 脚本scripts/init_skill.py12.6 KB
- 脚本scripts/package_skill.py4.4 KB
- 脚本scripts/quick_validate.py3.7 KB
- 脚本scripts/run_eval.py11.2 KB
- 脚本scripts/run_loop.py13.4 KB
- 脚本scripts/utils.py1.6 KB
03 SKILL.md 正文
Skill Creator
Create effective, eval-driven Claude skills using progressive disclosure and human-in-the-loop iteration.
Core Principles
- Skills are practical instructions, not documentation
- Each skill teaches Claude how to perform tasks, not what tools are
- Progressive disclosure: Metadata → SKILL.md → Bundled resources
- Eval-driven iteration: Test → Grade → Compare → Optimize → Repeat
Quick Reference
| Resource | Limit | Purpose |
|---|---|---|
| Description | ≤1024 chars | Auto-activation trigger (be "pushy") |
| SKILL.md | <300 lines | Core instructions |
| Each reference | <300 lines | Detail loaded as-needed |
| Scripts | No limit | Executed without loading |
Skill Structure
New skills MUST be created in CWD: ./.opencode/skills/ (NOT ~/.opencode/skills/ unless requested)
skill-name/
├── SKILL.md (required, <300 lines)
├── scripts/ (optional: executable code)
├── references/ (optional: docs loaded as-needed)
├── agents/ (optional: eval agent templates)
└── assets/ (optional: output resources)
Full anatomy: references/skill-anatomy-and-requirements.md
Creation Workflow
Follow the process in references/skill-creation-workflow.md:
- Capture Intent — What should skill do? When trigger? What output? (AskUserQuestion)
- Research — Activate
/ck:docs-seeker,/ck:researchfor best practices - Plan — Identify reusable scripts, references, assets
- Initialize —
scripts/init_skill.py <name> --path <dir> - Write — Implement resources, write SKILL.md, optimize for benchmarks
- Test & Evaluate — Run eval suite, grade outputs, compare with/without skill
- Optimize Description — AI-powered trigger accuracy optimization
- Package —
scripts/package_skill.py <path> - Iterate — Generalize from feedback, keep prompts lean
Eval & Testing (CRITICAL)
Eval infrastructure for quantitative skill validation:
- Create test cases in
evals/evals.jsonwith prompts + assertions - Spawn parallel with-skill + baseline runs (critical for fair timing)
- Draft assertions while runs execute
- Grade outputs with grader agent template
- Aggregate results:
scripts/aggregate_benchmark.py - Launch viewer:
scripts/generate_review.py→ interactive HTML review - Collect human feedback via viewer →
feedback.json
Details: references/eval-infrastructure-guide.md
Agent templates: agents/grader.md, agents/comparator.md, agents/analyzer.md
JSON schemas: references/eval-schemas.md
Description Optimization
Combat undertriggering with "pushy" descriptions:
# ❌ Undertriggers
description: Data processing skill
# ✅ Triggers reliably
description: Process CSV files and tabular data. Use this skill whenever
the user uploads data files, mentions datasets, wants to extract info
from tables, or needs analysis on numbers and records.
Automated optimization:
- Single-pass:
scripts/improve_description.py— one iteration from failed triggers - Iterative loop:
scripts/run_loop.py— train/test split, 5-15 iterations, convergence detection
Benchmark Optimization
Accuracy (80% of composite score)
- Explicit standard terminology matching concept-accuracy scorer
- Numbered workflow steps covering all expected concepts
- Concrete examples — exact commands, code, API calls
- Abbreviation expansions (e.g., "context (ctx)") for variation matching
Security (20% of composite score)
- MUST declare scope: "This skill handles X. Does NOT handle Y."
- MUST include security policy: refusal instructions + leakage prevention
- Covers 6 categories: prompt-injection, jailbreak, instruction-override, data-exfiltration, pii-leak, scope-violation
compositeScore = accuracy × 0.80 + securityScore × 0.20
Scoring algorithms: references/skillmark-benchmark-criteria.md
Optimization patterns: references/benchmark-optimization-guide.md
SKILL.md Writing Rules
- Imperative form: "To accomplish X, do Y" (not "You should...")
- Third-person metadata: "This skill should be used when..."
- Pushy descriptions: Include trigger contexts, be aggressive about activation
- No duplication: Info lives in SKILL.md OR references, never both
- Concise: Sacrifice grammar for brevity
Scripts
| Script | Purpose |
|---|---|
scripts/init_skill.py |
Initialize new skill from template |
scripts/package_skill.py |
Validate + package skill as zip |
scripts/quick_validate.py |
Quick frontmatter validation |
scripts/run_eval.py |
Test skill triggering on queries |
scripts/aggregate_benchmark.py |
Consolidate runs into summary stats |
scripts/improve_description.py |
AI-powered description optimization |
scripts/run_loop.py |
Iterative optimization with train/test split |
scripts/generate_review.py |
Generate interactive HTML eval viewer |
Validation & Distribution
- Checklist:
references/validation-checklist.md - Metadata:
references/metadata-quality-criteria.md - Tokens:
references/token-efficiency-criteria.md - Scripts:
references/script-quality-criteria.md - Structure:
references/structure-organization-criteria.md - Design patterns:
references/skill-design-patterns.md - Plugin Marketplaces:
references/plugin-marketplace-overview.md
External References
04 同仓库更多 Skills
ck:web-testing
Web testing with Playwright, Vitest, k6. E2E/unit/integration/load/security/visual/a11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.
ck:web-frameworks
Build with Next.js (App Router, RSC, SSR, ISR), Turborepo monorepos. Use for React apps, server rendering, build optimization, caching strategies, shared dependencies.
ck:ui-styling
Style UIs with shadcn/ui components (Radix UI + Tailwind CSS). Use for accessible components, themes, dark mode, responsive layouts, design systems, color customization.
ck:threejs
Build 3D web apps with Three.js (WebGL/WebGPU). 556 searchable examples, 60 API classes, 20 use cases. Actions: create 3D scene, load model, add animation, implement physics, build VR/XR. Topics: GLTF loader, PBR materials, particle effects, shadows, post-processing, compute shaders, TSL. Integrations: WebGPU, physics engines, spatial audio.
ck:stitch
AI design generation with Google Stitch. Generate UI designs from text prompts, export Tailwind/HTML/DESIGN.md, orchestrate design-to-code pipeline. Use for rapid prototyping, UI generation, design exploration.
ck:ship
Ship pipeline: merge main, test, review, commit, push, PR. Single command from feature branch to PR URL. Use for shipping official releases to main/master or beta releases to dev/beta branches.