[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KG1YB86CAFZQJ2QZ1XZ703":3,"skill-same:01M6KG1YB86CAFZQJ2QZ1XZ703":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},"01M6KG1YB86CAFZQJ2QZ1XZ703","search-fail-pivot",null,"Heuristic for detecting search tool failures and pivoting to domain knowledge for document generation","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\u002Fsearch-fail-pivot\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29],"search","search fail pivot","pivoting","knowledge","tool","document","domain","generation","document generation","detecting","for","2026-11-10 10:12:30",false,"---\nname: search-fail-pivot\ndescription: Heuristic for detecting search tool failures and pivoting to domain knowledge for document generation\n---\n\n# Search Tool Failure Detection and Pivot Strategy\n\n## Purpose\n\nWhen using `search_web` or similar external data retrieval tools, repeated failures waste iterations. This skill provides a diagnostic heuristic to recognize when to abandon search attempts and proceed with existing domain knowledge.\n\n## Core Heuristic\n\n**If `search_web` fails 2+ consecutive times with 'unknown error' or similar non-recoverable errors, pivot to domain knowledge + `run_shell` for document generation.**\n\nDo not attempt more than 2 retries on the same or similar queries before pivoting.\n\n## Step-by-Step Instructions\n\n### Step 1: Track Search Failures\n\nMonitor `search_web` outcomes during your task:\n- Count consecutive failures (empty results, 'unknown error', timeout, access denied)\n- Note the error type - distinguish between:\n  - **Recoverable**: Rate limiting, temporary timeout (retry 1-2 times)\n  - **Non-recoverable**: 'unknown error', persistent empty results, access denied\n\n### Step 2: Apply the 2-Failure Rule\n\n```\nIF search_web failures >= 2 (same or similar queries)\nTHEN:\n  1. Stop attempting search_web\n  2. Document what information you attempted to retrieve\n  3. Proceed with existing domain knowledge\n```\n\n### Step 3: Pivot to Domain Knowledge\n\nWhen pivoting:\n1. **Acknowledge the limitation**: Note that external verification was attempted but unavailable\n2. **Use established knowledge**: Draw on training data for well-known facts, laws, cases, standards\n3. **Generate with run_shell**: Create documents using Python\u002Fbash scripts rather than waiting for external data\n\nExample pivot workflow:\n```python\n# Instead of continuing search_web attempts:\n# 1. Compile known information from domain knowledge\nknown_facts = {\n    \"law\": \"COPPA requirements for children's data\",\n    \"precedent\": \"FTC v. Google\u002FYouTube settlement patterns\",\n    \"jurisdiction\": \"California privacy law framework\"\n}\n\n# 2. Generate document directly\n# Use run_shell with Python to create PDF\u002FDOC\n```\n\n### Step 4: Document Generation Pattern\n\nWhen generating documents after pivoting:\n\n```bash\n# Use run_shell to execute document generation\n# Example: Create legal memo with Python + reportlab\npython \u003C\u003C 'EOF'\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\n\n# Generate document with domain knowledge\nc = canvas.Canvas(\"memo.pdf\", pagesize=letter)\nc.drawString(100, 750, \"Legal Analysis based on established precedents\")\n# ... continue with known information\nc.save()\nEOF\n```\n\n## When This Applies\n\nThis heuristic is particularly useful for:\n\n| Task Type | Why It Applies |\n|-----------|----------------|\n| Legal research | Case law and statutes are well-documented in training |\n| Technical documentation | Standards and best practices are established knowledge |\n| Historical analysis | Past events and data are in training corpus |\n| Regulatory compliance | Major regulations (GDPR, COPPA, HIPAA) are well-known |\n\n## When NOT to Pivot\n\nDo NOT apply this heuristic when:\n\n- You need **current\u002Ftime-sensitive data** (stock prices, weather, news \u003C 24hrs)\n- The task **explicitly requires** external verification\n- You have **not yet attempted** the search (first attempt should complete)\n- Errors are clearly **recoverable** (rate limit with retry-after header)\n\n## Example Decision Flow\n\n```\nAttempt search_web → Success? → Yes → Use results\n                         ↓\n                        No\n                         ↓\n            Is this failure #1? → Yes → Retry once with modified query\n                         ↓\n                        No (failure #2+)\n                         ↓\n            Pivot to domain knowledge + run_shell document generation\n```\n\n## Benefits\n\n- **Saves iterations**: Avoids wasting 3-4 attempts on unavailable data\n- **Maintains progress**: Task continues instead of stalling on search\n- **Leverages training**: Uses the substantial knowledge already available\n- **Clear handoff**: Explicitly documents the pivot decision for transparency\n\n## Anti-Patterns to Avoid\n\n❌ Continuing search_web attempts beyond 2 failures  \n❌ Not documenting why you pivoted from search  \n❌ Applying this to tasks requiring real-time data  \n❌ Abandoning search on first failure without retry  \n\n✅ Apply 2-failure rule consistently  \n✅ Document the pivot decision in your output  \n✅ Use run_shell efficiently after pivoting  \n✅ Distinguish recoverable vs non-recoverable errors","# Search Tool Failure Detection and Pivot Strategy\n\n## Purpose\n\nWhen using `search_web` or similar external data retrieval tools, repeated failures waste iterations. This skill provides a diagnostic heuristic to recognize when to abandon search attempts and proceed with existing domain knowledge.\n\n## Core Heuristic\n\n**If `search_web` fails 2+ consecutive times with 'unknown error' or similar non-recoverable errors, pivot to domain knowledge + `run_shell` for document generation.**\n\nDo not attempt more than 2 retries on the same or similar queries before pivoting.\n\n## Step-by-Step Instructions\n\n### Step 1: Track Search Failures\n\nMonitor `search_web` outcomes during your task:\n- Count consecutive failures (empty results, 'unknown error', timeout, access denied)\n- Note the error type - distinguish between:\n  - **Recoverable**: Rate limiting, temporary timeout (retry 1-2 times)\n  - **Non-recoverable**: 'unknown error', persistent empty results, access denied\n\n### Step 2: Apply the 2-Failure Rule\n\n```\nIF search_web failures >= 2 (same or similar queries)\nTHEN:\n  1. Stop attempting search_web\n  2. Document what information you attempted to retrieve\n  3. Proceed with existing domain knowledge\n```\n\n### Step 3: Pivot to Domain Knowledge\n\nWhen pivoting:\n1. **Acknowledge the limitation**: Note that external verification was attempted but unavailable\n2. **Use established knowledge**: Draw on training data for well-known facts, laws, cases, standards\n3. **Generate with run_shell**: Create documents using Python\u002Fbash scripts rather than waiting for external data\n\nExample pivot workflow:\n```python\n# Instead of continuing search_web attempts:\n# 1. Compile known information from domain knowledge\nknown_facts = {\n    \"law\": \"COPPA requirements for children's data\",\n    \"precedent\": \"FTC v. Google\u002FYouTube settlement patterns\",\n    \"jurisdiction\": \"California privacy law framework\"\n}\n\n# 2. Generate document directly\n# Use run_shell with Python to create PDF\u002FDOC\n```\n\n### Step 4: Document Generation Pattern\n\nWhen generating documents after pivoting:\n\n```bash\n# Use run_shell to execute document generation\n# Example: Create legal memo with Python + reportlab\npython \u003C\u003C 'EOF'\nfrom reportlab.lib.pagesizes import letter\nfrom reportlab.pdfgen import canvas\n\n# Generate document with domain knowledge\nc = canvas.Canvas(\"memo.pdf\", pagesize=letter)\nc.drawString(100, 750, \"Legal Analysis based on established precedents\")\n# ... continue with known information\nc.save()\nEOF\n```\n\n## When This Applies\n\nThis heuristic is particularly useful for:\n\n| Task Type | Why It Applies |\n|-----------|----------------|\n| Legal research | Case law and statutes are well-documented in training |\n| Technical documentation | Standards and best practices are established knowledge |\n| Historical analysis | Past events and data are in training corpus |\n| Regulatory compliance | Major regulations (GDPR, COPPA, HIPAA) are well-known |\n\n## When NOT to Pivot\n\nDo NOT apply this heuristic when:\n\n- You need **current\u002Ftime-sensitive data** (stock prices, weather, news \u003C 24hrs)\n- The task **explicitly requires** external verification\n- You have **not yet attempted** the search (first attempt should complete)\n- Errors are clearly **recoverable** (rate limit with retry-after header)\n\n## Example Decision Flow\n\n```\nAttempt search_web → Success? → Yes → Use results\n                         ↓\n                        No\n                         ↓\n            Is this failure #1? → Yes → Retry once with modified query\n                         ↓\n                        No (failure #2+)\n                         ↓\n            Pivot to domain knowledge + run_shell document generation\n```\n\n## Benefits\n\n- **Saves iterations**: Avoids wasting 3-4 attempts on unavailable data\n- **Maintains progress**: Task continues instead of stalling on search\n- **Leverages training**: Uses the substantial knowledge already available\n- **Clear handoff**: Explicitly documents the pivot decision for transparency\n\n## Anti-Patterns to Avoid\n\n❌ Continuing search_web attempts beyond 2 failures  \n❌ Not documenting why you pivoted from search  \n❌ Applying this to tasks requiring real-time data  \n❌ Abandoning search on first failure without retry  \n\n✅ Apply 2-failure rule consistently  \n✅ Document the pivot decision in your output  \n✅ Use run_shell efficiently after pivoting  \n✅ Distinguish recoverable vs non-recoverable errors",{"name":5,"description":7},"main","af1b40a42167d09c30b3a63000aa14ace4c1e229","gdpval_bench\u002Fskills\u002Fsearch-fail-pivot","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 search-fail-pivot",{"tool":49,"command":50},"bunx","bunx skills add xyliu-cs\u002FOpenSpace-GDPval --skill search-fail-pivot",{"tool":52,"command":53},"pnpm","pnpm dlx skills add xyliu-cs\u002FOpenSpace-GDPval --skill search-fail-pivot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fsearch-fail-pivot\u002FSKILL.md",true,[57],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},".skill_id","OTHER","其他",31,"https:\u002F\u002Fgithub.com\u002Fxyliu-cs\u002FOpenSpace-GDPval\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fsearch-fail-pivot\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,25,118,119,120,121,122,123,124,22],"fallback","write","file","report","write file fallback report","professional","sources","retrieval","generate","embedded","documents","data",{"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,138,139,140,123,121,115,141,23,142,114,143,118,144,29],"fallback doc with delegation","doc","delegation","shell","markdown","text","simple","formats",{"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,121,115,155,156,114,157,158,120,97,159,123],"context","context anchored fallback report","Guardrails","Tools","task","drift","context drift"]