hany202507/finance-ai-skills / skills/표본sampling
표본sampling
Verified매출 원장 · 세금계산서 목록 · 채권 명세 같은 계정 리스트 파일 하나로 감사 표본 조서(설계 · 표본 · 평가)를 엑셀로 만든다. 파일을 먼저 읽고 허용왜곡표시 · 위험 수준 · 결산일 · 계층화 · 시산표 금액 같은 판단만 한 번에 물은 뒤 바로 뽑는다. 금액 단위 표본(MUS)이 기본이고 무작위 · 체계적 · 특정 항목 선정도 된다. 같은 시드면 같은 표본이 나오고, 표본 크기 근거(모집단 금액 · 허용왜곡표시 · 위험 수준 · 신뢰계수 · 표본 간격)와 모집단 대사(시산표 금액과의 차이)를 조서에 남긴다. 감사인이 검사 결과 · 왜곡표시 금액을 적으면 상한 왜곡표시(기본 정밀도 + 투영 + 증분 허용)로 평가한다. "샘플링", "표본 뽑아줘", "이 파일로 샘플링", "매출 표본", "채권 표본", "MUS", "금액 단위 표본", "표본 크기", "신뢰계수", "표본 간격", "표본 평가", "왜곡표시 투영", "감사기준서 530", "거래처별로 뽑아", "계층화", "엑셀 줄게 표본 뽑아줘" 가 언급되면 트리거.
tests/excel_recalc.py
View on GitHub"""엑셀로 책을 열어 수식을 다시 계산하고 저장한다(openpyxl 은 수식 값을 계산하지 않는다).
python tools/excel_recalc.py <책.xlsx>
엑셀이나 pywin32 가 없으면 False 를 돌려준다. 시험이 수식 결과를 엔진 계산과 대조할 때 쓴다.
"""
from __future__ import annotations
import sys
from pathlib import Path
def recalc(path: Path) -> bool:
try:
import pythoncom
import win32com.client as win32
except ImportError:
return False
pythoncom.CoInitialize()
try:
xl = win32.DispatchEx("Excel.Application")
except Exception: # noqa: BLE001 엑셀이 설치되지 않은 PC
return False
wb = None
try:
xl.Visible, xl.DisplayAlerts = False, False
wb = xl.Workbooks.Open(str(Path(path).resolve()))
xl.CalculateFull()
wb.Save()
wb.Close(False)
return True
finally:
wb = None # 엑셀을 닫기 전에 참조를 놓는다(닫힌 뒤 놓으면 COM 끊김 오류가 찍힌다)
xl.Quit()
del xl
pythoncom.CoUninitialize()
if __name__ == "__main__":
ok = recalc(Path(sys.argv[1]))
print("다시 계산함" if ok else "엑셀이 없어 다시 계산하지 못함")
sys.exit(0 if ok else 1)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |