[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KKKFJV9Z5PY0F26MAGJW1S":3,"skill-same:01M6KKKFJV9Z5PY0F26MAGJW1S":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":13,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":55},"01M6KKKFJV9Z5PY0F26MAGJW1S","typescript-typecheck-fallback",null,"Reliably run TypeScript type-checking (npx tsc --noEmit) by using shell_agent as a fallback when run_shell fails due to environment or timeout issues.","AG064\u002FOpenSpace","AG064","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184930299?v=4","01M6KHVFG7TB73NHX3RDYSTMH2","01M6KHVFMM7XA2PZA9Z83PHS3V",0,"MIT","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Ftypescript-typecheck-fallback\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"typescript","fallback","typecheck","typescript typecheck fallback","run","issues","shell","environment","npx","as","type","timeout","type-checking","2026-11-10 10:12:30",false,"---\nname: typescript-typecheck-fallback\ndescription: Reliably run TypeScript type-checking (npx tsc --noEmit) by using shell_agent as a fallback when run_shell fails due to environment or timeout issues.\n---\n\n# TypeScript Type-Check with shell_agent Fallback\n\nWhen verifying TypeScript compilation as part of a build or validation workflow, `run_shell` may fail with unknown errors due to shell environment issues, missing PATH entries, timeout constraints, or other transient problems. This skill describes a two-step pattern: attempt the check with `run_shell` first, then fall back to `shell_agent` if it fails.\n\n---\n\n## When to Use\n\n- After creating or modifying TypeScript source files and you need to confirm there are no type errors.\n- As part of a CI-like verification step inside an autonomous workflow.\n- Any time `run_shell` returns an unexpected or unclear error for a `tsc` invocation.\n\n---\n\n## Step-by-Step Pattern\n\n### Step 1 — Attempt with `run_shell` (fast path)\n\nTry the direct command first. This is fast and gives immediate output when the environment is well-configured.\n\n```\nrun_shell: npx tsc --noEmit\n```\n\n**Evaluate the result:**\n- ✅ **Exit code 0, no errors** → Type-check passed. Done.\n- ❌ **Exit code non-zero with TypeScript diagnostics** → Real type errors exist; surface them and fix.\n- ⚠️ **Unknown error, timeout, or no useful output** → Proceed to Step 2.\n\n---\n\n### Step 2 — Fall back to `shell_agent` (reliable path)\n\nWhen `run_shell` fails in an ambiguous or environmental way, delegate to `shell_agent` with a natural-language task. `shell_agent` can autonomously:\n- Locate the correct `npx`\u002F`tsc` binary\n- Retry on transient failures\n- Navigate PATH or permission issues\n- Return a structured summary of any type errors\n\n**Task string to pass to `shell_agent`:**\n\n```\nRun `npx tsc --noEmit` in the project root and report all TypeScript type errors found. If there are no errors, confirm the compilation succeeded. If tsc is not available, attempt to install TypeScript locally with `npm install --save-dev typescript` first.\n```\n\n**Evaluate the result:**\n- ✅ **\"No errors found\" \u002F exit 0** → Type-check passed.\n- ❌ **Type errors listed** → Collect and fix the reported diagnostics, then re-run.\n- ⚠️ **`tsconfig.json` missing** → Ensure the file exists in the project root before re-running.\n\n---\n\n## Decision Flowchart\n\n```\nrun_shell(\"npx tsc --noEmit\")\n        │\n        ├─ success (exit 0) ──────────────────► ✅ PASS\n        │\n        ├─ type errors reported ──────────────► ❌ Fix errors, retry\n        │\n        └─ unknown\u002Fenv error ─────────────────► shell_agent(natural-language task)\n                                                        │\n                                                        ├─ success ───► ✅ PASS\n                                                        └─ errors  ───► ❌ Fix & retry\n```\n\n---\n\n## Example Implementation\n\n```python\n# Pseudo-code for an autonomous agent loop\n\nresult = run_shell(\"npx tsc --noEmit\", timeout=60)\n\nif result.exit_code == 0:\n    print(\"TypeScript check passed.\")\n\nelif result.exit_code != 0 and result.stderr contains \"TS\\d+\":\n    # Real TypeScript diagnostics — surface and fix them\n    raise TypeScriptError(result.stderr)\n\nelse:\n    # Ambiguous failure — delegate to shell_agent\n    shell_agent(\n        task=\"Run `npx tsc --noEmit` in the project root and report all TypeScript \"\n             \"type errors found. If there are no errors, confirm compilation succeeded. \"\n             \"If tsc is not available, install it first with `npm install --save-dev typescript`.\"\n    )\n```\n\n---\n\n## Tips\n\n- **Always have a `tsconfig.json`**: `tsc --noEmit` requires a valid config. If none exists, generate one first with `npx tsc --init`.\n- **Set a reasonable timeout**: TypeScript compilation on large projects can take 30–120 seconds. Give `run_shell` at least `timeout=90`.\n- **Scope to changed files when possible**: Use `--project tsconfig.json` or a path glob to limit what tsc checks if only a subset of files changed.\n- **Prefer `shell_agent` for first-time setups**: If the project environment is freshly created and dependencies may not be fully installed, start with `shell_agent` directly to avoid a predictable `run_shell` failure.\n\n---\n\n## Generalizing Beyond TypeScript\n\nThis same fallback pattern applies to any build\u002Flint\u002Ftype-check command that may be sensitive to shell environment:\n\n| Tool | Primary `run_shell` command | `shell_agent` fallback task |\n|---|---|---|\n| TypeScript | `npx tsc --noEmit` | \"Run npx tsc --noEmit and report errors\" |\n| ESLint | `npx eslint src\u002F` | \"Run npx eslint on the src directory and report lint errors\" |\n| Python mypy | `python -m mypy src\u002F` | \"Run mypy on the src directory and report type errors\" |\n| Go build | `go build .\u002F...` | \"Run go build and report compilation errors\" |\n\nThe core principle: **`run_shell` for speed; `shell_agent` for resilience.**","# TypeScript Type-Check with shell_agent Fallback\n\nWhen verifying TypeScript compilation as part of a build or validation workflow, `run_shell` may fail with unknown errors due to shell environment issues, missing PATH entries, timeout constraints, or other transient problems. This skill describes a two-step pattern: attempt the check with `run_shell` first, then fall back to `shell_agent` if it fails.\n\n---\n\n## When to Use\n\n- After creating or modifying TypeScript source files and you need to confirm there are no type errors.\n- As part of a CI-like verification step inside an autonomous workflow.\n- Any time `run_shell` returns an unexpected or unclear error for a `tsc` invocation.\n\n---\n\n## Step-by-Step Pattern\n\n### Step 1 — Attempt with `run_shell` (fast path)\n\nTry the direct command first. This is fast and gives immediate output when the environment is well-configured.\n\n```\nrun_shell: npx tsc --noEmit\n```\n\n**Evaluate the result:**\n- ✅ **Exit code 0, no errors** → Type-check passed. Done.\n- ❌ **Exit code non-zero with TypeScript diagnostics** → Real type errors exist; surface them and fix.\n- ⚠️ **Unknown error, timeout, or no useful output** → Proceed to Step 2.\n\n---\n\n### Step 2 — Fall back to `shell_agent` (reliable path)\n\nWhen `run_shell` fails in an ambiguous or environmental way, delegate to `shell_agent` with a natural-language task. `shell_agent` can autonomously:\n- Locate the correct `npx`\u002F`tsc` binary\n- Retry on transient failures\n- Navigate PATH or permission issues\n- Return a structured summary of any type errors\n\n**Task string to pass to `shell_agent`:**\n\n```\nRun `npx tsc --noEmit` in the project root and report all TypeScript type errors found. If there are no errors, confirm the compilation succeeded. If tsc is not available, attempt to install TypeScript locally with `npm install --save-dev typescript` first.\n```\n\n**Evaluate the result:**\n- ✅ **\"No errors found\" \u002F exit 0** → Type-check passed.\n- ❌ **Type errors listed** → Collect and fix the reported diagnostics, then re-run.\n- ⚠️ **`tsconfig.json` missing** → Ensure the file exists in the project root before re-running.\n\n---\n\n## Decision Flowchart\n\n```\nrun_shell(\"npx tsc --noEmit\")\n        │\n        ├─ success (exit 0) ──────────────────► ✅ PASS\n        │\n        ├─ type errors reported ──────────────► ❌ Fix errors, retry\n        │\n        └─ unknown\u002Fenv error ─────────────────► shell_agent(natural-language task)\n                                                        │\n                                                        ├─ success ───► ✅ PASS\n                                                        └─ errors  ───► ❌ Fix & retry\n```\n\n---\n\n## Example Implementation\n\n```python\n# Pseudo-code for an autonomous agent loop\n\nresult = run_shell(\"npx tsc --noEmit\", timeout=60)\n\nif result.exit_code == 0:\n    print(\"TypeScript check passed.\")\n\nelif result.exit_code != 0 and result.stderr contains \"TS\\d+\":\n    # Real TypeScript diagnostics — surface and fix them\n    raise TypeScriptError(result.stderr)\n\nelse:\n    # Ambiguous failure — delegate to shell_agent\n    shell_agent(\n        task=\"Run `npx tsc --noEmit` in the project root and report all TypeScript \"\n             \"type errors found. If there are no errors, confirm compilation succeeded. \"\n             \"If tsc is not available, install it first with `npm install --save-dev typescript`.\"\n    )\n```\n\n---\n\n## Tips\n\n- **Always have a `tsconfig.json`**: `tsc --noEmit` requires a valid config. If none exists, generate one first with `npx tsc --init`.\n- **Set a reasonable timeout**: TypeScript compilation on large projects can take 30–120 seconds. Give `run_shell` at least `timeout=90`.\n- **Scope to changed files when possible**: Use `--project tsconfig.json` or a path glob to limit what tsc checks if only a subset of files changed.\n- **Prefer `shell_agent` for first-time setups**: If the project environment is freshly created and dependencies may not be fully installed, start with `shell_agent` directly to avoid a predictable `run_shell` failure.\n\n---\n\n## Generalizing Beyond TypeScript\n\nThis same fallback pattern applies to any build\u002Flint\u002Ftype-check command that may be sensitive to shell environment:\n\n| Tool | Primary `run_shell` command | `shell_agent` fallback task |\n|---|---|---|\n| TypeScript | `npx tsc --noEmit` | \"Run npx tsc --noEmit and report errors\" |\n| ESLint | `npx eslint src\u002F` | \"Run npx eslint on the src directory and report lint errors\" |\n| Python mypy | `python -m mypy src\u002F` | \"Run mypy on the src directory and report type errors\" |\n| Go build | `go build .\u002F...` | \"Run go build and report compilation errors\" |\n\nThe core principle: **`run_shell` for speed; `shell_agent` for resilience.**",{"name":5,"description":7},"main","ff671ef61ed6587c49bd54c81cdc751c0b99e363","showcase\u002Fskills\u002Ftypescript-typecheck-fallback","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace","https:\u002F\u002Fgithub.com\u002FAG064","AG064, E.Mi.\r\n\r\nA person who thinks all the time, yet all they have to think about is nothing. I want to improve the world and work on open source projects","2026-10-08 06:53:48",{"source":8,"skillName":5,"commands":44,"prompt":53,"zipAvailable":54},[45,47,50],{"tool":26,"command":46},"npx skills add AG064\u002FOpenSpace --skill typescript-typecheck-fallback",{"tool":48,"command":49},"bunx","bunx skills add AG064\u002FOpenSpace --skill typescript-typecheck-fallback",{"tool":51,"command":52},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill typescript-typecheck-fallback","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Ftypescript-typecheck-fallback\u002FSKILL.md",true,[56],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},".skill_id","OTHER","其他",43,"https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Ftypescript-typecheck-fallback\u002F.skill_id",[63,84,101,109,134,150],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":31},"01M6KKMPWA0B5SCCH766F8M5EA","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[70,71,72,73,74,30,75,76,77,78,28,79,80,81,82,83,18],"write special chars ts check","check","write","filters","Existing","for","errors","script","output","files","only","template","file","python",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":31},"01M6KKMJXVBNVEY3TRK055F4A7","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[91,92,72,81,93,94,82,83,95,96,97,98,99,75,77,100],"readback","write special chars readback","cleanup","read","scripts","verification","via","post","helper","with",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":31},"01M6KKMEGX9M9NC105J0W3Q5B9","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[72,108,83,75,97,81,24,82,77],"write special chars heredoc",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":31},"01M6KKM8EJ2AATVHZBNB916WT0","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\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[],[116,117,118,119,18,120,121,122,123,124,75,125,126,127,128,129,130,131,132,133],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","api","data","scheduler",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":31},"01M6KKM39PHYK627F19GE2B9XN","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[141,142,143,144,75,145,100,146,147,148,149],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":31},"01M6KKKY7T2P61Y0JH54CDEJKQ","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[157,158,159,160,161,162,82,23,163,164],"directory","verify","structure","verify directory structure","access","first","diagnose","file access"]