MCP HubMCP Hub
スキル一覧に戻る

_old-earnings-orchestrator

majiayu000
更新日 Yesterday
27 閲覧
58
9
58
GitHubで表示
その他general

について

このスキルは、企業の8-K報告書を時系列で処理し、バッチ収益分析を調整します。予測から帰属分析へのフィードバックループを実行し、各報告書にわたる予測精度を追跡すると同時に、Neo4jに構造化データを問い合わせます。過去の予測から統合的に学習しながら、歴史的な決算報告書を自動的かつ連続的に分析する必要がある場合にご利用ください。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/majiayu000/claude-skill-registry
Git クローン代替
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/_old-earnings-orchestrator

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Earnings Orchestrator

Goal: Process all 8-K earnings filings for a company chronologically, building a closed-loop prediction→attribution system with accuracy feedback.

Thinking: ALWAYS use ultrathink for maximum reasoning depth.

Input: Company ticker (e.g., "GBX", "AAPL")


Architecture

Master Orchestrator (this skill)
    │
    ├─→ Query Neo4j for all 8-Ks with Item 2.02
    │
    └─→ For each filing chronologically:
            │
            ├─→ First filing: /earnings-attribution only
            │
            └─→ Subsequent filings:
                    │
                    ├─→ /earnings-prediction (predict before seeing outcome)
                    │
                    └─→ /earnings-attribution (verify & learn)

Workflow

Use TodoWrite to track progress through all filings.

Step 1: Query 8-K Universe

Query Neo4j for all 8-Ks with Item 2.02 (earnings) for the ticker:

MATCH (r:Report)-[pf:PRIMARY_FILER]->(c:Company)
WHERE c.ticker = $ticker
  AND r.formType = '8-K'
  AND any(item IN r.items WHERE item CONTAINS 'Item 2.02')
  AND pf.daily_stock IS NOT NULL
RETURN r.accessionNo AS accession_no,
       c.ticker AS ticker,
       c.name AS company_name,
       r.created AS filing_datetime,
       pf.daily_stock AS daily_return,
       pf.daily_macro AS macro_adj_return,
       r.items AS items
ORDER BY r.created ASC

Extract list of accession numbers with filing dates.

Step 2: Check Processing State

Read earnings-analysis/8k_fact_universe.csv and earnings-analysis/predictions.csv to determine:

  • Which filings are already completed
  • Which predictions exist (and whether they need attribution)

Step 3: Process Each Filing

For each filing in chronological order:

First Filing (no prior history)

/earnings-attribution {accession_no}

Reason: No historical baseline to predict from. Attribution only.

Subsequent Filings

1. /earnings-prediction {accession_no}
   → Outputs prediction to predictions.csv

2. /earnings-attribution {accession_no}
   → Verifies prediction accuracy
   → Updates predictions.csv with actual_* columns
   → Stores company-specific learnings

Step 4: Update Tracking

After each filing:

  1. Mark completed=TRUE in 8k_fact_universe.csv
  2. Update predictions.csv with actual outcomes
  3. Compute running accuracy metrics

Accuracy Tracking

Direction Accuracy

correct = predicted_direction == actual_direction

Magnitude Accuracy

magnitude_correct = predicted_magnitude == actual_magnitude

Running Metrics

After processing, compute:

  • Total filings processed
  • Predictions made (excludes first filing)
  • Direction accuracy: correct / predictions
  • Magnitude accuracy: magnitude_correct / predictions

Resume Logic

If a filing is partially processed:

  1. Check predictions.csv for existing prediction
  2. Check Companies/{TICKER}/{accession}.md for attribution
  3. Skip completed steps, resume where needed

Output Files

FilePurpose
earnings-analysis/predictions.csvAll predictions + actuals
earnings-analysis/8k_fact_universe.csvProcessing status tracker
earnings-analysis/Companies/{TICKER}/{accession}.mdAttribution reports
earnings-analysis/Companies/{TICKER}/learnings.mdCompany-specific patterns
earnings-analysis/orchestrator-runs/{ticker}_{timestamp}.mdRun summary

Run Summary Format

After completing a ticker, write summary to earnings-analysis/orchestrator-runs/{ticker}_{YYYYMMDD}.md:

# {TICKER} Orchestrator Run - {DATE}

## Summary
- Total 8-Ks found: N
- Already completed: N
- Processed this run: N
- First filing (attribution only): {accession}

## Prediction Accuracy
- Predictions made: N
- Direction correct: N/M (X%)
- Magnitude correct: N/M (X%)

## Filings Processed

| # | Accession | Date | Prediction | Actual | Correct |
|---|-----------|------|------------|--------|---------|
| 1 | xxx | 2023-01-01 | (first) | +5.2% | N/A |
| 2 | xxx | 2023-04-01 | up/medium | up/large | dir: Y, mag: N |
...

## Learnings Applied
- [List company-specific patterns discovered]

Invocation Examples

Process all filings for a ticker

/earnings-orchestrator GBX

Process with limit

/earnings-orchestrator GBX --limit 5

Processes only first 5 unprocessed filings.

Resume interrupted run

/earnings-orchestrator GBX --resume

Continues from last processed filing.


Error Handling

  1. Neo4j query fails: Log error, exit gracefully
  2. Skill invocation fails: Log error, mark filing as failed, continue to next
  3. Missing data: Note in summary, continue with available data
  4. Rate limits: Built-in retry with exponential backoff

Arguments

ArgTypeDefaultDescription
tickerstringrequiredCompany ticker to process
--limitintnoneMax filings to process
--resumeflagfalseResume from last completed
--dry-runflagfalseShow plan without executing

Version 1.0 | 2026-01-16

GitHub リポジトリ

majiayu000/claude-skill-registry
パス: skills/data/_old-earnings-orchestrator

関連スキル

algorithmic-art

メタ

This Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.

スキルを見る

subagent-driven-development

開発

This skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.

スキルを見る

executing-plans

デザイン

Use the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.

スキルを見る

cost-optimization

その他

This Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.

スキルを見る