[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6XBH9WPQG2BW6KRB57THQAG":3,"skill-same:01M6XBH9WPQG2BW6KRB57THQAG":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":13,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M6XBH9WPQG2BW6KRB57THQAG","resilient-document-pipeline",null,"Unified document generation with tool failure detection, domain knowledge fallback, progressive conversion, and Unicode safety","UF-gzj\u002Fopenspace-claude-evolution","UF-gzj","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272393507?v=4","01M6XBCZB755P01VVYGQWPYZY3","01M6XBCZFJA5AREA17WGETA3FW",0,"MIT","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fdocument-gen-fallback-enhanced-merged\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000002","文档处理","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34,35,36],"pipeline","document","resilient document pipeline","detection","Safety","knowledge","tool","conversion","fallback","domain","generation","Unicode","document generation","with","2026-11-10 10:12:30",false,"---\nname: resilient-document-pipeline\ndescription: Unified document generation with tool failure detection, domain knowledge fallback, progressive conversion, and Unicode safety\n---\n\n# Resilient Document Generation Pipeline\n\n## When to Use This Skill\n\nUse this workflow when generating documents in **challenging environments** where:\n\n- **Tool failures are likely or have occurred**: `read_file`, `search_web`, `read_webpage`, or `execute_code_sandbox` return errors\n- **Multiple formats are needed**: Generate `.docx`, `.pdf`, `.html` from the same source\n- **Unicode\u002Fspecial characters are present**: Documents contain em dashes, curly quotes, arrows, symbols, or non-ASCII text\n- **Primary conversion methods may fail**: LaTeX\u002Fpandoc may not be available or misconfigured\n\nThis skill combines **early failure detection**, **domain-knowledge content creation**, **progressive conversion fallbacks**, and **Unicode safety** into a single resilient workflow.\n\n## Core Workflow Overview\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│  1. DETECT tool failures (2+ indicators → pivot immediately)   │\n└────────────────┬────────────────────────────────────────────────┘\n                 │\n┌────────────────▼────────────────────────────────────────────────┐\n│  2. CREATE content with write_file using embedded domain       │\n│     knowledge (professionally structured markdown)              │\n└────────────────┬────────────────────────────────────────────────┘\n                 │\n┌────────────────▼────────────────────────────────────────────────┐\n│  3. SANITIZE unicode (create LaTeX-safe version for PDF)       │\n└────────────────┬────────────────────────────────────────────────┘\n                 │\n┌────────────────▼────────────────────────────────────────────────┐\n│  4. CONVERT with progressive fallbacks:                        │\n│     pandoc → reportlab → fpdf2 → wkhtmltopdf                   │\n└────────────────┬────────────────────────────────────────────────┘\n                 │\n┌────────────────▼────────────────────────────────────────────────┐\n│  5. VERIFY outputs exist and are valid                          │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n## Step-by-Step Workflow\n\n### Step 1: Detect Tool Failure Pattern\n\n**Before attempting document generation**, check for failure indicators:\n\n```\nTOOL_FAILURE_INDICATORS = [\n    \"read_file returns binary\u002Fimage data instead of text\",\n    \"search_web returns unknown error or empty results\",\n    \"read_webpage returns unknown error on multiple URLs\",\n    \"execute_code_sandbox fails unexpectedly\",\n    \"pandoc command fails with 'unknown error'\",\n    \"Multiple consecutive tool failures on data retrieval\"\n]\n```\n\n**Decision point**: If **2+ indicators** are present within the first 2-3 iterations:\n\n1. **Stop** attempting to fix the failing tools\n2. **Acknowledge** the limitation briefly in your output\n3. **Commit** to generating the document with available knowledge\n4. **Proceed** to Step 2 immediately\n\n### Step 2: Create Content with write_file\n\nWrite your document as **professionally structured Markdown** using embedded domain knowledge:\n\n```\nwrite_file\npath: \u002Ftmp\u002Fdocument_source.md\ncontent: |\n  # [Document Title]\n  \n  ## Executive Summary\n  [Brief overview of key content - use domain knowledge]\n  \n  ## Background\n  [Context and scope - leverage embedded expertise]\n  \n  ## Main Content\n  [Organized sections with headers, lists, tables]\n  \n  ## Limitations & Notes\n  [Transparent about data source limitations if relevant]\n  \n  ## Recommendations\u002FNext Steps\n  [Actionable guidance based on available information]\n```\n\n**Best practices for content:**\n- Use **general domain knowledge** appropriately when external data is unavailable\n- **Clearly distinguish** between verified facts and general guidance\n- Include **actionable frameworks** rather than specific unverified data\n- Add **placeholder notes** where specific data would enhance the document:\n\n```markdown\n> **Note**: Specific [metric\u002Fdata point] would typically be sourced from \n> [expected source]. The guidance below reflects established best practices.\n```\n\n### Step 3: Sanitize Unicode Characters (Pre-PDF Conversion)\n\n**Critical**: PDF generation via pandoc typically uses LaTeX, which has limited Unicode support. Create a sanitized version:\n\n#### Option A: Manual write_file (Recommended for control)\n\n```\nwrite_file\npath: \u002Ftmp\u002Fdocument_source_sanitized.md\ncontent: |\n  [Same content as Step 2, but with these replacements:]\n```\n\n**Character replacement table:**\n\n| Character | Issue | Safe Replacement |\n|-----------|-------|------------------|\n| `—` (em dash) | May not render | `--` or `-` |\n| `–` (en dash) | May not render | `-` |\n| `\" \"` (curly quotes) | Encoding errors | `\" \"` (straight quotes) |\n| `' '` (curly apostrophe) | Encoding errors | `'` (straight apostrophe) |\n| `…` (ellipsis) | May not render | `...` |\n| `→` `←` `↑` `↓` (arrows) | LaTeX incompatibility | `->` `\u003C-` `^` `v` |\n| `✓` `✗` (checkmarks) | May not render | `[x]` `[ ]` |\n| `★` `●` (symbols) | May not render | `*` `-` |\n| `©` `®` `™` | May require packages | `(c)` `(r)` `(tm)` |\n| Non-ASCII letters (é, ñ, ü) | Font-dependent | Use xeLaTeX or keep for non-PDF formats |\n\n#### Option B: Shell script sanitization\n\n```\nrun_shell\ncommand: sed -e 's\u002F—\u002F--\u002Fg' -e 's\u002F–\u002F-\u002Fg' -e 's\u002F\"([^\"]*)\"\u002F\"\\1\"\u002Fg' -e \"s\u002F'([^']*)\u002F'\\1'\u002Fg\" -e 's\u002F…\u002F...\u002Fg' -e 's\u002F→\u002F->\u002Fg' -e 's\u002F←\u002F\u003C-\u002Fg' -e 's\u002F©\u002F(c)\u002Fg' -e 's\u002F®\u002F(r)\u002Fg' -e 's\u002F™\u002F(tm)\u002Fg' \u002Ftmp\u002Fdocument_source.md > \u002Ftmp\u002Fdocument_source_sanitized.md\n```\n\n**Important**: Keep the original unsanitized file for DOCX\u002FHTML conversion (these formats handle Unicode better).\n\n### Step 4: Convert to Target Formats with Progressive Fallbacks\n\nUse `run_shell` with **progressive fallback** strategy. Try each method; if it fails, move to the next.\n\n#### For DOCX (from original markdown):\n\n```\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fdocument_source.md -o output.docx\n```\n\n**Fallback if pandoc fails:**\n```\nexecute_code_sandbox\ncode: |\n  from docx import Document\n  # Parse markdown and create DOCX with python-docx\n  # (Implementation depends on complexity needs)\n```\n\n#### For PDF (from sanitized markdown):\n\n**Attempt 1 - pandoc with default engine:**\n```\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fdocument_source_sanitized.md -o output.pdf\n```\n\n**Attempt 2 - pandoc with xeLaTeX (better Unicode):**\n```\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fdocument_source_sanitized.md -o output.pdf --pdf-engine=xelatex\n```\n\n**Attempt 3 - pandoc with wkhtmltopdf:**\n```\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fdocument_source_sanitized.md -o output.pdf --pdf-engine=wkhtmltopdf\n```\n\n**Attempt 4 - Python fpdf2 (most reliable fallback):**\n```\nexecute_code_sandbox\ncode: |\n  from fpdf import FPDF\n  import re\n  \n  # Read sanitized markdown\n  with open('\u002Ftmp\u002Fdocument_source_sanitized.md', 'r') as f:\n      content = f.read()\n  \n  # Simple markdown-to-PDF conversion\n  pdf = FPDF()\n  pdf.add_page()\n  pdf.set_font('Arial', '', 12)\n  \n  # Process content (strip markdown, handle basic formatting)\n  lines = content.split('\\n')\n  for line in lines:\n      # Remove markdown syntax\n      clean = re.sub(r'[#*_`]', '', line)\n      if clean.strip():\n          pdf.cell(0, 10, clean, ln=True)\n  \n  pdf.output('output.pdf')\n  print('PDF created successfully')\n```\n\n**Attempt 5 - Python reportlab (alternative):**\n```\nexecute_code_sandbox\ncode: |\n  from reportlab.lib.pagesizes import letter\n  from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer\n  from reportlab.lib.styles import getSampleStyleSheet\n  import re\n  \n  doc = SimpleDocTemplate('output.pdf', pagesize=letter)\n  styles = getSampleStyleSheet()\n  story = []\n  \n  with open('\u002Ftmp\u002Fdocument_source_sanitized.md', 'r') as f:\n      content = f.read()\n  \n  lines = content.split('\\n')\n  for line in lines:\n      clean = re.sub(r'[#*_`]', '', line)\n      if clean.strip():\n          story.append(Paragraph(clean, styles['Normal']))\n          story.append(Spacer(1, 6))\n  \n  doc.build(story)\n  print('PDF created with reportlab')\n```\n\n#### For HTML (from original markdown):\n\n```\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fdocument_source.md -o output.html\n```\n\n**Fallback if pandoc fails:**\n```\nexecute_code_sandbox\ncode: |\n  import markdown\n  with open('\u002Ftmp\u002Fdocument_source.md', 'r') as f:\n      md_content = f.read()\n  html_content = markdown.markdown(md_content)\n  with open('output.html', 'w') as f:\n      f.write(f'\u003C!DOCTYPE html>\u003Chtml>\u003Cbody>{html_content}\u003C\u002Fbody>\u003C\u002Fhtml>')\n```\n\n### Step 5: Verify Outputs\n\nCheck that files were created successfully and have reasonable sizes:\n\n```\nrun_shell\ncommand: ls -lh output.* 2>\u002Fdev\u002Fnull || echo \"Some outputs missing\"\n```\n\n```\nrun_shell\ncommand: file output.pdf output.docx output.html 2>\u002Fdev\u002Fnull\n```\n\n**Validation criteria:**\n- [ ] File exists\n- [ ] File size > 0 bytes\n- [ ] File command recognizes the format correctly\n- [ ] (Optional) Open\u002Fpreview the file to confirm content renders\n\n## Complete Example\n\n```markdown\n# Generate Project Status Report\n\n## Step 1: Detect failures (if applicable)\nTool check: read_webpage failed 3x, search_web failed 2x → PIVOT to fallback workflow\n\n## Step 2: Write Markdown source\nwrite_file\npath: \u002Ftmp\u002Fproject_status.md\ncontent: |\n  # Project Status Report\n  \n  ## Executive Summary\n  This report summarizes project progress using established methodologies.\n  \n  ## Current Status\n  - Phase 1: Complete\n  - Phase 2: In Progress (75%)\n  - Phase 3: Not Started\n  \n  ## Risks & Mitigation\n  Standard risk framework applied...\n  \n  ## Recommendations\n  1. Continue current trajectory\n  2. Schedule stakeholder review\n\n> **Note**: Specific metrics from project management tool were unavailable; guidance reflects standard practices.\n\n## Step 3: Sanitize for PDF\nwrite_file\npath: \u002Ftmp\u002Fproject_status_sanitized.md\ncontent: |\n  [Same content with any special chars replaced per table above]\n\n## Step 4: Convert (try each, proceed on failure)\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fproject_status.md -o project_status.docx\n\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fproject_status_sanitized.md -o project_status.pdf\n\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fproject_status.md -o project_status.html\n\n## Step 5: Verify\nrun_shell\ncommand: ls -lh project_status.*\n```\n\n## Decision Tree for Conversion Failures\n\n```\npandoc PDF fails?\n  ├─→ Try --pdf-engine=xelatex\n  │   └─→ Fails?\n  │       ├─→ Try --pdf-engine=wkhtmltopdf\n  │       │   └─→ Fails?\n  │       │       └─→ Use Python fpdf2 (most reliable)\n  │       └─→ Success → Done\n  └─→ Success → Done\n```\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| PDF generation fails with encoding error | Use sanitized markdown; try `--pdf-engine=xelatex` |\n| Pandoc not found | Install via `apt-get install pandoc` or use Python fallbacks |\n| LaTeX not found | Use `--pdf-engine=wkhtmltopdf` or Python fpdf2 |\n| DOCX formatting issues | Add `--reference-doc=template.docx` for custom styles |\n| Unicode in any format | Use `-f markdown+utf8`; ensure UTF-8 encoding with `file -i source.md` |\n| All pandoc commands fail | Fall back to Python libraries (fpdf2, reportlab, python-docx, markdown) |\n| Python libraries missing | Install via `pip install fpdf2 reportlab python-docx markdown` |\n\n## Advantages Over Standard Approaches\n\n| Aspect | Standard Approach | Resilient Pipeline |\n|--------|------------------|-------------------|\n| Tool failure response | Retry same approach | Detect pattern, pivot immediately |\n| Content source | External data only | Embedded domain knowledge when needed |\n| Conversion robustness | Single method | Progressive fallbacks (5+ options) |\n| Unicode handling | May cause failures | Proactive sanitization |\n| Verification | Optional | Built-in validation step |\n| Transparency | May hide limitations | Explicit about constraints |\n\n## Best Practices\n\n| Do | Don't |\n|----|-------|\n| Pivot after 2+ tool failures | Retry failing tools 5+ times |\n| Sanitize before PDF conversion | Send raw Unicode to LaTeX |\n| Try multiple conversion methods | Give up after first failure |\n| Be transparent about limitations | Claim unverified facts as certain |\n| Verify all outputs | Assume files were created |\n| Use progressive fallbacks | Hard-code single approach |\n\n## When to Return to Standard Methods\n\nAfter successfully completing the resilient pipeline:\n\n1. **For similar future tasks**: You can attempt standard `shell_agent` delegation first\n2. **Keep this skill ready**: Use immediately if tool failures recur\n3. **For Unicode-heavy documents**: Consider always using this workflow with sanitization\n4. **For critical deliverables**: This workflow provides maximum reliability\n\n## Related Skills\n\n- `document-gen-fallback-enhanced`: Original Unicode-safe fallback (parent)\n- `write-file-fallback-report`: Domain-knowledge report generation (parent)\n- Use this unified skill when you need **all capabilities combined** in one workflow\n*** End Files\n*** Add File: sanitize_for_pdf.sh\n#!\u002Fbin\u002Fbash\n# sanitize_for_pdf.sh - Replace problematic unicode chars for LaTeX\u002FPDF\n# Usage: .\u002Fsanitize_for_pdf.sh \u003Cinput.md> [output.md]\n\nif [ -z \"$1\" ]; then\n  echo \"Usage: $0 \u003Cinput.md> [output.md]\"\n  exit 1\nfi\n\nINPUT=\"$1\"\nOUTPUT=\"${2:-${1%.md}_sanitized.md}\"\n\n# Check input file exists\nif [ ! -f \"$INPUT\" ]; then\n  echo \"Error: Input file not found: $INPUT\"\n  exit 1\nfi\n\n# Apply sanitization replacements\nsed -e 's\u002F—\u002F--\u002Fg' \\\n    -e 's\u002F–\u002F-\u002Fg' \\\n    -e 's\u002F\"([^\"]*)\"\u002F\"\\1\"\u002Fg' \\\n    -e \"s\u002F'([^']*)\u002F'\\1'\u002Fg\" \\\n    -e 's\u002F…\u002F...\u002Fg' \\\n    -e 's\u002F→\u002F->\u002Fg' \\\n    -e 's\u002F←\u002F\u003C-\u002Fg' \\\n    -e 's\u002F↑\u002F^^\u002Fg' \\\n    -e 's\u002F↓\u002Fvv\u002Fg' \\\n    -e 's\u002F✓\u002F[x]\u002Fg' \\\n    -e 's\u002F✗\u002F[ ]\u002Fg' \\\n    -e 's\u002F★\u002F*\u002Fg' \\\n    -e 's\u002F●\u002F-\u002Fg' \\\n    -e 's\u002F©\u002F(c)\u002Fg' \\\n    -e 's\u002F®\u002F(r)\u002Fg' \\\n    -e 's\u002F™\u002F(tm)\u002Fg' \\\n    \"$INPUT\" > \"$OUTPUT\"\n\necho \"Sanitized: $INPUT -> $OUTPUT\"\necho \"Verify with: diff $INPUT $OUTPUT\"\n*** Add File: convert_with_fallbacks.sh\n#!\u002Fbin\u002Fbash\n# convert_with_fallbacks.sh - Progressive fallback document conversion\n# Usage: .\u002Fconvert_with_fallbacks.sh \u003Cinput.md> \u003Coutput_format>\n# Formats: pdf, docx, html\n\nif [ -z \"$1\" ] || [ -z \"$2\" ]; then\n  echo \"Usage: $0 \u003Cinput.md> \u003Cpdf|docx|html>\"\n  exit 1\nfi\n\nINPUT=\"$1\"\nFORMAT=\"$2\"\nBASENAME=\"${INPUT%.*}\"\nOUTPUT=\"${BASENAME}.${FORMAT}\"\n\necho \"Converting $INPUT to $FORMAT...\"\n\nif [ \"$FORMAT\" = \"pdf\" ]; then\n  echo \"Attempt 1: pandoc default\"\n  if pandoc \"$INPUT\" -o \"$OUTPUT\" 2>\u002Fdev\u002Fnull; then\n    echo \"Success with pandoc default\"\n    exit 0\n  fi\n  \n  echo \"Attempt 2: pandoc with xeLaTeX\"\n  if pandoc \"$INPUT\" -o \"$OUTPUT\" --pdf-engine=xelatex 2>\u002Fdev\u002Fnull; then\n    echo \"Success with xeLaTeX\"\n    exit 0\n  fi\n  \n  echo \"Attempt 3: pandoc with wkhtmltopdf\"\n  if pandoc \"$INPUT\" -o \"$OUTPUT\" --pdf-engine=wkhtmltopdf 2>\u002Fdev\u002Fnull; then\n    echo \"Success with wkhtmltopdf\"\n    exit 0\n  fi\n  \n  echo \"Attempt 4: Python fpdf2\"\n  if python3 -c \"\nfrom fpdf import FPDF\nimport re\npdf = FPDF()\npdf.add_page()\npdf.set_font('Arial', '', 12)\nwith open('$INPUT', 'r') as f:\n    for line in f:\n        clean = re.sub(r'[#*_\\`]', '', line)\n        if clean.strip():\n            pdf.cell(0, 10, clean.strip(), ln=True)\npdf.output('$OUTPUT')\n\" 2>\u002Fdev\u002Fnull; then\n    echo \"Success with fpdf2\"\n    exit 0\n  fi\n  \n  echo \"All PDF conversion methods failed\"\n  exit 1\n\nelif [ \"$FORMAT\" = \"docx\" ]; then\n  echo \"Attempt 1: pandoc\"\n  if pandoc \"$INPUT\" -o \"$OUTPUT\" 2>\u002Fdev\u002Fnull; then\n    echo \"Success with pandoc\"\n    exit 0\n  fi\n  \n  echo \"Pandoc failed for DOCX - consider Python fallback (python-docx)\"\n  exit 1\n\nelif [ \"$FORMAT\" = \"html\" ]; then\n  echo \"Attempt 1: pandoc\"\n  if pandoc \"$INPUT\" -o \"$OUTPUT\" 2>\u002Fdev\u002Fnull; then\n    echo \"Success with pandoc\"\n    exit 0\n  fi\n  \n  echo \"Attempt 2: Python markdown\"\n  if python3 -c \"\nimport markdown\nwith open('$INPUT', 'r') as f:\n    content = f.read()\nhtml = markdown.markdown(content)\nwith open('$OUTPUT', 'w') as f:\n    f.write(f'\u003C!DOCTYPE html>\u003Chtml>\u003Cbody>{html}\u003C\u002Fbody>\u003C\u002Fhtml>')\n\" 2>\u002Fdev\u002Fnull; then\n    echo \"Success with markdown library\"\n    exit 0\n  fi\n  \n  echo \"All HTML conversion methods failed\"\n  exit 1\n\nelse\n  echo \"Unknown format: $FORMAT (use pdf, docx, or html)\"\n  exit 1\nfi\n","# Resilient Document Generation Pipeline\n\n## When to Use This Skill\n\nUse this workflow when generating documents in **challenging environments** where:\n\n- **Tool failures are likely or have occurred**: `read_file`, `search_web`, `read_webpage`, or `execute_code_sandbox` return errors\n- **Multiple formats are needed**: Generate `.docx`, `.pdf`, `.html` from the same source\n- **Unicode\u002Fspecial characters are present**: Documents contain em dashes, curly quotes, arrows, symbols, or non-ASCII text\n- **Primary conversion methods may fail**: LaTeX\u002Fpandoc may not be available or misconfigured\n\nThis skill combines **early failure detection**, **domain-knowledge content creation**, **progressive conversion fallbacks**, and **Unicode safety** into a single resilient workflow.\n\n## Core Workflow Overview\n\n```\n┌─────────────────────────────────────────────────────────────────┐\n│  1. DETECT tool failures (2+ indicators → pivot immediately)   │\n└────────────────┬────────────────────────────────────────────────┘\n                 │\n┌────────────────▼────────────────────────────────────────────────┐\n│  2. CREATE content with write_file using embedded domain       │\n│     knowledge (professionally structured markdown)              │\n└────────────────┬────────────────────────────────────────────────┘\n                 │\n┌────────────────▼────────────────────────────────────────────────┐\n│  3. SANITIZE unicode (create LaTeX-safe version for PDF)       │\n└────────────────┬────────────────────────────────────────────────┘\n                 │\n┌────────────────▼────────────────────────────────────────────────┐\n│  4. CONVERT with progressive fallbacks:                        │\n│     pandoc → reportlab → fpdf2 → wkhtmltopdf                   │\n└────────────────┬────────────────────────────────────────────────┘\n                 │\n┌────────────────▼────────────────────────────────────────────────┐\n│  5. VERIFY outputs exist and are valid                          │\n└─────────────────────────────────────────────────────────────────┘\n```\n\n## Step-by-Step Workflow\n\n### Step 1: Detect Tool Failure Pattern\n\n**Before attempting document generation**, check for failure indicators:\n\n```\nTOOL_FAILURE_INDICATORS = [\n    \"read_file returns binary\u002Fimage data instead of text\",\n    \"search_web returns unknown error or empty results\",\n    \"read_webpage returns unknown error on multiple URLs\",\n    \"execute_code_sandbox fails unexpectedly\",\n    \"pandoc command fails with 'unknown error'\",\n    \"Multiple consecutive tool failures on data retrieval\"\n]\n```\n\n**Decision point**: If **2+ indicators** are present within the first 2-3 iterations:\n\n1. **Stop** attempting to fix the failing tools\n2. **Acknowledge** the limitation briefly in your output\n3. **Commit** to generating the document with available knowledge\n4. **Proceed** to Step 2 immediately\n\n### Step 2: Create Content with write_file\n\nWrite your document as **professionally structured Markdown** using embedded domain knowledge:\n\n```\nwrite_file\npath: \u002Ftmp\u002Fdocument_source.md\ncontent: |\n  # [Document Title]\n  \n  ## Executive Summary\n  [Brief overview of key content - use domain knowledge]\n  \n  ## Background\n  [Context and scope - leverage embedded expertise]\n  \n  ## Main Content\n  [Organized sections with headers, lists, tables]\n  \n  ## Limitations & Notes\n  [Transparent about data source limitations if relevant]\n  \n  ## Recommendations\u002FNext Steps\n  [Actionable guidance based on available information]\n```\n\n**Best practices for content:**\n- Use **general domain knowledge** appropriately when external data is unavailable\n- **Clearly distinguish** between verified facts and general guidance\n- Include **actionable frameworks** rather than specific unverified data\n- Add **placeholder notes** where specific data would enhance the document:\n\n```markdown\n> **Note**: Specific [metric\u002Fdata point] would typically be sourced from \n> [expected source]. The guidance below reflects established best practices.\n```\n\n### Step 3: Sanitize Unicode Characters (Pre-PDF Conversion)\n\n**Critical**: PDF generation via pandoc typically uses LaTeX, which has limited Unicode support. Create a sanitized version:\n\n#### Option A: Manual write_file (Recommended for control)\n\n```\nwrite_file\npath: \u002Ftmp\u002Fdocument_source_sanitized.md\ncontent: |\n  [Same content as Step 2, but with these replacements:]\n```\n\n**Character replacement table:**\n\n| Character | Issue | Safe Replacement |\n|-----------|-------|------------------|\n| `—` (em dash) | May not render | `--` or `-` |\n| `–` (en dash) | May not render | `-` |\n| `\" \"` (curly quotes) | Encoding errors | `\" \"` (straight quotes) |\n| `' '` (curly apostrophe) | Encoding errors | `'` (straight apostrophe) |\n| `…` (ellipsis) | May not render | `...` |\n| `→` `←` `↑` `↓` (arrows) | LaTeX incompatibility | `->` `\u003C-` `^` `v` |\n| `✓` `✗` (checkmarks) | May not render | `[x]` `[ ]` |\n| `★` `●` (symbols) | May not render | `*` `-` |\n| `©` `®` `™` | May require packages | `(c)` `(r)` `(tm)` |\n| Non-ASCII letters (é, ñ, ü) | Font-dependent | Use xeLaTeX or keep for non-PDF formats |\n\n#### Option B: Shell script sanitization\n\n```\nrun_shell\ncommand: sed -e 's\u002F—\u002F--\u002Fg' -e 's\u002F–\u002F-\u002Fg' -e 's\u002F\"([^\"]*)\"\u002F\"\\1\"\u002Fg' -e \"s\u002F'([^']*)\u002F'\\1'\u002Fg\" -e 's\u002F…\u002F...\u002Fg' -e 's\u002F→\u002F->\u002Fg' -e 's\u002F←\u002F\u003C-\u002Fg' -e 's\u002F©\u002F(c)\u002Fg' -e 's\u002F®\u002F(r)\u002Fg' -e 's\u002F™\u002F(tm)\u002Fg' \u002Ftmp\u002Fdocument_source.md > \u002Ftmp\u002Fdocument_source_sanitized.md\n```\n\n**Important**: Keep the original unsanitized file for DOCX\u002FHTML conversion (these formats handle Unicode better).\n\n### Step 4: Convert to Target Formats with Progressive Fallbacks\n\nUse `run_shell` with **progressive fallback** strategy. Try each method; if it fails, move to the next.\n\n#### For DOCX (from original markdown):\n\n```\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fdocument_source.md -o output.docx\n```\n\n**Fallback if pandoc fails:**\n```\nexecute_code_sandbox\ncode: |\n  from docx import Document\n  # Parse markdown and create DOCX with python-docx\n  # (Implementation depends on complexity needs)\n```\n\n#### For PDF (from sanitized markdown):\n\n**Attempt 1 - pandoc with default engine:**\n```\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fdocument_source_sanitized.md -o output.pdf\n```\n\n**Attempt 2 - pandoc with xeLaTeX (better Unicode):**\n```\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fdocument_source_sanitized.md -o output.pdf --pdf-engine=xelatex\n```\n\n**Attempt 3 - pandoc with wkhtmltopdf:**\n```\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fdocument_source_sanitized.md -o output.pdf --pdf-engine=wkhtmltopdf\n```\n\n**Attempt 4 - Python fpdf2 (most reliable fallback):**\n```\nexecute_code_sandbox\ncode: |\n  from fpdf import FPDF\n  import re\n  \n  # Read sanitized markdown\n  with open('\u002Ftmp\u002Fdocument_source_sanitized.md', 'r') as f:\n      content = f.read()\n  \n  # Simple markdown-to-PDF conversion\n  pdf = FPDF()\n  pdf.add_page()\n  pdf.set_font('Arial', '', 12)\n  \n  # Process content (strip markdown, handle basic formatting)\n  lines = content.split('\\n')\n  for line in lines:\n      # Remove markdown syntax\n      clean = re.sub(r'[#*_`]', '', line)\n      if clean.strip():\n          pdf.cell(0, 10, clean, ln=True)\n  \n  pdf.output('output.pdf')\n  print('PDF created successfully')\n```\n\n**Attempt 5 - Python reportlab (alternative):**\n```\nexecute_code_sandbox\ncode: |\n  from reportlab.lib.pagesizes import letter\n  from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer\n  from reportlab.lib.styles import getSampleStyleSheet\n  import re\n  \n  doc = SimpleDocTemplate('output.pdf', pagesize=letter)\n  styles = getSampleStyleSheet()\n  story = []\n  \n  with open('\u002Ftmp\u002Fdocument_source_sanitized.md', 'r') as f:\n      content = f.read()\n  \n  lines = content.split('\\n')\n  for line in lines:\n      clean = re.sub(r'[#*_`]', '', line)\n      if clean.strip():\n          story.append(Paragraph(clean, styles['Normal']))\n          story.append(Spacer(1, 6))\n  \n  doc.build(story)\n  print('PDF created with reportlab')\n```\n\n#### For HTML (from original markdown):\n\n```\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fdocument_source.md -o output.html\n```\n\n**Fallback if pandoc fails:**\n```\nexecute_code_sandbox\ncode: |\n  import markdown\n  with open('\u002Ftmp\u002Fdocument_source.md', 'r') as f:\n      md_content = f.read()\n  html_content = markdown.markdown(md_content)\n  with open('output.html', 'w') as f:\n      f.write(f'\u003C!DOCTYPE html>\u003Chtml>\u003Cbody>{html_content}\u003C\u002Fbody>\u003C\u002Fhtml>')\n```\n\n### Step 5: Verify Outputs\n\nCheck that files were created successfully and have reasonable sizes:\n\n```\nrun_shell\ncommand: ls -lh output.* 2>\u002Fdev\u002Fnull || echo \"Some outputs missing\"\n```\n\n```\nrun_shell\ncommand: file output.pdf output.docx output.html 2>\u002Fdev\u002Fnull\n```\n\n**Validation criteria:**\n- [ ] File exists\n- [ ] File size > 0 bytes\n- [ ] File command recognizes the format correctly\n- [ ] (Optional) Open\u002Fpreview the file to confirm content renders\n\n## Complete Example\n\n```markdown\n# Generate Project Status Report\n\n## Step 1: Detect failures (if applicable)\nTool check: read_webpage failed 3x, search_web failed 2x → PIVOT to fallback workflow\n\n## Step 2: Write Markdown source\nwrite_file\npath: \u002Ftmp\u002Fproject_status.md\ncontent: |\n  # Project Status Report\n  \n  ## Executive Summary\n  This report summarizes project progress using established methodologies.\n  \n  ## Current Status\n  - Phase 1: Complete\n  - Phase 2: In Progress (75%)\n  - Phase 3: Not Started\n  \n  ## Risks & Mitigation\n  Standard risk framework applied...\n  \n  ## Recommendations\n  1. Continue current trajectory\n  2. Schedule stakeholder review\n\n> **Note**: Specific metrics from project management tool were unavailable; guidance reflects standard practices.\n\n## Step 3: Sanitize for PDF\nwrite_file\npath: \u002Ftmp\u002Fproject_status_sanitized.md\ncontent: |\n  [Same content with any special chars replaced per table above]\n\n## Step 4: Convert (try each, proceed on failure)\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fproject_status.md -o project_status.docx\n\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fproject_status_sanitized.md -o project_status.pdf\n\nrun_shell\ncommand: pandoc \u002Ftmp\u002Fproject_status.md -o project_status.html\n\n## Step 5: Verify\nrun_shell\ncommand: ls -lh project_status.*\n```\n\n## Decision Tree for Conversion Failures\n\n```\npandoc PDF fails?\n  ├─→ Try --pdf-engine=xelatex\n  │   └─→ Fails?\n  │       ├─→ Try --pdf-engine=wkhtmltopdf\n  │       │   └─→ Fails?\n  │       │       └─→ Use Python fpdf2 (most reliable)\n  │       └─→ Success → Done\n  └─→ Success → Done\n```\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| PDF generation fails with encoding error | Use sanitized markdown; try `--pdf-engine=xelatex` |\n| Pandoc not found | Install via `apt-get install pandoc` or use Python fallbacks |\n| LaTeX not found | Use `--pdf-engine=wkhtmltopdf` or Python fpdf2 |\n| DOCX formatting issues | Add `--reference-doc=template.docx` for custom styles |\n| Unicode in any format | Use `-f markdown+utf8`; ensure UTF-8 encoding with `file -i source.md` |\n| All pandoc commands fail | Fall back to Python libraries (fpdf2, reportlab, python-docx, markdown) |\n| Python libraries missing | Install via `pip install fpdf2 reportlab python-docx markdown` |\n\n## Advantages Over Standard Approaches\n\n| Aspect | Standard Approach | Resilient Pipeline |\n|--------|------------------|-------------------|\n| Tool failure response | Retry same approach | Detect pattern, pivot immediately |\n| Content source | External data only | Embedded domain knowledge when needed |\n| Conversion robustness | Single method | Progressive fallbacks (5+ options) |\n| Unicode handling | May cause failures | Proactive sanitization |\n| Verification | Optional | Built-in validation step |\n| Transparency | May hide limitations | Explicit about constraints |\n\n## Best Practices\n\n| Do | Don't |\n|----|-------|\n| Pivot after 2+ tool failures | Retry failing tools 5+ times |\n| Sanitize before PDF conversion | Send raw Unicode to LaTeX |\n| Try multiple conversion methods | Give up after first failure |\n| Be transparent about limitations | Claim unverified facts as certain |\n| Verify all outputs | Assume files were created |\n| Use progressive fallbacks | Hard-code single approach |\n\n## When to Return to Standard Methods\n\nAfter successfully completing the resilient pipeline:\n\n1. **For similar future tasks**: You can attempt standard `shell_agent` delegation first\n2. **Keep this skill ready**: Use immediately if tool failures recur\n3. **For Unicode-heavy documents**: Consider always using this workflow with sanitization\n4. **For critical deliverables**: This workflow provides maximum reliability\n\n## Related Skills\n\n- `document-gen-fallback-enhanced`: Original Unicode-safe fallback (parent)\n- `write-file-fallback-report`: Domain-knowledge report generation (parent)\n- Use this unified skill when you need **all capabilities combined** in one workflow\n*** End Files\n*** Add File: sanitize_for_pdf.sh\n#!\u002Fbin\u002Fbash\n# sanitize_for_pdf.sh - Replace problematic unicode chars for LaTeX\u002FPDF\n# Usage: .\u002Fsanitize_for_pdf.sh \u003Cinput.md> [output.md]\n\nif [ -z \"$1\" ]; then\n  echo \"Usage: $0 \u003Cinput.md> [output.md]\"\n  exit 1\nfi\n\nINPUT=\"$1\"\nOUTPUT=\"${2:-${1%.md}_sanitized.md}\"\n\n# Check input file exists\nif [ ! -f \"$INPUT\" ]; then\n  echo \"Error: Input file not found: $INPUT\"\n  exit 1\nfi\n\n# Apply sanitization replacements\nsed -e 's\u002F—\u002F--\u002Fg' \\\n    -e 's\u002F–\u002F-\u002Fg' \\\n    -e 's\u002F\"([^\"]*)\"\u002F\"\\1\"\u002Fg' \\\n    -e \"s\u002F'([^']*)\u002F'\\1'\u002Fg\" \\\n    -e 's\u002F…\u002F...\u002Fg' \\\n    -e 's\u002F→\u002F->\u002Fg' \\\n    -e 's\u002F←\u002F\u003C-\u002Fg' \\\n    -e 's\u002F↑\u002F^^\u002Fg' \\\n    -e 's\u002F↓\u002Fvv\u002Fg' \\\n    -e 's\u002F✓\u002F[x]\u002Fg' \\\n    -e 's\u002F✗\u002F[ ]\u002Fg' \\\n    -e 's\u002F★\u002F*\u002Fg' \\\n    -e 's\u002F●\u002F-\u002Fg' \\\n    -e 's\u002F©\u002F(c)\u002Fg' \\\n    -e 's\u002F®\u002F(r)\u002Fg' \\\n    -e 's\u002F™\u002F(tm)\u002Fg' \\\n    \"$INPUT\" > \"$OUTPUT\"\n\necho \"Sanitized: $INPUT -> $OUTPUT\"\necho \"Verify with: diff $INPUT $OUTPUT\"\n*** Add File: convert_with_fallbacks.sh\n#!\u002Fbin\u002Fbash\n# convert_with_fallbacks.sh - Progressive fallback document conversion\n# Usage: .\u002Fconvert_with_fallbacks.sh \u003Cinput.md> \u003Coutput_format>\n# Formats: pdf, docx, html\n\nif [ -z \"$1\" ] || [ -z \"$2\" ]; then\n  echo \"Usage: $0 \u003Cinput.md> \u003Cpdf|docx|html>\"\n  exit 1\nfi\n\nINPUT=\"$1\"\nFORMAT=\"$2\"\nBASENAME=\"${INPUT%.*}\"\nOUTPUT=\"${BASENAME}.${FORMAT}\"\n\necho \"Converting $INPUT to $FORMAT...\"\n\nif [ \"$FORMAT\" = \"pdf\" ]; then\n  echo \"Attempt 1: pandoc default\"\n  if pandoc \"$INPUT\" -o \"$OUTPUT\" 2>\u002Fdev\u002Fnull; then\n    echo \"Success with pandoc default\"\n    exit 0\n  fi\n  \n  echo \"Attempt 2: pandoc with xeLaTeX\"\n  if pandoc \"$INPUT\" -o \"$OUTPUT\" --pdf-engine=xelatex 2>\u002Fdev\u002Fnull; then\n    echo \"Success with xeLaTeX\"\n    exit 0\n  fi\n  \n  echo \"Attempt 3: pandoc with wkhtmltopdf\"\n  if pandoc \"$INPUT\" -o \"$OUTPUT\" --pdf-engine=wkhtmltopdf 2>\u002Fdev\u002Fnull; then\n    echo \"Success with wkhtmltopdf\"\n    exit 0\n  fi\n  \n  echo \"Attempt 4: Python fpdf2\"\n  if python3 -c \"\nfrom fpdf import FPDF\nimport re\npdf = FPDF()\npdf.add_page()\npdf.set_font('Arial', '', 12)\nwith open('$INPUT', 'r') as f:\n    for line in f:\n        clean = re.sub(r'[#*_\\`]', '', line)\n        if clean.strip():\n            pdf.cell(0, 10, clean.strip(), ln=True)\npdf.output('$OUTPUT')\n\" 2>\u002Fdev\u002Fnull; then\n    echo \"Success with fpdf2\"\n    exit 0\n  fi\n  \n  echo \"All PDF conversion methods failed\"\n  exit 1\n\nelif [ \"$FORMAT\" = \"docx\" ]; then\n  echo \"Attempt 1: pandoc\"\n  if pandoc \"$INPUT\" -o \"$OUTPUT\" 2>\u002Fdev\u002Fnull; then\n    echo \"Success with pandoc\"\n    exit 0\n  fi\n  \n  echo \"Pandoc failed for DOCX - consider Python fallback (python-docx)\"\n  exit 1\n\nelif [ \"$FORMAT\" = \"html\" ]; then\n  echo \"Attempt 1: pandoc\"\n  if pandoc \"$INPUT\" -o \"$OUTPUT\" 2>\u002Fdev\u002Fnull; then\n    echo \"Success with pandoc\"\n    exit 0\n  fi\n  \n  echo \"Attempt 2: Python markdown\"\n  if python3 -c \"\nimport markdown\nwith open('$INPUT', 'r') as f:\n    content = f.read()\nhtml = markdown.markdown(content)\nwith open('$OUTPUT', 'w') as f:\n    f.write(f'\u003C!DOCTYPE html>\u003Chtml>\u003Cbody>{html}\u003C\u002Fbody>\u003C\u002Fhtml>')\n\" 2>\u002Fdev\u002Fnull; then\n    echo \"Success with markdown library\"\n    exit 0\n  fi\n  \n  echo \"All HTML conversion methods failed\"\n  exit 1\n\nelse\n  echo \"Unknown format: $FORMAT (use pdf, docx, or html)\"\n  exit 1\nfi\n",{"name":5,"description":7},"main","0650921d63895de3997bc81f1ff1d0ac67032072","gdpval_bench\u002Fskills\u002Fdocument-gen-fallback-enhanced-merged","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution","https:\u002F\u002Fgithub.com\u002FUF-gzj","2026-04-16 09:31:03",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add UF-gzj\u002Fopenspace-claude-evolution --skill resilient-document-pipeline",{"tool":54,"command":55},"bunx","bunx skills add UF-gzj\u002Fopenspace-claude-evolution --skill resilient-document-pipeline",{"tool":57,"command":58},"pnpm","pnpm dlx skills add UF-gzj\u002Fopenspace-claude-evolution --skill resilient-document-pipeline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fdocument-gen-fallback-enhanced-merged\u002FSKILL.md",true,[62],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},".skill_id","OTHER","其他",51,"https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fgdpval_bench\u002Fskills\u002Fdocument-gen-fallback-enhanced-merged\u002F.skill_id",[69,94,110,119,149,165],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":37},"01M6XCCXD3NCM2YKR3WNGBASPC","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\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-ts-check\u002FSKILL.md",[],[76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],"check","write","write special chars ts check","typescript","filters","characters","Existing","type-checking","for","errors","script","output","type","files","only","template","file","python",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":37},"01M6XCCT7E3J922Q345PBGSHPN","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\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-readback\u002FSKILL.md",[],[101,102,77,92,103,93,104,105,106,107,108,91,109,36,81,84,86],"readback","write special chars readback","helper","post","via","scripts","cleanup","read","verification",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":37},"01M6XCCMQX1R8B6FECWB3P63T7","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\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fwrite-special-chars-heredoc\u002FSKILL.md",[],[117,77,81,118,86,105,91,92,93,84],"write special chars heredoc","shell",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":130,"publishedAt":37},"01M6XCCG41M994JJEX6VN52PEP","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\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fworldmonitor-reference\u002FSKILL.md",[125],{"categoryNo":126,"categoryName":127,"taxonomyType":128,"taxonomyTypeDesc":129},"01JBSEEDCAT000000000000033","数据分析师","PROFESSION","适用职业",[131,132,133,134,135,79,136,137,138,139,140,84,141,142,143,144,145,146,147,148],"reference","worldmonitor","worldmonitor reference","architecture","dashboard","css","scheduler","layer","hierarchy","source","extracting","panel","patterns","edge functions","integrations","open","api","data",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":37},"01M6XCCCHWNKG2W4VH9E6A10HF","virtual-list","Implement efficient virtual scrolling for rendering large lists with DOM recycling, chunk-based rendering, and performance optimizations","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fvirtual-list\u002FSKILL.md",[],[156,157,158,159,84,160,36,161,162,163,164],"virtual list","list","virtual","chunk","dom","rendering","recycling","implement","performance",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":37},"01M6XCC7X8PKMR2DEW91XGHYSV","verify-directory-structure","Diagnose and resolve file access issues by first verifying the directory structure.","https:\u002F\u002Fgithub.com\u002FUF-gzj\u002Fopenspace-claude-evolution\u002Fblob\u002Fmain\u002Fshowcase\u002Fskills\u002Fverify-directory-structure\u002FSKILL.md",[],[172,173,174,175,176,177,92,178,179,180],"directory","verify directory structure","structure","verify","access","first","issues","diagnose","file access"]