Agent Skills › DotHarness/dotcraft › skill-authoring

skill-authoring

GitHub

指导如何创建、更新或重构 DotCraft 技能。涵盖 SKILL.md 编写规范、文件存放位置、辅助资源管理,以及使用 dotcraft skill verify 进行验证和修复错误的方法。

src/DotCraft.Core/Skills/BuiltIn/skill-authoring/SKILL.md DotHarness/dotcraft

Trigger Scenarios

用户请求创建新技能 用户请求修改现有技能结构 用户要求将工作流固化为可复用技能

Install

npx skills add DotHarness/dotcraft --skill skill-authoring -g -y
More Options

Non-standard path

npx skills add https://github.com/DotHarness/dotcraft/tree/main/src/DotCraft.Core/Skills/BuiltIn/skill-authoring -g -y

Use without installing

npx skills use DotHarness/dotcraft@skill-authoring

指定 Agent (Claude Code)

npx skills add DotHarness/dotcraft --skill skill-authoring -a claude-code -g -y

安装 repo 全部 skill

npx skills add DotHarness/dotcraft --all -g -y

预览 repo 内 skill

npx skills add DotHarness/dotcraft --list

SKILL.md

Frontmatter
{
    "name": "skill-authoring",
    "tools": "ReadFile, WriteFile, EditFile, Exec",
    "description": "Use when the user asks to create, update, or restructure a DotCraft skill."
}

Skill Authoring

A skill is a directory with a SKILL.md and optional supporting files. Create and change skills with ReadFile, WriteFile, and EditFile, then check the result with dotcraft skill verify.

Write a skill for a task type that recurs: when to use it, the exact steps, the pitfalls, and how to confirm success. Keep simple answers and preferences out of skills.

Where the skill lives

Create a new skill at .craft/skills/<name>/ in the workspace unless the user names another place. A skill in the user skill root is visible to every workspace, and one in a .agents/skills directory, in the workspace or the home folder, is also read by other agent products, so put it there only when the user asks.

Before editing an existing skill, check where it lives:

  • A workspace skill under .craft/skills/<name>/ can be edited in place.
  • A built-in skill (its directory holds a .builtin marker) is overwritten when DotCraft updates. To keep an edit, delete the .builtin marker, which turns it into a workspace skill that no longer updates. Tell the user when you do this.
  • A plugin skill is replaced when its plugin updates, and a user or shared skill affects other workspaces. To adapt one for this workspace only, copy its directory to .craft/skills/<name>/ with the same name and edit the copy.

SKILL.md

Start the file at byte 0 with frontmatter:

---
name: my-skill
description: Use when <the task that should select this skill>.
---
  • name matches the directory name: letters, digits, hyphens, dots, or underscores, at most 64 characters.
  • description says when to use the skill, in at most 1,024 characters. It is all the agent sees before loading the skill, so name the task, not the current conversation.
  • The body is the workflow. Keep it focused on triggers, steps, pitfalls, and verification.

Supporting files

Put helpers in scripts/, long reference material in references/, and templates or examples in assets/. Refer to them from SKILL.md by paths relative to the skill directory, such as scripts/check.py, and say when to read or run each one. Keep each file under 1 MiB.

Verify

dotcraft skill verify --candidate "<skill-dir>" --json

Fix every reported error. Verification checks structure and limits only, so also run any script you added.

A new or renamed skill can be loaded with SkillView right away, but it joins the skills list only after the user runs /reload-skills or starts a new conversation. Say so when you finish.

Pitfalls

  • A broad skill that covers a whole domain. Split it by trigger and workflow.
  • Missing commands, paths, or checks. A later run needs concrete instructions.
  • Absolute paths to the skill's own files. They break when the skill is copied or moved.

Version History

  • 829157d Current 2026-11-02 15:18

    移除了 SkillManage 工具及变体,改为直接使用文件读写操作;新增从 .agents/skills 目录读取技能的功能。

  • a9fd064 2026-09-08 23:50

    移除捆绑技能中过时的指令和事实信息

  • f8e839e 2026-07-05 15:31

Same Skill Collection

.agents/skills/dotcraft-dev-guide/SKILL.md
.agents/skills/dotcraft-docs-guide/SKILL.md
.agents/skills/dotcraft-release-draft/SKILL.md
.agents/skills/dotcraft-simplify/SKILL.md
.agents/skills/fix-oratorio-review/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/automations/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/create-hooks/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/cron/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/dotcraft-api/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/dotcraft-guide/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/generative-ui/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/heartbeat/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/memory/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/plugin-creator/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/skill-installer/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/visualize/SKILL.md
src/DotCraft.Core/Skills/BuiltIn/workflow-authoring/SKILL.md
src/DotCraft.TraceViewer/Skills/BuiltIn/trace-review/SKILL.md

Metadata

Files
0
Version
829157d
Hash
1d1e3d25
Indexed
2026-07-05 15:31

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 16:53
浙ICP备14020137号-1