agentic-os
Build persistent multi-agent systems without external databases, using file-based memory and scheduled tasks.
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
从 SEC EDGAR 取美国上市公司的财报数字和申报文件(10-K、10-Q、8-K、Form 4 等)。做研究需要财务数据或申报文件时必须用它,不要凭记忆写数字。
所有财务数据和申报文件都通过这个脚本取。它会把原始响应存进 app/reports/<run-id>/raw/,并在 tools.jsonl 里记一行,这就是界面上的时间线,也是报告数字的依据。不要自己调 SEC 接口,也不要手写 tools.jsonl。
脚本和这份 SKILL.md 在同一个目录,当前目录要是工作区根目录(有 app/ 的那一层)。
bash "$HOME/skills/sec-data/sec.sh" <run-id> <命令> ...Set-ExecutionPolicy -Scope Process Bypass -Force; & "$env:HOME\skills\sec-data\sec.ps1" <run-id> <命令> ...| 命令 | 用途 |
|---|---|
lookup <代码或公司名> | 查 CIK。后面的命令都要用 CIK,名称用英文 |
concept <cik> <标签> [annual|quarterly] | 一个财务指标的历年数值,默认年度,只列最近几期 |
filings <cik> [表格] [数量] | 最近的申报文件和地址,比如 filings 320193 10-K 1 |
read <地址> | 下载 www.sec.gov 或 data.sec.gov 上的文件,转成文本,列出章节行号 |
note <工具> <说明> | 用了 web_search、web_fetch 后记一笔,让时间线完整 |
concept 每行是 period_end period_start value unit form filed accession。同一期被多份报告披露时,只留最新一份,所以可能是重述后的数字。余额类指标没有 period_start。
read 输出文本路径和章节行号,用 sed -n '起,止p'(Windows 用它提示的命令)只读需要的部分,不要整份读进来。
| 指标 | 标签(us-gaap/ 开头,排在前面的先试) |
|---|---|
| 收入 | RevenueFromContractWithCustomerExcludingAssessedTax、Revenues、RevenueFromContractWithCustomerIncludingAssessedTax、SalesRevenueNet |
| 毛利 / 成本 | GrossProfit、CostOfGoodsAndServicesSold、CostOfRevenue |
| 营业利润 | OperatingIncomeLoss |
| 净利润 | NetIncomeLoss |
| 稀释每股收益 | EarningsPerShareDiluted |
| 研发 | ResearchAndDevelopmentExpense |
| 总资产 / 负债 / 权益 | Assets、Liabilities、StockholdersEquity |
| 现金 / 长期债务 | CashAndCashEquivalentsAtCarryingValue、LongTermDebtNoncurrent、LongTermDebt |
| 经营现金流 / 资本开支 | NetCashProvidedByUsedInOperatingActivities、PaymentsToAcquirePropertyPlantAndEquipment |
| 流通股数 | dei/EntityCommonStockSharesOutstanding |
公司可能换过标签:先看最新一行的 period_end,如果停在几年前,换下一个标签再取,把两段拼起来,并在报告里写明。金融公司、外国公司的标签常常不同,取不到就读 10-K 或 20-F 原文。
no data: HTTP 404:这家公司没用这个标签,换一个。HTTP 000:网络不通。HTTP 403 或 429:SEC 在限流,别马上重试同样的调用。Build persistent multi-agent systems without external databases, using file-based memory and scheduled tasks.
AFaffaan-m/ECC314k3,503 new stars in the last 7 days
GAgarrytan/gstack143k524 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,421 new stars in the last 7 days
THthedotmack/claude-mem121k1,354 new stars in the last 7 days
THthedotmack/claude-mem121k1,354 new stars in the last 7 days
THthedotmack/claude-mem121k1,354 new stars in the last 7 days