skill-maker
Create, edit, test, and optimize portable Agent Skills (SKILL.md directories). Use when the user wants to author a skill from scratch, turn a workflow or repeated task into a reusable skill, refactor an existing skill, make one spec-compliant or portable, test or benchmark it, tune its description so it triggers reliably, or improve the output quality and token cost of a skill that already fires, even if they do not say the word "skill".
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-01
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- skill-maker
- license
- Apache-2.0
- metadata
- { "author": "klarrimore", "version": "1.15", "standard": "agentskills.io" }
- description
- Create, edit, test, and optimize portable Agent Skills (SKILL.md directories). Use when the user wants to author a skill from scratch, turn a workflow or repeated task into a reusable skill, refactor an existing skill, make one spec-compliant or portable, test or benchmark it, tune its description so it triggers reliably, or improve the output quality and token cost of a skill that already fires, even if they do not say the word "skill".
- compatibility
- Portable across any skills-compatible agent that reads the agentskills.io format. Bundled validation and packaging scripts require Python 3.8+ and PyYAML.
02 资源文件 55
- 资产文件assets/eval_review.html6.9 KB
- 脚本evals/__init__.py—
- 参考文档evals/evals.json4.4 KB
- 参考文档evals/failure-modes.md5.6 KB
- 脚本evals/grade_artifacts.py1.5 KB
- 参考文档evals/judge_labels.json1.1 KB
- 参考文档evals/judges/generic-procedure-detection.md4.5 KB
- 参考文档evals/judges/safety-least-surprise.md3.2 KB
- 参考文档evals/judges/self-improvement-overfitting.md6.3 KB
- 参考文档evals/judges/self-improvement-scope.md4.9 KB
- 参考文档evals/judges/skip-evals-scope.md3.4 KB
- 参考文档evals/README.md5.4 KB
- 参考文档evals/runs/2026-09-30/eval-1-create-from-workflow-grading.json4.4 KB
- 参考文档evals/runs/2026-09-30/eval-2-make-spec-compliant-grading.json2.9 KB
- 参考文档evals/runs/2026-09-30/eval-4-improve-installed-skill-grading.json2.5 KB
- 参考文档evals/runs/2026-09-30/eval-5-safety-refusal-grading.json2.9 KB
- 参考文档evals/runs/2026-09-30/eval-6-skip-evals-grading.json2.2 KB
- 参考文档evals/runs/2026-09-30/judge-dry-run.md4.0 KB
- 参考文档evals/runs/2026-09-30/summary.md5.4 KB
- 参考文档evals/trigger_queries.json4.0 KB
- 许可证LICENSE.txt11.1 KB
- 参考文档references/authoring-guide.md13.3 KB
- 参考文档references/description-optimization.md3.0 KB
- 参考文档references/environment-adaptations.md2.5 KB
- 参考文档references/evaluation.md9.5 KB
- 参考文档references/schemas.md12.2 KB
- 参考文档references/scripts.md4.1 KB
- 参考文档references/skill-optimization.md11.0 KB
- 参考文档references/spec-provenance.md9.3 KB
- 参考文档references/spec-reference.md14.5 KB
- 参考文档requirements.txt12 B
- 脚本scripts/__init__.py—
- 脚本scripts/eval_adapter.py5.9 KB
- 脚本scripts/eval_models.py14.4 KB
- 脚本scripts/eval_store.py4.1 KB
- 脚本scripts/install_skill.py6.6 KB
- 脚本scripts/package_skill.py3.7 KB
- 脚本scripts/quick_validate.py17.3 KB
- 脚本scripts/skill_eval.py65.6 KB
- 脚本scripts/utils.py2.9 KB
- 脚本tests/__init__.py—
- 脚本tests/fixtures/__init__.py—
- 脚本tests/fixtures/fake_eval_adapter.py4.3 KB
- 脚本tests/markdown_tables.py879 B
- 脚本tests/test_eval_adapter.py3.5 KB
- 脚本tests/test_eval_models.py2.0 KB
- 脚本tests/test_evals_data.py17.2 KB
- 脚本tests/test_grade_artifacts.py6.2 KB
- 脚本tests/test_install_skill.py7.7 KB
- 脚本tests/test_package_skill.py5.5 KB
- 脚本tests/test_quick_validate.py27.5 KB
- 脚本tests/test_skill_body.py3.6 KB
- 脚本tests/test_skill_eval.py19.5 KB
- 脚本tests/test_spec_references.py8.1 KB
- 脚本tests/test_utils.py4.0 KB
03 SKILL.md 正文
Skill Maker
Create and improve portable Agent Skills. A skill is a directory containing
SKILL.md plus optional scripts/, references/, and assets/. Keep the
portable artifact self-contained. Resolve bundled paths relative to this skill's
own root. Do not search another checkout for missing resources.
Core loop
Every task runs the shared steps in order. Steps 2 and 4 hand off to your task
path (create, update, or improve) below. The candidate is the copy of the
skill you edit: a directory in a workspace you own whose name matches the
skill's name. Source fixtures and installed skills stay byte-identical; edit
and validate only the candidate.
Shared steps
- Decide whether the content is a skill (discrete task-class capability) or
an always-on instruction (ambient discipline). Read
references/authoring-guide.md. Done when you can name the task class the skill serves, or you have routed the content to an always-on instruction file and stopped. - Prepare the candidate by running your task path's preparation step. Done when that step's condition holds.
- Establish or preserve task and trigger baselines before any edit. Read
references/evaluation.mdandreferences/description-optimization.md. Readreferences/skill-optimization.mdwhen diagnosing task quality, context cost, or tool efficiency, or when choosing among optimization experiments. Readreferences/schemas.mdwhen writing or debuggingevals/evals.jsonor reading grading, benchmark, or history records. Done when every eval and trigger query has a recorded baseline result (no skill for a new skill, the current version otherwise). - Change the candidate by running your task path's change step, making the smallest justified change. Done when every edit traces to a captured requirement or a failing baseline result.
- Compare with paired evidence: run each eval with the skill and against the baseline, then show the outputs to the human before critiquing or rewriting the candidate. Select by held-out results. Done when every eval has a with-skill and a baseline result and the human has seen the outputs.
- Deliver with strict validation (
scripts/quick_validate.py), then package (scripts/package_skill.py) or install (scripts/install_skill.py):
Strict mode rejects non-portable fields and is required by package/install. Done when strict validation exits 0 and the package or install command exits 0.python -m scripts.quick_validate <candidate> python -m scripts.package_skill <candidate> <dist> python -m scripts.install_skill <candidate> [--target <dir>] [--force]
Create a new skill
- Capture (step 2) expertise, triggers, inputs, output format, dependencies, and boundaries from real artifacts (runbooks, schemas, API docs, failure reports), then create the candidate directory. Done when every trigger, input, output format, and boundary is tied to a source artifact.
- Draft (step 4) the portable core:
name(kebab-case, matching directory),description(action + scope + trigger signal), and a concise body with progressive disclosure, under 500 lines / ~5000 tokens. Use only the six recognized frontmatter fields (theallowed-toolsdefault is inreferences/authoring-guide.md). Client-specific fields, install paths, precedence, plugins, hosted IDs, and marketplace metadata are opt-in target adapters outside the canonical artifact; add one only when a target was requested. Name eachscripts/andreferences/file in the body with a one-line purpose and when to read it, and keep references one level underreferences/. Readreferences/scripts.mdwhen bundling executable code. Readreferences/spec-provenance.mdwhen tracing the authority tier of a spec, validator, or hardening rule. Useassets/eval_review.htmlto present trigger-review results when a browser is available (fill__EVAL_DATA_PLACEHOLDER__,__SKILL_NAME_PLACEHOLDER__, and__SKILL_DESCRIPTION_PLACEHOLDER__with real data before opening). Done when the audit reports noscript.unlistedorresource.unaddressedfindings for the candidate.
Update an existing skill
- Inspect (step 2) the source with import mode, then copy it into the
candidate:
Import mode reports client extensions and name mismatches as warnings so you can examine an existing skill without rejecting it. Done when every import warning is listed with a keep, convert, or drop decision and the candidate directory exists.python -m scripts.quick_validate <skill> --mode import --json - Edit (step 4) the candidate, preserving the skill name and unrelated behavior. Strip or relocate client extensions only after the user makes an explicit portable-conversion decision. Done when the diff against the source touches only the requested behavior and the decided extensions.
Improve a skill (sandboxed candidate loop)
- Run
scripts/skill_eval.pyin improve mode (steps 2 to 5); it copies the skill into workspace candidates, revises on train failures, and promotes by held-out results:
Isolation, held-out handling, and promotion:python -m scripts.skill_eval improve <skill> --workspace <workspace> \ --max-iterations 3 --adapter-arg <executable> --adapter-arg <argument>references/evaluation.md. Show the paired outputs to the human (step 5), then deliver<workspace>/best-skill/<skill-name>/(step 6). Done whenhistory.jsonrecords agrading_resultfor every candidate and the human has seen the promoted candidate's outputs.
Gotchas
- Run bundled scripts as modules from the skill root
(
python -m scripts.quick_validate); the package imports resolve only from there. - Use a comma, period, colon, or parentheses instead of U+2014 (em dash); the validator rejects it.
Authoring rules
Read references/spec-reference.md before changing frontmatter and
references/authoring-guide.md before drafting the body. Use only the six
portable frontmatter fields by default. name must be kebab-case and match the
directory. description must say what the skill does and when to use it, with
a first-sentence routing signal. Write imperative, specific instructions and
explain why important steps exist. Avoid hidden access, data exfiltration,
misleading descriptions, and client-specific assumptions.
Passing validation is not a safety review; see references/authoring-guide.md.
Evaluation and improvement
The shipped evaluator uses the skill-eval/v1 command adapter. It runs
deterministic expectations locally, sends only judge expectations to the
adapter, and records paired with-skill and baseline results. Command
expectations are denied unless --allow-command-checks is explicit.
Read scripts/eval_models.py when an eval, trigger, or calibration file fails
to load, scripts/eval_adapter.py when writing an adapter command, and
scripts/eval_store.py when reading workspace artifacts or audit metadata.
Import scripts/utils.py for shared helpers (parse_frontmatter,
should_exclude, walk_skill) when writing custom evaluation or
packaging tools.
The offline audit (python -m scripts.skill_eval audit) includes
progressive-disclosure and portable-resource warnings:
skill.allowed-tools: frontmatter carries the experimental pre-approval field.resource.unaddressed.<path>: a packaged reference or asset not named in the body.resource.reference-depth.<path>: file nested belowreferences/<subdir>/.script.unlisted.<path>: a bundled script not named in the body.
Read references/evaluation.md for the adapter contract, workspace artifacts,
exit codes, benchmark diagnostics, and manual fallback. Read
references/description-optimization.md for trigger tuning and
references/environment-adaptations.md when capabilities are limited.