us-govt-data
4
总安装量
2
周安装量
#48125
全站排名
安装命令
npx skills add https://github.com/joshuaroll/research-skills --skill us-govt-data
Agent 安装分布
opencode
2
antigravity
2
claude-code
2
codex
2
mcpjam
1
iflow-cli
1
Skill 文档
US Government & Legal Data Skill
This skill allows you to retrieve official documents from US government sources, essential for due diligence and regulatory research.
Capabilities
- SEC EDGAR: Retrieve 10-K (Annual) and 10-Q (Quarterly) filings for public companies.
- Federal Register: (Future) Check for new agency rules.
- Text Extraction: Convert HTML filings to raw text for analysis.
- Section Targeting: Extract specific sections like “Risk Factors” automatically.
- Company Search: Query by name (e.g., “Google” for Alphabet Inc.) if ticker is unknown.
Usage
Run the python script fetch_filing.py to retrieve SEC documents.
Arguments
ticker(required): The stock symbol (e.g., AAPL) or partial company name.--type(optional): Form type (default “10-K”).--count(optional): Number of filings to retrieve (default 1).--clean-text(optional): Set this flag to download and strip HTML tags.--section(optional): “risk” (Risk Factors) or “mda” (Management Discussion). Implies--clean-text.
Example
# Get the text of "Risk Factors" for Google
python3 fetch_filing.py "Google" --type 10-K --section risk
# Get text for Tesla 10-Q
python3 fetch_filing.py TSLA --type 10-Q --clean-text
Output Format
The script outputs a JSON object containing:
cik: Central Index Keycompany_namefilings:primaryDocumentUrl: Direct link to the HTML document.content: The extracted text (truncated or fully extracted section).
Tips for the Agent
- HTML takes space: Only use
--clean-textif you plan to read the content. It makes the requested slower (extra HTTP call). - Name Search: You can now pass “Microsoft” instead of “MSFT”.