[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XCBBTADEZB948RKTXKVHA5":3,"skill-same:01M6XCBBTADEZB948RKTXKVHA5":64},{"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":17,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":13,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":57},"01M6XCBBTADEZB948RKTXKVHA5","typescript-compile-check-resilient-fallback",null,"A resilient workflow for running TypeScript compile checks (tsc --noEmit) that falls back gracefully when npx or direct binary invocations fail, and distinguishes pre-existing errors from newly introduced ones.","UF-gzj\u002Fopenspace-claude-evolution","UF-gzj","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272393507?v=4","01M6XBCZB755P01VVYGQWPYZY3","01M6XBCZFJA5AREA17WGETA3FW",0,"MIT","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Ftypescript-compile-check-resilient-fallback\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"typescript","compile","check","fallback","typescript compile check resilient fallback","typescript compile check resilient","workflow","direct","npx","back","binary","errors","for","Existing","when","running","2026-11-10 10:12:30",false,"---\nname: typescript-compile-check-resilient-fallback\ndescription: A resilient workflow for running TypeScript compile checks (tsc --noEmit) that falls back gracefully when npx or direct binary invocations fail, and distinguishes pre-existing errors from newly introduced ones.\n---\n\n# TypeScript Compile-Check Resilient Fallback\n\nUse this workflow whenever you need to verify that TypeScript files compile\ncleanly after creating or modifying them, especially in environments where\n`npx` or direct `.\u002Fnode_modules\u002F.bin\u002Ftsc` invocations may return unexpected\nerrors.\n\n---\n\n## Step 1 — Attempt Primary Invocation\n\nRun the compile check with `run_shell` using the standard approach:\n\n```bash\nnpx tsc --noEmit\n```\n\nor, if you already know the project root:\n\n```bash\n.\u002Fnode_modules\u002F.bin\u002Ftsc --noEmit\n```\n\n**Evaluate the result:**\n- If it exits cleanly (exit code 0, no unexpected output) → done.\n- If it exits with **TypeScript diagnostic errors** → proceed to Step 3.\n- If it exits with an **unknown \u002F tool-level error** (e.g., `npx` not found,\n  permission denied, spawn error, unclear non-zero exit unrelated to TS\n  diagnostics) → proceed to Step 2.\n\n---\n\n## Step 2 — Fallback via `shell_agent`\n\nWhen the primary invocation fails with an unknown error, delegate to\n`shell_agent` so it can resolve environment issues automatically:\n\n> Task: \"From the project directory `\u003CPROJECT_DIR>`, run\n> `node node_modules\u002Ftypescript\u002Fbin\u002Ftsc --noEmit` and report all\n> TypeScript diagnostic errors.\"\n\nExample `shell_agent` task string:\n\n```\nFrom \u002Fpath\u002Fto\u002Fproject, run:\n  node node_modules\u002Ftypescript\u002Fbin\u002Ftsc --noEmit\nCapture the full stdout\u002Fstderr output and return it.\n```\n\n`shell_agent` will handle PATH issues, working-directory changes, and\nretry on transient failures automatically.\n\n---\n\n## Step 3 — Filter Pre-Existing Errors\n\nTypeScript projects frequently have pre-existing errors in files you did\n**not** touch. To avoid false regressions:\n\n1. **Identify the baseline error count** for the project (e.g., determined\n   at task start or documented in task context). A common baseline is\n   **11 pre-existing errors** in unrelated files.\n2. **Collect the full diagnostic list** from tsc output.\n3. **Filter** to keep only errors whose file path matches a file you\n   created or modified in this task.\n4. **Evaluate:**\n   - Zero errors in your new\u002Fmodified files → ✅ no regression introduced.\n   - One or more errors in your new\u002Fmodified files → ❌ fix them before\n     proceeding.\n\n### Filtering heuristic (pseudocode)\n\n```\nall_errors   = parse_tsc_output(tsc_stdout)\nmy_files     = [list of files created\u002Fmodified in this task]\nnew_errors   = [e for e in all_errors if e.file in my_files]\n\nif len(new_errors) == 0:\n    print(\"✅ No new TypeScript errors introduced.\")\nelse:\n    for err in new_errors:\n        print(f\"❌ {err.file}:{err.line} — {err.message}\")\n    raise Exception(\"Fix TypeScript errors before continuing.\")\n```\n\n---\n\n## Step 4 — Fix and Re-Run\n\nIf new errors are found:\n1. Fix the errors in your file(s).\n2. Repeat from **Step 1**.\n\n---\n\n## Decision Tree Summary\n\n```\nrun_shell: npx tsc --noEmit\n        │\n        ├─ clean exit ──────────────────────────────► ✅ Done\n        │\n        ├─ TS diagnostic errors ────────────────────► Step 3 (filter)\n        │\n        └─ unknown\u002Ftool error\n                │\n                └─ shell_agent: node ...\u002Ftsc --noEmit\n                        │\n                        ├─ TS diagnostic errors ────► Step 3 (filter)\n                        └─ clean exit ──────────────► ✅ Done\n```\n\n---\n\n## Notes\n\n- Always run tsc from the **project root** (where `tsconfig.json` lives).\n- The `node node_modules\u002Ftypescript\u002Fbin\u002Ftsc` invocation is the most portable\n  fallback because it bypasses `npx`, shell PATH lookups, and binary\n  permission issues entirely.\n- When the baseline error count is unknown, run tsc **before** making any\n  changes and record the count; that becomes your baseline.\n- Only report\u002Fact on errors in files **you own**; never attempt to fix\n  pre-existing errors in third-party or unrelated project files unless\n  explicitly asked.","# TypeScript Compile-Check Resilient Fallback\n\nUse this workflow whenever you need to verify that TypeScript files compile\ncleanly after creating or modifying them, especially in environments where\n`npx` or direct `.\u002Fnode_modules\u002F.bin\u002Ftsc` invocations may return unexpected\nerrors.\n\n---\n\n## Step 1 — Attempt Primary Invocation\n\nRun the compile check with `run_shell` using the standard approach:\n\n```bash\nnpx tsc --noEmit\n```\n\nor, if you already know the project root:\n\n```bash\n.\u002Fnode_modules\u002F.bin\u002Ftsc --noEmit\n```\n\n**Evaluate the result:**\n- If it exits cleanly (exit code 0, no unexpected output) → done.\n- If it exits with **TypeScript diagnostic errors** → proceed to Step 3.\n- If it exits with an **unknown \u002F tool-level error** (e.g., `npx` not found,\n  permission denied, spawn error, unclear non-zero exit unrelated to TS\n  diagnostics) → proceed to Step 2.\n\n---\n\n## Step 2 — Fallback via `shell_agent`\n\nWhen the primary invocation fails with an unknown error, delegate to\n`shell_agent` so it can resolve environment issues automatically:\n\n> Task: \"From the project directory `\u003CPROJECT_DIR>`, run\n> `node node_modules\u002Ftypescript\u002Fbin\u002Ftsc --noEmit` and report all\n> TypeScript diagnostic errors.\"\n\nExample `shell_agent` task string:\n\n```\nFrom \u002Fpath\u002Fto\u002Fproject, run:\n  node node_modules\u002Ftypescript\u002Fbin\u002Ftsc --noEmit\nCapture the full stdout\u002Fstderr output and return it.\n```\n\n`shell_agent` will handle PATH issues, working-directory changes, and\nretry on transient failures automatically.\n\n---\n\n## Step 3 — Filter Pre-Existing Errors\n\nTypeScript projects frequently have pre-existing errors in files you did\n**not** touch. To avoid false regressions:\n\n1. **Identify the baseline error count** for the project (e.g., determined\n   at task start or documented in task context). A common baseline is\n   **11 pre-existing errors** in unrelated files.\n2. **Collect the full diagnostic list** from tsc output.\n3. **Filter** to keep only errors whose file path matches a file you\n   created or modified in this task.\n4. **Evaluate:**\n   - Zero errors in your new\u002Fmodified files → ✅ no regression introduced.\n   - One or more errors in your new\u002Fmodified files → ❌ fix them before\n     proceeding.\n\n### Filtering heuristic (pseudocode)\n\n```\nall_errors   = parse_tsc_output(tsc_stdout)\nmy_files     = [list of files created\u002Fmodified in this task]\nnew_errors   = [e for e in all_errors if e.file in my_files]\n\nif len(new_errors) == 0:\n    print(\"✅ No new TypeScript errors introduced.\")\nelse:\n    for err in new_errors:\n        print(f\"❌ {err.file}:{err.line} — {err.message}\")\n    raise Exception(\"Fix TypeScript errors before continuing.\")\n```\n\n---\n\n## Step 4 — Fix and Re-Run\n\nIf new errors are found:\n1. Fix the errors in your file(s).\n2. Repeat from **Step 1**.\n\n---\n\n## Decision Tree Summary\n\n```\nrun_shell: npx tsc --noEmit\n        │\n        ├─ clean exit ──────────────────────────────► ✅ Done\n        │\n        ├─ TS diagnostic errors ────────────────────► Step 3 (filter)\n        │\n        └─ unknown\u002Ftool error\n                │\n                └─ shell_agent: node ...\u002Ftsc --noEmit\n                        │\n                        ├─ TS diagnostic errors ────► Step 3 (filter)\n                        └─ clean exit ──────────────► ✅ Done\n```\n\n---\n\n## Notes\n\n- Always run tsc from the **project root** (where `tsconfig.json` lives).\n- The `node node_modules\u002Ftypescript\u002Fbin\u002Ftsc` invocation is the most portable\n  fallback because it bypasses `npx`, shell PATH lookups, and binary\n  permission issues entirely.\n- When the baseline error count is unknown, run tsc **before** making any\n  changes and record the count; that becomes your baseline.\n- Only report\u002Fact on errors in files **you own**; never attempt to fix\n  pre-existing errors in third-party or unrelated project files unless\n  explicitly asked.",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","showcase\u002Fskills\u002Ftypescript-compile-check-resilient-fallback","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution","https:\u002F\u002Fgithub.com\u002FUF-gzj","2026-04-16 09:31:03",{"source":8,"skillName":5,"commands":46,"prompt":55,"zipAvailable":56},[47,49,52],{"tool":26,"command":48},"npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill typescript-compile-check-resilient-fallback",{"tool":50,"command":51},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill typescript-compile-check-resilient-fallback",{"tool":53,"command":54},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill typescript-compile-check-resilient-fallback","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Ftypescript-compile-check-resilient-fallback\u002FSKILL.md",true,[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},".skill_id","OTHER","其他",57,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Ftypescript-compile-check-resilient-fallback\u002F.skill_id",[65,85,102,111,141,157],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":34},"01M6XCCXD3NCM2YKR3WNGBASPC","write-special-chars-ts-check","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, plus a reliable TypeScript type-checking step that filters output to only the newly-written files to avoid being misled by pre-existing errors.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[20,72,73,18,74,75,31,76,30,29,77,78,79,80,81,82,83,84],"write","write special chars ts check","filters","characters","type-checking","script","output","type","files","only","template","file","python",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":34},"01M6XCCT7E3J922Q345PBGSHPN","write-special-chars-readback","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) using a Python heredoc script, with mandatory post-write verification via read_file and cleanup of \u002Ftmp helper scripts.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[92,93,72,83,94,84,95,96,97,98,99,82,100,101,75,30,77],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification","with",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":34},"01M6XCCMQX1R8B6FECWB3P63T7","write-special-chars-heredoc","Workaround for write_file failures caused by special characters (apostrophes, backticks, template literals) by using a Python heredoc script executed via shell.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[109,72,75,110,77,96,82,83,84,30],"write special chars heredoc","shell",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":122,"publishedAt":34},"01M6XCCG41M994JJEX6VN52PEP","worldmonitor-reference","Curated architecture index of the WorldMonitor open-source dashboard. Reference for extracting patterns — vanilla TypeScript, Panel class hierarchy, service layer, CSS grid, API edge functions, refresh scheduler, and 60+ data source integrations.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[117],{"categoryNo":118,"categoryName":119,"taxonomyType":120,"taxonomyTypeDesc":121},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[123,124,125,126,127,18,128,129,130,131,132,30,133,134,135,136,137,138,139,140],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":34},"01M6XCCCHWNKG2W4VH9E6A10HF","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[148,149,150,151,30,152,101,153,154,155,156],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":34},"01M6XCC7X8PKMR2DEW91XGHYSV","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[164,165,166,167,168,169,83,170,171,172],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]