Agent Skills › DotHarness/dotcraft › skill-installer

skill-installer

GitHub

用于安装、验证和适配 DotCraft 技能。支持从本地、压缩包或 Git 仓库导入,执行完整性检查与依赖适配,确保技能在目标工作区正常运行。

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

Trigger Scenarios

用户希望安装新的 DotCraft 技能 用户需要导入或适配现有技能包

Install

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

Non-standard path

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

Use without installing

npx skills use DotHarness/dotcraft@skill-installer

指定 Agent (Claude Code)

npx skills add DotHarness/dotcraft --skill skill-installer -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-installer",
    "tools": "Exec, SkillView, EditFile",
    "description": "Use when installing a DotCraft skill from a local folder, archive, GitHub checkout, or market-provided download and then checking whether it needs workspace-specific adaptation."
}

Skill Installer

Use this workflow when the user wants to install, import, test, or adapt a DotCraft skill. The installation surface is ordinary shell and file work plus the DotCraft skill verifier; there is no dedicated install tool.

Workflow

  1. Prepare a candidate directory.
    • If the user provides a local directory, inspect it directly.
    • If the user provides an archive or URL, download/extract it into a temporary directory in the workspace.
    • If the skill is inside a repository, clone or copy the repository, then point at the subdirectory containing SKILL.md.
  2. Ensure the candidate directory is a DotCraft skill bundle.
    • SKILL.md must be at the candidate root.
    • The frontmatter name must exist. If the user or market flow provides a local install name, use that as the CLI --name value; it does not have to match the frontmatter display name exactly.
    • Preserve supporting files where they are. Ordinary relative files such as root markdown/json files, docs/, references/, scripts/, assets/, and agents/openai.yaml can remain in the bundle when verification accepts them.
  3. Run verification:
dotcraft skill verify --candidate "<candidate-dir>" --name "<local-skill-name>" --json

Omit --name only when the frontmatter name is already the desired local install name.

  1. If verification fails, decide whether the failure can be solved by command arguments before editing files.
    • If the problem is a display/local-name mismatch such as name: Git but the local install name should be git, retry with --name "git".
    • Do not move or rewrite files only because they are root markdown/json files, docs/, or references/.
    • Only make minimal candidate edits for real structural or safety problems: missing SKILL.md, missing required frontmatter, unsafe paths, path traversal, hidden control files, oversized files, or genuinely broken references that the skill itself requires.
    • Preserve the imported instructions.
  2. Install after verification succeeds:
dotcraft skill install --candidate "<candidate-dir>" --name "<local-skill-name>" --source "<where this came from>" --json

Use --overwrite only when the user explicitly wants to replace the current workspace source skill.

Post-install Review

After installation, load the installed instructions with SkillView(name). Then review the skill against the current workspace and environment by doing only checks that the skill itself makes relevant.

Examples of useful checks:

  • If it assumes python, check the actual Python command/version or virtual environment.
  • If it assumes a CLI tool, check whether that tool exists and whether the expected command shape works.
  • If it references scripts or assets, confirm those files exist in the installed skill.
  • If it assumes paths, package managers, shells, or config files, check those in the workspace.

Adapt the installed skill only for a concrete mismatch. Edit its files under .craft/skills/<installed-skill-name>/ with EditFile, keep the change narrow, and tell the user what you changed. Reinstalling with --overwrite restores the published version.

Version History

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

    重构:移除 SkillManage 和技能变体功能

  • 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-authoring/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
ec7c1de0
Indexed
2026-07-05 15:31

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