[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KFHK0SB5165QMBC5XMRR3K":3,"skill-same:01M6KFHK0SB5165QMBC5XMRR3K":59},{"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":18,"publishedAt":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":14,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M6KFHK0SB5165QMBC5XMRR3K","file-locate-verify",null,"Systematic workflow to resolve FileNotFoundError by locating and verifying file paths","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\u002Ffile-locate-verify\u002FSKILL.md",[],[19,20,21,22,23,24,25],"file","verify","locate","file locate verify","workflow","systematic","paths","2026-11-10 10:12:30",false,"---\nname: file-locate-verify\ndescription: Systematic workflow to resolve FileNotFoundError by locating and verifying file paths\n---\n\n# File Locate and Verify Workflow\n\nWhen encountering FileNotFoundError or uncertain file paths, follow this systematic pattern to safely locate and verify files before executing operations.\n\n## When to Use\n\n- You receive a FileNotFoundError or similar path-related error\n- You need to work with files whose exact location is unknown\n- You want to verify file existence before executing operations that depend on those files\n\n## Step-by-Step Procedure\n\n### Step 1: Check Current Directory Contents\n\nFirst, use `list_dir` to inspect what files exist in your current working directory:\n\n```python\n# Use the list_dir tool to see current directory contents\nlist_dir(path=\".\")\n```\n\nThis reveals files in the immediate context and helps determine if you need to search elsewhere.\n\n### Step 2: Search for the File Using Find\n\nIf the file is not in the current directory, use the `find` command to locate it by name:\n\n```bash\n# Search for a specific file by name (case-insensitive)\nfind . -iname \"filename.pdf\" 2>\u002Fdev\u002Fnull\n\n# Or search from root for system-wide files\nfind \u002F -name \"filename.pdf\" 2>\u002Fdev\u002Fnull\n```\n\n**Tips:**\n- Use `-iname` for case-insensitive matching\n- Redirect stderr with `2>\u002Fdev\u002Fnull` to suppress permission errors\n- Narrow the search scope when possible for better performance\n\n### Step 3: Verify the Discovered Path\n\nBefore executing any operations on the discovered file, verify it exists and check its properties:\n\n```bash\n# Verify file existence and permissions at the full path\nls -la \u002Ffull\u002Fpath\u002Fto\u002Fdiscovered\u002Ffile.pdf\n```\n\nThis confirms:\n- The file actually exists at the located path\n- File permissions (can you read\u002Fwrite it?)\n- File size and modification time\n\n### Step 4: Execute Your Operation Safely\n\nOnly after verification, proceed with your intended operation:\n\n```python\n# Now safe to work with the verified path\nfile_path = \"\u002Ffull\u002Fpath\u002Fto\u002Fdiscovered\u002Ffile.pdf\"\n# ... your extraction or processing code here\n```\n\n## Complete Example\n\n```python\n# Task: Process a file that may be in an unknown location\n\n# Step 1: Check current directory\ndir_contents = list_dir(path=\".\")\nprint(f\"Current directory contains: {dir_contents}\")\n\n# Step 2: Find the file if not present\nif \"target_file.xlsx\" not in dir_contents:\n    result = run_shell(command='find . -iname \"target_file.xlsx\" 2>\u002Fdev\u002Fnull')\n    file_path = result.stdout.strip().split('\\n')[0]\n    print(f\"Found file at: {file_path}\")\n\n# Step 3: Verify before proceeding\nverification = run_shell(command=f'ls -la {file_path}')\nprint(f\"Verification: {verification.stdout}\")\n\n# Step 4: Proceed with operation\n# ... your code to process the file\n```\n\n## Common Pitfalls to Avoid\n\n1. **Skipping verification**: Never assume the path from `find` is correct without checking\n2. **Using relative paths blindly**: Always convert to absolute paths when possible\n3. **Ignoring permissions**: `ls -la` reveals if you have read\u002Fwrite access\n4. **Hardcoding paths**: Always dynamically locate files when location is uncertain\n\n## Related Tools\n\n- `list_dir`: Inspect directory contents\n- `run_shell`: Execute find and ls commands\n- `read_file`: Read file contents after verification\n- `shell_agent`: Delegate complex file operations after path is confirmed","# File Locate and Verify Workflow\n\nWhen encountering FileNotFoundError or uncertain file paths, follow this systematic pattern to safely locate and verify files before executing operations.\n\n## When to Use\n\n- You receive a FileNotFoundError or similar path-related error\n- You need to work with files whose exact location is unknown\n- You want to verify file existence before executing operations that depend on those files\n\n## Step-by-Step Procedure\n\n### Step 1: Check Current Directory Contents\n\nFirst, use `list_dir` to inspect what files exist in your current working directory:\n\n```python\n# Use the list_dir tool to see current directory contents\nlist_dir(path=\".\")\n```\n\nThis reveals files in the immediate context and helps determine if you need to search elsewhere.\n\n### Step 2: Search for the File Using Find\n\nIf the file is not in the current directory, use the `find` command to locate it by name:\n\n```bash\n# Search for a specific file by name (case-insensitive)\nfind . -iname \"filename.pdf\" 2>\u002Fdev\u002Fnull\n\n# Or search from root for system-wide files\nfind \u002F -name \"filename.pdf\" 2>\u002Fdev\u002Fnull\n```\n\n**Tips:**\n- Use `-iname` for case-insensitive matching\n- Redirect stderr with `2>\u002Fdev\u002Fnull` to suppress permission errors\n- Narrow the search scope when possible for better performance\n\n### Step 3: Verify the Discovered Path\n\nBefore executing any operations on the discovered file, verify it exists and check its properties:\n\n```bash\n# Verify file existence and permissions at the full path\nls -la \u002Ffull\u002Fpath\u002Fto\u002Fdiscovered\u002Ffile.pdf\n```\n\nThis confirms:\n- The file actually exists at the located path\n- File permissions (can you read\u002Fwrite it?)\n- File size and modification time\n\n### Step 4: Execute Your Operation Safely\n\nOnly after verification, proceed with your intended operation:\n\n```python\n# Now safe to work with the verified path\nfile_path = \"\u002Ffull\u002Fpath\u002Fto\u002Fdiscovered\u002Ffile.pdf\"\n# ... your extraction or processing code here\n```\n\n## Complete Example\n\n```python\n# Task: Process a file that may be in an unknown location\n\n# Step 1: Check current directory\ndir_contents = list_dir(path=\".\")\nprint(f\"Current directory contains: {dir_contents}\")\n\n# Step 2: Find the file if not present\nif \"target_file.xlsx\" not in dir_contents:\n    result = run_shell(command='find . -iname \"target_file.xlsx\" 2>\u002Fdev\u002Fnull')\n    file_path = result.stdout.strip().split('\\n')[0]\n    print(f\"Found file at: {file_path}\")\n\n# Step 3: Verify before proceeding\nverification = run_shell(command=f'ls -la {file_path}')\nprint(f\"Verification: {verification.stdout}\")\n\n# Step 4: Proceed with operation\n# ... your code to process the file\n```\n\n## Common Pitfalls to Avoid\n\n1. **Skipping verification**: Never assume the path from `find` is correct without checking\n2. **Using relative paths blindly**: Always convert to absolute paths when possible\n3. **Ignoring permissions**: `ls -la` reveals if you have read\u002Fwrite access\n4. **Hardcoding paths**: Always dynamically locate files when location is uncertain\n\n## Related Tools\n\n- `list_dir`: Inspect directory contents\n- `run_shell`: Execute find and ls commands\n- `read_file`: Read file contents after verification\n- `shell_agent`: Delegate complex file operations after path is confirmed",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Ffile-locate-verify","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":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill file-locate-verify",{"tool":45,"command":46},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill file-locate-verify",{"tool":48,"command":49},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill file-locate-verify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Ffile-locate-verify\u002FSKILL.md",true,[53],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},".skill_id","OTHER","其他",32,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Ffile-locate-verify\u002F.skill_id",[60,73,81,97,117,134],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":26},"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",[],[67,68,69,70,71,72],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":26},"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",[],[80,68,70,71,72],"zip deliverable finalization",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":26},"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",[],[88,89,90,91,92,93,94,95,72,96],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","with","issues","execution","system",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":26},"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",[],[104,105,19,106,107,108,109,110,111,112,113,114,115,116],"fallback","write","report","write file fallback report","domain","professional","sources","retrieval","generate","embedded","documents","data","knowledge",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":26},"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",[],[124,93,104,125,126,127,114,112,19,128,129,130,105,131,109,132,133],"fallback doc with delegation","doc","delegation","shell","markdown","tool","text","simple","formats","for",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":26},"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",[],[104,106,141,142,112,19,143,144,105,145,146,111,93,147,114],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]