Saltar al contenido
Skillpedia
Agentes7,8 mil · #12998

shell-agent-file-workflow

Qué hace

Este flujo de trabajo guía al agente de IA para que un agente de shell cree archivos complejos y después los localice. Está pensado para quienes sus herramientas de archivos fallan con formatos como diapositivas, documentos o PDF.

Cuándo usarla

  • ✓Cuando las herramientas directas de creación de archivos fallan con un formato complejo como diapositivas o documentos.
  • ✓Cuando el archivo necesita varios pasos, bibliotecas o correcciones de errores para generarse.
  • ✓Cuando el archivo generado podría guardarse en una carpeta anidada que no encuentras fácilmente.

Link de la skill

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/shell-agent-file-workflow/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-agent-file-workflow/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

“Crea una presentación de PowerPoint para nuestra revisión trimestral. Las herramientas directas fallaron, así que haz que un agente de shell la construya y después busca el archivo.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente da al agente de shell una tarea clara. Cuando el agente de shell termina, el agente busca en el espacio de trabajo el archivo nuevo por nombre y por fecha de modificación reciente, para encontrarlo en cualquier carpeta anidada.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Shell Agent File Generation Workflow

When direct document or file generation approaches fail, delegate the task to shell_agent which can autonomously write code, execute it, and retry on errors. Generated files may appear in nested workspace directories.

When to Use

  • Direct file generation tools or create_file functions fail for complex formats
  • Complex file creation requiring multiple steps, libraries, or error recovery
  • When you need an autonomous agent to figure out how to accomplish a goal
  • File generation that requires iteration and automatic error fixing

Workflow Steps

Step 1: Delegate File Generation to shell_agent

Use shell_agent with a clear, specific task description:

shell_agent(task="Create a [file type] with [specific content/structure requirements]")

The agent will:

  • Decide whether to use Python or Bash
  • Write and execute code
  • Inspect output and iterate
  • Automatically retry and fix errors (up to several rounds)

Step 2: Locate Generated Files

Files may be created in nested directories within the workspace. Use find to locate them:

find . -name "*.extension" -type f

For multiple file types:

find . -type f \( -name "*.pptx" -o -name "*.docx" -o -name "*.pdf" \)

For recently modified files (last 10 minutes):

find . -name "*.extension" -type f -mmin -10

Step 3: Copy Files to Working Directory

Once located, copy the file to your working directory:

cp /path/to/found/file.extension ./

Example

Creating a PowerPoint Presentation

# Step 1: Delegate to shell_agent
shell_agent(task="Create a 10-slide PowerPoint presentation covering: topic A, topic B, topic C")

# Step 2: Find the generated file
find . -name "*.pptx" -type f

# Output might show: ./workspace/nested/path/presentation.pptx

# Step 3: Copy to working directory
cp ./workspace/nested/path/presentation.pptx ./

Creating a PDF Report

# Step 1: Delegate generation
shell_agent(task="Generate a PDF report with charts and tables from the provided data")

# Step 2: Locate output
find . -name "*.pdf" -type f -mmin -5

# Step 3: Retrieve file
cp ./generated/reports/output.pdf ./

Tips

  • Be specific in task description: Include file format, structure, and content requirements explicitly
  • Check multiple extensions: If unsure of output format, search for common extensions
  • Use modification time: Filter by recent files to identify newly created outputs
  • Verify file integrity: After copying, check that the file is valid and complete

Troubleshooting

Issue Solution
No files found Expand search: remove extension filter, increase time window
Multiple files found Sort by modification time: find . -name "*.ext" -type f -printf '%T@ %p\n' | sort -n
File is corrupted Re-run shell_agent with more specific requirements
Permission errors Use sudo or check directory permissions
Preguntas frecuentes

¿Cómo encuentra el agente el archivo?

Usa el comando find para buscar por tipo de archivo, y puede filtrar los archivos modificados en los últimos minutos.

¿Qué tipos de archivo puede buscar?

La skill menciona archivos PowerPoint, Word y PDF como ejemplos.

¿Qué pasa si existen varias versiones?

La skill sugiere filtrar por fecha de modificación para elegir la más reciente.

Detalles

Descripción original del autor

Delegate file generation to shell_agent when direct tools fail, with systematic file location and retrieval

repo: HKUDS/AgentPilot

Popularidad

Estrellas en GitHub
7,8 mil
Posición en el ranking
#12998
Licencia
MIT
Actualizada
1/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas