resilient-spreadsheet-workflow
यह क्या करती है
यह स्किल सैंडबॉक्स एरर आने पर स्प्रेडशीट कामों के लिए सावधान कार्यप्रवाह देती है। यह उन लोगों के लिए है जिन्हें CSV या Excel फ़ाइलें साफ़ करनी या सारांशित करनी हैं।
कब इस्तेमाल करें
- ✓जब आप CSV या Excel फ़ाइल पर काम करें और कोड सैंडबॉक्स अज्ञात एरर दे।
- ✓जब आपको फ़ोल्डर में मौजूद स्प्रेडशीट फ़ाइलें और उनका आकार जानना हो।
- ✓जब आप चाहें कि अगला चरण चलने से पहले स्प्रेडशीट काम का हर चरण जाँचा जाए।
Skill का लिंक
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/resilient-spreadsheet-workflow/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे फ़ोल्डर में स्प्रेडशीट ढूँढिए, फिर बिक्री CSV को साफ़ करके सारांश सहेजिए। हर चरण पर जाँचते रहिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पहले एक सहायक से स्प्रेडशीट फ़ाइलों और उनके आकार की सूची बनवाता है। फिर वह प्रोसेसिंग स्क्रिप्ट फ़ाइल में लिखता है, उसे चलाता है, और आगे बढ़ने से पहले हर चरण पर आउटपुट जाँचता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Resilient Spreadsheet Workflow
This skill provides a robust workflow for processing spreadsheet files (CSV, XLSX) when execute_code_sandbox encounters failures. It uses a combination of tools to ensure reliable execution and clear error diagnosis.
When to Use
- Processing spreadsheet files when
execute_code_sandboxreturns unknown errors - Need to debug why spreadsheet operations fail
- Require reliable file I/O with verification at each step
Step-by-Step Workflow
Step 1: Initial Exploration with shell_agent
Start by using shell_agent to explore the file structure and understand what files exist:
Use shell_agent to:
- List files in the working directory
- Identify spreadsheet files (CSV, XLSX)
- Examine file sizes and basic structure
Example task for shell_agent:
Explore the current directory to find all spreadsheet files (CSV, XLSX).
List their sizes and identify which files need processing.
Step 2: Write Processing Script with write_file
Create a standalone script file rather than executing inline code:
# Use write_file to create a script like "process_sheet.py"
content = """
import pandas as pd
import sys
try:
df = pd.read_csv('input.csv') # or pd.read_excel for XLSX
# Perform your processing
result = df.describe()
result.to_csv('output.csv', index=False)
print("Processing complete")
except Exception as e:
print(f"Error: {e}", file=sys.stderr)
sys.exit(1)
"""
write_file(path="process_sheet.py", content=content)
Step 3: Execute with run_shell and Error Redirection
Execute the script with stderr redirected to stdout for complete error capture:
run_shell command="python process_sheet.py 2>&1"
The 2>&1 redirection ensures both stdout and stderr are captured together, making error messages visible.
Step 4: Isolate Errors with Verification Commands
If Step 3 fails, add targeted verification commands to diagnose the actual problem:
# Check if Python is available
run_shell command="which python 2>&1"
# Check if pandas is installed
run_shell command="python -c 'import pandas' 2>&1"
# Verify input file exists and is readable
run_shell command="ls -la input.csv 2>&1"
# Check file encoding/content
run_shell command="file input.csv 2>&1"
run_shell command="head -5 input.csv 2>&1"
Step 5: Verify Output Before Reading
Before reading results with read_file, verify the output file exists:
list_dir(path=".")
# Confirm output file appears in the listing
# Then proceed to read_file
Complete Example
1. shell_agent(task="Find and describe all CSV/XLSX files in current directory")
2. write_file(path="analyze_data.py", content="<processing script>")
3. run_shell(command="python analyze_data.py 2>&1")
4. If error: run_shell(command="python -c 'import pandas; print(pandas.__version__)' 2>&1")
5. list_dir(path=".") # Verify output exists
6. read_file(filetype="csv", file_path="output.csv")
Common Error Patterns
| Symptom | Diagnostic Command | Likely Cause |
|---|---|---|
| Module not found | python -c 'import pandas' |
Missing dependency |
| File not found | ls -la <filename> |
Wrong path or name |
| Permission denied | ls -la <filename> |
File permissions |
| Encoding error | file <filename> |
Wrong file format |
Best Practices
- Always use 2>&1 with run_shell for shell commands to capture full error output
- Verify before reading - use list_dir to confirm file existence before read_file
- Break into small steps - separate exploration, script writing, execution, and verification
- Use shell_agent for unknowns - when directory structure or file types are unclear
- Write scripts to files - more reliable than inline code execution for complex operations
अक्सर पूछे जाने वाले सवाल
पहला चरण क्या करता है?
वह कार्य-फ़ोल्डर में स्प्रेडशीट फ़ाइलें सूचीबद्ध करता है और उनका आकार व ढाँचा नोट करता है।
इनलाइन कोड की बजाय स्क्रिप्ट फ़ाइल क्यों लिखें?
सहेजी हुई स्क्रिप्ट दोबारा चलाना और सुधारना आसान है, और सैंडबॉक्स विफलताओं से बचाती है।
क्या यह CSV और Excel दोनों संभालता है?
हाँ, स्किल CSV और XLSX फ़ाइलों को कवर करती है और हर के लिए पढ़ने के तरीके दिखाती है।
जानकारी
लेखक का मूल विवरण
Resilient multi-step workflow for spreadsheet processing when execute_code_sandbox fails, using shell_agent exploration, file-based scripts, and verification steps
repo: HKUDS/AgentPilot
लोकप्रियता
- GitHub स्टार
- 7.8k
- रैंकिंग में स्थान
- #12974
- लाइसेंस
- 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
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।