[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75TB769RXREDNM43AKP9YZP":3,"skill-same:01M75TB769RXREDNM43AKP9YZP":88},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":28,"updatedAt":29,"install":30,"resources":43},"01M75TB769RXREDNM43AKP9YZP","ts-debug",null,"Annieawa-Le\u002Fseek-agent","Annieawa-Le","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230510916?v=4","01M75T9882RR7HYQCQ1YK7V74S","StarryNi","01M75T988NH5XPCQJ9H2VESBCE",1,"MIT","https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"# ts-debug — TS 项目调试工具集\n\n## 用途\n\n封装调试 TypeScript 项目时的高频命令（类型检查、跑测试脚本、语法检查、构建），\n统一走 Node 子进程直跑（`spawn(process.execPath, ...)`），**不经 cmd 管道**，\n输出保持 UTF-8 无损——解决 Windows 下 `findstr`\u002F管道对中文输出乱码、编码误判的问题。\n\n### 可用工具\n\n| 工具 | 功能 |\n|------|------|\n| `ts_typecheck` | 类型检查 `tsc --noEmit`（支持按键路径片段过滤错误 + 错误总数；`cwd=electron\u002Frenderer` 时用渲染层 `tsc -b --noEmit`） |\n| `ts_run_test` | 运行 `scripts\u002F` 下的 tsx 测试脚本（自动补全 `scripts\u002F` 前缀与 `.ts` 后缀，返回退出码与输出） |\n| `ts_node_check` | 对 JS\u002FCJS 文件做语法检查（`node --check`，用于验证 `electron\u002Fmain.js`、`preload.cjs` 等改动） |\n| `ts_build` | 构建：`renderer`=渲染层 vite build（默认）、`renderer:typecheck`=渲染层 tsc、`agent`=build:agent |\n| `ts-debug-prompt-get` | 获取本技能说明文档 |\n\n### 典型用法\n\n```\n1. 修改代码后验证类型：ts_typecheck() → 看错误总数是否等于基线；ts_typecheck(filter=\"context-compactor\") → 只看该文件错误\n2. 跑回归测试：ts_run_test(script=\"test-context-compactor\") → 退出码 0 即通过\n3. 改 main.js\u002Fpreload.cjs 后：ts_node_check(file=\"electron\u002Fmain.js\")\n4. 渲染层改动后：ts_typecheck(cwd=\"electron\u002Frenderer\") + ts_build(target=\"renderer\")\n```\n\n### 为什么不用 execute_command\n\n`execute_command` 走 cmd shell + GBK 解码，管道\u002F重定向时 UTF-8 中文输出易乱码\n（此前 `findstr \u002FC:\"全部通过\"` 匹配失败的根因）。本技能直接 spawn Node 可执行文件，\n参数不拼命令行（无引号\u002F空格转义问题），子进程 cwd 由工具内部指定，输出天然 UTF-8。\n\n### 注意事项\n\n- 依赖解析基于当前工作区根（`getWorkspaceRoot()`）：`node_modules\u002Ftypescript\u002Fbin\u002Ftsc`、`--import tsx`、渲染层 `node_modules\u002Fvite\u002Fbin\u002Fvite.js`\n- tsc 超时 180s、测试脚本超时 300s，超时自动 kill 子进程\n- 输出默认截断（错误列表 60 行 \u002F 测试输出 6000 字符），超长会提示截断\n",{},"master","788c24242d568c7259b6664754637bfc71712b7e","src\u002Ftools\u002Finner_skills\u002Fts-debug",0,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent","https:\u002F\u002Fgithub.com\u002FAnnieawa-Le","'Twinkling shine in the sky,\r\ndimming night at mountain high.'\r\n\r\n—— “繁星缀缀于苍穹，夜色朦朦在山陇”","2026-10-04 22:21:03",{"source":7,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add Annieawa-Le\u002Fseek-agent --skill ts-debug",{"tool":36,"command":37},"bunx","bunx skills add Annieawa-Le\u002Fseek-agent --skill ts-debug",{"tool":39,"command":40},"pnpm","pnpm dlx skills add Annieawa-Le\u002Fseek-agent --skill ts-debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002FSKILL.md",true,[44,50,56,60,64,68,72,76,80,84],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"enable.json","REFERENCE","参考文档",238,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002Fenable.json",{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"index.ts","SCRIPT","脚本",713,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002Findex.ts",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"scripts\u002Fbuild.ts",2129,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002Fscripts\u002Fbuild.ts",{"path":61,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Fnode-check.ts",1232,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002Fscripts\u002Fnode-check.ts",{"path":65,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":66,"sourceHtmlUrl":67},"scripts\u002Fprompt-get.ts",811,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002Fscripts\u002Fprompt-get.ts",{"path":69,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Frun-test.ts",2243,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002Fscripts\u002Frun-test.ts",{"path":73,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Frun.ts",2117,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002Fscripts\u002Frun.ts",{"path":77,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Ftypecheck.ts",2682,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002Fscripts\u002Ftypecheck.ts",{"path":81,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":82,"sourceHtmlUrl":83},"SYSTEM_INJECTION.md",559,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002FSYSTEM_INJECTION.md",{"path":85,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":86,"sourceHtmlUrl":87},"translation.ts",1320,"https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fts-debug\u002Ftranslation.ts",[89,95,101,107,113,119],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M75TBDZX3WSF0A7HJMVYQRV5","worker-library","https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fworker-library\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M75TBBYFKMHWR9TPB1957V1M","web-crawler","https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fweb-crawler\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M75TBA4GCPTP3PW4NM1NAVSN","web-accessor","https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fweb-accessor\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M75TB8AGWC72H2JDWM1AZVYY","virtual-explorer","https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fvirtual-explorer\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":18},"01M75TB5DJWWE4NCG5J2NXNXFK","todo-manager","https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Ftodo-manager\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":18},"01M75TB46Z3505DAW36SYRQ57Q","sub-agent","https:\u002F\u002Fgithub.com\u002FAnnieawa-Le\u002Fseek-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Ftools\u002Finner_skills\u002Fsub-agent\u002FSKILL.md",[],[]]