shell-doc-gen-and-locate
Qué hace
Esta skill muestra al agente de IA cómo crear presentaciones o PDF mediante un script cuando fallan las llamadas directas a bibliotecas, y después llevar el archivo a la carpeta de trabajo. Está pensada para quienes necesitan diapositivas o PDF generados con un script.
Cuándo usarla
- ✓Cuando falla la creación directa de documentos y un script de shell puede producir el archivo en su lugar.
- ✓Cuando necesitas un archivo PowerPoint o PDF que el script guardó en un lugar inesperado.
- ✓Cuando quieres que el archivo terminado se mueva a la carpeta de trabajo para acceder a él fácilmente.
Link de la skill
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/shell-doc-gen-and-locate/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
“Genera un PowerPoint a partir de mi esquema con un script, después busca el archivo y muévelo a mi carpeta de trabajo.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente escribe un script que crea el archivo e imprime una confirmación. Después usa find para buscar la salida en el espacio de trabajo, filtra por cambios recientes si hace falta y copia el archivo a la carpeta de trabajo.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Shell Document Generation and Retrieval Workflow
Objective
Enable reliable file creation (e.g., PowerPoint, PDFs) when direct API or library-based generation fails, ensuring the final artifact is located and moved to the working directory regardless of nested output paths.
When to Use
- Standard document generation tools (e.g., direct Python library calls in-memory) fail or are unavailable.
- The
shell_agentcapability is available for executing scripts. - Generated files may be saved in unpredictable nested directories within the workspace.
Procedure
1. Attempt Shell-Based Generation
If direct tool invocation fails, delegate file creation to a shell-executed script.
- Write a script (e.g.,
generate_presentation.pyormake_doc.sh) that produces the file. - Execute the script via the shell agent.
- Ensure the script prints confirmation upon completion.
2. Locate the Output File
Do not assume the file is in the current directory. Shell scripts often create outputs in nested folders (e.g., ./workspace/output/, ./build/).
Use the
findcommand to search the workspace recursively.Example for PowerPoint files:
find . -type f -name "*.pptx"
Example for PDF files:
find . -type f -name "*.pdf"
Filter results by modification time if multiple versions exist (e.g.,
-mmin -10).
3. Retrieve to Working Directory
Once the file path is identified:
Copy the file to the root working directory or the expected delivery location.
cp /path/to/nested/file.pptx ./
Verify the file exists and is non-zero size.
4. Verification
- Confirm the file opens correctly or meets size expectations.
- If the file is not found after
find, check stderr of the generation script for path clues.
Best Practices
- Explicit Paths: Whenever possible, configure generation scripts to output to a known relative path (e.g.,
./output/filename.pptx). - Cleanup: Remove nested temporary copies after retrieving the final version to avoid confusion.
- Logging: Echo the final absolute path of the generated file in the script stdout to simplify locating.
Preguntas frecuentes
¿Por qué debe el script imprimir un mensaje?
La confirmación impresa indica que el script terminó, lo que ayuda al agente a saber cuándo buscar el archivo.
¿Cómo encuentra el agente un PDF?
Ejecuta una búsqueda recursiva de archivos PDF en todo el espacio de trabajo.
¿Puede elegir la versión correcta?
Sí. La skill sugiere filtrar por fecha de modificación cuando hay varias versiones.
Detalles
Descripción original del autor
Generate documents via shell commands and locate nested outputs using find.
repo: HKUDS/AgentPilot
Popularidad
- Estrellas en GitHub
- 7,8 mil
- Posición en el ranking
- #12999
- 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
feishu-doc
394 milAyuda a tu agente a leer, crear y editar documentos en la nube de Feishu, incluidos texto, imágenes y tablas, usando la herramienta de documentos.
feishu-drive
394 milPermite que tu agente explore, organice y comente archivos de una carpeta de la nube de Feishu que se haya compartido con el bot.
feishu-perm
394 milAyuda a tu agente a revisar y cambiar quién puede acceder a un archivo de Feishu, eligiendo el permiso más pequeño que cumpla tu petición.