Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/maxesisn-cron
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/cron
What's inside
- Skill name
cron- Description
- 管理定时任务(cron jobs),支持添加、删除、列出、立即执行
- License
- MIT
- Instructions
- 119 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- tools.ts
SKILL.md (first lines)
# Cron Skill
管理 MaxClaw 的定时任务系统。
## 核心模型(2026-07-28 重构)
**Cron 没有独立常驻 agent。** 三种 payload:
| kind | 执行方式 |
|---|---|
| `channel-message` | 把任务文本注入目标 channel,由该 channel 的 agent **带完整上下文**执行 |
| `notification` | 确定性写通知(无 agent loop),适合静态提醒 |
| `script` | 本地脚本(`cron-tasks/` 或 `data/cron-tasks/`),无 agent loop、零 token |
旧 `message` / `skill` kind(创建孤立 cron session 的全权限零上下文 agent)已彻底移除。
历史教训(2026-06-11):孤立 cron agent 与活跃会话并行修改同一容器/文件互相踩踏。
channel-message 模式下消息进入目标 session 的**串行队列**(session-queue),与该
channel 的用户消息排同一队列,结构上杜绝并行冲突;且 agent 记得 channel 历史
(上次执行结果、Max 最近的指示)。
`native` kind(内建任务 registry)2026-07-28 消灭:**定时任务不引入代码部分**——
加任务不该等于改源码发布。原四个 native 任务全部移植为 `cron-tasks/` 脚本。
## script kind:确定性门 + 按需 agent 接力
巡检类任务的正确形态:**门是确定性代码**(df、阈值比较——每次触发零 token),
**只有触发阈值才叫醒 agent**。脚本 stdout 协议:
- `{"title","body","topic"?,"severity"?}` → 写 notification(告警永远由脚本确定性
写出,不依赖 LLM 成功);
- `{"wake":{"subagent":"任务文本","model"?,"timeoutMs"?}}` → 派一次性隔离 subagent
(默认 palette:light / 5min)同步跑完,出口由任务文本约定(通常自己写
notification)——机械诊断/体力活用这个,别借宿 channel 烧默认模型;
- `{"wake":{"channel":"web:chat-x","text":"..."}}` → 借宿已有 channel 接力
(需要上下文连续性或 Max 在场交互时);
- 非 JSON 行 → 日志;非零退出/超时/wake 被拒 → cron 统一失败告警。
何时用哪个:
- 任务**每次运行都需要 LLM 判断/多步工具操作**(周报生成、reflection)
→ `channel-message`,接受全上下文成本。
- 任务**正常路径是纯检查、异常才需要分析**(磁盘水位、库存轮询、连胜核验)
→ `script`(+ wake),别把主 channel agent 当 `df | awk` 用。
- 纯静态提醒 → `notification`。
零 token ≠ 静默:正常路径也发 info 心跳通知,否则"跑了正常"和"根本没跑"无法区分。
repo 内的范例脚本:`vps-stock-watch.ts`(纯轮询)、`disk-watchdog.ts`(门 +
wake-subagent enrich)、`health-audit.ts`(sqlite 直读门)、`duolingo-gate.ts` +
`duolingo-verify.ts`(CDP 门 + wake-subagent 练习 + 独立复检 job——"不信任
subagent 自述"的复检纪律用调度器编排保住)。
## channel-message 语义
- `channel` 省略时默认**当前调用方 channel**——给自己所在对话挂定时任务零成本。
- 当前仅支持 `web:*` target;目标 chat 不存在时注入会自动建 session(出现在 sidebar)。
- 触发时任务文本被框架包裹为 `<framework from="cron:<任务名>" trust="system">`,
payload text **不要自带 framework 标签**。
- agent 的回复直接出现在目标 channel 里——channel 即出口,没有"完成通知"。
需要结构化事件(告警、异常分支)时,由执行 agent 在任务文本指示下调 `notification_create`。
- 注入失败(channel 不可用)→ 自动写 `topic='cron'` severity=alert 的失败告警。
- 系统级任务(不属于任何活跃对话的巡检/扫描类)统一收口到专用 chat
`web:chat-cron-tasks`,避免散落污染日常对话。
## 工具列表
- **cron_list** — 列出所有定时任务
- **cron_add** — 添加定时任务
- **cron_update** — 按 id 更新已有任务的部分字段(name/schedule/payload/enabled),保留原 id 和 createdAt/lastRunAt。修改已有任务用这个,不要 cron_remove + cron_add——那样会换 id、丢运行历史,且非原子(remove 成功后 add 失败就任务没了)
- **cron_remove** — 删除定时任务(按 id)
- **cron_run_now** — 立即触发某个任务(按 id)
## Schedule 格式
| kind | 字段 | 示例 |
|---------|-------------|-------------------------------------------|
| `cron` | `expr`, `tz` | `{ kind: "cron", expr: "0 9 * * *", tz: "Asia/Shanghai" }` |
| `at` | `at` | `{ kind: "at", at: "2025-07-10T21:00:00+08:00" }` |
| `every` | `everyMs` | `{ kind: "every", everyMs: 3600000 }` (1小时)|
## Payload 示例
```json
{
"kind": "channel-message",
"channel": "web:chat-cron-tasks",
"text": "执行每周 clawt-engine-v2 审计:读 anchor 文档 + 查 PnL/drawdown + 漂移检查,异常时 notification_create(topic='clawt')。"
}
```
```json
{
"kind": "notification",
"title": "本周菜谱提醒",
"body": "早上好~本周菜谱发我一下?我好帮你做饮食分析和推荐 🍽",
"topic": "meal-menu"
}
```
```json
{
"kind": "script",
"path": "data/cron-tasks/my-watch.ts"
}
```
`notification` 可选字段:`topic`(默认 cron)、`severity`(默认 info)、`pushChannels`
(额外推送目标,自动 union `telegram:private` 全量通知出口)。
## 注意
- `at` 类型是一次性任务,触发后自动删除。
- `cron` 表达式使用标准 5 字段格式(分 时 日 月 周)。
- 时区默认 UTC,中国时间请指定 `tz: "Asia/Shanghai"`。
- 写 channel-message 任务文本时面向"将来在 channel 里执行的 agent":写清步骤、
数据源、异常分支;该 agent 看得到 channel 历史,可以引用"本 channel 之前的讨论"。
- 任务文本里若需要静默语义(正常时不打扰),直接在 text 里写"正常时简短回复一句即可,
不要创建 notification"——没有 silent 字段了。From maxesisn/maxclaw-oss, MIT.
More from maxesisn/maxclaw-oss
- 0.526score
knowledge-base
maxesisn
通用知识库构建 & 查询工具。给定一个包含 PDF/Sphinx-HTML 的原始文档文件夹,批量转成可 grep 的 Markdown、抽符号倒排、生成 LLM 摘要 sidecar 和 manifest 聚合索引。Agent 进入陌生领域时先 `ls ~/.maxclaw/kb/` 看有无相关知识库,再按"L3…
SkillBFreshness: BClaude Code +9 - 0.521score
code-intelligence
maxesisn
代码仓库智能问答工具(repo_symbol_answer v1)。Tree-sitter AST 召回 function/class/method/interface/variable 定义 + ripgrep 词法搜索 + reranker 精排 + palette:mid LLM 综合,输出含…
SkillBFreshness: BClaude Code +9 - 0.521score
pinned-notes
maxesisn
显式标记当前对话中需要永久保留的关键事实(必要开支、风险偏好、核心约束等),让它在 session compact/rollover 后仍存活。Agent 主动判断"哪些信息长期重要"调用,跨 session 通过 6 字符短 pin_id 引用。单 session 上限 25 条。
SkillBFreshness: BClaude Code +9 - 0.521score
web-search
maxesisn
搜索互联网获取实时信息,通过自建 search-proxy 聚合 Tavily/Brave/Jina 三家付费 provider(带配额管理 + 失败 fallback 到 SearXNG)。适用于:查询新闻、实时价格、技术文档、不在训练数据中的信息。
SkillBFreshness: BClaude Code +9 - 0.521score
seek-advice
maxesisn
跨家 LLM 顾问 panel——给一个最小化 scenario,并行 dispatch 给 3-5 个不同 vendor 的模型,每个模型同时跑联网+离线两份,对抗单家族 prior 高度相关导致的 anchoring 偏差。用于复杂诊断、重要技术决策、自己推理 ≥2 小时未收敛兜底。
SkillBFreshness: BClaude Code +9 - 0.520score
reflection
maxesisn
自主反思与行动——静默处理能处理的,把该 Max 决策的记上面板
SkillBFreshness: BClaude Code +9 - 0.519score
channel-notes
maxesisn
Channel-scoped working notes — a short Markdown document per channel for decisions, deferred items, open questions, and next steps.
SkillBFreshness: BClaude Code +9 - 0.518score
workdir
maxesisn
声明当前 channel 正在使用的工作目录(可多个),显示在右侧 Workspace 卡并在压缩后可查回。多文件任务时用 set_workdirs 钉下工作目录,避免文件散落 /tmp 或每次重说。仅记录+展示,不改进程 cwd。
SkillBFreshness: BClaude Code +9 - 0.518score
async-runtime
maxesisn
需要未来唤醒、后台等待、跨 channel 通知或长期订阅时的调度选择;覆盖 cron、后台 subagent、notification、channel_subscribe、wake_channel。
SkillBFreshness: BClaude Code +9 - 0.518score
wake-channel
maxesisn
跨 channel agent 通信原语——通过 wake_channel "按门铃"通知另一个 channel 的 agent 有新状态变化
SkillBFreshness: BClaude Code +9 - 0.517score
notifications
maxesisn
持久化事件通知层 + topic-based pub-sub。所有 cron / sub-agent / mail / 价格异动等事件写入 SQLite 并按 channel 订阅 fan-out。channel 通过 channel_subscribe 声明关心哪些 topic;同时所有事件无条件 union…
SkillBFreshness: BClaude Code +9 - 0.515score
browser
maxesisn
浏览器控制能力,通过 CDP 连接系统 Brave,支持导航、截图、快照、点击、输入等操作
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 9, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/maxesisn/maxclaw-oss
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from maxesisn
- 0.526score
knowledge-base
maxesisn
通用知识库构建 & 查询工具。给定一个包含 PDF/Sphinx-HTML 的原始文档文件夹,批量转成可 grep 的 Markdown、抽符号倒排、生成 LLM 摘要 sidecar 和 manifest 聚合索引。Agent 进入陌生领域时先 `ls ~/.maxclaw/kb/` 看有无相关知识库,再按"L3…
SkillBFreshness: BClaude Code +9 - 0.521score
seek-advice
maxesisn
跨家 LLM 顾问 panel——给一个最小化 scenario,并行 dispatch 给 3-5 个不同 vendor 的模型,每个模型同时跑联网+离线两份,对抗单家族 prior 高度相关导致的 anchoring 偏差。用于复杂诊断、重要技术决策、自己推理 ≥2 小时未收敛兜底。
SkillBFreshness: BClaude Code +9 - 0.521score
pinned-notes
maxesisn
显式标记当前对话中需要永久保留的关键事实(必要开支、风险偏好、核心约束等),让它在 session compact/rollover 后仍存活。Agent 主动判断"哪些信息长期重要"调用,跨 session 通过 6 字符短 pin_id 引用。单 session 上限 25 条。
SkillBFreshness: BClaude Code +9 - 0.521score
web-search
maxesisn
搜索互联网获取实时信息,通过自建 search-proxy 聚合 Tavily/Brave/Jina 三家付费 provider(带配额管理 + 失败 fallback 到 SearXNG)。适用于:查询新闻、实时价格、技术文档、不在训练数据中的信息。
SkillBFreshness: BClaude Code +9 - 0.521score
code-intelligence
maxesisn
代码仓库智能问答工具(repo_symbol_answer v1)。Tree-sitter AST 召回 function/class/method/interface/variable 定义 + ripgrep 词法搜索 + reranker 精排 + palette:mid LLM 综合,输出含…
SkillBFreshness: BClaude Code +9 - 0.520score
reflection
maxesisn
自主反思与行动——静默处理能处理的,把该 Max 决策的记上面板
SkillBFreshness: BClaude Code +9
Cite this page
cron skill. Agent Mart. https://agentmart.dev/skills/maxesisn-cron (last updated 2026-10-24)