[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KFXC4690S75YNAE9W0RGSZ":3,"skill-same:01M6KFXC4690S75YNAE9W0RGSZ":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":14,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6KFXC4690S75YNAE9W0RGSZ","python-spreadsheet-debug",null,"Systematic Python debugging workflow for spreadsheet tasks to isolate environment issues from script logic","xyliu-cs\u002FOpenSpace-GDPval","xyliu-cs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F89236536?v=4","01M6KF8Z1V4TXS86CKSH48BY8T","xy","01M6KF8Z67443W0SHXM85JEF0B",0,"MIT","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpython-spreadsheet-debug\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000004","电子表格","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42],"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","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Fpython-spreadsheet-debug","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs","https:\u002F\u002Fxyliu-cs.github.io","PhD Student in CS, CUHK-Shenzhen.","2026-04-06 20:32:15",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill python-spreadsheet-debug",{"tool":62,"command":63},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill python-spreadsheet-debug",{"tool":65,"command":66},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill python-spreadsheet-debug","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpython-spreadsheet-debug\u002FSKILL.md",true,[70],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},".skill_id","OTHER","其他",38,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fpython-spreadsheet-debug\u002F.skill_id",[77,90,98,113,137,156],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":43},"01M6KG8MF1S664SWBDENYRSCK8","zip-export-deliverable","Ensures codebase deliverables are properly exported as ZIP archives through a dedicated finalization step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-export-deliverable\u002FSKILL.md",[],[84,85,86,87,88,89],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":43},"01M6KG8GAZWHHEK7VNJDW0ME21","zip-deliverable-finalization","Ensure codebase deliverables are properly packaged as ZIP exports in a dedicated final step","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzip-deliverable-finalization\u002FSKILL.md",[],[97,85,87,88,89],"zip deliverable finalization",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":43},"01M6KG8CMQQ1PYMNTSRZ9VS1MD","zero-iteration-failure-analysis","Identify and handle agent failures with 0 iterations as pre-execution system issues","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fzero-iteration-failure-analysis\u002FSKILL.md",[],[105,106,107,108,109,110,36,111,89,112],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","with","execution","system",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":122,"publishedAt":43},"01M6KG86W3PA07FT9W58YHHERM","write-file-fallback-report","Generate professional documents using write_file when primary data sources fail, leveraging embedded domain knowledge instead of external retrieval","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report\u002FSKILL.md",[119],{"categoryNo":120,"categoryName":121,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000034","行政与办公人员",[123,124,125,126,127,128,129,130,131,132,133,134,135,136],"fallback","write","file","report","write file fallback report","domain","professional","sources","retrieval","generate","embedded","documents","data","knowledge",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":146,"publishedAt":43},"01M6KG82GAEY3GG77CMGCK1C2T","fallback-doc-with-delegation","Generate professional documents after tool failures using shell_agent for complex formats or write_file for simple text\u002Fmarkdown","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced\u002FSKILL.md",[143],{"categoryNo":144,"categoryName":145,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[147,110,123,148,149,150,134,132,125,151,152,153,124,154,129,155,41],"fallback doc with delegation","doc","delegation","shell","markdown","tool","text","simple","formats",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":163,"publishedAt":43},"01M6KG7WT7GX5NYCGEFHW22NV7","context-anchored-fallback-report","Generate documents with write_file when retrieval tools fail, with explicit guardrails against task context drift","https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fwrite-file-fallback-report-enhanced-4bc5c2\u002FSKILL.md",[162],{"categoryNo":120,"categoryName":121,"taxonomyType":26,"taxonomyTypeDesc":27},[123,126,164,165,132,125,166,167,124,168,169,131,110,170,134],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]