[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KG7R5SVB1ZAKZQADKAQWYB":3,"skill-same:01M6KG7R5SVB1ZAKZQADKAQWYB":61},{"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":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":14,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M6KG7R5SVB1ZAKZQADKAQWYB","working-directory-resolution",null,"Resolve file access failures by changing to the correct working directory before command execution","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\u002Fworking-directory-resolution\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27],"directory","resolution","working directory resolution","file access","file","execution","access","correct","command","2026-11-10 10:12:30",false,"---\nname: working-directory-resolution\ndescription: Resolve file access failures by changing to the correct working directory before command execution\n---\n\n# Working Directory Resolution Pattern\n\nMany file operation failures occur because the tool's current working directory doesn't match where the target files are located. This skill provides a reliable pattern for resolving such issues.\n\n## Problem Symptoms\n\nFile operations fail with errors like:\n- \"File not found\" or \"No such file or directory\"\n- \"Permission denied\" (when path is actually relative)\n- Tools returning empty results for files that should exist\n\nThese failures often occur even when files are present in the workspace—the working directory context is simply wrong.\n\n## Solution\n\n**Always explicitly set the working directory before file operations** by prepending `cd` to your shell commands.\n\n## Implementation Pattern\n\n### Basic Syntax\n```bash\ncd \u002Fpath\u002Fto\u002Ftarget\u002Fdirectory && your-command-here\n```\n\n### With `run_shell`\n```bash\nrun_shell(command=\"cd \u002Fworkspace\u002Fproject && cat config.json\")\n```\n\n### Multiple Operations in Same Directory\n```bash\ncd \u002Fworkspace\u002Fproject && ls -la && cat README.md && python script.py\n```\n\n### Conditional Directory Change\n```bash\ncd \u002Fworkspace\u002Fproject 2>\u002Fdev\u002Fnull && cat file.txt || echo \"Directory not found\"\n```\n\n## When to Apply\n\nUse this pattern when:\n- `read_file` fails to locate an existing file\n- `execute_code_sandbox` can't find referenced files\n- Shell commands report missing files that should exist\n- File paths work in some contexts but not others\n- You're unsure of the tool's current working directory\n\n## Best Practices\n\n1. **Use absolute paths when possible**\n   ```bash\n   cd \u002Fworkspace\u002Fproject\u002Fsrc && python main.py\n   ```\n\n2. **Combine related operations** to avoid repeated `cd` calls\n   ```bash\n   cd \u002Fworkspace\u002Fproject && .\u002Fbuild.sh && .\u002Ftest.sh\n   ```\n\n3. **Verify directory exists before operations**\n   ```bash\n   [ -d \u002Fworkspace\u002Fproject ] && cd \u002Fworkspace\u002Fproject && ls\n   ```\n\n4. **For scripts, set working directory at the start**\n   ```bash\n   #!\u002Fbin\u002Fbash\n   cd \"$(dirname \"$0\")\" || exit 1\n   # Rest of script runs from script's directory\n   ```\n\n## Common Pitfalls\n\n| Issue | Wrong Approach | Correct Approach |\n|-------|---------------|------------------|\n| Relative paths | `cat config.json` | `cd \u002Fworkspace && cat config.json` |\n| Assumed cwd | `python script.py` | `cd \u002Fworkspace && python script.py` |\n| Multiple dirs | `cd dir1; cd dir2; cmd` | `cd dir1\u002Fdir2 && cmd` |\n\n## Fallback Strategy\n\nIf `cd` also fails:\n1. Use `pwd` to check current directory\n2. Use `find` or `ls -R` to locate files\n3. Verify the path structure with `ls -la \u002Fpath\u002Fto\u002Fcheck`\n\n```bash\npwd && find \u002Fworkspace -name \"target_file.txt\" 2>\u002Fdev\u002Fnull\n```\n\n---\n\nThis pattern is especially valuable when tools like `execute_code_sandbox` or `read_file` fail but `run_shell` with explicit directory context succeeds.","# Working Directory Resolution Pattern\n\nMany file operation failures occur because the tool's current working directory doesn't match where the target files are located. This skill provides a reliable pattern for resolving such issues.\n\n## Problem Symptoms\n\nFile operations fail with errors like:\n- \"File not found\" or \"No such file or directory\"\n- \"Permission denied\" (when path is actually relative)\n- Tools returning empty results for files that should exist\n\nThese failures often occur even when files are present in the workspace—the working directory context is simply wrong.\n\n## Solution\n\n**Always explicitly set the working directory before file operations** by prepending `cd` to your shell commands.\n\n## Implementation Pattern\n\n### Basic Syntax\n```bash\ncd \u002Fpath\u002Fto\u002Ftarget\u002Fdirectory && your-command-here\n```\n\n### With `run_shell`\n```bash\nrun_shell(command=\"cd \u002Fworkspace\u002Fproject && cat config.json\")\n```\n\n### Multiple Operations in Same Directory\n```bash\ncd \u002Fworkspace\u002Fproject && ls -la && cat README.md && python script.py\n```\n\n### Conditional Directory Change\n```bash\ncd \u002Fworkspace\u002Fproject 2>\u002Fdev\u002Fnull && cat file.txt || echo \"Directory not found\"\n```\n\n## When to Apply\n\nUse this pattern when:\n- `read_file` fails to locate an existing file\n- `execute_code_sandbox` can't find referenced files\n- Shell commands report missing files that should exist\n- File paths work in some contexts but not others\n- You're unsure of the tool's current working directory\n\n## Best Practices\n\n1. **Use absolute paths when possible**\n   ```bash\n   cd \u002Fworkspace\u002Fproject\u002Fsrc && python main.py\n   ```\n\n2. **Combine related operations** to avoid repeated `cd` calls\n   ```bash\n   cd \u002Fworkspace\u002Fproject && .\u002Fbuild.sh && .\u002Ftest.sh\n   ```\n\n3. **Verify directory exists before operations**\n   ```bash\n   [ -d \u002Fworkspace\u002Fproject ] && cd \u002Fworkspace\u002Fproject && ls\n   ```\n\n4. **For scripts, set working directory at the start**\n   ```bash\n   #!\u002Fbin\u002Fbash\n   cd \"$(dirname \"$0\")\" || exit 1\n   # Rest of script runs from script's directory\n   ```\n\n## Common Pitfalls\n\n| Issue | Wrong Approach | Correct Approach |\n|-------|---------------|------------------|\n| Relative paths | `cat config.json` | `cd \u002Fworkspace && cat config.json` |\n| Assumed cwd | `python script.py` | `cd \u002Fworkspace && python script.py` |\n| Multiple dirs | `cd dir1; cd dir2; cmd` | `cd dir1\u002Fdir2 && cmd` |\n\n## Fallback Strategy\n\nIf `cd` also fails:\n1. Use `pwd` to check current directory\n2. Use `find` or `ls -R` to locate files\n3. Verify the path structure with `ls -la \u002Fpath\u002Fto\u002Fcheck`\n\n```bash\npwd && find \u002Fworkspace -name \"target_file.txt\" 2>\u002Fdev\u002Fnull\n```\n\n---\n\nThis pattern is especially valuable when tools like `execute_code_sandbox` or `read_file` fail but `run_shell` with explicit directory context succeeds.",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Fworking-directory-resolution","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":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill working-directory-resolution",{"tool":47,"command":48},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill working-directory-resolution",{"tool":50,"command":51},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill working-directory-resolution","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fworking-directory-resolution\u002FSKILL.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},".skill_id","OTHER","其他",42,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fworking-directory-resolution\u002F.skill_id",[62,75,83,98,123,145],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":28},"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",[],[69,70,71,72,73,74],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":28},"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",[],[82,70,72,73,74],"zip deliverable finalization",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":28},"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",[],[90,91,92,93,94,95,96,24,74,97],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","with","issues","system",{"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":109,"publishedAt":28},"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],{"categoryNo":105,"categoryName":106,"taxonomyType":107,"taxonomyTypeDesc":108},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[110,111,23,112,113,114,115,116,117,118,119,120,121,122],"fallback","write","report","write file fallback report","domain","professional","sources","retrieval","generate","embedded","documents","data","knowledge",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":134,"publishedAt":28},"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",[129],{"categoryNo":130,"categoryName":131,"taxonomyType":132,"taxonomyTypeDesc":133},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[135,95,110,136,137,138,120,118,23,139,140,141,111,142,115,143,144],"fallback doc with delegation","doc","delegation","shell","markdown","tool","text","simple","formats","for",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":152,"publishedAt":28},"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",[151],{"categoryNo":105,"categoryName":106,"taxonomyType":107,"taxonomyTypeDesc":108},[110,112,153,154,118,23,155,156,111,157,158,117,95,159,120],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]