[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBWSF3FPYP4MRSA3WXG4SK":3,"skill-same:01M6XBWSF3FPYP4MRSA3WXG4SK":73},{"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":27,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":13,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6XBWSF3FPYP4MRSA3WXG4SK","python-spreadsheet-debug",null,"Systematic Python debugging workflow for spreadsheet tasks to isolate environment issues from script logic","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\u002Fgdpval_bench\u002Fskills\u002Fpython-spreadsheet-debug\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000004","电子表格","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[28,29,30,31,32,33,34,35,36,37,38,39,40,41],"python","debug","spreadsheet","python spreadsheet debug","workflow","debugging","tasks","issues","environment","logic","systematic","script","for","python debugging","2026-11-10 10:12:30",false,"---\nname: python-spreadsheet-debug\ndescription: Systematic Python debugging workflow for spreadsheet tasks to isolate environment issues from script logic\n---\n\n# Python Spreadsheet Debugging Workflow\n\nWhen executing Python scripts for spreadsheet\u002Fdata processing tasks, use this systematic debugging approach to efficiently isolate environment configuration issues from script logic errors, especially when `run_shell` returns opaque errors.\n\n## Step 1: Verify Python Environment\n\nFirst, confirm the Python interpreter path and version to ensure you're working in the expected environment:\n\n```bash\nwhich python python3\npython --version\npython3 --version\n```\n\nThis identifies whether Python is available and which version is being used.\n\n## Step 2: Test Library Imports in Isolation\n\nBefore running your full script, verify that required libraries can be imported successfully. Test each critical import individually:\n\n```bash\npython -c \"import pandas; print('pandas:', pandas.__version__)\"\npython -c \"import openpyxl; print('openpyxl:', openpyxl.__version__)\"\npython -c \"import xlrd; print('xlrd:', xlrd.__version__)\"\n```\n\nReplace library names based on your script's requirements. This identifies missing dependencies or version conflicts early.\n\n## Step 3: Run Minimal Test Script\n\nCreate and execute a minimal script that exercises only the core functionality without full business logic:\n\n```python\n# test_minimal.py\nimport pandas as pd\n\n# Test 1: Can we read a file?\ntry:\n    df = pd.read_excel('sample.xlsx')\n    print(f\"✓ File read successful: {len(df)} rows\")\nexcept Exception as e:\n    print(f\"✗ File read failed: {e}\")\n\n# Test 2: Can we perform basic operations?\ntry:\n    result = df.groupby('category')['amount'].sum()\n    print(f\"✓ GroupBy operation successful\")\nexcept Exception as e:\n    print(f\"✗ Operation failed: {e}\")\n```\n\nRun this with: `python test_minimal.py`\n\n**Purpose:** This isolates whether the issue is with file access, library functionality, or specific script logic.\n\n## Step 4: Execute Full Script\n\nOnce the minimal test passes, run the complete script:\n\n```bash\npython your_script.py\n```\n\nIf errors occur now, you know the environment is correctly configured and can focus on debugging the specific logic.\n\n## Quick Diagnostic Command\n\nFor rapid diagnosis, run all checks in sequence:\n\n```bash\necho \"=== Python Version ===\" && python --version && \\\necho \"=== Key Imports ===\" && python -c \"import pandas, openpyxl; print('OK')\" && \\\necho \"=== Ready for full script ===\"\n```\n\n## Common Issues and Resolutions\n\n| Symptom | Likely Cause | Resolution |\n|---------|--------------|------------|\n| `ModuleNotFoundError` | Missing package | `pip install \u003Cpackage-name>` |\n| `ImportError` with version | Version conflict | Check `pip list`, reinstall specific version |\n| `FileNotFoundError` | Wrong path\u002Fcontext | Verify working directory with `pwd` |\n| `PermissionError` | File access | Check file permissions or path |\n\n## When to Use This Pattern\n\n- `run_shell` returns cryptic or truncated error messages\n- Script worked previously but suddenly fails\n- Deploying to a new environment or container\n- Debugging spreadsheet processing with pandas, openpyxl, xlrd, etc.\n\n## Benefits\n\n- **Fast isolation:** Identifies environment vs. logic issues within seconds\n- **Incremental confidence:** Each passing step narrows the problem space\n- **Reusable pattern:** Apply consistently across all Python spreadsheet tasks","# Python Spreadsheet Debugging Workflow\n\nWhen executing Python scripts for spreadsheet\u002Fdata processing tasks, use this systematic debugging approach to efficiently isolate environment configuration issues from script logic errors, especially when `run_shell` returns opaque errors.\n\n## Step 1: Verify Python Environment\n\nFirst, confirm the Python interpreter path and version to ensure you're working in the expected environment:\n\n```bash\nwhich python python3\npython --version\npython3 --version\n```\n\nThis identifies whether Python is available and which version is being used.\n\n## Step 2: Test Library Imports in Isolation\n\nBefore running your full script, verify that required libraries can be imported successfully. Test each critical import individually:\n\n```bash\npython -c \"import pandas; print('pandas:', pandas.__version__)\"\npython -c \"import openpyxl; print('openpyxl:', openpyxl.__version__)\"\npython -c \"import xlrd; print('xlrd:', xlrd.__version__)\"\n```\n\nReplace library names based on your script's requirements. This identifies missing dependencies or version conflicts early.\n\n## Step 3: Run Minimal Test Script\n\nCreate and execute a minimal script that exercises only the core functionality without full business logic:\n\n```python\n# test_minimal.py\nimport pandas as pd\n\n# Test 1: Can we read a file?\ntry:\n    df = pd.read_excel('sample.xlsx')\n    print(f\"✓ File read successful: {len(df)} rows\")\nexcept Exception as e:\n    print(f\"✗ File read failed: {e}\")\n\n# Test 2: Can we perform basic operations?\ntry:\n    result = df.groupby('category')['amount'].sum()\n    print(f\"✓ GroupBy operation successful\")\nexcept Exception as e:\n    print(f\"✗ Operation failed: {e}\")\n```\n\nRun this with: `python test_minimal.py`\n\n**Purpose:** This isolates whether the issue is with file access, library functionality, or specific script logic.\n\n## Step 4: Execute Full Script\n\nOnce the minimal test passes, run the complete script:\n\n```bash\npython your_script.py\n```\n\nIf errors occur now, you know the environment is correctly configured and can focus on debugging the specific logic.\n\n## Quick Diagnostic Command\n\nFor rapid diagnosis, run all checks in sequence:\n\n```bash\necho \"=== Python Version ===\" && python --version && \\\necho \"=== Key Imports ===\" && python -c \"import pandas, openpyxl; print('OK')\" && \\\necho \"=== Ready for full script ===\"\n```\n\n## Common Issues and Resolutions\n\n| Symptom | Likely Cause | Resolution |\n|---------|--------------|------------|\n| `ModuleNotFoundError` | Missing package | `pip install \u003Cpackage-name>` |\n| `ImportError` with version | Version conflict | Check `pip list`, reinstall specific version |\n| `FileNotFoundError` | Wrong path\u002Fcontext | Verify working directory with `pwd` |\n| `PermissionError` | File access | Check file permissions or path |\n\n## When to Use This Pattern\n\n- `run_shell` returns cryptic or truncated error messages\n- Script worked previously but suddenly fails\n- Deploying to a new environment or container\n- Debugging spreadsheet processing with pandas, openpyxl, xlrd, etc.\n\n## Benefits\n\n- **Fast isolation:** Identifies environment vs. logic issues within seconds\n- **Incremental confidence:** Each passing step narrows the problem space\n- **Reusable pattern:** Apply consistently across all Python spreadsheet tasks",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fpython-spreadsheet-debug","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":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill python-spreadsheet-debug",{"tool":59,"command":60},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill python-spreadsheet-debug",{"tool":62,"command":63},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill python-spreadsheet-debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpython-spreadsheet-debug\u002FSKILL.md",true,[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},".skill_id","OTHER","其他",38,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpython-spreadsheet-debug\u002F.skill_id",[74,96,113,122,150,166],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":42},"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",[],[81,82,83,84,85,86,87,88,40,89,39,90,91,92,93,94,95,28],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","errors","output","type","files","only","template","file",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":42},"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",[],[103,104,82,95,105,28,106,107,108,109,110,94,111,112,86,40,39],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification","with",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":42},"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",[],[120,82,86,121,39,107,94,95,28,40],"write special chars heredoc","shell",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":131,"publishedAt":42},"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",[128],{"categoryNo":129,"categoryName":130,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000033","数据分析师",[132,133,134,135,136,84,137,138,139,140,141,40,142,143,144,145,146,147,148,149],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":42},"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",[],[157,158,159,160,40,161,112,162,163,164,165],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"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":172,"publishedAt":42},"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",[],[173,174,175,176,177,178,95,35,179,180],"directory","verify directory structure","structure","verify","access","first","diagnose","file access"]