incremental-excel-build
하는 일
이 스킬은 계산, 예측 또는 여러 데이터 출처가 포함된 스프레드시트를 단계별로 만드는 방법입니다. 최종 통합 문서를 만들기 전에 각 단계를 확인하려는 분석가에게 맞습니다.
사용하는 경우
- ✓여러 데이터 출처에서 가져오는 Excel 파일을 만들 때.
- ✓계산이나 예측이 포함되어 확인이 필요한 스프레드시트일 때.
- ✓나중에 워크플로의 한 단계만 다시 실행해야 할 수 있는 경우.
스킬 링크
https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/incremental-excel-build/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 매장 파일과 판매 파일로 예측 통합 문서를 만들어 주세요. 각 단계를 확인할 수 있도록 진행하면서 체크포인트를 저장해 주세요.”
매주 새 스킬 5개. 읽는 데 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
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
agentpilot
7.8k작업을 준비하고 AgentPilot 루프를 실행해 변경을 제안, 테스트, 점수화하면서 프로젝트를 단계적으로 개선하도록 돕습니다.
openspace
7.8k에이전트 스킬을 저장하고 가져오는 도구인 OpenSpace를 설정하고, MCP를 통해 AI 앱에 연결하도록 돕습니다.
rsi-arena
7.8kAIME나 Terminal-Bench 같은 표준 AI 벤치마크 테스트를 설정하고 실행해 서로 다른 개선 방법을 비교하도록 돕습니다.
experiment-guide
7.8k프로그램을 개선하는 방법을 조사하면서 작은 실험을 계획하고, 결과를 읽고, 발견 사항을 기록하도록 돕습니다.
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.