dexter-finance
Build autonomous financial research agents that analyze stocks, SEC filings, earnings calls, and market data to produce investment reports. Use when: automating investment research, building AI-powered stock analysis, creating financial due diligence agents.
What this skill does
# Dexter Finance Build autonomous financial research agents using [Dexter](https://github.com/virattt/dexter) — an agent framework for deep financial analysis covering SEC filings, earnings calls, market data, and investment report generation. ## Overview Dexter follows a four-stage research pipeline: data collection (EDGAR API, market data, transcripts), analysis (financial ratios, sentiment), synthesis (cross-referencing patterns and anomalies), and report generation (investment memos in PDF/Markdown). It supports single-stock deep dives and batch research across watchlists. ## Instructions ### Installation ```bash npm install dexter-finance # or: pip install dexter-finance ``` Set up API keys: ```bash export OPENAI_API_KEY="sk-..." # or ANTHROPIC_API_KEY export SEC_EDGAR_USER_AGENT="Company Name [email protected]" export ALPHA_VANTAGE_KEY="..." # optional, for market data ``` ### Research a Single Stock ```typescript import { DexterAgent } from "dexter-finance"; const agent = new DexterAgent({ model: "claude-sonnet-4-20250514", tools: ["sec-filings", "market-data", "earnings-transcripts"], }); const report = await agent.research({ ticker: "AAPL", depth: "full", periods: 4, }); console.log(report.summary); console.log(report.recommendation); await report.save("aapl-report.md"); ``` ### SEC Filing Analysis ```typescript import { EdgarClient } from "dexter-finance"; const edgar = new EdgarClient({ userAgent: "MyApp [email protected]" }); const filing = await edgar.getFiling({ ticker: "MSFT", type: "10-K", latest: true }); console.log(filing.sections.riskFactors); console.log(filing.sections.financialStatements); console.log(filing.sections.mdAndA); for (const table of filing.financialTables) { console.log(`${table.name}:`, table.toJSON()); } ``` ### Earnings Call Analysis ```typescript import { EarningsAnalyzer } from "dexter-finance"; const analyzer = new EarningsAnalyzer({ model: "claude-sonnet-4-20250514" }); const analysis = await analyzer.analyze({ ticker: "NVDA", quarter: "Q4-2025" }); console.log(analysis.sentiment); console.log(analysis.guidanceChanges); console.log(analysis.managementTone); console.log(analysis.analystConcerns); ``` ### Financial Ratios ```typescript import { FinancialMetrics } from "dexter-finance"; const ratios = await new FinancialMetrics().calculate({ ticker: "AMZN", period: "TTM" }); console.log(ratios.profitability); // { grossMargin, operatingMargin, netMargin, roe } console.log(ratios.valuation); // { pe, ps, pb, evEbitda } console.log(ratios.growth); // { revenueYoY, epsYoY, fcfYoY } ``` ### Anomaly Detection ```typescript import { AnomalyDetector } from "dexter-finance"; const flags = await new AnomalyDetector().scan({ ticker: "XYZ", checks: ["accounting-changes", "insider-trading", "guidance-cuts", "audit-opinions", "related-party", "revenue-recognition"], }); for (const flag of flags) { console.log(`${flag.severity.toUpperCase()}: ${flag.type} — ${flag.description}`); } ``` ## Examples ### Example 1: Full Investment Memo for META ```typescript import { ReportGenerator } from "dexter-finance"; const generator = new ReportGenerator({ model: "claude-sonnet-4-20250514", template: "investment-memo", }); const report = await generator.generate({ ticker: "META", sections: ["executive-summary", "business-overview", "financial-analysis", "competitive-position", "risk-factors", "valuation", "recommendation"], format: "markdown", maxPages: 5, }); await report.save("meta-investment-memo.md"); await report.toPDF("meta-investment-memo.pdf"); // Produces a 5-page memo with financial tables, ratio analysis, and buy/hold/sell recommendation ``` ### Example 2: Daily Market Briefing for a Watchlist ```typescript import { BriefingAgent } from "dexter-finance"; const briefing = new BriefingAgent({ model: "claude-sonnet-4-20250514", watchlist: ["AAPL", "GOOGL", "MSFT", "AMZN", "NVDA"], }); const daily = await briefing.generate({ includePreMarket: true, includeEarningsCalendar: true, includeMacroEvents: true, }); console.log(daily.marketOverview); console.log(daily.watchlistMoves); console.log(daily.earningsToday); // Output: structured briefing with price changes, upcoming earnings, and macro events ``` ## Guidelines - Set `SEC_EDGAR_USER_AGENT` to a valid company/email — EDGAR rate-limits anonymous requests - Use `depth: "quick"` for screening, `"full"` for deep dives — saves tokens and time - Batch research runs concurrently — set `concurrency` based on your API rate limits - Anomaly detection is most useful on small/mid-cap stocks where coverage is thin - Combine with a scheduler (cron) for automated daily briefings - Always validate AI-generated financial analysis — treat outputs as research drafts, not advice
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.