Skip to content

hany202507/finance-ai-skills / skills/표본sampling

표본sampling

Verified

매출 원장 · 세금계산서 목록 · 채권 명세 같은 계정 리스트 파일 하나로 감사 표본 조서(설계 · 표본 · 평가)를 엑셀로 만든다. 파일을 먼저 읽고 허용왜곡표시 · 위험 수준 · 결산일 · 계층화 · 시산표 금액 같은 판단만 한 번에 물은 뒤 바로 뽑는다. 금액 단위 표본(MUS)이 기본이고 무작위 · 체계적 · 특정 항목 선정도 된다. 같은 시드면 같은 표본이 나오고, 표본 크기 근거(모집단 금액 · 허용왜곡표시 · 위험 수준 · 신뢰계수 · 표본 간격)와 모집단 대사(시산표 금액과의 차이)를 조서에 남긴다. 감사인이 검사 결과 · 왜곡표시 금액을 적으면 상한 왜곡표시(기본 정밀도 + 투영 + 증분 허용)로 평가한다. "샘플링", "표본 뽑아줘", "이 파일로 샘플링", "매출 표본", "채권 표본", "MUS", "금액 단위 표본", "표본 크기", "신뢰계수", "표본 간격", "표본 평가", "왜곡표시 투영", "감사기준서 530", "거래처별로 뽑아", "계층화", "엑셀 줄게 표본 뽑아줘" 가 언급되면 트리거.

FileKindSize
README.mdmarkdown3.2 KB
SKILL.mdskill md13.1 KB
examples/모의자료/매출원장.xlsxbinary58.2 KB
requirements.txtmanifest89 B
scripts/audit/__init__.pyscript273 B
scripts/audit/cli_sample.pyscript13.3 KB
scripts/audit/dataset.pyscript8.6 KB
scripts/audit/errors.pyscript503 B
scripts/audit/figures.pyscript35.4 KB
scripts/audit/folder.pyscript27.1 KB
scripts/audit/params.pyscript15.3 KB
scripts/audit/prior.pyscript29.8 KB
scripts/audit/priorwp.pyscript33.6 KB
scripts/audit/reader.pyscript94.6 KB
scripts/audit/riskplan.pyscript9.5 KB
scripts/audit/sample_wp.pyscript46.2 KB
scripts/audit/style.pyscript7.9 KB
scripts/audit/workpapers/__init__.pyscript7.5 KB
scripts/audit/workpapers/banks.pyscript18.6 KB
scripts/audit/workpapers/common.pyscript33.1 KB
scripts/audit/workpapers/confirm.pyscript45.4 KB
scripts/audit/workpapers/fsrec.pyscript9.6 KB
scripts/audit/workpapers/issuedetail.pyscript9.7 KB
scripts/audit/workpapers/jet.pyscript98.3 KB
scripts/audit/workpapers/lead.pyscript75.0 KB
scripts/audit/workpapers/recalc.pyscript51.4 KB
scripts/audit/workpapers/sales.pyscript35.8 KB
scripts/audit/workpapers/sampling.pyscript8.2 KB
scripts/audit/workpapers/sampling_eval.pyscript9.9 KB
scripts/audit/workpapers/skeleton.pyscript15.7 KB
scripts/audit/workpapers/suggest.pyscript11.1 KB
scripts/audit/workpapers/tot.pyscript26.9 KB
scripts/audit/workpapers/vouch.pyscript27.8 KB
scripts/audit/workpapers/w3800.pyscript12.4 KB
scripts/audit/workpapers/xlcalc.pyscript11.6 KB
scripts/audit/wp.pyscript34.5 KB
scripts/definitions/folder_standard.yamlconfig15.0 KB
scripts/definitions/sampling.yamlconfig7.4 KB
scripts/run.pyscript2.6 KB
tests/excel_recalc.pyscript1.3 KB
tests/make_ledger.pyscript2.1 KB
tests/test_sample.pyscript12.9 KB
tests/test_sampling_eval.pyscript5.9 KB

tests/make_ledger.py

View on GitHub
# -*- coding: utf-8 -*-
"""예시 자료 `examples/모의자료/매출원장.xlsx` 를 만든다. 가상 회사 가온정밀(가상)의 2025년 매출 원장 1,200행이다.

    python tests/make_ledger.py

회사 · 거래처 · 품목 · 금액은 모두 지어낸 값이다. 제목 줄과 빈 줄 뒤에 머리줄이 오고, 반품(음수) 13건, 고액 8건, 합계 행 1, 결산일 뒤 거래 1건을
일부러 넣었다. 시험(`tests/test_sample.py`)도 같은 함수로 자료를 만든다.
"""
from __future__ import annotations

import random
from datetime import date, timedelta
from pathlib import Path

from openpyxl import Workbook

ROWS = 1200


def make_ledger(path: Path) -> dict:
    """가상 매출 원장을 path 에 쓰고 심은 건수(반품 neg · 고액 big)를 돌려준다."""
    rng = random.Random(7)
    wb = Workbook()
    ws = wb.active
    ws.title = "매출장"
    ws.append(["(주)가온정밀(가상) 매출 원장"])
    ws.append([])
    ws.append(["전표일자", "전표번호", "거래처명", "품목", "구분", "공급가액", "세액", "합계금액"])
    neg = big = 0
    for i in range(ROWS):
        d = date(2025, 1, 1) + timedelta(days=rng.randrange(365))
        kind = rng.choice(["제품", "제품", "상품", "수출"])
        amt = round(rng.lognormvariate(14.5, 1.1), -3)
        if i % 150 == 5:
            amt, big = 150_000_000 + i * 1000, big + 1
        if i % 97 == 0:
            amt, neg = -amt / 10, neg + 1
        ws.append([d, f"S-{i:05d}", f"거래처{rng.randrange(1, 41):02d}", f"품목{rng.randrange(30)}", kind, amt, round(amt * 0.1),
                   round(amt * 1.1)])
    ws.append([None, None, "합계", None, None, 0, 0, 0])
    ws.append([date(2026, 1, 3), "S-99999", "거래처01", "품목1", "제품", 5_000_000, 500_000, 5_500_000])
    path.parent.mkdir(parents=True, exist_ok=True)
    wb.save(path)
    return {"neg": neg, "big": big}


if __name__ == "__main__":
    out = Path(__file__).resolve().parents[1] / "examples" / "모의자료" / "매출원장.xlsx"
    info = make_ledger(out)
    print(f"{out} ({ROWS}행, 반품 {info['neg']}건, 고액 {info['big']}건)")
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
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: 196kUpdated Claude CodeCodexVerifiedInstall