[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77PACJXNJQ7CPVYPBKK04T7":3,"skill-same:01M77PACJXNJQ7CPVYPBKK04T7":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":35,"ownerHtmlUrl":36,"ownerBlogUrl":6,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M77PACJXNJQ7CPVYPBKK04T7","notion-accounting-analysis",null,"Notion记账财务数据分析技能，自动读取支出收入流水表，全量翻页获取数据，100%解析relation类别字段，按年月类别标签多维分析并生成Markdown财务报告。","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fn\u002Fnotion-accounting-analysis\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: notion-accounting-analysis\ndescription: Notion记账财务数据分析技能，自动读取支出收入流水表，全量翻页获取数据，100%解析relation类别字段，按年月类别标签多维分析并生成Markdown财务报告。\ntags:\n  - notion\n  - finance\n  - accounting\n  - analysis\nversion: 1.0.4\n---\n\n# Notion 记账数据分析 Skill\n\n> 适用场景：用户说\"分析我的 Notion 记账数据\"、\"生成财务报告\"、\"查看收支趋势\"时触发。\n> 前置条件：用户提供 Notion Integration Token（secret_xxx 格式）和 data_source_id。\n\n---\n\n## 核心能力\n\n1. **全量数据获取** — 自动翻页（处理 Notion API `has_more`），不漏任何记录\n2. **relation 字段 100% 解析** — 先收集所有 relation ID，再批量并发查询对应名称，零遗漏\n3. **多维分析** — 按年\u002F月\u002F类别\u002F标签\u002F大额 TOP 多角度剖析\n4. **智能报告生成** — 自动输出 Markdown 报告到 `\u002Fworkspace\u002F`，带优化建议\n5. **异常主动提示** — 若 relation ID 无法解析，会列出 ID 并提示如何修复\n\n---\n\n## 已知 relation ID → 类别名称（已验证）\n\n| relation ID（前8位） | 对应类别 |\n|---|---|\n| `2e1bd123...817c` | 房租 |\n| `2e1bd123...80e8` | 旅游娱乐 |\n| `2e1bd123...8081` | 房贷 |\n| `2e1bd123...815a` | 餐饮 |\n| `2e1bd123...8004` | 总记账 |\n| `2e1bd123...806f` | 医疗 |\n| `2e1bd123...8059` | 购物 |\n| `2e1bd123...80d4` | 所得税 |\n| `2e1bd123...817f` | 交通 |\n| `2e1bd123...81dd` | 人情往来 |\n| `2e1bd123...8084` | 专项 |\n| `2e1bd123...810d` | 运动 |\n| `2e1bd123...8054` | 公司额外 |\n| `2e1bd123...81de` | 日用 |\n\n> 💡 若发现新的 relation ID 查不到名称：在 Notion 中打开该记录页面 → 右上角 `...` → `Add connections` → 添加 Integration 即可。\n\n---\n\n## 字段识别规范（重要踩坑记录）\n\n支出流水表通常有两个分类字段，优先级：\n\n| 字段 | 类型 | 处理方式 |\n|------|------|---------|\n| `支出类别` | **relation** | 通过 API 查询名称，**必须** |\n| `标签` | select | 直接存储名称，**可用** |\n\n**错误**：只用 select，忽略 relation → 类别大量丢失。\n**正确**：relation 用 ID 查表，select 直接用，两者结合覆盖 100% 类别。\n\n---\n\n## 执行流程\n\n### 第 1 步：确认数据源\n\n用户未提供 data_source_id 时，用搜索接口查找：\n\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.notion.com\u002Fv1\u002Fsearch\" \\\n  -H \"Authorization: Bearer $NOTION_API_TOKEN\" \\\n  -H \"Notion-Version: 2025-09-03\" \\\n  -d '{\"query\": \"支出\", \"page_size\": 20}' \\\n  | jq '.results[] | {id, title: .properties.Name.title[0].plain_text}'\n```\n\n### 第 2 步：全量获取数据（必须翻页）\n\n```javascript\n\u002F\u002F 错误：只查第一页 → 数据不完整\nconst page = await fetch('\u002Fv1\u002Fdata_sources\u002F{id}\u002Fquery', {page_size: 100});\n\n\u002F\u002F 正确：循环直到 has_more = false\nlet cursor = null;\ndo {\n  const body = cursor ? {page_size:100, start_cursor:cursor} : {page_size:100};\n  const page = await fetch('\u002Fv1\u002Fdata_sources\u002F{id}\u002Fquery', body);\n  results.push(...page.results);\n  cursor = page.has_more ? page.next_cursor : null;\n} while (cursor);\n```\n\n### 第 3 步：relation ID 批量解析（必须）\n\n```javascript\n\u002F\u002F 第一步：收集所有 relation IDs（不重复）\nconst allIds = [...new Set(results.flatMap(r =>\n  (r.properties['支出类别']?.relation || []).map(rel => rel.id)\n))];\n\n\u002F\u002F 第二步：并发查询所有 ID（每个只查一次）\nconst relMap = Object.fromEntries(\n  await Promise.all(allIds.map(async id => [id, await resolvePageName(id)]))\n);\n```\n\n### 第 4 步：分析并输出报告\n\n```bash\n# 可直接使用附带的分析脚本\nnode analyze.mjs \u003Ctoken> \u003Cexpense_data_source_id> [income_data_source_id] [year]\n```\n\n---\n\n## 常见错误处理\n\n| 现象 | 原因 | 解决方案 |\n|------|------|---------|\n| 类别全是\"未分类\" | 只用了 select，relation 全部丢失 | 改用 relation ID 查表 |\n| 总支出比预期少 | 只查了第一页（100条），还有后续页 | 循环翻页直到 has_more=false |\n| relation ID 查不到名称 | 记录不在 integration 可见范围内 | Notion 页面 → Add connections |\n| 金额对不上 | select 和 relation 重复计算了同一笔 | select 和 relation 只取一个字段 |\n\n---\n\n## 分析报告模板\n\n```markdown\n# {年份} 年度财务分析报告\n\n> 数据来源：Notion 支出流水表 & 收入流水表\n> 分析范围：{年}年（{n}笔支出，{n}笔收入）\n\n## 一、收支总览\n## 二、月度趋势\n## 三、类别分析（relation 100% 解析）\n## 四、标签分析\n## 五、TOP N 大额支出\n## 六、优化建议\n```\n","# Notion 记账数据分析 Skill\n\n> 适用场景：用户说\"分析我的 Notion 记账数据\"、\"生成财务报告\"、\"查看收支趋势\"时触发。\n> 前置条件：用户提供 Notion Integration Token（secret_xxx 格式）和 data_source_id。\n\n---\n\n## 核心能力\n\n1. **全量数据获取** — 自动翻页（处理 Notion API `has_more`），不漏任何记录\n2. **relation 字段 100% 解析** — 先收集所有 relation ID，再批量并发查询对应名称，零遗漏\n3. **多维分析** — 按年\u002F月\u002F类别\u002F标签\u002F大额 TOP 多角度剖析\n4. **智能报告生成** — 自动输出 Markdown 报告到 `\u002Fworkspace\u002F`，带优化建议\n5. **异常主动提示** — 若 relation ID 无法解析，会列出 ID 并提示如何修复\n\n---\n\n## 已知 relation ID → 类别名称（已验证）\n\n| relation ID（前8位） | 对应类别 |\n|---|---|\n| `2e1bd123...817c` | 房租 |\n| `2e1bd123...80e8` | 旅游娱乐 |\n| `2e1bd123...8081` | 房贷 |\n| `2e1bd123...815a` | 餐饮 |\n| `2e1bd123...8004` | 总记账 |\n| `2e1bd123...806f` | 医疗 |\n| `2e1bd123...8059` | 购物 |\n| `2e1bd123...80d4` | 所得税 |\n| `2e1bd123...817f` | 交通 |\n| `2e1bd123...81dd` | 人情往来 |\n| `2e1bd123...8084` | 专项 |\n| `2e1bd123...810d` | 运动 |\n| `2e1bd123...8054` | 公司额外 |\n| `2e1bd123...81de` | 日用 |\n\n> 💡 若发现新的 relation ID 查不到名称：在 Notion 中打开该记录页面 → 右上角 `...` → `Add connections` → 添加 Integration 即可。\n\n---\n\n## 字段识别规范（重要踩坑记录）\n\n支出流水表通常有两个分类字段，优先级：\n\n| 字段 | 类型 | 处理方式 |\n|------|------|---------|\n| `支出类别` | **relation** | 通过 API 查询名称，**必须** |\n| `标签` | select | 直接存储名称，**可用** |\n\n**错误**：只用 select，忽略 relation → 类别大量丢失。\n**正确**：relation 用 ID 查表，select 直接用，两者结合覆盖 100% 类别。\n\n---\n\n## 执行流程\n\n### 第 1 步：确认数据源\n\n用户未提供 data_source_id 时，用搜索接口查找：\n\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.notion.com\u002Fv1\u002Fsearch\" \\\n  -H \"Authorization: Bearer $NOTION_API_TOKEN\" \\\n  -H \"Notion-Version: 2025-09-03\" \\\n  -d '{\"query\": \"支出\", \"page_size\": 20}' \\\n  | jq '.results[] | {id, title: .properties.Name.title[0].plain_text}'\n```\n\n### 第 2 步：全量获取数据（必须翻页）\n\n```javascript\n\u002F\u002F 错误：只查第一页 → 数据不完整\nconst page = await fetch('\u002Fv1\u002Fdata_sources\u002F{id}\u002Fquery', {page_size: 100});\n\n\u002F\u002F 正确：循环直到 has_more = false\nlet cursor = null;\ndo {\n  const body = cursor ? {page_size:100, start_cursor:cursor} : {page_size:100};\n  const page = await fetch('\u002Fv1\u002Fdata_sources\u002F{id}\u002Fquery', body);\n  results.push(...page.results);\n  cursor = page.has_more ? page.next_cursor : null;\n} while (cursor);\n```\n\n### 第 3 步：relation ID 批量解析（必须）\n\n```javascript\n\u002F\u002F 第一步：收集所有 relation IDs（不重复）\nconst allIds = [...new Set(results.flatMap(r =>\n  (r.properties['支出类别']?.relation || []).map(rel => rel.id)\n))];\n\n\u002F\u002F 第二步：并发查询所有 ID（每个只查一次）\nconst relMap = Object.fromEntries(\n  await Promise.all(allIds.map(async id => [id, await resolvePageName(id)]))\n);\n```\n\n### 第 4 步：分析并输出报告\n\n```bash\n# 可直接使用附带的分析脚本\nnode analyze.mjs \u003Ctoken> \u003Cexpense_data_source_id> [income_data_source_id] [year]\n```\n\n---\n\n## 常见错误处理\n\n| 现象 | 原因 | 解决方案 |\n|------|------|---------|\n| 类别全是\"未分类\" | 只用了 select，relation 全部丢失 | 改用 relation ID 查表 |\n| 总支出比预期少 | 只查了第一页（100条），还有后续页 | 循环翻页直到 has_more=false |\n| relation ID 查不到名称 | 记录不在 integration 可见范围内 | Notion 页面 → Add connections |\n| 金额对不上 | select 和 relation 重复计算了同一笔 | select 和 relation 只取一个字段 |\n\n---\n\n## 分析报告模板\n\n```markdown\n# {年份} 年度财务分析报告\n\n> 数据来源：Notion 支出流水表 & 收入流水表\n> 分析范围：{年}年（{n}笔支出，{n}笔收入）\n\n## 一、收支总览\n## 二、月度趋势\n## 三、类别分析（relation 100% 解析）\n## 四、标签分析\n## 五、TOP N 大额支出\n## 六、优化建议\n```\n",{"name":5,"tags":24,"version":29,"description":7},[25,26,27,28],"notion","finance","accounting","analysis","1.0.4","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fn\u002Fnotion-accounting-analysis",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill notion-accounting-analysis",{"tool":45,"command":46},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill notion-accounting-analysis",{"tool":48,"command":49},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill notion-accounting-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fn\u002Fnotion-accounting-analysis\u002FSKILL.md",true,[],[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]