# Resilient Document Pipeline

Unified document generation with tool failure detection, domain knowledge fallback...

- Repository: https://github.com/HKUDS/AgentPilot (7784 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add HKUDS/AgentPilot --skill resilient-document-pipeline -g -a claude-code -y`
Codex: `npx skills add HKUDS/AgentPilot --skill resilient-document-pipeline -g -a codex -y`
Cursor: `npx skills add HKUDS/AgentPilot --skill resilient-document-pipeline -g -a cursor -y`
Gemini CLI: `npx skills add HKUDS/AgentPilot --skill resilient-document-pipeline -g -a gemini-cli -y`

## Description

Unified document generation with tool failure detection, domain knowledge fallback, progressive conversion, and Unicode safety

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Resilient Document Generation Pipeline

## When to Use This Skill

Use this workflow when generating documents in **challenging environments** where:

- **Tool failures are likely or have occurred**: `read_file`, `search_web`, `read_webpage`, or `execute_code_sandbox` return errors
- **Multiple formats are needed**: Generate `.docx`, `.pdf`, `.html` from the same source
- **Unicode/special characters are present**: Documents contain em dashes, curly quotes, arrows, symbols, or non-ASCII text
- **Primary conversion methods may fail**: LaTeX/pandoc may not be available or misconfigured

This skill combines **early failure detection**, **domain-knowledge content creation**, **progressive conversion fallbacks**, and **Unicode safety** into a single resilient workflow.

## Core Workflow Overview

The rest: https://github.com/HKUDS/AgentPilot/blob/HEAD/openspace/benchmarks/gdpval/skills/document-gen-fallback-enhanced-merged/SKILL.md
