telecomshy280 downloadsTurn selected tasks from TaskNotes into AI-written reports using custom templates and any OpenAI-compatible model.
Turn a set of tasks into an AI-written report note. Pick tasks from TaskNotes, choose a template, and let any OpenAI- or Anthropic-compatible model write the report into a new note in your vault.
Weekly, monthly, and yearly are just ways to filter tasks. The plugin's job is to shape whatever set you pick into a report — the period is one input, not a label on the product.
#tag, with hierarchical matching (#work also matches work/…).@context, matched exactly.{{tasks}}, {{completedTasks}}, {{count}}, {{range}}, {{today}}, …), or no template at all.Build (or use the built artifacts):
npm install
npm run build
Copy main.js, manifest.json, and styles.css into <your vault>/.obsidian/plugins/tasknotes-aireporter/.
Enable TaskNotes AI Reporter in Settings → Community plugins.
Open Settings → Community plugins → TaskNotes AI Reporter:
/v1). For the API key, select an existing secret or create a new one; keys are kept in Obsidian's SecretStorage, not in the plugin's data.TaskNotes/Reports).Cancelled statuses — statuses marked as skipped (
isSkipped) in TaskNotes' status settings are classified as Cancelled and excluded from the report's unfinished subset. If your own cancelled-type statuses aren't recognized after upgrading, open TaskNotes' status settings and tick the skipped flag on them; unmarked statuses still count as To do.
This plugin talks only to the OpenAI-compatible or Anthropic-compatible endpoint(s) you configure (built-in presets such as DeepSeek, Qwen, Kimi, MiniMax, or Anthropic, or a custom base URL). It sends the selected task data and the generated prompt to that endpoint to produce the report, and fetches the model list from it. No data is sent anywhere else, and the plugin collects no telemetry.
API keys are stored in Obsidian's SecretStorage; the plugin's own data.json stores only the secret's name.
npm install # install dependencies
npm run dev # watch build
npm run build # production build (with type checking)
npm run deploy # build, then copy the artifacts into your local test vault
npm run lint # ESLint (fails on warnings)
npm run typecheck # tsc -noEmit
npm test # run unit tests
npm run deploy copies main.js / manifest.json / styles.css into the vault's plugin folder (never data.json). It finds your vault via $OBSIDIAN_VAULT, or the open vault in Obsidian's obsidian.json.
Pure logic (date ranges, task filtering, filenames, prompts) lives in src/core/ and is covered by unit tests. Reading tasks sits behind a TaskRepository seam (list / details / statuses), with the TaskNotes adapter under src/tasks/.
把选中的任务变成一份 AI 报告笔记:任务来自 TaskNotes,选好任务与模板,用任意 OpenAI 兼容或 Anthropic 兼容模型生成报告并写入 vault 新笔记。
周报 / 月报 / 年报只是筛选任务的方式之一——插件的核心动作是把选中的任务集合塑造成一份报告,周期只是一个输入,不是产物的标签。
#标签,支持层级前缀匹配(#work 也命中 work/…);@上下文,精确匹配;{{tasks}}、{{completedTasks}}、{{count}}、{{range}}、{{today}} 等),也可不选模板。已取消:在 TaskNotes 状态设置里勾选了跳过(isSkipped)标志的状态归为「已取消」,不再计入报告的未完成子集。升级后若自建的取消类状态没被认出,去 TaskNotes 的状态设置给它勾上「跳过」标志;未勾选的仍按「待办」处理。
网络用途:插件只会访问你自己配置的 OpenAI 兼容或 Anthropic 兼容端点(内置 DeepSeek、通义千问、Kimi、MiniMax、Anthropic 预设,或自定义 Base URL),把所选任务数据与提示词发送过去以生成报告,并从该端点拉取模型列表;不会发送到其它地方,也不收集任何遥测。
安装:在「设置 → 第三方插件 → 浏览」中搜索 TaskNotes AI Reporter 安装并启用,并启用 TaskNotes 插件。