[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HWHWNQZ5N8SXSB1YG0B6PE":3,"skill-same:01M6HWHWNQZ5N8SXSB1YG0B6PE":60},{"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":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":6,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M6HWHWNQZ5N8SXSB1YG0B6PE","locate-missing-artifacts",null,"Recover generated files in sandboxed environments by searching from confirmed roots and copying to expected locations","HKUDS\u002FAgentPilot","HKUDS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F118165258?v=4","01M6HW8VRNZP64G0P4MVJW2KKQ","✨Data Intelligence Lab@HKU✨","01M6HW8VWZVHBRHYH3T330PFWV",8029,"MIT","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Flocate-missing-artifacts\u002FSKILL.md",[],[19,20,21,22,23,24,25,26],"artifacts","missing","locate","locate missing artifacts","generated","files","environments","expected","2026-11-10 10:12:30",false,"---\nname: locate-missing-artifacts\ndescription: Recover generated files in sandboxed environments by searching from confirmed roots and copying to expected locations\n---\n\n# Locate Missing Artifacts in Sandboxed Environments\n\n## When to Use This Skill\n\nUse this skill when:\n- A tool reports success but files are not found in their expected locations\n- You receive errors like \"file not found\" after a tool claims to have created it\n- You're working in a sandboxed\u002Fephemeral environment where file paths may shift\n- Directory structure mismatches occur between tool execution and validation\n\n## Step-by-Step Instructions\n\n### Step 1: Confirm the Failure\n\nBefore searching, verify the file is actually missing from the expected location:\n\n```bash\nls -la \u002Fexpected\u002Fpath\u002Ffilename.ext\n# or\ntest -f \u002Fexpected\u002Fpath\u002Ffilename.ext && echo \"Found\" || echo \"Missing\"\n```\n\n### Step 2: Identify Confirmed Root Directories\n\nDetermine which directories you know exist and where tools typically write:\n\n```bash\n# Common roots to check\nls -la \u002F\nls -la $HOME\nls -la \u002Ftmp\nls -la \u002Fworkspace\nls -la .\n```\n\n### Step 3: Search for the Artifact Using `find`\n\nUse `find` from confirmed root directories to locate the missing file:\n\n```bash\n# Search by filename\nfind \u002Fworkspace -name \"filename.ext\" 2>\u002Fdev\u002Fnull\n\n# Search by pattern if exact name varies\nfind \u002Fworkspace -name \"*.ext\" 2>\u002Fdev\u002Fnull\n\n# Search broader paths if needed\nfind \u002F -name \"filename.ext\" 2>\u002Fdev\u002Fnull | head -20\n```\n\n### Step 4: Copy Artifact to Expected Location\n\nOnce located, explicitly copy the file to where it should be:\n\n```bash\n# Copy to expected location\ncp \u002Ffound\u002Fpath\u002Ffilename.ext \u002Fexpected\u002Fpath\u002Ffilename.ext\n\n# Or if you need to preserve the original\ncp -r \u002Ffound\u002Fpath\u002Ffilename.ext \u002Fexpected\u002Fpath\u002F\n\n# Verify the copy succeeded\nls -la \u002Fexpected\u002Fpath\u002Ffilename.ext\n```\n\n### Step 5: Validate Before Proceeding\n\nConfirm the file is now accessible at the expected location:\n\n```bash\n# Test file exists and is readable\ntest -f \u002Fexpected\u002Fpath\u002Ffilename.ext && test -r \u002Fexpected\u002Fpath\u002Ffilename.ext && echo \"Ready\"\n\n# Check file size to ensure it's not empty\nstat \u002Fexpected\u002Fpath\u002Ffilename.ext\n```\n\n## Common Patterns\n\n### Pattern: Output Written to Wrong Directory\n\n```bash\n# Tool wrote to current directory instead of specified output dir\nfind . -name \"*.docx\" -type f\ncp .\u002Freport.docx .\u002Foutput\u002Freport.docx\n```\n\n### Pattern: Temporary Directory Used\n\n```bash\n# File ended up in \u002Ftmp or similar\nfind \u002Ftmp -name \"*.pdf\" -mtime -1\ncp \u002Ftmp\u002Fgenerated.pdf .\u002Fdeliverables\u002F\n```\n\n### Pattern: Nested Subdirectory Created\n\n```bash\n# Tool created extra directory levels\nfind \u002Fworkspace -type f -name \"*.xlsx\"\n# May find: \u002Fworkspace\u002Foutput\u002F2024\u002Freports\u002Ffile.xlsx\ncp \u002Fworkspace\u002Foutput\u002F2024\u002Freports\u002Ffile.xlsx \u002Fworkspace\u002Fdeliverables\u002F\n```\n\n## Prevention Tips\n\n1. **Always specify absolute paths** when giving tools output locations\n2. **Check the working directory** before and after tool execution: `pwd`\n3. **Verify immediately** after a tool reports success before proceeding\n4. **Use tool-specific confirmations** when available (e.g., return paths)\n\n## Example: Complete Recovery Workflow\n\n```bash\n# 1. Tool reported creating report.docx but it's missing\nls .\u002Fdeliverables\u002Freport.docx\n# Output: ls: cannot access '.\u002Fdeliverables\u002Freport.docx': No such file or directory\n\n# 2. Search for it\nfind \u002Fworkspace -name \"report.docx\" 2>\u002Fdev\u002Fnull\n# Output: \u002Fworkspace\u002Ftmp\u002Fgenerated\u002Freport.docx\n\n# 3. Copy to expected location\nmkdir -p .\u002Fdeliverables\ncp \u002Fworkspace\u002Ftmp\u002Fgenerated\u002Freport.docx .\u002Fdeliverables\u002Freport.docx\n\n# 4. Validate\nls -la .\u002Fdeliverables\u002Freport.docx\n# Output: -rw-r--r-- 1 user user 45678 Jan 15 10:30 .\u002Fdeliverables\u002Freport.docx\n\n# Success - file is now where it should be\n```\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| `find` returns no results | Expand search to broader paths (`\u002F`, `\u002Fhome`, `\u002Froot`) |\n| Multiple matches found | Check timestamps (`-mtime -1`) or file sizes to identify the correct one |\n| Permission denied on copy | Use `sudo` if available, or check if file is in a read-only mount |\n| File exists but is empty | The tool may have failed silently; regenerate the artifact |","# Locate Missing Artifacts in Sandboxed Environments\n\n## When to Use This Skill\n\nUse this skill when:\n- A tool reports success but files are not found in their expected locations\n- You receive errors like \"file not found\" after a tool claims to have created it\n- You're working in a sandboxed\u002Fephemeral environment where file paths may shift\n- Directory structure mismatches occur between tool execution and validation\n\n## Step-by-Step Instructions\n\n### Step 1: Confirm the Failure\n\nBefore searching, verify the file is actually missing from the expected location:\n\n```bash\nls -la \u002Fexpected\u002Fpath\u002Ffilename.ext\n# or\ntest -f \u002Fexpected\u002Fpath\u002Ffilename.ext && echo \"Found\" || echo \"Missing\"\n```\n\n### Step 2: Identify Confirmed Root Directories\n\nDetermine which directories you know exist and where tools typically write:\n\n```bash\n# Common roots to check\nls -la \u002F\nls -la $HOME\nls -la \u002Ftmp\nls -la \u002Fworkspace\nls -la .\n```\n\n### Step 3: Search for the Artifact Using `find`\n\nUse `find` from confirmed root directories to locate the missing file:\n\n```bash\n# Search by filename\nfind \u002Fworkspace -name \"filename.ext\" 2>\u002Fdev\u002Fnull\n\n# Search by pattern if exact name varies\nfind \u002Fworkspace -name \"*.ext\" 2>\u002Fdev\u002Fnull\n\n# Search broader paths if needed\nfind \u002F -name \"filename.ext\" 2>\u002Fdev\u002Fnull | head -20\n```\n\n### Step 4: Copy Artifact to Expected Location\n\nOnce located, explicitly copy the file to where it should be:\n\n```bash\n# Copy to expected location\ncp \u002Ffound\u002Fpath\u002Ffilename.ext \u002Fexpected\u002Fpath\u002Ffilename.ext\n\n# Or if you need to preserve the original\ncp -r \u002Ffound\u002Fpath\u002Ffilename.ext \u002Fexpected\u002Fpath\u002F\n\n# Verify the copy succeeded\nls -la \u002Fexpected\u002Fpath\u002Ffilename.ext\n```\n\n### Step 5: Validate Before Proceeding\n\nConfirm the file is now accessible at the expected location:\n\n```bash\n# Test file exists and is readable\ntest -f \u002Fexpected\u002Fpath\u002Ffilename.ext && test -r \u002Fexpected\u002Fpath\u002Ffilename.ext && echo \"Ready\"\n\n# Check file size to ensure it's not empty\nstat \u002Fexpected\u002Fpath\u002Ffilename.ext\n```\n\n## Common Patterns\n\n### Pattern: Output Written to Wrong Directory\n\n```bash\n# Tool wrote to current directory instead of specified output dir\nfind . -name \"*.docx\" -type f\ncp .\u002Freport.docx .\u002Foutput\u002Freport.docx\n```\n\n### Pattern: Temporary Directory Used\n\n```bash\n# File ended up in \u002Ftmp or similar\nfind \u002Ftmp -name \"*.pdf\" -mtime -1\ncp \u002Ftmp\u002Fgenerated.pdf .\u002Fdeliverables\u002F\n```\n\n### Pattern: Nested Subdirectory Created\n\n```bash\n# Tool created extra directory levels\nfind \u002Fworkspace -type f -name \"*.xlsx\"\n# May find: \u002Fworkspace\u002Foutput\u002F2024\u002Freports\u002Ffile.xlsx\ncp \u002Fworkspace\u002Foutput\u002F2024\u002Freports\u002Ffile.xlsx \u002Fworkspace\u002Fdeliverables\u002F\n```\n\n## Prevention Tips\n\n1. **Always specify absolute paths** when giving tools output locations\n2. **Check the working directory** before and after tool execution: `pwd`\n3. **Verify immediately** after a tool reports success before proceeding\n4. **Use tool-specific confirmations** when available (e.g., return paths)\n\n## Example: Complete Recovery Workflow\n\n```bash\n# 1. Tool reported creating report.docx but it's missing\nls .\u002Fdeliverables\u002Freport.docx\n# Output: ls: cannot access '.\u002Fdeliverables\u002Freport.docx': No such file or directory\n\n# 2. Search for it\nfind \u002Fworkspace -name \"report.docx\" 2>\u002Fdev\u002Fnull\n# Output: \u002Fworkspace\u002Ftmp\u002Fgenerated\u002Freport.docx\n\n# 3. Copy to expected location\nmkdir -p .\u002Fdeliverables\ncp \u002Fworkspace\u002Ftmp\u002Fgenerated\u002Freport.docx .\u002Fdeliverables\u002Freport.docx\n\n# 4. Validate\nls -la .\u002Fdeliverables\u002Freport.docx\n# Output: -rw-r--r-- 1 user user 45678 Jan 15 10:30 .\u002Fdeliverables\u002Freport.docx\n\n# Success - file is now where it should be\n```\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| `find` returns no results | Expand search to broader paths (`\u002F`, `\u002Fhome`, `\u002Froot`) |\n| Multiple matches found | Check timestamps (`-mtime -1`) or file sizes to identify the correct one |\n| Permission denied on copy | Use `sudo` if available, or check if file is in a read-only mount |\n| File exists but is empty | The tool may have failed silently; regenerate the artifact |",{"name":5,"description":7},"main","6b84b0689ca0d9e7b1e4061188ff6b60758e0f8a","openspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Flocate-missing-artifacts",944,"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot","https:\u002F\u002Fgithub.com\u002FHKUDS","https:\u002F\u002Fsites.google.com\u002Fview\u002Fchaoh","2026-11-12 22:26:39",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add HKUDS\u002FAgentPilot --skill locate-missing-artifacts",{"tool":46,"command":47},"bunx","bunx skills add HKUDS\u002FAgentPilot --skill locate-missing-artifacts",{"tool":49,"command":50},"pnpm","pnpm dlx skills add HKUDS\u002FAgentPilot --skill locate-missing-artifacts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Flocate-missing-artifacts\u002FSKILL.md",true,[54],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},".skill_id","OTHER","其他",38,"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Flocate-missing-artifacts\u002F.skill_id",[61,80,99,124,148,170],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":27},"01M6HYB297NDABRERJRVG0K8R0","agentpilot","Set up AgentPilot and use its single entry to prepare missing inputs and run configured RSI experiments. Use when the user requests AgentPilot installation or work with AgentPilot.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fplugins\u002Fagentpilot\u002Fskills\u002Fagentpilot\u002FSKILL.md",[],[63,68,69,70,20,71,72,73,74,75,76,77,78,79],"prepare","requests","with","installation","rsi","up","use","user","work","SET","run","experiments",{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":27},"01M6HYAYWXTTE1J7DJM0MFNQ4H","remember","Review auto-memory entries and propose promotions to OPENSPACE.md, OPENSPACE.local.md, or retained auto-memory topics; detect duplicates, stale facts, conflicts, and ambiguous entries before making changes.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fskills\u002Fremember\u002FSKILL.md",[],[82,87,88,89,90,91,92,93,94,95,96,97,98],"memory","review","auto","openspace","changes","facts","detect","entries","local","conflicts","stale","duplicates",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":110,"publishedAt":27},"01M6HYAVMPM4SBDV60R2B5HPV8","skill-discovery","Search reusable OpenSpace skills locally, and browse cloud packages step by step when a cloud skill may help. Reusing proven skills saves tokens, improves reliability, and extends your capabilities beyond built-in tools.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fhost_skills\u002Fskill-discovery\u002FSKILL.md",[105],{"categoryNo":106,"categoryName":107,"taxonomyType":108,"taxonomyTypeDesc":109},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[111,112,113,90,114,115,116,117,118,119,120,121,122,123],"skill discovery","discovery","reusable","step by step","tokens","packages","help","cloud","reliability","capabilities","browse","search","Tools",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":131,"publishedAt":27},"01M6HYAR811B3RB0M50RBEDGN6","delegate-task","Delegate tasks to OpenSpace — a full-stack autonomous worker for coding, DevOps, web research, and desktop automation, backed by an extensive MCP tool and skill library. Skills auto-improve through use, reducing token consumption over time. A cloud community lets agents share and collectively evolve reusable skills.","https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fopenspace\u002Fhost_skills\u002Fdelegate-task\u002FSKILL.md",[130],{"categoryNo":106,"categoryName":107,"taxonomyType":108,"taxonomyTypeDesc":109},[132,133,134,90,135,136,137,138,139,113,89,74,140,141,142,143,144,145,146,147],"delegate","task","delegate task","time","improve","desktop automation","worker","community","autonomous","tool","stack","for","share","tasks","automation","MCP",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":27},"01M6HYAM9FSGV6E52AYENDQXYH","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\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[155,156,157,158,24,159,160,161,162,163,164,165,166,167,143,168,169],"write special chars ts check","write","check","type","filters","only","template","file","python","typescript","output","Existing","type-checking","errors","script",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":27},"01M6HYAH05HGV7SVWSVR8PJRQD","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\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Flegacy\u002Fv1\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[177,178,156,70,143,169,179,180,181,182,183,161,162,184,185,163],"write special chars readback","readback","helper","post","via","scripts","read","verification","cleanup"]