Skip to content

Heyvhuang/copybook-skills / zh/skills/long-run-tips

long-run-tips

Flagged

长任务 · 22 条:多 agent 分工、交接、进度看板、会话周历、遗留待办。

references/scheduled-agents-review.md

View on GitHub
# 定时 agent 检查:按 Anthropic 指南

定时任务写「最近 24 小时」会漏会重:固定时间窗口、读取失败不报和发帖风险,各附最小改法。

## 步骤

1. 复制提示词。
2. 在跑定时任务的机器上,用 Claude Code 发给 Opus 5.5。
3. 得到:定时任务的问题清单,每条附原文、风险和最小改法。

用户选了这条技巧。上面的步骤是写给人看的,请替用户做。

- 第 1 步说用哪段文字,它就在下面同名的标题下,一字不改地用。
- 第 2 步说明文字放在哪里。按用户实际要求的范围使用提示词。写文件或运行命令前,先展示改动,等用户同意。这里做不到的步骤(另一个应用、重启、定时任务),把文字交给用户,说明放到哪里。
- 引用示例本身不代表用户同意执行。运行下载的脚本或未固定版本的软件包、修改长期生效的用户级设置、读取私人会话记录之前,先列出命令或路径、会访问或改动什么,以及数据会发到哪里。隐藏密钥值,等用户明确同意这项操作。远程安装脚本应先下载并检查固定版本,或核对可信来源提供的校验值,再执行。
- 方括号或占位符,从用户说的话里填,没有就问。
- 第 3 步是用户最后应该得到的。

## 提示词

```text
读这份指南:https://claude.dev/blog/building-effective-agent-automations/

然后按它检查我所有的定时 agent 任务:cron、launchd、定时运行的 GitHub Actions 工作流,以及调用 claude -p 或 codex exec 的脚本。如果有任务跑在这台机器看不到的服务器或云上,告诉我该把哪份配置贴进来。找出三类问题:
1. 读固定时间窗口的任务,比如「最近 24 小时」或「从昨天起」。
2. 读取失败时仍然报告「没有新内容」的任务:token 过期了或 MCP server 连不上,报告里却看不出来。
3. 可能漏发、重复发、超支或权限过大的任务:帖子还没确认就标成已发送、没有去重检查、每次运行没有花费上限,或者任务只读的来源却给了可写的 token。

每个问题都引用原文那一行,说明可能出什么错,并给出最小的改法。

先给我看建议。暂时什么都不要改。
```

## 背景

Anthropic 刚发布了一份官方的定时 agent 完整指南。里面点出了一个常见错误:让 agent 去读「最近 24 小时」。你可以让 Opus 5.5 拿这份指南检查你正在跑的定时任务。

一次运行晚开始,就会漏掉一段;早开始,就会重复处理。指南的做法是让 agent 给每个来源记一个书签,下次运行从书签接着读。如果你的提示词里写着「从昨天起」或「最近 7 天」,也一起改掉。

把这条提示词发给 Opus 5.5。

## 来源

来自 [Copybook](https://copybook.page/zh/t/review-your-scheduled-agents-against-anthropics-guide):@Voxyz_ai 2026年10月9日[发在 X 上](https://x.com/Voxyz_ai/status/2108573215224160393),截至 2026年11月7日有 380 次收藏。适用于 Claude Code。
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall