incremental-excel-build
यह क्या करती है
यह स्किल गणना, पूर्वानुमान या कई डेटा स्रोतों वाली स्प्रेडशीट चरणों में बनाने का तरीका बताती है। यह उन विश्लेषकों के लिए है जो अंतिम वर्कबुक बनने से पहले हर चरण की जाँच करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब एक Excel फ़ाइल बनानी है जो कई डेटा स्रोतों से जानकारी लेती है।
- ✓जब स्प्रेडशीट में गणना या पूर्वानुमान हों जिनकी जाँच ज़रूरी है।
- ✓जब बाद में वर्कफ़्लो का सिर्फ़ एक चरण दोबारा चलाना पड़ सकता है।
Skill का लिंक
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/incremental-excel-build/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी स्टोर और सेल्स फ़ाइलों से एक पूर्वानुमान वाली वर्कबुक बनाइए। आगे बढ़ते हुए हर चरण के चेकपॉइंट सहेजिए, ताकि मैं हर चरण जाँच सकूँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI काम को निष्कर्षण, रूपांतरण और असेंबली जैसे चरणों में बाँटता है, हर चरण के बाद एक बीच की CSV फ़ाइल सहेजता है, और अगले चरण से पहले उन फ़ाइलों की जाँच करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Incremental Excel Build Pattern
When creating complex Excel files with calculations, forecasts, or data transformations, use an incremental build-and-verify approach instead of monolithic scripts. This pattern breaks the workflow into discrete, testable stages with intermediate CSV outputs that can be inspected at each step.
When to Use
- Creating Excel files with multiple data sources
- Complex calculations or forecasts that need validation
- Tasks where debugging intermediate results is important
- Workflows that may need to be re-run from a specific stage
The Four-Stage Pattern
Stage 1: Data Extraction
Extract raw data from source systems and save to CSV.
# extract_data.py
import pandas as pd
def extract_store_data():
# Query database, API, or read source files
stores = pd.read_csv('source_stores.csv')
sales_history = pd.read_csv('source_sales.csv')
# Save intermediate output for verification
stores.to_csv('intermediate_stores.csv', index=False)
sales_history.to_csv('intermediate_sales.csv', index=False)
print(f"Extracted {len(stores)} stores, {len(sales_history)} sales records")
return stores, sales_history
if __name__ == '__main__':
extract_store_data()
Verification checkpoint: Open intermediate_stores.csv and intermediate_sales.csv to verify data completeness and format before proceeding.
Stage 2: Data Preparation/Transformation
Clean, filter, and transform data for calculations.
# prepare_data.py
import pandas as pd
def prepare_data():
# Load intermediate files from Stage 1
stores = pd.read_csv('intermediate_stores.csv')
sales = pd.read_csv('intermediate_sales.csv')
# Filter active stores, clean data
active_stores = stores[stores['status'] == 'active']
# Merge and prepare for calculations
prepared = pd.merge(active_stores, sales, on='store_id', how='left')
prepared = prepared.fillna(0) # Handle missing values
# Save for verification
prepared.to_csv('intermediate_prepared.csv', index=False)
print(f"Prepared data for {len(prepared)} store-week combinations")
return prepared
if __name__ == '__main__':
prepare_data()
Verification checkpoint: Review intermediate_prepared.csv to confirm filtering logic and data integrity.
Stage 3: Calculations/Forecasts
Perform business logic, forecasts, or complex calculations.
# calculate_forecast.py
import pandas as pd
import numpy as np
def calculate_forecast():
# Load prepared data from Stage 2
data = pd.read_csv('intermediate_prepared.csv')
# Apply forecast logic
data['forecast_week1'] = data['avg_sales'] * 1.05 # 5% growth
data['forecast_week2'] = data['avg_sales'] * 1.08
data['forecast_week3'] = data['avg_sales'] * 1.10
data['forecast_week4'] = data['avg_sales'] * 1.12
# Calculate totals and metrics
data['total_forecast'] = data[['forecast_week1', 'forecast_week2',
'forecast_week3', 'forecast_week4']].sum(axis=1)
# Save calculations for verification
data.to_csv('intermediate_calculated.csv', index=False)
print(f"Calculated forecasts with avg total: ${data['total_forecast'].mean():.2f}")
return data
if __name__ == '__main__':
calculate_forecast()
Verification checkpoint: Validate intermediate_calculated.csv for calculation accuracy and reasonableness of forecast values.
Stage 4: Excel Output
Format and write final Excel file with proper styling.
# create_excel.py
import pandas as pd
from openpyxl import load_workbook
from openpyxl.styles import Font, PatternFill, Alignment
def create_excel_output():
# Load calculated data from Stage 3
data = pd.read_csv('intermediate_calculated.csv')
# Create Excel writer
writer = pd.ExcelWriter('final_output.xlsx', engine='openpyxl')
data.to_excel(writer, sheet_name='Forecast', index=False)
# Apply formatting
workbook = writer.book
worksheet = writer.sheets['Forecast']
# Header styling
header_fill = PatternFill(start_color='4472C4', end_color='4472C4', fill_type='solid')
header_font = Font(bold=True, color='FFFFFF')
for cell in worksheet[1]:
cell.fill = header_fill
cell.font = header_font
cell.alignment = Alignment(horizontal='center')
# Format currency columns
for col in ['forecast_wee
अक्सर पूछे जाने वाले सवाल
CSV चेकपॉइंट क्यों सहेजें?
इनसे हर चरण पर डेटा खोलकर देखा जा सकता है, जिससे गलतियाँ आसानी से मिलती हैं।
कौन से चरण बताए गए हैं?
गाइड डेटा निष्कर्षण जैसे चरण बताती है, और गणना व अंतिम फ़ाइल बनाने के लिए और चरण।
क्या एक चरण अकेले दोबारा चल सकता है?
हाँ, गाइड कहती है कि वर्कफ़्लो किसी खास चरण से दोबारा चलाया जा सकता है।
जानकारी
लेखक का मूल विवरण
Build complex Excel files through staged, verifiable steps with intermediate CSV outputs for debugging
repo: HKUDS/AgentPilot
लोकप्रियता
- GitHub स्टार
- 7.8k
- रैंकिंग में स्थान
- #12893
- लाइसेंस
- 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
feishu-doc
394kयह आपके एजेंट को document टूल से Feishu क्लाउड दस्तावेज़ पढ़ने, बनाने और बदलने में मदद करती है, जिसमें टेक्स्ट, इमेज और टेबल शामिल हैं।
feishu-drive
394kयह आपके एजेंट को बॉट के साथ साझा किए गए Feishu क्लाउड फ़ोल्डर में फ़ाइलें देखने, व्यवस्थित करने और उन पर टिप्पणी करने देती है।
feishu-perm
394kयह आपके एजेंट को Feishu फ़ाइल तक किसकी पहुंच है, यह जांचने और बदलने देती है, और आपके अनुरोध के लिए सबसे छोटी अनुमति चुनती है।