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