[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KK1Q4GPCRZ00A5YC6S3J9Y":3,"skill-same:01M6KK1Q4GPCRZ00A5YC6S3J9Y":61},{"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":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":13,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M6KK1Q4GPCRZ00A5YC6S3J9Y","shell-error-debug-workflow",null,"Systematic workflow for diagnosing and resolving unknown errors from run_shell commands","AG064\u002FOpenSpace","AG064","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184930299?v=4","01M6KHVFG7TB73NHX3RDYSTMH2","01M6KHVFMM7XA2PZA9Z83PHS3V",0,"MIT","https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fshell-error-debug-workflow\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28],"workflow","debug","shell","error","shell error debug workflow","run","commands","systematic","errors","for","unknown","2026-11-10 10:12:30",false,"---\nname: shell-error-debug-workflow\ndescription: Systematic workflow for diagnosing and resolving unknown errors from run_shell commands\n---\n\n# Shell Error Debug Workflow\n\nWhen `run_shell` returns an 'unknown error' or ambiguous failure, apply this systematic troubleshooting workflow to diagnose and resolve the issue.\n\n## When to Use This Skill\n\n- `run_shell` returns an 'unknown error' message\n- Shell command fails without clear error output\n- Command works locally but fails in the agent environment\n- Intermittent or unexplained shell failures\n\n## Step-by-Step Troubleshooting Workflow\n\n### Step 1: Capture Explicit Stderr\n\nRedirect stderr to stdout to capture all error output:\n\n```bash\n# Instead of:\nrun_shell command=\"some-command\"\n\n# Use:\nrun_shell command=\"some-command 2>&1\"\n```\n\nThis ensures error messages are captured in the output rather than being lost.\n\n### Step 2: Verify Working Directory\n\nConfirm the current working directory and its contents:\n\n```bash\nrun_shell command=\"pwd && ls -la\"\n```\n\nCheck that:\n- You're in the expected directory\n- Required files\u002Fdirectories exist\n- Permissions are correct\n\n### Step 3: Check Tool\u002FCommand Availability\n\nVerify the required command or tool exists and is accessible:\n\n```bash\nrun_shell command=\"which some-command || command -v some-command || type some-command\"\n```\n\nIf the tool is not found, check PATH or install the required package.\n\n### Step 4: Use Absolute Paths\n\nReplace relative paths with absolute paths to avoid directory-related issues:\n\n```bash\n# Instead of:\nrun_shell command=\"python script.py\"\n\n# Use:\nrun_shell command=\"$(pwd)\u002Fscript.py\"\n# or\nrun_shell command=\"\u002Fabsolute\u002Fpath\u002Fto\u002Fscript.py\"\n```\n\n### Step 5: Test with Minimal Command\n\nIsolate the issue by running a minimal version of the command:\n\n```bash\n# Test basic functionality first\nrun_shell command=\"echo 'test'\"\n\n# Then gradually add complexity\nrun_shell command=\"some-command --version\"\nrun_shell command=\"some-command --help\"\n```\n\n### Step 6: Check Environment Variables\n\nSome commands depend on specific environment variables:\n\n```bash\nrun_shell command=\"env | grep -i relevant_var\"\n```\n\n## Complete Diagnostic Sequence\n\nFor persistent unknown errors, run this complete diagnostic:\n\n```bash\n# 1. Capture full environment\nrun_shell command=\"pwd && echo '---' && ls -la && echo '---' && env\"\n\n# 2. Test command with full error capture\nrun_shell command=\"your-command 2>&1 | head -50\"\n\n# 3. Check command availability\nrun_shell command=\"which your-command || echo 'Command not found in PATH'\"\n\n# 4. Try with absolute path\nrun_shell command=\"\u002Ffull\u002Fpath\u002Fto\u002Fyour-command 2>&1\"\n```\n\n## Common Causes and Solutions\n\n| Symptom | Likely Cause | Solution |\n|---------|-------------|----------|\n| No output, unknown error | stderr not captured | Add `2>&1` to command |\n| File not found | Wrong working directory | Use `pwd` to verify, use absolute paths |\n| Permission denied | File\u002Fdirectory permissions | Check with `ls -la`, adjust permissions |\n| Command not found | Tool not installed or not in PATH | Use `which` to check, install or specify full path |\n| Intermittent failures | Race conditions or timing | Add delays, check for file locks |\n\n## Example: Troubleshooting a Python Script Failure\n\n```bash\n# Initial failing command\nrun_shell command=\"python process.py\"\n# Returns: unknown error\n\n# Apply diagnostic workflow:\n# Step 1: Capture stderr\nrun_shell command=\"python process.py 2>&1\"\n\n# Step 2: Verify directory\nrun_shell command=\"pwd && ls -la\"\n\n# Step 3: Check Python availability\nrun_shell command=\"which python && python --version\"\n\n# Step 4: Use absolute path\nrun_shell command=\"$(pwd)\u002Fprocess.py 2>&1\"\n# or\nrun_shell command=\"\u002Fusr\u002Fbin\u002Fpython3 $(pwd)\u002Fprocess.py 2>&1\"\n```\n\n## Best Practices\n\n1. **Always capture stderr** when debugging: `2>&1`\n2. **Verify assumptions** about working directory and file locations\n3. **Start simple** before running complex commands\n4. **Use absolute paths** in production\u002Frepeatable scripts\n5. **Check tool versions** when behavior seems inconsistent\n6. **Document environment** when errors are hard to reproduce\n\n## When to Escalate\n\nIf this workflow does not resolve the issue:\n- The error may be environmental (container\u002Fruntime specific)\n- Consider using `shell_agent` for complex shell tasks that require autonomous error handling\n- Check for resource constraints (disk space, memory, timeouts)","# Shell Error Debug Workflow\n\nWhen `run_shell` returns an 'unknown error' or ambiguous failure, apply this systematic troubleshooting workflow to diagnose and resolve the issue.\n\n## When to Use This Skill\n\n- `run_shell` returns an 'unknown error' message\n- Shell command fails without clear error output\n- Command works locally but fails in the agent environment\n- Intermittent or unexplained shell failures\n\n## Step-by-Step Troubleshooting Workflow\n\n### Step 1: Capture Explicit Stderr\n\nRedirect stderr to stdout to capture all error output:\n\n```bash\n# Instead of:\nrun_shell command=\"some-command\"\n\n# Use:\nrun_shell command=\"some-command 2>&1\"\n```\n\nThis ensures error messages are captured in the output rather than being lost.\n\n### Step 2: Verify Working Directory\n\nConfirm the current working directory and its contents:\n\n```bash\nrun_shell command=\"pwd && ls -la\"\n```\n\nCheck that:\n- You're in the expected directory\n- Required files\u002Fdirectories exist\n- Permissions are correct\n\n### Step 3: Check Tool\u002FCommand Availability\n\nVerify the required command or tool exists and is accessible:\n\n```bash\nrun_shell command=\"which some-command || command -v some-command || type some-command\"\n```\n\nIf the tool is not found, check PATH or install the required package.\n\n### Step 4: Use Absolute Paths\n\nReplace relative paths with absolute paths to avoid directory-related issues:\n\n```bash\n# Instead of:\nrun_shell command=\"python script.py\"\n\n# Use:\nrun_shell command=\"$(pwd)\u002Fscript.py\"\n# or\nrun_shell command=\"\u002Fabsolute\u002Fpath\u002Fto\u002Fscript.py\"\n```\n\n### Step 5: Test with Minimal Command\n\nIsolate the issue by running a minimal version of the command:\n\n```bash\n# Test basic functionality first\nrun_shell command=\"echo 'test'\"\n\n# Then gradually add complexity\nrun_shell command=\"some-command --version\"\nrun_shell command=\"some-command --help\"\n```\n\n### Step 6: Check Environment Variables\n\nSome commands depend on specific environment variables:\n\n```bash\nrun_shell command=\"env | grep -i relevant_var\"\n```\n\n## Complete Diagnostic Sequence\n\nFor persistent unknown errors, run this complete diagnostic:\n\n```bash\n# 1. Capture full environment\nrun_shell command=\"pwd && echo '---' && ls -la && echo '---' && env\"\n\n# 2. Test command with full error capture\nrun_shell command=\"your-command 2>&1 | head -50\"\n\n# 3. Check command availability\nrun_shell command=\"which your-command || echo 'Command not found in PATH'\"\n\n# 4. Try with absolute path\nrun_shell command=\"\u002Ffull\u002Fpath\u002Fto\u002Fyour-command 2>&1\"\n```\n\n## Common Causes and Solutions\n\n| Symptom | Likely Cause | Solution |\n|---------|-------------|----------|\n| No output, unknown error | stderr not captured | Add `2>&1` to command |\n| File not found | Wrong working directory | Use `pwd` to verify, use absolute paths |\n| Permission denied | File\u002Fdirectory permissions | Check with `ls -la`, adjust permissions |\n| Command not found | Tool not installed or not in PATH | Use `which` to check, install or specify full path |\n| Intermittent failures | Race conditions or timing | Add delays, check for file locks |\n\n## Example: Troubleshooting a Python Script Failure\n\n```bash\n# Initial failing command\nrun_shell command=\"python process.py\"\n# Returns: unknown error\n\n# Apply diagnostic workflow:\n# Step 1: Capture stderr\nrun_shell command=\"python process.py 2>&1\"\n\n# Step 2: Verify directory\nrun_shell command=\"pwd && ls -la\"\n\n# Step 3: Check Python availability\nrun_shell command=\"which python && python --version\"\n\n# Step 4: Use absolute path\nrun_shell command=\"$(pwd)\u002Fprocess.py 2>&1\"\n# or\nrun_shell command=\"\u002Fusr\u002Fbin\u002Fpython3 $(pwd)\u002Fprocess.py 2>&1\"\n```\n\n## Best Practices\n\n1. **Always capture stderr** when debugging: `2>&1`\n2. **Verify assumptions** about working directory and file locations\n3. **Start simple** before running complex commands\n4. **Use absolute paths** in production\u002Frepeatable scripts\n5. **Check tool versions** when behavior seems inconsistent\n6. **Document environment** when errors are hard to reproduce\n\n## When to Escalate\n\nIf this workflow does not resolve the issue:\n- The error may be environmental (container\u002Fruntime specific)\n- Consider using `shell_agent` for complex shell tasks that require autonomous error handling\n- Check for resource constraints (disk space, memory, timeouts)",{"name":5,"description":7},"main","ff671ef61ed6587c49bd54c81cdc751c0b99e363","gdpval_bench\u002Fskills\u002Fshell-error-debug-workflow","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":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add AG064\u002FOpenSpace --skill shell-error-debug-workflow",{"tool":47,"command":48},"bunx","bunx skills add AG064\u002FOpenSpace --skill shell-error-debug-workflow",{"tool":50,"command":51},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill shell-error-debug-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fshell-error-debug-workflow\u002FSKILL.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},".skill_id","OTHER","其他",40,"https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fshell-error-debug-workflow\u002F.skill_id",[62,84,101,109,134,150],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":29},"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",[],[69,70,71,72,73,74,27,26,75,76,77,78,79,80,81,82,83],"write special chars ts check","check","write","filters","Existing","type-checking","script","output","type","files","only","template","file","python","typescript",{"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":29},"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,71,80,93,94,81,82,95,96,97,98,99,27,75,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":29},"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",[],[71,108,82,27,97,80,20,81,75],"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":29},"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,83,120,121,122,123,124,27,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":29},"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,27,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":29},"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,81,163,164,165],"directory","verify","structure","verify directory structure","access","first","issues","diagnose","file access"]