Pular para o conteúdo
Skillpedia
PDF, Word e slides7,8 mil · #12999

shell-doc-gen-and-locate

O que ela faz

Esta skill mostra ao agente de IA como criar apresentações ou PDFs por meio de script quando as chamadas diretas às bibliotecas falham, e depois levar o arquivo para a pasta de trabalho. É para pessoas que precisam de slides ou PDFs gerados por script.

Quando usar

  • ✓Quando a criação direta do documento falha e um script de shell pode produzir o arquivo.
  • ✓Quando você precisa de um arquivo PowerPoint ou PDF que o script salvou em um lugar inesperado.
  • ✓Quando você quer o arquivo final movido para a pasta de trabalho para facilitar o acesso.

Link da skill

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/shell-doc-gen-and-locate/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/shell-doc-gen-and-locate/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Gere uma apresentação do PowerPoint a partir do meu roteiro com um script, depois encontre o arquivo e mova-o para a minha pasta de trabalho.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente escreve um script que cria o arquivo e imprime uma confirmação. Em seguida usa o find para procurar a saída no espaço de trabalho, filtra por alterações recentes se necessário e copia o arquivo para a pasta de trabalho.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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.
Perguntas frequentes

Por que o script precisa imprimir uma mensagem?

A confirmação impressa mostra que o script terminou, o que ajuda o agente a saber quando procurar o arquivo.

Como o agente encontra um PDF?

Ele executa um find recursivo por arquivos PDF em todo o espaço de trabalho.

Ele consegue escolher a versão certa?

Sim. A skill sugere filtrar pela data de modificação quando há várias versões.

Detalhes

Descrição original do autor

Generate documents via shell commands and locate nested outputs using find.

repo: HKUDS/AgentPilot

Popularidade

Estrelas no GitHub
7,8 mil
Posição no ranking
#12999
Licença
MIT
Atualizada em
01/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas