Saltar al contenido
Skillpedia
PDF, Word y diapositivas7,8 mil · #12999

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.md

Có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

Usa esta skill para ayudarme: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/shell-doc-gen-and-locate/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

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_agent capability 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.py or make_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 find command 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

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas