Agent SkillsDotHarness/dotcraft › dotcraft-api

dotcraft-api

GitHub

提供DotCraft公共SDK、协议及扩展集成的开发指导,辅助构建客户端、插件或适配器,强调以官方文档和已安装类型为准。

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

Trigger Scenarios

集成DotCraft SDK 开发DotCraft插件或适配器 查询DotCraft API文档

Install

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

Non-standard path

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

Use without installing

npx skills use DotHarness/dotcraft@dotcraft-api

指定 Agent (Claude Code)

npx skills add DotHarness/dotcraft --skill dotcraft-api -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-api",
    "description": "Build applications with DotCraft's public SDKs, Harness, AppServer protocol, Channel adapters and modules, App Binding, dynamic tools, Desktop or .NET plugins, and MCP Apps. Use when connecting to, embedding, or publicly extending DotCraft; not for changing DotCraft itself."
}

DotCraft API

Build against the latest public DotCraft surface. Official documentation explains current behavior; installed package types confirm the exact names available to the project being edited.

Start from official documentation

Search https://www.dotcraft.net for the exact SDK, Harness, protocol, or extension topic and open the matching page before answering from memory. Use these section indexes when search is unavailable:

Task Documentation
Connect an application https://www.dotcraft.net/developing/sdks/
Connect a messaging platform https://www.dotcraft.net/developing/sdks/channels
Package a Channel for DotCraft hosts https://www.dotcraft.net/developing/integrations/typescript-module
Embed the runtime in .NET https://www.dotcraft.net/developing/harness/
Implement AppServer JSON-RPC https://www.dotcraft.net/developing/protocols/appserver-protocol
Build App Binding or a plugin https://www.dotcraft.net/developing/integrations/app-binding

The site describes the latest public release. Do not use a repository checkout, internal specification, test fixture, or default branch as an API reference.

Confirm code against the project

When writing code, inspect the project's package manifest and the installed package declarations:

  • TypeScript: @dotcraft/sdk and its exported .d.ts files; @dotcraft/plugin for Desktop plugins.
  • .NET client: DotCraft.Sdk and the bundled DotCraft.Protocol assembly.
  • In-process hosting and managed plugins: DotCraft.Harness and its bundled public assemblies.

Do not invent a method, DTO, event, option, or manifest field. If neither the official documentation nor the installed public types confirms it, state that it could not be verified.

Pick the integration shape

Shape Use for
Client SDK An Electron app, CLI, service, or bot that connects to an existing workspace.
Harness A .NET application that owns and runs the agent runtime in-process.
AppServer protocol A custom client or unsupported language that implements JSON-RPC directly.
Channel adapter or module A TypeScript integration that connects a messaging platform, optionally packaged for discovery and lifecycle management by DotCraft hosts.
Public extension App Binding, Runtime Dynamic Tools, Desktop plugins, managed .NET plugins, or MCP Apps.

Configuring an installed DotCraft workspace is a product-usage task rather than API development. Plugin scaffolding belongs to the plugin-creation workflow; this skill explains the public contracts used by the result.

Read only the relevant reference

Verify before finishing

  • Build or typecheck the external project.
  • Confirm every API name against its installed public types.
  • Check runtime capabilities before using an optional AppServer surface.
  • Link the official page used for behavioral guidance.

Version History

  • 2d7cea6 Current 2026-09-22 05:27

Same Skill Collection

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-guide/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

Metadata

Files
0
Version
2d7cea6
Hash
256e7b5d
Indexed
2026-09-22 05:27

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-22 06:56
浙ICP备14020137号-1