मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग7.8k · #13090

verify-directory-structure

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

यह स्किल फ़ाइल एक्सेस की समस्याएं ठीक करने का एक सरल तरीका देती है। यह पहले फ़ोल्डर जाँचती है, फिर काम दोबारा करती है। यह उन लोगों के लिए है जिनका एजेंट किसी अपेक्षित जगह पर फ़ाइलें खोल या सहेज नहीं पाता।

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

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

Skill का लिंक

https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/verify-directory-structure/SKILL.md

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

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

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

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

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

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

“क्या आप जाँच सकते हैं कि जो फ़ोल्डर मैंने बताया वह मौजूद है या नहीं, और न हो तो उसे ठीक कर सकते हैं?”

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

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

एजेंट फ़ोल्डर और उसकी सामग्री सूचीबद्ध करता है, गायब हो तो उसे बनाता है या अनुमतियां ठीक करता है, फिर मूल चरण दोबारा चलाता है।

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

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Verify Directory Structure

This skill provides a systematic approach to diagnosing and resolving file access issues by first verifying the directory structure. It is particularly useful when dealing with file operations, script executions, or any task that involves accessing files.

Steps

  1. Identify the Target Path: Determine the file or directory path that is causing the access issue.
  2. Check Directory Existence: Use the list_dir tool to verify if the directory exists and inspect its contents.
  3. Verify Permissions: Ensure that the user has the necessary permissions to access the directory and its contents.
  4. Resolve Path Issues: If the directory does not exist, create it using appropriate commands or scripts. If permissions are insufficient, adjust them accordingly.
  5. Retry the Operation: After resolving the directory structure issues, retry the original operation.

Example

# Example of using the list_dir tool to verify directory structure
list_dir --path "/path/to/directory"

Best Practices

  • Always verify the directory structure before performing file operations.
  • Use absolute paths to avoid ambiguity.
  • Log the directory structure for debugging purposes if issues persist.
अक्सर पूछे जाने वाले सवाल

अगर फ़ोल्डर गायब हो तो?

स्किल उसे बनाने और फिर कार्रवाई दोबारा करने को कहती है।

क्या पूरे फ़ाइल पाथ इस्तेमाल करने चाहिए?

हां। स्किल भ्रम से बचने के लिए absolute पाथ की सिफ़ारिश करती है।

समस्या बनी रहे तो क्या करें?

स्किल सुझाती है कि फ़ोल्डर की सामग्री लॉग करें, ताकि कारण आसानी से मिल सके।

जानकारी

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

Diagnose and resolve file access issues by first verifying the directory structure.

repo: HKUDS/AgentPilot

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

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