[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KK0SNZ6K3CCS5GN2JV4PK9":3,"skill-same:01M6KK0SNZ6K3CCS5GN2JV4PK9":62},{"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":30,"linkOnly":31,"markdownContent":32,"markdownBody":33,"frontMatter":34,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":13,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M6KK0SNZ6K3CCS5GN2JV4PK9","shell-agent-file-workflow",null,"Delegate file generation to shell_agent when direct tools fail, with systematic file location and retrieval","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\u002Fshell-agent-file-workflow\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29],"workflow","file","shell","shell agent file workflow","Tools","direct","delegate","location","generation","systematic","retrieval","with","2026-11-10 10:12:30",false,"---\nname: shell-agent-file-workflow\ndescription: Delegate file generation to shell_agent when direct tools fail, with systematic file location and retrieval\n---\n\n# Shell Agent File Generation Workflow\n\nWhen direct document or file generation approaches fail, delegate the task to shell_agent which can autonomously write code, execute it, and retry on errors. Generated files may appear in nested workspace directories.\n\n## When to Use\n\n- Direct file generation tools or `create_file` functions fail for complex formats\n- Complex file creation requiring multiple steps, libraries, or error recovery\n- When you need an autonomous agent to figure out how to accomplish a goal\n- File generation that requires iteration and automatic error fixing\n\n## Workflow Steps\n\n### Step 1: Delegate File Generation to shell_agent\n\nUse shell_agent with a clear, specific task description:\n\n```\nshell_agent(task=\"Create a [file type] with [specific content\u002Fstructure requirements]\")\n```\n\nThe agent will:\n- Decide whether to use Python or Bash\n- Write and execute code\n- Inspect output and iterate\n- Automatically retry and fix errors (up to several rounds)\n\n### Step 2: Locate Generated Files\n\nFiles may be created in nested directories within the workspace. Use `find` to locate them:\n\n```bash\nfind . -name \"*.extension\" -type f\n```\n\nFor multiple file types:\n```bash\nfind . -type f \\( -name \"*.pptx\" -o -name \"*.docx\" -o -name \"*.pdf\" \\)\n```\n\nFor recently modified files (last 10 minutes):\n```bash\nfind . -name \"*.extension\" -type f -mmin -10\n```\n\n### Step 3: Copy Files to Working Directory\n\nOnce located, copy the file to your working directory:\n\n```bash\ncp \u002Fpath\u002Fto\u002Ffound\u002Ffile.extension .\u002F\n```\n\n## Example\n\n### Creating a PowerPoint Presentation\n\n```\n# Step 1: Delegate to shell_agent\nshell_agent(task=\"Create a 10-slide PowerPoint presentation covering: topic A, topic B, topic C\")\n\n# Step 2: Find the generated file\nfind . -name \"*.pptx\" -type f\n\n# Output might show: .\u002Fworkspace\u002Fnested\u002Fpath\u002Fpresentation.pptx\n\n# Step 3: Copy to working directory\ncp .\u002Fworkspace\u002Fnested\u002Fpath\u002Fpresentation.pptx .\u002F\n```\n\n### Creating a PDF Report\n\n```\n# Step 1: Delegate generation\nshell_agent(task=\"Generate a PDF report with charts and tables from the provided data\")\n\n# Step 2: Locate output\nfind . -name \"*.pdf\" -type f -mmin -5\n\n# Step 3: Retrieve file\ncp .\u002Fgenerated\u002Freports\u002Foutput.pdf .\u002F\n```\n\n## Tips\n\n- **Be specific in task description**: Include file format, structure, and content requirements explicitly\n- **Check multiple extensions**: If unsure of output format, search for common extensions\n- **Use modification time**: Filter by recent files to identify newly created outputs\n- **Verify file integrity**: After copying, check that the file is valid and complete\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| No files found | Expand search: remove extension filter, increase time window |\n| Multiple files found | Sort by modification time: `find . -name \"*.ext\" -type f -printf '%T@ %p\\n' \\| sort -n` |\n| File is corrupted | Re-run shell_agent with more specific requirements |\n| Permission errors | Use `sudo` or check directory permissions |","# Shell Agent File Generation Workflow\n\nWhen direct document or file generation approaches fail, delegate the task to shell_agent which can autonomously write code, execute it, and retry on errors. Generated files may appear in nested workspace directories.\n\n## When to Use\n\n- Direct file generation tools or `create_file` functions fail for complex formats\n- Complex file creation requiring multiple steps, libraries, or error recovery\n- When you need an autonomous agent to figure out how to accomplish a goal\n- File generation that requires iteration and automatic error fixing\n\n## Workflow Steps\n\n### Step 1: Delegate File Generation to shell_agent\n\nUse shell_agent with a clear, specific task description:\n\n```\nshell_agent(task=\"Create a [file type] with [specific content\u002Fstructure requirements]\")\n```\n\nThe agent will:\n- Decide whether to use Python or Bash\n- Write and execute code\n- Inspect output and iterate\n- Automatically retry and fix errors (up to several rounds)\n\n### Step 2: Locate Generated Files\n\nFiles may be created in nested directories within the workspace. Use `find` to locate them:\n\n```bash\nfind . -name \"*.extension\" -type f\n```\n\nFor multiple file types:\n```bash\nfind . -type f \\( -name \"*.pptx\" -o -name \"*.docx\" -o -name \"*.pdf\" \\)\n```\n\nFor recently modified files (last 10 minutes):\n```bash\nfind . -name \"*.extension\" -type f -mmin -10\n```\n\n### Step 3: Copy Files to Working Directory\n\nOnce located, copy the file to your working directory:\n\n```bash\ncp \u002Fpath\u002Fto\u002Ffound\u002Ffile.extension .\u002F\n```\n\n## Example\n\n### Creating a PowerPoint Presentation\n\n```\n# Step 1: Delegate to shell_agent\nshell_agent(task=\"Create a 10-slide PowerPoint presentation covering: topic A, topic B, topic C\")\n\n# Step 2: Find the generated file\nfind . -name \"*.pptx\" -type f\n\n# Output might show: .\u002Fworkspace\u002Fnested\u002Fpath\u002Fpresentation.pptx\n\n# Step 3: Copy to working directory\ncp .\u002Fworkspace\u002Fnested\u002Fpath\u002Fpresentation.pptx .\u002F\n```\n\n### Creating a PDF Report\n\n```\n# Step 1: Delegate generation\nshell_agent(task=\"Generate a PDF report with charts and tables from the provided data\")\n\n# Step 2: Locate output\nfind . -name \"*.pdf\" -type f -mmin -5\n\n# Step 3: Retrieve file\ncp .\u002Fgenerated\u002Freports\u002Foutput.pdf .\u002F\n```\n\n## Tips\n\n- **Be specific in task description**: Include file format, structure, and content requirements explicitly\n- **Check multiple extensions**: If unsure of output format, search for common extensions\n- **Use modification time**: Filter by recent files to identify newly created outputs\n- **Verify file integrity**: After copying, check that the file is valid and complete\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| No files found | Expand search: remove extension filter, increase time window |\n| Multiple files found | Sort by modification time: `find . -name \"*.ext\" -type f -printf '%T@ %p\\n' \\| sort -n` |\n| File is corrupted | Re-run shell_agent with more specific requirements |\n| Permission errors | Use `sudo` or check directory permissions |",{"name":5,"description":7},"main","ff671ef61ed6587c49bd54c81cdc751c0b99e363","gdpval_bench\u002Fskills\u002Fshell-agent-file-workflow","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":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add AG064\u002FOpenSpace --skill shell-agent-file-workflow",{"tool":48,"command":49},"bunx","bunx skills add AG064\u002FOpenSpace --skill shell-agent-file-workflow",{"tool":51,"command":52},"pnpm","pnpm dlx skills add AG064\u002FOpenSpace --skill shell-agent-file-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fshell-agent-file-workflow\u002FSKILL.md",true,[56],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},".skill_id","OTHER","其他",39,"https:\u002F\u002Fgithub.com\u002FAG064\u002FOpenSpace\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fshell-agent-file-workflow\u002F.skill_id",[63,86,102,110,135,151],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":30},"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",[],[70,71,72,73,74,75,76,77,78,79,80,81,82,83,19,84,85],"write special chars ts check","check","write","filters","Existing","type-checking","for","errors","script","output","type","files","only","template","python","typescript",{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":30},"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",[],[93,94,72,83,95,96,19,84,97,98,99,100,101,76,78,29],"readback","write special chars readback","cleanup","read","scripts","verification","via","post","helper",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":30},"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",[],[72,109,84,76,99,83,20,19,78],"write special chars heredoc",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":30},"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",[],[117,118,119,120,85,121,122,123,124,125,76,126,127,128,129,130,131,132,133,134],"reference","worldmonitor","worldmonitor reference","dashboard","css","architecture","extracting","hierarchy","source","layer","panel","patterns","edge functions","integrations","open","api","data","scheduler",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":30},"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",[],[142,143,144,145,76,146,29,147,148,149,150],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":30},"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",[],[158,159,160,161,162,163,19,164,165,166],"directory","verify","structure","verify directory structure","access","first","issues","diagnose","file access"]