[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HWBVDCJM8KS8ERZNK49AGT":3,"skill-same:01M6HWBVDCJM8KS8ERZNK49AGT":59},{"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":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":6,"updatedAt":38,"install":39,"resources":52},"01M6HWBVDCJM8KS8ERZNK49AGT","detect-zero-iteration-failures",null,"Identify and handle pre-execution agent failures occurring before any iterations or tool usage","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\u002Fdetect-zero-iteration-failures\u002FSKILL.md",[],[19,20,21,22,23,24,25],"ZeRO","iteration","detect","detect zero iteration failures","execution","tool","usage","2026-11-10 10:12:30",false,"---\nname: detect-zero-iteration-failures\ndescription: Identify and handle pre-execution agent failures occurring before any iterations or tool usage\n---\n\n# Detect Zero-Iteration Failures\n\nThis skill helps identify and properly categorize agent failures that occur before any task execution begins. These failures require system-level investigation rather than agent-level debugging.\n\n## When to Apply\n\nUse this skill when analyzing agent task executions where:\n\n1. **Iteration count is 0** - The agent completed zero iterations\n2. **No tool usage** - No tools were invoked during the execution\n3. **No artifacts created** - No files, documents, or outputs were produced\n4. **Minimal or no conversation log** - Only the user instruction exists, with no agent responses\n\n## Identification Checklist\n\nCheck the following indicators to confirm a zero-iteration failure:\n\n```\n[ ] Iterations reported: 0\n[ ] Tool invocations: None\n[ ] Files created: None  \n[ ] Conversation turns: 1 (user instruction only)\n[ ] Agent self-report: Indicates failure before execution began\n```\n\n## Failure Categories\n\nZero-iteration failures typically indicate one of these pre-execution issues:\n\n| Category | Description | Investigation Focus |\n|----------|-------------|---------------------|\n| Initialization crash | Agent failed during setup | System logs, environment config |\n| Environment issue | Missing dependencies or resources | Infrastructure, permissions |\n| Prompt parsing error | Input could not be processed | Prompt format, encoding |\n| Resource exhaustion | Quota or limits exceeded | System capacity, rate limits |\n\n## Diagnostic Steps\n\n### Step 1: Verify Zero-Iteration Indicators\n\n```python\ndef is_zero_iteration_failure(execution_log):\n    \"\"\"Check if execution shows zero-iteration failure pattern.\"\"\"\n    indicators = {\n        'iterations': execution_log.get('iterations', 0) == 0,\n        'tools_used': len(execution_log.get('tool_calls', [])) == 0,\n        'artifacts': len(execution_log.get('files_created', [])) == 0,\n        'conversation_length': len(execution_log.get('messages', [])) \u003C= 1\n    }\n    return all(indicators.values())\n```\n\n### Step 2: Check System-Level Indicators\n\nLook for these error patterns in system logs:\n\n- **Environment errors**: Missing packages, permission denied, path not found\n- **Initialization errors**: Connection failures, timeout during setup\n- **Resource errors**: Memory exceeded, quota limits, rate limiting\n- **Parsing errors**: Invalid JSON, encoding issues, malformed input\n\n### Step 3: Route Investigation Appropriately\n\n```\nIF zero-iteration failure detected:\n    └── Do NOT debug agent logic or prompt instructions\n    └── DO investigate:\n        ├── System initialization logs\n        ├── Environment configuration\n        ├── Resource allocation and limits\n        └── Input parsing and validation\n```\n\n## Response Actions\n\n### For Analysts\n\n1. **Flag as system-level issue** - Do not attribute to agent behavior\n2. **Check infrastructure health** - Verify system components are operational\n3. **Review recent changes** - Look for deployments, config updates, or quota changes\n4. **Escalate appropriately** - Route to infrastructure\u002Fplatform team, not agent developers\n\n### For Automated Systems\n\n```python\ndef categorize_failure(execution_log):\n    \"\"\"Categorize failure type for routing.\"\"\"\n    if is_zero_iteration_failure(execution_log):\n        return {\n            'category': 'PRE_EXECUTION_FAILURE',\n            'severity': 'HIGH',\n            'investigation_team': 'INFRASTRUCTURE',\n            'agent_debug_required': False,\n            'recommended_actions': [\n                'Check system initialization logs',\n                'Verify environment configuration',\n                'Review resource quotas and limits',\n                'Validate input parsing pipeline'\n            ]\n        }\n    else:\n        return {\n            'category': 'EXECUTION_FAILURE',\n            'severity': 'MEDIUM',\n            'investigation_team': 'AGENT_DEVELOPMENT',\n            'agent_debug_required': True\n        }\n```\n\n## Example Analysis\n\n**Zero-Iteration Failure Example:**\n```\nTask ID: 69a8ef86-phase1\nIterations: 0\nTools Used: None\nFiles Created: None\nMessages: [User instruction only]\nAgent Report: \"Failed before executing any iterations\"\n\nAnalysis: PRE_EXECUTION_FAILURE\n- No agent logic was executed\n- Failure occurred during initialization\n- Action: Investigate system environment, not agent prompts\n```\n\n**Normal Execution Failure (for contrast):**\n```\nTask ID: abc123\nIterations: 3\nTools Used: [read_file, write_file, shell_agent]\nFiles Created: [output.txt]\nMessages: [User instruction, Agent response x3]\nAgent Report: \"Could not complete task due to X\"\n\nAnalysis: EXECUTION_FAILURE\n- Agent logic was executed\n- Failure occurred during task performance\n- Action: Debug agent reasoning and tool usage\n```\n\n## Key Takeaways\n\n1. **Zero iterations = Pre-execution failure** - The agent never got to work\n2. **System-level, not agent-level** - Debug infrastructure, not prompts\n3. **High severity** - Indicates potential systemic issues affecting multiple tasks\n4. **Distinct failure mode** - Treat separately from normal execution failures","# Detect Zero-Iteration Failures\n\nThis skill helps identify and properly categorize agent failures that occur before any task execution begins. These failures require system-level investigation rather than agent-level debugging.\n\n## When to Apply\n\nUse this skill when analyzing agent task executions where:\n\n1. **Iteration count is 0** - The agent completed zero iterations\n2. **No tool usage** - No tools were invoked during the execution\n3. **No artifacts created** - No files, documents, or outputs were produced\n4. **Minimal or no conversation log** - Only the user instruction exists, with no agent responses\n\n## Identification Checklist\n\nCheck the following indicators to confirm a zero-iteration failure:\n\n```\n[ ] Iterations reported: 0\n[ ] Tool invocations: None\n[ ] Files created: None  \n[ ] Conversation turns: 1 (user instruction only)\n[ ] Agent self-report: Indicates failure before execution began\n```\n\n## Failure Categories\n\nZero-iteration failures typically indicate one of these pre-execution issues:\n\n| Category | Description | Investigation Focus |\n|----------|-------------|---------------------|\n| Initialization crash | Agent failed during setup | System logs, environment config |\n| Environment issue | Missing dependencies or resources | Infrastructure, permissions |\n| Prompt parsing error | Input could not be processed | Prompt format, encoding |\n| Resource exhaustion | Quota or limits exceeded | System capacity, rate limits |\n\n## Diagnostic Steps\n\n### Step 1: Verify Zero-Iteration Indicators\n\n```python\ndef is_zero_iteration_failure(execution_log):\n    \"\"\"Check if execution shows zero-iteration failure pattern.\"\"\"\n    indicators = {\n        'iterations': execution_log.get('iterations', 0) == 0,\n        'tools_used': len(execution_log.get('tool_calls', [])) == 0,\n        'artifacts': len(execution_log.get('files_created', [])) == 0,\n        'conversation_length': len(execution_log.get('messages', [])) \u003C= 1\n    }\n    return all(indicators.values())\n```\n\n### Step 2: Check System-Level Indicators\n\nLook for these error patterns in system logs:\n\n- **Environment errors**: Missing packages, permission denied, path not found\n- **Initialization errors**: Connection failures, timeout during setup\n- **Resource errors**: Memory exceeded, quota limits, rate limiting\n- **Parsing errors**: Invalid JSON, encoding issues, malformed input\n\n### Step 3: Route Investigation Appropriately\n\n```\nIF zero-iteration failure detected:\n    └── Do NOT debug agent logic or prompt instructions\n    └── DO investigate:\n        ├── System initialization logs\n        ├── Environment configuration\n        ├── Resource allocation and limits\n        └── Input parsing and validation\n```\n\n## Response Actions\n\n### For Analysts\n\n1. **Flag as system-level issue** - Do not attribute to agent behavior\n2. **Check infrastructure health** - Verify system components are operational\n3. **Review recent changes** - Look for deployments, config updates, or quota changes\n4. **Escalate appropriately** - Route to infrastructure\u002Fplatform team, not agent developers\n\n### For Automated Systems\n\n```python\ndef categorize_failure(execution_log):\n    \"\"\"Categorize failure type for routing.\"\"\"\n    if is_zero_iteration_failure(execution_log):\n        return {\n            'category': 'PRE_EXECUTION_FAILURE',\n            'severity': 'HIGH',\n            'investigation_team': 'INFRASTRUCTURE',\n            'agent_debug_required': False,\n            'recommended_actions': [\n                'Check system initialization logs',\n                'Verify environment configuration',\n                'Review resource quotas and limits',\n                'Validate input parsing pipeline'\n            ]\n        }\n    else:\n        return {\n            'category': 'EXECUTION_FAILURE',\n            'severity': 'MEDIUM',\n            'investigation_team': 'AGENT_DEVELOPMENT',\n            'agent_debug_required': True\n        }\n```\n\n## Example Analysis\n\n**Zero-Iteration Failure Example:**\n```\nTask ID: 69a8ef86-phase1\nIterations: 0\nTools Used: None\nFiles Created: None\nMessages: [User instruction only]\nAgent Report: \"Failed before executing any iterations\"\n\nAnalysis: PRE_EXECUTION_FAILURE\n- No agent logic was executed\n- Failure occurred during initialization\n- Action: Investigate system environment, not agent prompts\n```\n\n**Normal Execution Failure (for contrast):**\n```\nTask ID: abc123\nIterations: 3\nTools Used: [read_file, write_file, shell_agent]\nFiles Created: [output.txt]\nMessages: [User instruction, Agent response x3]\nAgent Report: \"Could not complete task due to X\"\n\nAnalysis: EXECUTION_FAILURE\n- Agent logic was executed\n- Failure occurred during task performance\n- Action: Debug agent reasoning and tool usage\n```\n\n## Key Takeaways\n\n1. **Zero iterations = Pre-execution failure** - The agent never got to work\n2. **System-level, not agent-level** - Debug infrastructure, not prompts\n3. **High severity** - Indicates potential systemic issues affecting multiple tasks\n4. **Distinct failure mode** - Treat separately from normal execution failures",{"name":5,"description":7},"main","6b84b0689ca0d9e7b1e4061188ff6b60758e0f8a","openspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Fdetect-zero-iteration-failures",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":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add HKUDS\u002FAgentPilot --skill detect-zero-iteration-failures",{"tool":45,"command":46},"bunx","bunx skills add HKUDS\u002FAgentPilot --skill detect-zero-iteration-failures",{"tool":48,"command":49},"pnpm","pnpm dlx skills add HKUDS\u002FAgentPilot --skill detect-zero-iteration-failures","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Fdetect-zero-iteration-failures\u002FSKILL.md",true,[53],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},".skill_id","OTHER","其他",44,"https:\u002F\u002Fgithub.com\u002FHKUDS\u002FAgentPilot\u002Fblob\u002Fmain\u002Fopenspace\u002Fbenchmarks\u002Fgdpval\u002Fskills\u002Fdetect-zero-iteration-failures\u002F.skill_id",[60,80,98,123,146,169],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":26},"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",[],[62,67,68,69,70,71,72,73,74,75,76,77,78,79],"prepare","requests","with","missing","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":26},"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,21,93,94,95,96,97],"memory","review","auto","openspace","changes","facts","entries","local","conflicts","stale","duplicates",{"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":26},"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",[104],{"categoryNo":105,"categoryName":106,"taxonomyType":107,"taxonomyTypeDesc":108},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[110,111,112,90,113,114,115,116,117,118,119,120,121,122],"skill discovery","discovery","reusable","step by step","tokens","packages","help","cloud","reliability","capabilities","browse","search","Tools",{"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":130,"publishedAt":26},"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",[129],{"categoryNo":105,"categoryName":106,"taxonomyType":107,"taxonomyTypeDesc":108},[131,132,133,90,134,135,136,137,138,112,89,74,139,24,140,141,142,143,144,145],"delegate","task","delegate task","time","improve","desktop automation","worker","community","autonomous","stack","for","share","tasks","automation","MCP",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":26},"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",[],[153,154,155,156,157,158,159,160,161,162,163,164,165,166,141,167,168],"write special chars ts check","write","check","type","files","filters","only","template","file","python","typescript","output","Existing","type-checking","errors","script",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":26},"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",[],[176,177,154,69,141,168,178,179,180,181,182,160,161,183,184,162],"write special chars readback","readback","helper","post","via","scripts","read","verification","cleanup"]