跳到正文
cccskills
免费在 GitHub 公开

Document Organization

Execute a single deterministic Python script to harmonize units, create/update metadata, move files to output_data/, and clean up input_data/.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(4)

  • SKILL.md2.7 KB
  • examples/PYPL_example.md728 B
  • scripts/__pycache__/organize.cpython-311.pyc37.5 KB
  • scripts/organize.py26.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Document Organization (Phase 4)

All organization logic is consolidated into a single script that handles the complete lifecycle: classification parsing, unit harmonization, metadata management, file archival, and input cleanup.

  1. Execute the script: python skills/document_organization/scripts/organize.py {markdown_file}
  2. Verify no errors were thrown.

What the Script Does

StepActionDetails
1Read ClassificationExtracts ticker, company name, document type, dates, currency from the classification table
2Harmonize UnitsDetects prevailing unit from BS/IS, converts Shares Outstanding and Organic Growth values if they differ. Supports: ones, thousands, ten_thousands (万), millions, hundred_millions (億), billions
3Read Financial SummaryExtracts Revenue, EBITA, NOPAT, ROIC, Growth etc. for metadata
4Create/Update MetadataCreates or updates output_data/TICKER/TICKER_metadata.md with document entry + financial history row. Handles deduplication and date sorting
5Move & CleanupMoves .md and .pdf from processing_data/ → output_data/TICKER/ (removing _temp suffix). Deletes matching source PDF from input_data/
6VerifyConfirms destination files exist and source files are removed

Unit Conversion Reference

The script uses a deterministic conversion table:

UnitFactor to OnesAlias
ones1—
thousands1,000thousand
ten_thousands10,000万
millions1,000,000million
hundred_millions100,000,000億
billions1,000,000,000billion

Metadata Management

  • New ticker: Creates TICKER_metadata.md with header, processed documents table, and financial history table
  • Existing ticker: Appends new rows, sorts by period end date, deduplicates by time period (re-processing overwrites)
  • Last Updated field is always refreshed

Error Handling

  • Missing source files → warns and continues
  • Unknown units → raises ValueError with descriptive message
  • Duplicate time periods → replaces existing row (re-processing scenario)
  • Missing input_data/ files → logs info message (may have been manually cleaned)

Cross-Document Date Healing

Date healing (checking fiscal calendar consistency) is NOT automated by this script. If the agent identifies date inconsistencies after reviewing the metadata, it should flag them manually in the metadata file per the original SKILL instructions (Step 6 of the legacy spec).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Classify financial PDFs by extracting company identity, document type, and date metadata. Validates ticker via Yahoo Finance with multi-step fallback. Uses a Python orchestration script for validation, file modification, and writing markdown.

中文简介正在准备中。当前显示原文说明。

Ruinius/financial-analyst-skills52026年6月9日 更新

Execute a single deterministic Python script to compute all derived financial metrics (EBITA, Invested Capital, Tax Rates, Summary Table) from extracted financial data.

中文简介正在准备中。当前显示原文说明。

Ruinius/financial-analyst-skills52026年6月9日 更新

Extract balance sheet, income statement, shares outstanding, organic growth, and GAAP reconciliation data from financial PDFs. Standardize via Tiger-Transformer and append structured output to the document markdown.

中文简介正在准备中。当前显示原文说明。

Ruinius/financial-analyst-skills52026年6月9日 更新

Execute a single deterministic Python script to compute WACC, DCF assumptions, projected free cash flows, enterprise value, and intrinsic value per share. Updates the metadata markdown.

中文简介正在准备中。当前显示原文说明。

Ruinius/financial-analyst-skills52026年6月9日 更新

Extracts the WACC, assumptions, and DCF projections from the markdown metadata file and converts them into a clean, structured JSON file for the frontend interactive viewer.

中文简介正在准备中。当前显示原文说明。

Ruinius/financial-analyst-skills52026年6月9日 更新

Assess a company's economic moat, EBITA margin trajectory, and organic growth trajectory from analyst reports, earnings transcripts, or long-form articles. Produces structured qualitative outlook that feeds into the Financial Modeling skill's assumption generation.

中文简介正在准备中。当前显示原文说明。

Ruinius/financial-analyst-skills52026年6月9日 更新

查看 Ruinius 的全部技能

报告此技能的问题