Agent Skills › DotHarness/dotcraft › automations

automations

GitHub

用于创建、管理和运行自动化任务,支持定时触发和周期性执行。涵盖提醒、监控及会话跟进等场景,允许用户定义执行逻辑与通知策略。

src/DotCraft.Core/Skills/BuiltIn/automations/SKILL.md DotHarness/dotcraft

触发场景

需要设置定时提醒或一次性任务时 需要配置周期性监控或重复性工作流时 需要暂停、恢复或删除现有自动化流程时

安装

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

非标准路径

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

不安装直接使用

npx skills use DotHarness/dotcraft@automations

指定 Agent (Claude Code)

npx skills add DotHarness/dotcraft --skill automations -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": "automations",
    "description": "Create, inspect, update, pause, resume, run, or delete DotCraft automations using the Automation tool. Use for reminders, recurring work, scheduled monitoring, and conversation follow-ups.",
    "allowed-tools": "Automation"
}

Automations

Use Automation for work that should run later or repeatedly. Keep the user's requested task and timing in the editable definition; do not create a second workflow inside the prompt.

Create

  1. Use thread for follow-ups that depend on this conversation and independent for standalone work that starts a fresh conversation each run.
  2. Resolve the schedule and, for calendar schedules, its time zone. Ask only when timing is genuinely ambiguous.
  3. Call Automation with action: "create" and one complete definition.
Kind Required schedule fields
at kind, absolute ISO 8601 string at
every kind, positive everyMs
daily, weekdays kind, hour, minute, timeZone
weekly kind, hour, minute, timeZone, ISO weekday days

Example:

{"action":"create","automation":{"name":"Build reminder","prompt":"Check the build and summarize failures.","status":"active","executionMode":"independent","schedule":{"kind":"at","at":"2030-01-15T09:00:00Z"},"notificationPolicy":"all"}}

schedule.at is a string, never a CLR-style object. notificationPolicy belongs inside automation. Keep unrelated schedule fields out. Omit workspaceMode and agentProfileId when unset; approvalPolicy is workspaceScope or fullAuto. Thread mode binds the current conversation when targetThreadId is omitted. Independent Git work defaults to a new worktree per run. Notifications default to important changes for thread mode and every result for independent mode.

In a conversation connected to a chat, each run speaks to that chat only through SendChannelMessage, and DotCraft posts nothing after a successful run. Write the prompt to say what to send and when to stay silent. notificationPolicy does not apply there.

Manage

Use list or read before changing a definition when its version is unknown. Updates require expectedVersion. Use pause, resume, or delete for lifecycle changes. Completed is assigned by DotCraft after a one-shot run and is read-only. run queues an execution; report it as queued.

Use supported schedule fields instead of arbitrary RRULE expressions. Do not retry task execution because result delivery failed.

版本历史

  • 829157d 当前 2026-11-02 15:18

    新增渠道聊天自主发送能力,重构命令作用域,优化线程绑定与审批行为,明确附件本地化及会话来源识别机制。

  • 2d7cea6 2026-09-22 05:27

同 Skill 集合

.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/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/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
版本
829157d
Hash
995d5d03
收录时间
2026-09-22 05:27

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-04 14:48
浙ICP备14020137号-1