मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट7.8k · #12998

shell-agent-file-workflow

यह क्या करती है

यह कार्यप्रवाह AI एजेंट को जटिल फ़ाइलें शेल एजेंट से बनवाने और फिर उन्हें ढूँढने का निर्देश देता है। यह उन लोगों के लिए है जिनके फ़ाइल टूल स्लाइड, दस्तावेज़ या PDF जैसे फ़ॉर्मेट पर विफल हो जाते हैं।

कब इस्तेमाल करें

  • ✓जब जटिल फ़ॉर्मेट जैसे स्लाइड या दस्तावेज़ पर सीधे फ़ाइल बनाने वाले टूल विफल हों।
  • ✓जब फ़ाइल बनाने के लिए कई चरण, लाइब्रेरी या एरर सुधार चाहिए।
  • ✓जब बनी फ़ाइल किसी नेस्टेड फ़ोल्डर में सहेजी जा सकती हो और आसानी से न मिले।

Skill का लिंक

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/shell-agent-file-workflow/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/shell-agent-file-workflow/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी तिमाही समीक्षा के लिए PowerPoint डेक बनाइए। सीधे टूल विफल हुए, इसलिए शेल एजेंट से इसे बनवाइए और फिर फ़ाइल ढूँढिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट शेल एजेंट को स्पष्ट काम देता है। शेल एजेंट पूरा होने के बाद, एजेंट वर्कस्पेस में नई फ़ाइल को नाम और हाल के बदलाव के समय से खोजता है, ताकि वह किसी भी नेस्टेड फ़ोल्डर में मिल जाए।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल

एजेंट फ़ाइल कैसे ढूँढता है?

वह find कमांड से फ़ाइल प्रकार के आधार पर खोजता है, और पिछले कुछ मिनट में बदली फ़ाइलों तक सीमित कर सकता है।

किन फ़ाइल प्रकारों को खोजा जा सकता है?

स्किल PowerPoint, Word और PDF फ़ाइलों को उदाहरण के रूप में बताती है।

अगर कई संस्करण हों तो?

स्किल नवीनतम चुनने के लिए बदलाव के समय से फ़िल्टर करने का सुझाव देती है।

जानकारी

लेखक का मूल विवरण

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

repo: HKUDS/AgentPilot

लोकप्रियता

GitHub स्टार
7.8k
रैंकिंग में स्थान
#12998
लाइसेंस
MIT
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills