locate-missing-artifacts
O que ela faz
Esta skill ajuda a IA a recuperar arquivos de saída que parecem ter desaparecido em um ambiente temporário ou isolado. É para pessoas cujas tarefas informam sucesso, mas depois dizem que o arquivo não existe.
Quando usar
- ✓Quando uma ferramenta informa que criou um arquivo, mas ele não está na pasta esperada.
- ✓Quando vejo um erro de arquivo não encontrado logo depois de uma ferramenta afirmar que salvou o arquivo.
- ✓Quando os caminhos em um sandbox parecem mudar de uma etapa para outra.
Link da skill
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/locate-missing-artifacts/SKILL.mdCopie 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
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“A ferramenta diz que salvou meu relatório, mas o arquivo não está onde deveria. Por favor, procure e copie para a pasta certa.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA confirma que o arquivo está ausente do caminho esperado, pesquisa a partir de pastas raiz conhecidas usando find e depois copia o arquivo encontrado para onde ele é necessário.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Locate Missing Artifacts in Sandboxed Environments
When to Use This Skill
Use this skill when:
- A tool reports success but files are not found in their expected locations
- You receive errors like "file not found" after a tool claims to have created it
- You're working in a sandboxed/ephemeral environment where file paths may shift
- Directory structure mismatches occur between tool execution and validation
Step-by-Step Instructions
Step 1: Confirm the Failure
Before searching, verify the file is actually missing from the expected location:
ls -la /expected/path/filename.ext
# or
test -f /expected/path/filename.ext && echo "Found" || echo "Missing"
Step 2: Identify Confirmed Root Directories
Determine which directories you know exist and where tools typically write:
# Common roots to check
ls -la /
ls -la $HOME
ls -la /tmp
ls -la /workspace
ls -la .
Step 3: Search for the Artifact Using find
Use find from confirmed root directories to locate the missing file:
# Search by filename
find /workspace -name "filename.ext" 2>/dev/null
# Search by pattern if exact name varies
find /workspace -name "*.ext" 2>/dev/null
# Search broader paths if needed
find / -name "filename.ext" 2>/dev/null | head -20
Step 4: Copy Artifact to Expected Location
Once located, explicitly copy the file to where it should be:
# Copy to expected location
cp /found/path/filename.ext /expected/path/filename.ext
# Or if you need to preserve the original
cp -r /found/path/filename.ext /expected/path/
# Verify the copy succeeded
ls -la /expected/path/filename.ext
Step 5: Validate Before Proceeding
Confirm the file is now accessible at the expected location:
# Test file exists and is readable
test -f /expected/path/filename.ext && test -r /expected/path/filename.ext && echo "Ready"
# Check file size to ensure it's not empty
stat /expected/path/filename.ext
Common Patterns
Pattern: Output Written to Wrong Directory
# Tool wrote to current directory instead of specified output dir
find . -name "*.docx" -type f
cp ./report.docx ./output/report.docx
Pattern: Temporary Directory Used
# File ended up in /tmp or similar
find /tmp -name "*.pdf" -mtime -1
cp /tmp/generated.pdf ./deliverables/
Pattern: Nested Subdirectory Created
# Tool created extra directory levels
find /workspace -type f -name "*.xlsx"
# May find: /workspace/output/2024/reports/file.xlsx
cp /workspace/output/2024/reports/file.xlsx /workspace/deliverables/
Prevention Tips
- Always specify absolute paths when giving tools output locations
- Check the working directory before and after tool execution:
pwd - Verify immediately after a tool reports success before proceeding
- Use tool-specific confirmations when available (e.g., return paths)
Example: Complete Recovery Workflow
# 1. Tool reported creating report.docx but it's missing
ls ./deliverables/report.docx
# Output: ls: cannot access './deliverables/report.docx': No such file or directory
# 2. Search for it
find /workspace -name "report.docx" 2>/dev/null
# Output: /workspace/tmp/generated/report.docx
# 3. Copy to expected location
mkdir -p ./deliverables
cp /workspace/tmp/generated/report.docx ./deliverables/report.docx
# 4. Validate
ls -la ./deliverables/report.docx
# Output: -rw-r--r-- 1 user user 45678 Jan 15 10:30 ./deliverables/report.docx
# Success - file is now where it should be
Troubleshooting
| Problem | Solution |
|---|---|
find returns no results |
Expand search to broader paths (/, /home, /root) |
| Multiple matches found | Check timestamps (-mtime -1) or file sizes to identify the correct one |
| Permission denied on copy | Use sudo if available, or check if file is in a read-only mount |
| File exists but is empty | The tool may have failed silently; regenerate the artifact |
Perguntas frequentes
Como a IA verifica primeiro?
Ela executa um comando de teste para confirmar que o arquivo realmente está ausente antes de pesquisar.
Onde ela pesquisa?
Começa em pastas confirmadas, como o espaço de trabalho atual e a pasta pessoal.
Ela consegue pesquisar por padrão?
Sim. Se o nome exato do arquivo puder variar, o guia usa uma busca com curinga.
Detalhes
Descrição original do autor
Recover generated files in sandboxed environments by searching from confirmed roots and copying to expected locations
repo: HKUDS/AgentPilot
Popularidade
- Estrelas no GitHub
- 7,8 mil
- Posição no ranking
- #12896
- Licença
- MIT
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
agentpilot
7,8 milAjuda seu agente a melhorar um projeto passo a passo, preparando uma tarefa e executando o ciclo do AgentPilot, que propõe, testa e pontua mudanças.
openspace
7,8 milAjuda seu agente a configurar o OpenSpace, uma ferramenta que armazena e busca skills de agentes, e a conectá-la ao seu app de IA pelo MCP.
rsi-arena
7,8 milAjuda seu agente a configurar e rodar testes padrão de benchmark de IA, como AIME e Terminal-Bench, para comparar diferentes métodos de melhoria.
experiment-guide
7,8 milAjuda seu agente a planejar pequenos experimentos, ler seus resultados e registrar descobertas enquanto investiga como melhorar um programa.
Skills parecidas
diffs
394 milPermite que seu agente gere um diff real e compartilhável das edições, como link de visualização ou arquivo de imagem, em vez de um resumo escrito à mão.
coding-agent
394 milAjuda seu agente a passar um trabalho grande de programação para o Codex, Claude Code ou OpenCode em segundo plano e acompanhar o andamento.
gh-issues
394 milAjuda seu agente a encontrar issues do GitHub, escolher quais resolver e abrir pull requests com correções, acompanhando os comentários de revisão.