[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBMX6SY1J70J11Y7AS4HTG":3,"skill-same:01M6XBMX6SY1J70J11Y7AS4HTG":56},{"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":17,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":13,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M6XBMX6SY1J70J11Y7AS4HTG","file-locate-verify",null,"Systematic workflow to resolve FileNotFoundError by locating and verifying file paths","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\u002Ffile-locate-verify\u002FSKILL.md",[],[18,19,20,21,22,23,24],"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","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Ffile-locate-verify","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":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill file-locate-verify",{"tool":42,"command":43},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill file-locate-verify",{"tool":45,"command":46},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill file-locate-verify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Ffile-locate-verify\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},".skill_id","OTHER","其他",32,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Ffile-locate-verify\u002F.skill_id",[57,81,98,107,137,153],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":25},"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",[],[64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,18,80],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","files","only","template","python",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":25},"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",[],[88,89,65,18,90,80,91,92,93,94,95,79,96,97,69,72,74],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification","with",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":25},"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",[],[105,65,69,106,74,92,79,18,80,72],"write special chars heredoc","shell",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":118,"publishedAt":25},"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",[113],{"categoryNo":114,"categoryName":115,"taxonomyType":116,"taxonomyTypeDesc":117},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[119,120,121,122,123,67,124,125,126,127,128,72,129,130,131,132,133,134,135,136],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":25},"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",[],[144,145,146,147,72,148,97,149,150,151,152],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":25},"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",[],[160,161,162,19,163,164,18,165,166,167],"directory","verify directory structure","structure","access","first","issues","diagnose","file access"]