graceful-tool-failure
Qué hace
Esta skill indica a la IA cómo responder cuando una herramienta necesaria sigue fallando: enumera qué ha fallado y da una respuesta parcial claramente marcada. Está pensada para quienes necesitan un estado honesto cuando una tarea está bloqueada.
Cuándo usarla
- ✓Cuando una herramienta necesaria, como la extracción de PDF o la búsqueda en la web, ha fallado tres veces o más.
- ✓Cuando los métodos alternativos para el mismo objetivo también han fallado.
- ✓Cuando la tarea no puede terminarse por completo sin la capacidad bloqueada.
Link de la skill
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/graceful-tool-failure/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“La herramienta de PDF sigue fallando con mi archivo y la búsqueda en la web no encuentra nada. Dime qué ha fallado y dame la mejor respuesta parcial, marcada claramente.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA escribe una lista breve de los problemas que bloquean, con los intentos fallidos, y después produce la mejor salida parcial, etiquetada con su nivel de confianza y sus límites.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Graceful Tool Failure Workflow
This skill guides agents on how to respond when critical tools (like PDF extraction, web search, data APIs) fail repeatedly and block task completion.
When to Apply This Skill
Use this pattern when:
- A core tool required for task completion has failed multiple times (3+ attempts with different approaches)
- Alternative approaches to achieve the same goal have also failed
- The task cannot be fully completed without the blocked capability
Step-by-Step Instructions
1. Explicitly Report Blocking Issues
Clearly document what failed and why:
## Blocking Issues
The following tools/approaches were attempted but failed:
1. **PDF Extraction (pdftotext)**: Command returned error - file appears corrupted or uses non-standard encoding
2. **PDF Extraction (PyMuPDF)**: Library could not parse document structure
3. **Web Search**: Search queries returned no relevant results for [specific topic]
These failures prevent completion of [specific deliverable].
2. Attempt Minimal Viable Output
Using available domain knowledge, create the best possible output with clear limitations:
## Partial Output (Based on Domain Knowledge)
*Note: The following content is derived from general domain knowledge rather than the requested source materials.*
[Insert best-effort content here]
**Confidence Level**: Low - content has not been verified against source documents
**Recommendation**: Verify all claims against original source materials when available
3. Avoid Claiming Success
Never state the task is complete when core deliverables are missing or unverified:
Incorrect:
"Task completed successfully."
Correct:
"Task partially completed. Core deliverable [X] could not be produced due to tool failures. Minimal viable output provided with disclaimers. Manual review or alternative data sources recommended."
4. Provide Actionable Next Steps
Suggest concrete actions for human operators or alternative approaches:
## Recommended Next Steps
1. Obtain the source document in an alternative format (e.g., request text version from document owner)
2. Manually extract key information from the PDF and provide as text input
3. Use alternative tools: [list specific tools or services]
4. Proceed with partial output acknowledging limitations: [describe what can still be accomplished]
Code Examples
Example: Python Script with Fallback Behavior
def extract_with_fallback(pdf_path):
"""Attempt PDF extraction with multiple methods, fail gracefully."""
methods = [
("pdftotext", lambda p: run_shell(f"pdftotext {p} -")),
("PyMuPDF", lambda p: extract_with_pymupdf(p)),
("pdfplumber", lambda p: extract_with_pdfplumber(p)),
]
failures = []
for method_name, method_func in methods:
try:
result = method_func(pdf_path)
if result:
return {"success": True, "content": result}
except Exception as e:
failures.append(f"{method_name}: {str(e)}")
# All methods failed - return graceful failure
return {
"success": False,
"failures": failures,
"message": "All extraction methods failed. Consider manual extraction or alternative source."
}
Example: Response Template for Failed Tasks
## Task Status: PARTIALLY COMPLETE
### What Was Accomplished
- [List completed subtasks]
### What Could Not Be Completed
- [Deliverable X]: Blocked by [specific tool failure]
- [Deliverable Y]: Requires source material that could not be accessed
### Blocking Issues Summary
| Tool/Method | Attempts | Error |
|-------------|----------|-------|
| Tool A | 3 | [error details] |
| Tool B | 2 | [error details] |
### Partial Output (With Disclaimers)
[Insert best-effort work product]
### Recommendations
1. [Action item 1]
2. [Action item 2]
Key Principles
- Transparency Over Optimism: Clearly state what failed rather than obscuring limitations
- Document Attempts: Record which approaches were tried to prevent redundant work
- Preserve Value: Even partial output is better than no output, if properly disclaimed
- Enable Handoff: Make it easy for a human or different system to pick up where you left off
- No False Claims: Never mark a task as "complete" when core requirements are unmet
Anti-Patterns to Avoid
- ❌ Silently skipping failed steps withou
Preguntas frecuentes
¿La IA oculta los fallos?
No. La guía indica enumerar claramente cada herramienta y cada enfoque que han fallado.
¿Cómo se etiqueta la salida parcial?
La guía indica que debe señalar que se basa en conocimientos generales y dar un nivel de confianza.
¿Cuándo se aplica esto?
Se aplica tras varios intentos fallidos, cuando la tarea no puede completarse del todo.
Detalles
Descripción original del autor
Report tool failures transparently and attempt minimal viable output with disclaimers
repo: HKUDS/AgentPilot
Popularidad
- Estrellas en GitHub
- 7,8 mil
- Posición en el ranking
- #12890
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
agentpilot
7,8 milAyuda a tu agente a mejorar un proyecto paso a paso, preparando una tarea y ejecutando el bucle de AgentPilot que propone, prueba y puntúa cambios.
openspace
7,8 milAyuda a tu agente a configurar OpenSpace, una herramienta que guarda y recupera skills de agentes, y a conectarla a tu app de IA mediante MCP.
rsi-arena
7,8 milAyuda a tu agente a configurar y ejecutar pruebas de referencia de IA conocidas, como AIME y Terminal-Bench, para comparar distintos métodos de mejora.
experiment-guide
7,8 milAyuda a tu agente a planificar experimentos pequeños, leer sus resultados y anotar conclusiones mientras investiga cómo mejorar un programa.
Skills parecidas
add-model-provider
394 milPermite que tu agente conecte un nuevo proveedor de modelos de IA a OpenClaw con comandos de configuración seguros, mantenga las claves API fuera del texto plano y haga una prueba en vivo.
acp-router
394 milAyuda a tu agente a enviar una tarea a un asistente de programación como Claude Code o Cursor a través de OpenClaw, para que el trabajo se ejecute en esa herramienta.
browser-automation
394 milEnseña a tu agente a controlar páginas web paso a paso, incluidos los inicios de sesión, las pestañas y la recuperación cuando una página deja de responder.