跳到主内容
@wquguru
精选82VoxAI 产品与模型

用 Claude Code 与 Opus 搭建本地每周工作日历与周报

A week of Claude Code sessions is too much to remember. Every weekend, have Opus…

原文
发到 X
推荐理由

提供了具体的子智能体配置代码与 Prompt,结构清晰且具备可复现性,展示了如何将 AI Agent 能力落地为个人效率工具。

A week of Claude Code sessions is too much to remember. Every weekend, have Opus 5.5 vibe-code a quick 𝘄𝗲𝗲𝗸𝗹𝘆 𝗰𝗮𝗹𝗲𝗻𝗱𝗮𝗿 like this from your local session logs.

一周的 Claude Code 会话记录太多,根本记不住。每个周末,让 Opus 5.5 根据你的本地会话日志,像这样 vibe-code(随性编码)生成一个快速的 𝘄𝗲𝗲𝗸𝗹𝘆 𝗰𝗮𝗹𝗲𝗻𝗱𝗮𝗿(每周日历)。

Then give it 𝗮 𝘀𝘂𝗯𝗮𝗴𝗲𝗻𝘁 𝘁𝗵𝗮𝘁 𝗼𝗻𝗹𝘆 𝗯𝘂𝗶𝗹𝗱𝘀 𝘄𝗲𝗲𝗸𝗹𝘆 𝗰𝗮𝗹𝗲𝗻𝗱𝗮𝗿𝘀: → Name it week-calendar, set its effort to medium, and preload a design skill → The first time, it asks which colors you like and whether to color by project or by task, and saves that to memory. After that, every calendar follows it → Call it when you want to look back on the week or write a weekly report. It regenerates the calendar and writes up a 3-line weekly report for you → The calendar shows four things: when you worked each day, what each session did, 𝘄𝗵𝗶𝗰𝗵 𝘀𝗲𝘀𝘀𝗶𝗼𝗻𝘀 𝘀𝘁𝗼𝗽𝗽𝗲𝗱 𝘄𝗶𝘁𝗵𝗼𝘂𝘁 𝗮 𝘀𝗶𝗻𝗴𝗹𝗲 𝗰𝗼𝗺𝗺𝗶𝘁, and how many hours each project took this week

然后给它创建一个 𝗮 𝘀𝘂𝗯𝗮𝗴𝗲𝗻𝘁 𝘁𝗵𝗮𝘁 𝗼𝗻𝗹𝘆 𝗯𝘂𝗶𝗹𝗱𝘀 𝘄𝗲𝗲𝗸𝗹𝘆 𝗰𝗮𝗹𝗲𝗻𝗱𝗮𝗿𝘀(仅构建每周日历的子代理): → 将其命名为 week-calendar,将努力程度设置为 medium(中等),并预加载一个设计技能 → 第一次使用时,它会询问你喜欢的颜色,以及是按项目还是按任务着色,并将这些偏好保存到记忆中。此后,生成的每个日历都会遵循这一设定 → 当你想要回顾本周工作或撰写周报时调用它。它会重新生成日历,并为你写一段三行的周报摘要 → 日历展示四项内容:你每天的工作时间、每次会话完成的内容、𝘄𝗵𝗶𝗰𝗵 𝘀𝗲𝘀𝘀𝗶𝗼𝗻𝘀 𝘀𝘁𝗼𝗽𝗽𝗲𝗱 𝘄𝗶𝘁𝗵𝗼𝘂𝘁 𝗮 𝘀𝗶𝗻𝗴𝗹𝗲 𝗰𝗼𝗺𝗺𝗶𝘁(哪些会话未提交任何代码就停止了),以及本周每个项目花费的小时数

Send this prompt to Claude Code 👇

将此提示词发送给 Claude Code 👇

"Set up a subagent that only builds weekly calendars:

"设置一个仅构建每周日历的子代理:

1. Create week-calendar in ~/.claude/agents: model: opus, effort: medium, memory: user. Preload the design skills I have installed (for example impeccable). Give it Bash so it can run git log and the script that builds the calendar. It only writes files to ~/.calendar/ and its own memory. 2. The first time, it asks me what style I like: dark or light, one accent color, color by project or by task type, and whether the week starts on Monday or Sunday. It saves my answers to memory and follows them every time. 3. The calendar is one HTML file. The script writes the data straight into it, so it opens with a double-click. Use this week's session logs: Claude Code's are in ~/.claude/projects/ (skip the subagents folders), and if I use Codex, add ~/.codex/sessions/. Before writing the script, open one file to check the fields. Convert times to my local time zone, and use the cwd in each record to tell projects apart. One block per session; start a new block after any gap longer than 30 minutes. Clicking a block shows the project, start and end time, the model used, the session title (if there isn't one, sum up my first typed message in 3 to 5 words), my first typed message, and my commits and changed files in that repo during that time (skip folders that aren't git repos). Sessions that stopped without a single commit get a red outline and also go in a separate list. At the top, total this week's hours per project, counting parallel sessions only once. Keep everything local. 4. Add a rule to ~/.claude/CLAUDE.md: when I say "what did I do this week" or "write my weekly report", have week-calendar regenerate the calendar first, then write a 3-line weekly report from it: what I mainly got done this week, which project took the most time, and which no-commit sessions to pick up first next week.

1. 在 ~/.claude/agents 中创建 week-calendar:model: opus, effort: medium, memory: user。预加载我已安装的提示词技能(例如 impeccable)。赋予它 Bash 权限,以便运行 git log 和构建日历的脚本。它仅将文件写入 ~/.calendar/ 及其自身的记忆区。 2. 首次使用时,它会询问我喜欢的样式:深色或浅色、单一强调色、按项目着色还是按任务类型着色,以及一周从周一还是周日开始。它将我的回答保存到记忆中,并在每次使用时遵循这些设置。 3. 日历是一个 HTML 文件。脚本直接将数据写入其中,因此双击即可打开。使用本周的会话日志:Claude Code 的日志位于 ~/.claude/projects/(跳过子代理文件夹),如果我使用 Codex,则添加 ~/.codex/sessions/。在编写脚本之前,先打开一个文件以检查字段。将时间转换为我的本地时区,并使用每条记录中的 cwd 来区分项目。每个会话为一个区块;任何超过 30 分钟的间隔后开启新区块。点击区块显示项目、开始和结束时间、使用的模型、会话标题(如果没有标题,用 3 到 5 个字概括我的第一条输入消息)、我的第一条输入消息,以及在该时间段内该仓库中的提交记录和更改的文件(跳过非 git 仓库的文件夹)。没有产生任何提交的会话用红色边框标记,并列入单独的列表。顶部汇总本周每个项目的总工时,并行会话只计一次。所有操作保持本地化。 4. 在 ~/.claude/CLAUDE.md 中添加一条规则:当我输入“这周我做了什么”或“写我的周报”时,让 week-calendar 先生成日历,然后基于此撰写一份 3 行的周报:本周主要完成了什么、哪个项目耗时最多、以及下周优先处理哪些无提交的会话。

Show me the contents of the files you'll create or change, then explain the whole flow in words a 10-year-old could follow. Don't write anything until I confirm."

展示你要创建或修改的文件内容,然后用一个 10 岁孩子能听懂的语言解释整个流程。在我确认之前不要写任何东西。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件