locate-missing-artifacts
यह क्या करती है
यह स्किल AI को उन आउटपुट फ़ाइलों को वापस पाने में मदद करती है जो किसी अस्थायी या सैंडबॉक्स वातावरण में गायब लगती हैं। यह उन लोगों के लिए है जिनके काम सफल बताए जाते हैं, पर फिर फ़ाइल न होने की बात सामने आती है।
कब इस्तेमाल करें
- ✓जब कोई टूल बताए कि उसने फ़ाइल बनाई है, पर फ़ाइल अपेक्षित फ़ोल्डर में नहीं है।
- ✓जब टूल के फ़ाइल सहेजने का दावा करते ही फ़ाइल नहीं मिली की एरर आए।
- ✓जब सैंडबॉक्स में एक चरण से दूसरे चरण तक पाथ बदलते लगें।
Skill का लिंक
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/locate-missing-artifacts/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“टूल कहता है कि उसने मेरी रिपोर्ट सहेज दी है, पर फ़ाइल जहाँ होनी चाहिए वहाँ नहीं है। कृपया उसे खोजिए और सही फ़ोल्डर में कॉपी कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI पुष्टि करता है कि अपेक्षित पाथ पर फ़ाइल सच में नहीं है, ज्ञात मूल फ़ोल्डरों से find से खोजता है, और मिली फ़ाइल को वहाँ कॉपी करता है जहाँ उसकी ज़रूरत है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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 |
अक्सर पूछे जाने वाले सवाल
AI पहले कैसे जाँचता है?
खोजने से पहले वह एक टेस्ट कमांड चलाता है, ताकि पक्का हो कि फ़ाइल सच में गायब है।
कहाँ खोजा जाता है?
पक्के फ़ोल्डरों से शुरू होता है, जैसे मौजूदा वर्कस्पेस और होम फ़ोल्डर।
क्या पैटर्न से खोजा जा सकता है?
हाँ, अगर सटीक फ़ाइल नाम अलग हो सकता है, तो गाइड वाइल्डकार्ड खोज इस्तेमाल करती है।
जानकारी
लेखक का मूल विवरण
Recover generated files in sandboxed environments by searching from confirmed roots and copying to expected locations
repo: HKUDS/AgentPilot
लोकप्रियता
- GitHub स्टार
- 7.8k
- रैंकिंग में स्थान
- #12896
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
agentpilot
7.8kआपके एजेंट को AgentPilot से प्रोजेक्ट को चरण-दर-चरण सुधारने में मदद करती है, जिसमें बदलाव सुझाए, परखे और स्कोर किए जाते हैं।
openspace
7.8kआपके एजेंट को OpenSpace सेट करने में मदद करती है, जो एजेंट स्किल्स सहेजता और वापस लाता है, और MCP के ज़रिए आपके AI ऐप से जुड़ता है।
rsi-arena
7.8kआपके एजेंट को AIME और Terminal-Bench जैसे मानक AI बेंचमार्क टेस्ट सेट करने और चलाने में मदद करती है, ताकि सुधार के तरीकों की तुलना हो सके।
experiment-guide
7.8kआपके एजेंट को छोटे प्रयोग बनाने, उनके नतीजे पढ़ने और जाँच के दौरान उपयोगी निष्कर्ष लिखने में मदद करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।