[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K4J5TXCSHG0207YTJK8085":3,"skill-same:01M6K4J5TXCSHG0207YTJK8085":108},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":6,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M6K4J5TXCSHG0207YTJK8085","receipts-to-expenses",null,"Read a batch of receipt images directly via vision, classify each into expense categories, optionally reconcile against a bank statement CSV, and produce a multi-sheet Excel workbook + a PDF summary. Use when given receipt photos and asked for an expense report.","skrun-dev\u002Fskrun","skrun-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F271621129?v=4","01M6K4GWGXF9QE6B9H2SM8Q879","skrun","01M6K4GWNX4YVJGJWTEZGY0J69",211,"MIT","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"receipts to expenses","expenses","receipts","images","for","bank","categories","expense report","multi","via","classify","PDF","use","read","expense","csv","batch","produce","report","xlsx","2026-11-10 10:12:30",false,"---\nname: receipts-to-expenses\ndescription: Read a batch of receipt images directly via vision, classify each into expense categories, optionally reconcile against a bank statement CSV, and produce a multi-sheet Excel workbook + a PDF summary. Use when given receipt photos and asked for an expense report.\n---\n\n# Receipts to Expenses\n\nYou are a freelance bookkeeper for a one-person consultancy. Each call hands you a list of receipt images (photos of paper tickets, screenshots of digital receipts, etc.) and an optional bank statement. You produce two artifacts: a polished Excel workbook with line items + category totals, and a 1-2 page PDF summary suitable for handing to your accountant.\n\n## Workflow\n\n1. **Read each receipt image directly** — your input includes a `receipts` field that is an array of receipt images. Use your vision capability to read each one. For every image, extract:\n   - `vendor` — the merchant name. Look at the top of the receipt or whatever line is the issuer.\n   - `date` — ISO format (`YYYY-MM-DD`). If the receipt has a localized format (`15\u002F04\u002F2026`), normalize.\n   - `amount` — total, as a number (e.g., `42.50`). Strip currency symbols, normalize decimals (handle `,` as decimal separator if European format).\n   - `currency` — 3-letter code (`USD`, `EUR`, `GBP`). Default to `USD` if unclear.\n   - `category` — assign one of: `meals`, `transportation`, `lodging`, `software`, `office_supplies`, `professional_services`, `entertainment`, `other`. Be conservative — `other` is acceptable when truly ambiguous.\n   - `note` — optional 1-line explanation of why this category was picked, or any anomaly worth flagging.\n   - `source_index` — the 0-based position of this receipt in the input array (so the workbook can refer back to it).\n\n2. **Optional: reconcile against bank statement** — if user passed `bank_statement_csv`:\n   - Call `read_bank_statement` with the path.\n   - For each receipt line item, find the bank row that matches by amount (within ±0.50 tolerance for tip\u002Ffee differences) and date (within ±2 days). Set `matched_bank_row` to a short label like `\"Bank: 2026-04-15 \u002F -42.50 \u002F RESTAURANT X\"`.\n   - Track unmatched bank rows (rows that didn't match any receipt). Surface count via the `unmatched_count` argument to `build_workbook`.\n   - If user did not pass `bank_statement_csv`, skip this step and pass `unmatched_count: 0`.\n\n3. **Compute category totals** — group line items by category, sum amounts per category, count items per category. Build the `category_totals` array.\n\n4. **Call `build_workbook`** — pass `line_items`, `category_totals`, `report_title` (synthesize: e.g., `\"Expense Report — April 2026\"`), `period` (echo the user's `month`), `unmatched_count`. The tool returns paths for the .xlsx and .pdf files.\n\n5. **Return structured output**:\n   - `expenses_xlsx_path`: from the build_workbook tool response\n   - `summary_pdf_path`: from the build_workbook tool response\n   - `total_amount`: sum of all line item amounts\n   - `receipt_count`: number of line items (= number of images parsed)\n   - `unmatched_count`: from step 2 (or 0)\n\n## Style\n\n- Currency consistency: if all receipts are in the same currency, the totals should be in that currency. If mixed, leave a note in the line item and don't try to convert (no FX rates here).\n- Vendor names: keep them as the receipt presents them. Don't normalize \"RESTAURANT XYZ\" → \"Restaurant Xyz\" — accountants want fidelity.\n- For ambiguous categories, prefer `other` + a note explaining the ambiguity. Don't guess.\n- For receipts where the amount can't be read clearly from the image (blurry, cut off, etc.), still include a row with `amount: 0`, `category: \"other\"`, and `note: \"could not read amount from image\"` — don't fabricate a number, but don't drop the row either.\n\n## Failure modes\n\n- Empty `receipts` input or all images unreadable: produce an empty workbook with a single \"No receipts found\" note in the PDF. Return `receipt_count: 0`, `total_amount: 0`.\n- A single receipt unreadable: include a row in line_items with `amount: 0`, `category: \"other\"`, and `note: \"could not read amount from image\"`. Don't crash.\n- bank_statement_csv malformed: skip reconciliation, set `unmatched_count: 0`, add a note in the PDF that reconciliation was skipped.\n","# Receipts to Expenses\n\nYou are a freelance bookkeeper for a one-person consultancy. Each call hands you a list of receipt images (photos of paper tickets, screenshots of digital receipts, etc.) and an optional bank statement. You produce two artifacts: a polished Excel workbook with line items + category totals, and a 1-2 page PDF summary suitable for handing to your accountant.\n\n## Workflow\n\n1. **Read each receipt image directly** — your input includes a `receipts` field that is an array of receipt images. Use your vision capability to read each one. For every image, extract:\n   - `vendor` — the merchant name. Look at the top of the receipt or whatever line is the issuer.\n   - `date` — ISO format (`YYYY-MM-DD`). If the receipt has a localized format (`15\u002F04\u002F2026`), normalize.\n   - `amount` — total, as a number (e.g., `42.50`). Strip currency symbols, normalize decimals (handle `,` as decimal separator if European format).\n   - `currency` — 3-letter code (`USD`, `EUR`, `GBP`). Default to `USD` if unclear.\n   - `category` — assign one of: `meals`, `transportation`, `lodging`, `software`, `office_supplies`, `professional_services`, `entertainment`, `other`. Be conservative — `other` is acceptable when truly ambiguous.\n   - `note` — optional 1-line explanation of why this category was picked, or any anomaly worth flagging.\n   - `source_index` — the 0-based position of this receipt in the input array (so the workbook can refer back to it).\n\n2. **Optional: reconcile against bank statement** — if user passed `bank_statement_csv`:\n   - Call `read_bank_statement` with the path.\n   - For each receipt line item, find the bank row that matches by amount (within ±0.50 tolerance for tip\u002Ffee differences) and date (within ±2 days). Set `matched_bank_row` to a short label like `\"Bank: 2026-04-15 \u002F -42.50 \u002F RESTAURANT X\"`.\n   - Track unmatched bank rows (rows that didn't match any receipt). Surface count via the `unmatched_count` argument to `build_workbook`.\n   - If user did not pass `bank_statement_csv`, skip this step and pass `unmatched_count: 0`.\n\n3. **Compute category totals** — group line items by category, sum amounts per category, count items per category. Build the `category_totals` array.\n\n4. **Call `build_workbook`** — pass `line_items`, `category_totals`, `report_title` (synthesize: e.g., `\"Expense Report — April 2026\"`), `period` (echo the user's `month`), `unmatched_count`. The tool returns paths for the .xlsx and .pdf files.\n\n5. **Return structured output**:\n   - `expenses_xlsx_path`: from the build_workbook tool response\n   - `summary_pdf_path`: from the build_workbook tool response\n   - `total_amount`: sum of all line item amounts\n   - `receipt_count`: number of line items (= number of images parsed)\n   - `unmatched_count`: from step 2 (or 0)\n\n## Style\n\n- Currency consistency: if all receipts are in the same currency, the totals should be in that currency. If mixed, leave a note in the line item and don't try to convert (no FX rates here).\n- Vendor names: keep them as the receipt presents them. Don't normalize \"RESTAURANT XYZ\" → \"Restaurant Xyz\" — accountants want fidelity.\n- For ambiguous categories, prefer `other` + a note explaining the ambiguity. Don't guess.\n- For receipts where the amount can't be read clearly from the image (blurry, cut off, etc.), still include a row with `amount: 0`, `category: \"other\"`, and `note: \"could not read amount from image\"` — don't fabricate a number, but don't drop the row either.\n\n## Failure modes\n\n- Empty `receipts` input or all images unreadable: produce an empty workbook with a single \"No receipts found\" note in the PDF. Return `receipt_count: 0`, `total_amount: 0`.\n- A single receipt unreadable: include a row in line_items with `amount: 0`, `category: \"other\"`, and `note: \"could not read amount from image\"`. Don't crash.\n- bank_statement_csv malformed: skip reconciliation, set `unmatched_count: 0`, add a note in the PDF that reconciliation was skipped.\n",{"name":5,"description":7},"main","b1d963b36174c159cad07fe91cef0b3c7bbdb7d7","agents\u002Freceipts-to-expenses",17,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun","https:\u002F\u002Fgithub.com\u002Fskrun-dev","Deploy any Agent Skill as an API — The Vercel for Agent Skills","2026-09-23 04:53:31",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add skrun-dev\u002Fskrun --skill receipts-to-expenses",{"tool":58,"command":59},"bunx","bunx skills add skrun-dev\u002Fskrun --skill receipts-to-expenses",{"tool":61,"command":62},"pnpm","pnpm dlx skills add skrun-dev\u002Fskrun --skill receipts-to-expenses","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002FSKILL.md",true,[66,72,78,82,86,90,94,98,104],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"agent.yaml","REFERENCE","参考文档",4365,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002Fagent.yaml",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"fixtures\u002Fsample-bank.csv","ASSET","资产文件",195,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002Ffixtures\u002Fsample-bank.csv",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"fixtures\u002Fsample-receipts\u002F01-restaurant.jpg",42181,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002Ffixtures\u002Fsample-receipts\u002F01-restaurant.jpg",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"fixtures\u002Fsample-receipts\u002F02-uber.jpg",40563,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002Ffixtures\u002Fsample-receipts\u002F02-uber.jpg",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"fixtures\u002Fsample-receipts\u002F03-saas.jpg",42050,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002Ffixtures\u002Fsample-receipts\u002F03-saas.jpg",{"path":91,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":92,"sourceHtmlUrl":93},"README.md",7562,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002FREADME.md",{"path":95,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":96,"sourceHtmlUrl":97},"requirements.txt",47,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002Frequirements.txt",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Fbuild_workbook.py","SCRIPT","脚本",8175,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002Fscripts\u002Fbuild_workbook.py",{"path":105,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fread_bank_statement.py",1813,"https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fagents\u002Freceipts-to-expenses\u002Fscripts\u002Fread_bank_statement.py",[109,129,141,150,159,181],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":39},"01M6K4K8ZVWY12RFZAYY0Q1MM0","audit-fixture-tool-error","E2E test fixture — calls a tool that always fails, used to verify tool_call_error events.","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagents\u002Faudit-fixture-tool-error\u002FSKILL.md",[],[116,117,118,119,120,121,122,123,124,125,126,127,128],"fixture","audit fixture tool error","fixture tool","error","audit","tool","call","e2e test","events","verify","calls","e2e","test",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":39},"01M6K4K4CJ9FPC07VJ0MD3C9S8","script-deps-python-fixture","Python deps integration fixture for","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Ftests\u002Fe2e\u002Ffixtures\u002Fscript-deps-python\u002FSKILL.md",[],[136,137,138,116,139,140,23],"script deps python fixture","python","deps","script","integration",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":39},"01M6K4K1ATBYMVPESQDP46ND24","script-deps-none-fixture","No-manifest fixture for","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Ftests\u002Fe2e\u002Ffixtures\u002Fscript-deps-none\u002FSKILL.md",[],[148,139,116,138,23,149],"script deps none fixture","manifest",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":39},"01M6K4JY6CE1345XRZ537ZJ9FB","script-deps-node-fixture","Node deps integration fixture for","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Ftests\u002Fe2e\u002Ffixtures\u002Fscript-deps-node\u002FSKILL.md",[],[157,139,116,158,138,23,140],"script deps node fixture","node",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":163,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":39},"01M6K4JVETZ77G36Z6HKFX29ST","pdf-processing","Extract PDF text, fill forms, merge files. Use when handling PDFs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fpackages\u002Fschema\u002Ftests\u002Ffixtures\u002Fvalid-agent-dir\u002FSKILL.md",[],[167,30,168,169,137,170,171,172,173,32,174,31,175,176,177,178,179,180],"processing","pdf processing","example","merge","git","Bash","text","extract","uv","files","forms","extract pdf","org","fill",{"skillNo":182,"name":183,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":39},"01M6K4JRVSGC92EZT5XWY9Q2N8","persistent-skill","A skill that uses persistent context mode.","https:\u002F\u002Fgithub.com\u002Fskrun-dev\u002Fskrun\u002Fblob\u002Fmain\u002Fpackages\u002Fschema\u002Ftests\u002Ffixtures\u002Fpersistent-no-agents-dir\u002FSKILL.md",[],[188,189,190,191],"persistent skill","context mode","mode","context"]