Agent Skills › DotHarness/dotcraft › dotcraft-guide

dotcraft-guide

GitHub

DotCraft 使用指南,用于解答关于该 Harness 的疑问并配置其 providers、模型、设置、技能等。提供查询优先级和变更层级指引。

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

触发场景

询问 DotCraft 功能或概念 配置 DotCraft 设置 查找 DotCraft 文档

安装

npx skills add DotHarness/dotcraft --skill dotcraft-guide -g -y
更多选项

非标准路径

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

不安装直接使用

npx skills use DotHarness/dotcraft@dotcraft-guide

指定 Agent (Claude Code)

npx skills add DotHarness/dotcraft --skill dotcraft-guide -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": "dotcraft-guide",
    "description": "Answer questions about DotCraft when \"you\", \"this app\", or \"this agent\" means the harness, and configure an existing installation's providers, models, settings, skills, plugins, channels, automations, permissions, or CLI."
}

DotCraft Guide

DotCraft is the harness you are running inside. When the user says "you", "this app", "this agent", or "the harness" and means the product rather than the model or the project checked out in this workspace, they mean DotCraft. Your running version and workspace paths are in the identity section of your system prompt. When behavior observed in this session contradicts a document, trust the session and say which one you followed.

Source order

Stop at the first source that answers the question.

  1. Exec("dotcraft config schema --json") for any config.json field name, type, default, sensitive flag, or reload tier. Exec("dotcraft config show --json") for the current merged config, with sensitive values masked. models.json is a separate model-capability catalog and is not part of that schema; read references/config-map.md for its format. Compiled truth outranks every document.
  2. If the workspace contains docs/.vitepress/config.mts, it is the dotcraft repository itself. Use ReadFile and GrepFiles under docs/ and skip the network.
  3. WebFetch("https://www.dotcraft.net/llms.txt", extractMode: "markdown") to choose a page, then fetch that one page. Chinese is /zh/ plus the same path.
  4. https://github.com/DotHarness/dotcraft, branch main, for what the site does not cover.

Cite only www.dotcraft.net and github.com/DotHarness/dotcraft. Never invent a config key, CLI flag, field, or URL; say you could not find it. If Exec or the web tools are unavailable, answer from the local .craft/ tree and this skill's references, and say the documentation site was unreachable. A tool you lack is not a request to install anything.

Which layer does the change belong to

The user wants It belongs in
Something done once, right now Just do it. Nothing to persist
A convention for everyone working in this repository AGENTS.md
A preference or correction to keep for later sessions .craft/memory/MEMORY.md
A setting for this project <workspace>/.craft/config.json
A personal default, credentials, or endpoints ~/.craft/config.json
A custom model's context window or Fast capability <workspace>/.craft/models.json, or ~/.craft/models.json for every workspace
A skill or tool turned off here Skills or EnabledTools in the workspace config, or Desktop > Plugins > Skills to take effect at once
A procedure worth repeating A skill — $skill-authoring to write one, $skill-installer to install one
A bundle of skills, tools, hooks, MCP servers, or UI A plugin — $plugin-creator
External data or actions from another program McpServers
"From now on, whenever X happens, do Y", mechanically A hook — $create-hooks. Not memory, and not prose in a file
Something on a schedule the Automation tool
Parallel orchestration across many items $workflow-authoring
A chat bot on QQ, WeCom, Feishu, Telegram, or Weixin Desktop > Channels, and /features/channels/ for setup

Split a mixed request and place each part separately.

Editing configuration and model capabilities

  1. Start with dotcraft config show --json to see the merged state. Do not ReadFile a config file merely to look; that pulls plaintext keys into the transcript. Workspace overrides personal, objects merge recursively, arrays and scalars replace wholesale, ProviderPreferences replaces per provider id, and keys match case-insensitively.
  2. Open only the file you are changing, edit only the keys the user asked about, and keep the JSON valid. Credentials and endpoints belong to the personal file's Providers; the project's model selection belongs to the workspace file. An unknown property under McpServers or LspServers fails the entire config load.
  3. Never write a literal secret. Write "ApiKey": "${OPENAI_API_KEY}" and tell the user which variable to set. $VAR and ${VAR} expand when the config loads; an unset variable keeps the placeholder unchanged.
  4. A file edit is not live. The running host does not watch these files, and AppConfig is a snapshot taken at startup, so the change applies at the next AppServer restart and the Desktop settings pages will not show it before then. Say "restart to apply" every time. If the user wants it live now, point them at the matching Desktop Settings panel instead. The hot reload tier in the schema describes changes made through Desktop Settings or AppServer RPC, never a hand-edited file.
  5. For provider sign-in, prefer the product surface: Desktop Settings > Model providers, or dotcraft auth openai login. Do not hand-write OAuth credentials.
  6. Custom model context windows belong in the models.json beside the applicable config.json, not under Compaction or Providers. Read references/config-map.md before creating or changing that file. Use the exact model id already configured for the provider, preserve unrelated entries, and restart the AppServer or Desktop before relying on the new capability metadata.

References

Read the one that matches the task. They sit next to this file, in the directory the skills catalog gives as this skill's <location> — normally .craft/skills/dotcraft-guide/.

  • references/config-map.md — the two config files, merge rules, the section index, provider protocols, and a worked provider switch.
  • references/surfaces.md — every path under .craft/ and ~/.craft/, what is safe to edit, and skill precedence.
  • references/docs-map.md — how dotcraft.net is addressed, and which page answers which question.
  • references/cli.md — the dotcraft command surface and where to find the binary.
  • references/capabilities.md — answering "what can you do" from this session before reaching for the product catalog.

Hand off

  • A failure that needs logs, rollouts, or state.db — dotcraft-doctor, in the bundled dotcraft plugin. If it is not installed, say so and point to Desktop > Plugins rather than guessing at a cause. An error already visible in this conversation you can simply answer.
  • Writing or installing a skill — $skill-authoring, $skill-installer. Plugins — $plugin-creator. Hooks — $create-hooks. Schedules — the Automation tool. Workflows — $workflow-authoring. Charts and interactive views — $visualize.
  • Building an application on the SDKs, in-process Harness, or AppServer protocol — $dotcraft-api.
  • Editing DotCraft's own source or documentation — dotcraft-dev-guide, dotcraft-docs-guide.

版本历史

  • c653b52 当前 2026-09-27 16:27

    重构:将记忆合并和历史文件替换为启用记忆的开关,并修复分叉时记忆开关的作用域问题。

  • 2d7cea6 2026-09-22 05:27

同 Skill 集合

.agents/skills/dotcraft-release-draft/SKILL.md
.agents/skills/dotcraft-simplify/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/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/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

元信息

文件数
0
版本
c653b52
Hash
be9ecbec
收录时间
2026-09-22 05:27

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-29 00:23
浙ICP备14020137号-1