[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KVTYXX15GK9930FFD75YCG":3,"skill-same:01M6KVTYXX15GK9930FFD75YCG":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":55,"install":56,"resources":69},"01M6KVTYXX15GK9930FFD75YCG","file_reader",null,"读取与摘要文本类文件（txt、md、json、yaml、csv、log、代码文件等）。PDF 与 Office 文件由专用技能处理。","mateaix\u002Fmateclaw","mateaix","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F57164338?v=4","01M6KVQ3JXJP7M6D3BKS2BAMFF","01M6KVQ3Q8YG7DT57AY22TBXGG",1196,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Ffile_reader\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"file","reader","file reader","PDF","yaml","csv","office","shell","json","文本","command","read","execute","log","文件","2026-11-10 10:12:30",false,"---\nname: file_reader\nversion: \"1.2.0\"\ndescription: \"读取与摘要文本类文件（txt、md、json、yaml、csv、log、代码文件等）。PDF 与 Office 文件由专用技能处理。\"\ndependencies:\n  tools:\n    - read_file\n    - execute_shell_command\n---\n\n# 文件读取\n\n当用户要求读取或摘要本地文本文件时使用本技能。\n\n**不在范围内**：PDF、Word (.docx)、Excel (.xlsx)、PPT (.pptx)、图片、音视频 — 这些由专用技能处理。\n\n## 工作流程\n\n### 第一步：类型探测（可选）\n\n不确定文件类型时，先探测：\n\n**macOS \u002F Linux：**\n```\nexecute_shell_command(command=\"file -b --mime-type \\\"\u002Fpath\u002Fto\u002Ffile\\\"\")\n```\n\n**Windows：**\n```\nexecute_shell_command(command=\"cmd \u002Fc \\\"echo %~x1\\\" & exit\", timeoutSeconds=10)\n```\n或直接根据扩展名判断。\n\n### 第二步：读取文件\n\n```\nread_file(filePath=\"\u002Fabsolute\u002For\u002Frelative\u002Fpath\u002Fto\u002Ffile.txt\")\n```\n\n读取特定行范围（大文件时）：\n```\nread_file(filePath=\"\u002Fpath\u002Fto\u002Flarge.log\", startLine=1, endLine=200)\n```\n\n### 第三步：处理内容\n\n根据文件类型采用对应策略：\n\n| 类型 | 处理方式 |\n|------|---------|\n| `.txt` \u002F `.md` | 直接摘要或按用户需求处理 |\n| `.json` \u002F `.yaml` | 先列出顶层键，再展开用户关注的字段 |\n| `.csv` \u002F `.tsv` | 展示表头 + 前 5 行，再描述各列含义和数据规模 |\n| `.log` | 读取最后 200 行，聚焦错误\u002F警告模式 |\n| 源代码 | 说明文件作用，摘要核心逻辑，不逐行复述 |\n\n## 大文件策略\n\n文件超过 500 行时分段读取：\n\n```\n# 先读前 100 行了解结构\nread_file(filePath=\"\u002Fpath\u002Fto\u002Fbig.log\", startLine=1, endLine=100)\n\n# 再读末尾 200 行看最新内容\nread_file(filePath=\"\u002Fpath\u002Fto\u002Fbig.log\", startLine=-200)\n```\n\n日志文件也可用系统命令读取末尾：\n\n**macOS \u002F Linux：**\n```\nexecute_shell_command(command=\"tail -n 200 \\\"\u002Fpath\u002Fto\u002Ffile.log\\\"\")\n```\n\n**Windows：**\n```\nexecute_shell_command(command=\"powershell Get-Content -Tail 200 \\\"\u002Fpath\u002Fto\u002Ffile.log\\\"\")\n```\n\n## 跨平台路径注意事项\n\n- **Windows**：路径使用反斜杠 `\\` 或正斜杠 `\u002F` 均可，但含空格时须加引号\n- **macOS \u002F Linux**：使用正斜杠 `\u002F`，含空格时须加引号或转义\n\n## 安全规范\n\n- 只读取文件，不执行其内容\n- 优先读取所需的最小部分，避免加载超大文件到上下文\n- 如文件包含敏感信息（密码、密钥），提醒用户注意但不拒绝读取\n","# 文件读取\n\n当用户要求读取或摘要本地文本文件时使用本技能。\n\n**不在范围内**：PDF、Word (.docx)、Excel (.xlsx)、PPT (.pptx)、图片、音视频 — 这些由专用技能处理。\n\n## 工作流程\n\n### 第一步：类型探测（可选）\n\n不确定文件类型时，先探测：\n\n**macOS \u002F Linux：**\n```\nexecute_shell_command(command=\"file -b --mime-type \\\"\u002Fpath\u002Fto\u002Ffile\\\"\")\n```\n\n**Windows：**\n```\nexecute_shell_command(command=\"cmd \u002Fc \\\"echo %~x1\\\" & exit\", timeoutSeconds=10)\n```\n或直接根据扩展名判断。\n\n### 第二步：读取文件\n\n```\nread_file(filePath=\"\u002Fabsolute\u002For\u002Frelative\u002Fpath\u002Fto\u002Ffile.txt\")\n```\n\n读取特定行范围（大文件时）：\n```\nread_file(filePath=\"\u002Fpath\u002Fto\u002Flarge.log\", startLine=1, endLine=200)\n```\n\n### 第三步：处理内容\n\n根据文件类型采用对应策略：\n\n| 类型 | 处理方式 |\n|------|---------|\n| `.txt` \u002F `.md` | 直接摘要或按用户需求处理 |\n| `.json` \u002F `.yaml` | 先列出顶层键，再展开用户关注的字段 |\n| `.csv` \u002F `.tsv` | 展示表头 + 前 5 行，再描述各列含义和数据规模 |\n| `.log` | 读取最后 200 行，聚焦错误\u002F警告模式 |\n| 源代码 | 说明文件作用，摘要核心逻辑，不逐行复述 |\n\n## 大文件策略\n\n文件超过 500 行时分段读取：\n\n```\n# 先读前 100 行了解结构\nread_file(filePath=\"\u002Fpath\u002Fto\u002Fbig.log\", startLine=1, endLine=100)\n\n# 再读末尾 200 行看最新内容\nread_file(filePath=\"\u002Fpath\u002Fto\u002Fbig.log\", startLine=-200)\n```\n\n日志文件也可用系统命令读取末尾：\n\n**macOS \u002F Linux：**\n```\nexecute_shell_command(command=\"tail -n 200 \\\"\u002Fpath\u002Fto\u002Ffile.log\\\"\")\n```\n\n**Windows：**\n```\nexecute_shell_command(command=\"powershell Get-Content -Tail 200 \\\"\u002Fpath\u002Fto\u002Ffile.log\\\"\")\n```\n\n## 跨平台路径注意事项\n\n- **Windows**：路径使用反斜杠 `\\` 或正斜杠 `\u002F` 均可，但含空格时须加引号\n- **macOS \u002F Linux**：使用正斜杠 `\u002F`，含空格时须加引号或转义\n\n## 安全规范\n\n- 只读取文件，不执行其内容\n- 优先读取所需的最小部分，避免加载超大文件到上下文\n- 如文件包含敏感信息（密码、密钥），提醒用户注意但不拒绝读取\n",{"name":5,"version":43,"description":7,"dependencies":44},"1.2.0",{"tools":45},[46,47],"read_file","execute_shell_command","dev","11106843d72d25b29c2cd08d7fdbbd222c21df6a","mateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Ffile_reader",361,"https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw","https:\u002F\u002Fclaw.mate.vip","https:\u002F\u002Fgithub.com\u002Fmateaix","2026-11-13 15:43:14",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add mateaix\u002Fmateclaw --skill file_reader",{"tool":62,"command":63},"bunx","bunx skills add mateaix\u002Fmateclaw --skill file_reader",{"tool":65,"command":66},"pnpm","pnpm dlx skills add mateaix\u002Fmateclaw --skill file_reader","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Ffile_reader\u002FSKILL.md",true,[],[71,84,117,139,166,185],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":80,"publishedAt":38},"01M6KW155AABG05Q3FR8CN3D9H","sample","Test fixture for SkillBundleMaterializer.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Ftest\u002Fresources\u002Ftest-bundles\u002Fsample\u002FSKILL.md",[77],{"categoryNo":78,"categoryName":79,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[73,81,82,83],"test","for","fixture",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":95,"publishedAt":38},"01M6KW0P1T4EGBRN0HYZKJSHGB","xhs_note","小红书图文创作 \u002F 笔记 \u002F 种草文案 (xiaohongshu \u002F red note) — 端到端：成文→配图(≥3 张竖版)→去AI化→在线预览打包交付。以图为主、文字辅助：标题四件套 + 碎句正文 + 话题标签，配 3:4 竖版卡片，最少 3 张图。honors user persona & style memory.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fxhs_note\u002FSKILL.md",[90],{"categoryNo":91,"categoryName":92,"taxonomyType":93,"taxonomyTypeDesc":94},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116],"note","xhs note","xhs","创作","persona","memory","红书","user","red","图文","内容创作","style","小红书","笔记","xiaohongshu","去AI化","linux","文案","windows","macos","文字",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":124,"publishedAt":38},"01M6KW0J69PPWSCVSR6JVJ0P1F","x_intel","Read X (Twitter) posts, search, timelines and user profiles via the official xurl CLI.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fx_intel\u002FSKILL.md",[123],{"categoryNo":78,"categoryName":79,"taxonomyType":20,"taxonomyTypeDesc":21},[125,30,126,35,127,128,129,130,131,132,112,34,33,133,134,135,136,137,138,115],"x intel","xurl","twitter","social-media","via","profiles","research","true","cli","social","search","official","Media","posts",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":153,"publishedAt":38},"01M6KW0DEPAYEF2JQ70PGN0Y8D","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fwriting-plans\u002FSKILL.md",[145,148,151,152],{"categoryNo":146,"categoryName":147,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":149,"categoryName":150,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":78,"categoryName":79,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":91,"categoryName":92,"taxonomyType":93,"taxonomyTypeDesc":94},[154,155,156,157,158,159,160,161,162,163,164,165],"plans","writing plans","writing","implementation","planning","paths","write","documentation","tasks","code","workflow","design",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":173,"publishedAt":38},"01M6KW08Q6EEN0ZSH5JRMAFH0B","webhook-subscriptions","Webhook subscriptions: event-driven agent runs.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Fwebhook-subscriptions\u002FSKILL.md",[172],{"categoryNo":78,"categoryName":79,"taxonomyType":20,"taxonomyTypeDesc":21},[174,175,176,177,178,179,180,181,182,183,184],"subscriptions","webhook subscriptions","webhook","event-driven","automation","event","integrations","push","events","notifications","driven",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":198,"publishedAt":38},"01M6KW04W8S4EMJHSNHY3HWAY3","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002Fmateaix\u002Fmateclaw\u002Fblob\u002Fdev\u002Fmateclaw-server\u002Fsrc\u002Fmain\u002Fresources\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[191,194,197],{"categoryNo":192,"categoryName":193,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":195,"categoryName":196,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":78,"categoryName":79,"taxonomyType":20,"taxonomyTypeDesc":21},[199,81,184,200,201,104,202,203,204,205,163,206,207,208],"development","test driven development","quality","tdd","tests","enforce","refactor","testing","red-green-refactor","green"]