मुख्य सामग्री पर जाएँ
Skillpedia
PDF, Word और स्लाइड7.8k · #12999

shell-doc-gen-and-locate

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

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

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

  • ✓जब सीधा दस्तावेज़ बनाना विफल हो और शेल स्क्रिप्ट फ़ाइल बना सकती हो।
  • ✓जब आपको PowerPoint या PDF चाहिए और स्क्रिप्ट उसे किसी अनपेक्षित जगह सहेज दे।
  • ✓जब आप चाहें कि तैयार फ़ाइल आसान पहुँच के लिए वर्किंग फ़ोल्डर में आ जाए।

Skill का लिंक

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

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

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

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

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

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

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

“मेरी रूपरेखा से स्क्रिप्ट के ज़रिए एक PowerPoint बनाइए, फिर फ़ाइल ढूँढकर मेरे वर्किंग फ़ोल्डर में ले आइए।”

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

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

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

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

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

स्क्रिप्ट को संदेश छापने की ज़रूरत क्यों है?

छपा हुआ पुष्टि संदेश दिखाता है कि स्क्रिप्ट पूरी हुई, जिससे एजेंट को फ़ाइल ढूँढने का समय पता चलता है।

एजेंट PDF कैसे ढूँढता है?

वह पूरे वर्कस्पेस में PDF फ़ाइलों के लिए recursive find चलाता है।

क्या वह सही संस्करण चुन सकता है?

हाँ, कई संस्करण हों तो स्किल बदलाव के समय से फ़िल्टर करने का सुझाव देती है।

जानकारी

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

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

repo: HKUDS/AgentPilot

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

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