Macro Idea Generation logo

Macro Idea Generation

Community
agentii-ai
macro-idea-generation

Macro-driven trade idea generation, translating macroeconomic views into concrete stock ideas, sector selection from macro regime, international trade ideas via ADRs, cross-border idea sourcing, macro catalyst mapping to equity positions

Overview

Publisheragentii-ai
Repositoryagentii-investment-intelligence
Skill namemacro-idea-generation
Stars
207
Forks
16
Bundled files
2
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by agentii-ai on GitHub. Read the source before you install it.

Installation

Install the Macro Idea Generation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/agentii-ai/agentii-investment-intelligence/tree/main/plugins/vertical-plugins/idea-generation/skills/agentii/macro-idea-generation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/agentii-ai/agentii-investment-intelligence.git /tmp/agentii-investment-intelligence
mkdir -p .claude/skills
cp -r /tmp/agentii-investment-intelligence/plugins/vertical-plugins/idea-generation/skills/agentii/macro-idea-generation .claude/skills/macro-idea-generation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Macro Idea Generation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Macro Idea Generation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Macro Idea Generation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Methodology fused from professional trading and investment frameworks; all text is an original paraphrase.

Defaults

ParameterDefault ValueRationale
macro_signal_lag_weeks4-8Macro signals lead equity moves by 4-8 weeks
sector_mapping_depth3Three-tier cascade: regime → sector → stock
adr_liquidity_min$10M ADTVMinimum ADR liquidity for institutional execution

Preflight

Run canonical pre-flight per contracts/preflight.md. Include the X-Agentii-Trace header on every tool call per contracts/x-agentii-trace-header.md — carry the _run_id from your first tool result and name yourself (and your parent, if you were spawned).

Data Source Priority

  1. Macro regime input — from macro-analysis skill (leading indicators, portfolio bias)
  2. Sector data — sector-level performance, rotation signals from market data tools
  3. ADR data — international equity access via ADRs from market data
  4. Strategy frameworks — search_investment_strategies(domain=macro) + search_by_analogue(market_regime=...)

Methodology

Retrieval Scope

structured_only

Retrieval Strategy

Branch (d) Simple Lookup from contracts/retrieval.md: macro regime input from upstream skill. Sector and market data from data tools. Strategy frameworks and historical analogues via MCP knowledge tools. No unstructured document retrieval.

Temporal Scope

See frontmatter temporal_scope block.

Tool Allowlist

See frontmatter allowed_tools.

Protocol

This skill translates macroeconomic views into concrete trade ideas via a three-tier cascade: Macro Regime → Sector Preference → Stock Selection. Macro tells you where to look; sectors what to look at; stocks what to trade.

Detailed methodology: regime-to-sector mapping matrix, ISM sector drilling protocol, inter-market confirmation framework, ADR screening and currency overlay, and macro risk invalidation rules are in references/macro-ideas-methodology.md.

Core insight: The "consensus disconnect" applies at the macro level — the market prices one regime, leading indicators suggest another emerging. This gap is the macro edge. Macro signals lead equity moves by 4-8 weeks.

Steps
  1. Macro Regime Translation: Receive regime (expansion/contraction/stagflation/recovery) and bias (long/short/neutral) from upstream. Identify dominant theme: rate cycle, credit spreads, currency, commodities. Establish transmission mechanism — WHY sectors benefit or suffer, not just correlation.

  2. Sector Selection (see reference for complete matrix with transmission mechanisms):

    • Expansion (ISM > 50 rising, credit tightening): Favor Tech, Consumer Disc, Industrials, Financials. Avoid Utilities, Staples.
    • Contraction (ISM < 50 falling, credit widening): Favor Utilities, Staples, Healthcare. Avoid Tech, Consumer Disc, Energy.
    • Stagflation (low growth + high inflation): Favor Energy, Materials, Commodity Producers, Healthcare. Avoid Consumer Disc, Real Estate.
    • Recovery (ISM crossing 50, central bank accommodative): Favor Financials, Industrials, Consumer Disc. This is historically the strongest equity return regime. Avoid prior defensives.
  3. Leading Indicator Deep Dive:

    • ISM PMI: Headline + New Orders (leads by 1-3 months, most important sub-index) + Prices Paid + Supplier Deliveries. Drill sub-indices for industry divergence → pair trade signals.
    • Yield Curve (10Y-2Y): Steepening > 150bp = Financials. Flattening = Growth/Tech. Inverted = defensive. Re-steepening from inverted = strongest rally phase.
    • Credit Spreads (HY OAS): > 400bp = defensive regardless. 300-400bp = stock selection dominant. < 300bp = risk-on.
    • DXY: +5%/3mo = commodity/EM/multinational headwind. −5%/3mo = tailwind.
  4. Inter-Market Confirmation: Bonds (yield curve, spreads) + Currencies (DXY, commodity FX) + Commodities (copper/gold, oil) must align. All three = high conviction. Two of three = medium, reduce 25-33%. All diverging = low, reduce/eliminate positions.

  5. Stock Selection: Apply quant screening ONLY to 2-3 most favored and 2-3 most disfavored industries from ISM drilling. Prioritize companies where macro catalyst directly impacts business drivers (bank NIM from rate change = direct; tech multiple from rate change = indirect, less reliable).

  6. ADR International: Country selection → screen ($10M ADTV, $500M cap, 20-F available). Avoid: Chinese software/computer services ADRs, micro-cap shipping, pharma/biotech (requires specialized expertise). Currency overlay: DXY strengthening → hedge or prefer domestic; weakening → unhedged benefit. ADR universe is mostly cyclical/old-economy. Split European banks investment/retail/hybrid.

  7. Macro Risk Management: Define invalidation thresholds before entry (e.g., "ISM < 48 for 2 months = exit all cyclicals"). Post-event: 1 month divergence = noise; 2 months = trend change, exit. Total macro exposure ≤ 40%. Single sector ≤ 25%. If thesis invalidates, exit ALL macro positions simultaneously.

  8. MCP Integration: search_investment_strategies(domain=macro) → search_by_analogue(market_regime) → search_investment_cases(domain=macro_driven). Handoff: regime + conviction, sector matrix, top 3-5 stocks per sector, ADR candidates with FX assessment, macro catalyst timeline, invalidation thresholds.

Output File

{ticker}/{YYYY-MM-DD_HHMM}_macro-idea-generation_{affix}.md

Output Structure

  1. Executive Summary — Macro regime, inter-market confirmation status, top sectors, top 3 macro-driven trade ideas
  2. Macro Regime Analysis — Current regime classification, dominant themes, transmission mechanisms, consensus disconnect assessment
  3. Leading Indicator Dashboard — ISM (headline + New Orders + Prices Paid + industry sub-indices), yield curve, credit spreads, DXY, commodity signals
  4. Inter-Market Confirmation — Bond/Currency/Commodity alignment assessment, conviction level, divergences flagged
  5. Sector Preference Matrix — Favored/neutral/avoid sectors with macro rationale and transmission mechanism per sector
  6. Sector-Specific Stock Candidates — Per preferred sector: macro sensitivity, valuation context, direct vs. indirect macro impact
  7. International Opportunities — ADR candidates by country/region with currency overlay assessment, liquidity check, sector warnings
  8. Macro Catalyst Timeline — Scheduled macro events (ISM, FOMC, employment, CPI) with expected impact and pre-positioning windows
  9. Historical Analogues — Matched regime analogues from search_by_analogue with /v/ citations, key parallels and divergences
  10. Risk to the Macro View — Specific invalidation thresholds per indicator, correlation risk assessment, contingency exit protocol
  11. Handoff Summary — Prioritized macro-driven ideas with conviction and sector rationale
  12. Coverage Gaps — Data limitations, regions with insufficient ADR liquidity, sectors with inadequate macro data

Error Handling

ErrorFallback
No macro regime inputDerive from available macro data; flag as independently determined
ADR data insufficientLimit to US-listed international ETFs as proxy; flag
search_by_analogue returns emptyNote "no historical regime analogues found"; proceed with framework only

Memory Load

See contracts/memory-load.md.

Snapshot

See contracts/snapshot-synthesis.md.

Final Summary (TUI)

Include ### Key Citations block with 0-10 clickable /v/ URLs.

References

  • references/macro-ideas-methodology.md
  • contracts/citation-and-memory.md
  • contracts/output-frontmatter-schema.md
  • contracts/memory-load.md
  • contracts/snapshot-synthesis.md
  • contracts/preflight.md
  • contracts/retrieval.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Macro Idea Generation AI skill do?

Macro-driven trade idea generation, translating macroeconomic views into concrete stock ideas, sector selection from macro regime, international trade ideas via ADRs, cross-border idea sourcing, macro catalyst mapping to equity positions

Why use Macro Idea Generation on TypingMind?

Because you install it once and use it with any model. Macro Idea Generation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Macro Idea Generation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/agentii-ai/agentii-investment-intelligence/tree/main/plugins/vertical-plugins/idea-generation/skills/agentii/macro-idea-generation. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Macro Idea Generation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Macro Idea Generation?

As many as you like. As long as a model supports skills, you can use Macro Idea Generation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Macro Idea Generation AI skill free?

Yes. It is published on GitHub by agentii-ai under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇