[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KG2QC9H02WET7GVFDVC93A":3,"skill-same:01M6KG2QC9H02WET7GVFDVC93A":63},{"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":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":14,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6KG2QC9H02WET7GVFDVC93A","shell-doc-gen-and-locate",null,"Generate documents via shell commands and locate nested outputs using find.","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\u002Fshell-doc-gen-and-locate\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"doc","shell","locate","doc gen","shell doc gen and locate","documents","generate","find","nested","commands","via","2026-11-10 10:12:30",false,"---\nname: shell-doc-gen-and-locate\ndescription: Generate documents via shell commands and locate nested outputs using find.\n---\n\n# Shell Document Generation and Retrieval Workflow\n\n## Objective\nEnable reliable file creation (e.g., PowerPoint, PDFs) when direct API or library-based generation fails, ensuring the final artifact is located and moved to the working directory regardless of nested output paths.\n\n## When to Use\n- Standard document generation tools (e.g., direct Python library calls in-memory) fail or are unavailable.\n- The `shell_agent` capability is available for executing scripts.\n- Generated files may be saved in unpredictable nested directories within the workspace.\n\n## Procedure\n\n### 1. Attempt Shell-Based Generation\nIf direct tool invocation fails, delegate file creation to a shell-executed script.\n\n- Write a script (e.g., `generate_presentation.py` or `make_doc.sh`) that produces the file.\n- Execute the script via the shell agent.\n- Ensure the script prints confirmation upon completion.\n\n### 2. Locate the Output File\nDo not assume the file is in the current directory. Shell scripts often create outputs in nested folders (e.g., `.\u002Fworkspace\u002Foutput\u002F`, `.\u002Fbuild\u002F`).\n\n- Use the `find` command to search the workspace recursively.\n- Example for PowerPoint files:\n\n    find . -type f -name \"*.pptx\"\n\n- Example for PDF files:\n\n    find . -type f -name \"*.pdf\"\n\n- Filter results by modification time if multiple versions exist (e.g., `-mmin -10`).\n\n### 3. Retrieve to Working Directory\nOnce the file path is identified:\n\n- Copy the file to the root working directory or the expected delivery location.\n\n    cp \u002Fpath\u002Fto\u002Fnested\u002Ffile.pptx .\u002F\n\n- Verify the file exists and is non-zero size.\n\n### 4. Verification\n- Confirm the file opens correctly or meets size expectations.\n- If the file is not found after `find`, check stderr of the generation script for path clues.\n\n## Best Practices\n- **Explicit Paths:** Whenever possible, configure generation scripts to output to a known relative path (e.g., `.\u002Foutput\u002Ffilename.pptx`).\n- **Cleanup:** Remove nested temporary copies after retrieving the final version to avoid confusion.\n- **Logging:** Echo the final absolute path of the generated file in the script stdout to simplify locating.","# Shell Document Generation and Retrieval Workflow\n\n## Objective\nEnable reliable file creation (e.g., PowerPoint, PDFs) when direct API or library-based generation fails, ensuring the final artifact is located and moved to the working directory regardless of nested output paths.\n\n## When to Use\n- Standard document generation tools (e.g., direct Python library calls in-memory) fail or are unavailable.\n- The `shell_agent` capability is available for executing scripts.\n- Generated files may be saved in unpredictable nested directories within the workspace.\n\n## Procedure\n\n### 1. Attempt Shell-Based Generation\nIf direct tool invocation fails, delegate file creation to a shell-executed script.\n\n- Write a script (e.g., `generate_presentation.py` or `make_doc.sh`) that produces the file.\n- Execute the script via the shell agent.\n- Ensure the script prints confirmation upon completion.\n\n### 2. Locate the Output File\nDo not assume the file is in the current directory. Shell scripts often create outputs in nested folders (e.g., `.\u002Fworkspace\u002Foutput\u002F`, `.\u002Fbuild\u002F`).\n\n- Use the `find` command to search the workspace recursively.\n- Example for PowerPoint files:\n\n    find . -type f -name \"*.pptx\"\n\n- Example for PDF files:\n\n    find . -type f -name \"*.pdf\"\n\n- Filter results by modification time if multiple versions exist (e.g., `-mmin -10`).\n\n### 3. Retrieve to Working Directory\nOnce the file path is identified:\n\n- Copy the file to the root working directory or the expected delivery location.\n\n    cp \u002Fpath\u002Fto\u002Fnested\u002Ffile.pptx .\u002F\n\n- Verify the file exists and is non-zero size.\n\n### 4. Verification\n- Confirm the file opens correctly or meets size expectations.\n- If the file is not found after `find`, check stderr of the generation script for path clues.\n\n## Best Practices\n- **Explicit Paths:** Whenever possible, configure generation scripts to output to a known relative path (e.g., `.\u002Foutput\u002Ffilename.pptx`).\n- **Cleanup:** Remove nested temporary copies after retrieving the final version to avoid confusion.\n- **Logging:** Echo the final absolute path of the generated file in the script stdout to simplify locating.",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Fshell-doc-gen-and-locate","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":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add xyliu-cs\u002FOpenSpace-GDPval --skill shell-doc-gen-and-locate",{"tool":49,"command":50},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill shell-doc-gen-and-locate",{"tool":52,"command":53},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill shell-doc-gen-and-locate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fshell-doc-gen-and-locate\u002FSKILL.md",true,[57],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},".skill_id","OTHER","其他",38,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fshell-doc-gen-and-locate\u002F.skill_id",[64,77,85,101,125,145],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":30},"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",[],[71,72,73,74,75,76],"zip export deliverable","zip","export","deliverables","codebase","as",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":30},"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",[],[84,72,74,75,76],"zip deliverable finalization",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":30},"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",[],[92,93,94,95,96,97,98,99,76,100],"failure analysis","ZeRO","analysis","iteration","zero iteration failure analysis","with","issues","execution","system",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":112,"publishedAt":30},"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",[107],{"categoryNo":108,"categoryName":109,"taxonomyType":110,"taxonomyTypeDesc":111},"01JBSEEDCAT000000000000034","行政与办公人员","PROFESSION","适用职业",[113,114,115,116,117,118,119,120,121,25,122,24,123,124],"fallback","write","file","report","write file fallback report","domain","professional","sources","retrieval","embedded","data","knowledge",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":136,"publishedAt":30},"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",[131],{"categoryNo":132,"categoryName":133,"taxonomyType":134,"taxonomyTypeDesc":135},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[137,97,113,19,138,20,24,25,115,139,140,141,114,142,119,143,144],"fallback doc with delegation","delegation","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":30},"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":108,"categoryName":109,"taxonomyType":110,"taxonomyTypeDesc":111},[113,116,153,154,25,115,155,156,114,157,158,121,97,159,24],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]