gate-info-macroimpact
General Rules
⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.
Do NOT select or call any tool until all rules are read. These rules have the highest priority.
→ Read
gate-runtime-rules.md
→ Also read
info-news-runtime-rules.md for
gate-info /
gate-news-specific rules (tool degradation, report standards, security, routing degradation, per-skill version checks when
is present, and legacy wrapper routing).
- Only call MCP tools explicitly listed in this skill. Tools not documented here must NOT be called, even if they
exist in the MCP server.
- Legacy / routing mode: when Step 0 emits , use only the MCP tools listed in this file. When Step 0 emits , do not call those MCP tools; delegate to the mapped primary skill per Step 0.
The Macro-Economic Impact Analysis Skill. When the user asks about the impact of macro data/events on the crypto market, the system calls MCP tools in parallel to fetch economic calendar, macro indicators (or summary), related news, and correlated coin market data, then the LLM produces a structured correlation analysis report.
Trigger Scenarios: User mentions macroeconomic events/indicators and crypto market impact, e.g., "how does non-farm payroll affect BTC", "any macro data today", "Fed meeting impact on the market", "has CPI been released".
Per-skill updates: This directory includes
and may include
.
ClawHub packages uploaded to the marketplace often omit
(upload-page restriction);
GitHub / Bitbucket source trees keep both. Policy:
info-news-runtime-rules.md §1. The
Trigger update steps below apply in addition to
gate-runtime-rules.md; when scripts are present, use this flow for version checks before execution.
Update check — user visibility: Technical failures during version check (missing script, sandbox, network, non-zero exit, no parseable
line) must
not be explained to the user; continue with Execution per
info-news-runtime-rules.md. Only
successful /
outcomes may be summarized (including
/ strict
exit 3, which is still a
success path that requires user confirmation before
).
Do not auto-download
from the network.
Static reference if
is missing: canonical scripts live in
gate/gate-skills under
(same
as frontmatter).
Step 0 — Wrapper routing probe
This legacy skill is a compatibility alias for the primary CLI skill
.
Before Trigger update, MCP tool selection, or any legacy Execution Workflow,
run a deterministic shell probe:
bash
PRIMARY_SKILL="gate-info-research"
HAS_PRIMARY=0
for root in \
"$HOME/.cursor/skills" \
"$HOME/.codex/skills" \
"$HOME/.openclaw/skills" \
"$HOME/.agents/skills" \
"$HOME/.gemini/antigravity/skills"
do
if [ -f "$root/$PRIMARY_SKILL/SKILL.md" ]; then
HAS_PRIMARY=1
break
fi
done
if command -v gate-cli >/dev/null 2>&1 && [ "$HAS_PRIMARY" = "1" ]; then
echo "__ROUTE_CLI__"
else
echo "__FALLBACK__"
fi
Interpretation:
- → stop here. Do not run Trigger update or the legacy MCP
sections below. Follow
https://github.com/gate/gate-skills/blob/master/skills/gate-info-research/SKILL.md
and its playbook contract. Carry over the minimum context: macro topic plus
optional , , or when the user supplied them.
- → continue with Trigger update and the legacy MCP workflow in
this file.
Trigger update (with Execution)
Default (PD / blocking): On each trigger, run
first
without GATE_SKILL_UPDATE_MODE=auto
. The script
only compares local vs remote; if
, it
does not overwrite files.
STOP — ask the user whether to update
before any
,
, or skill Execution. In sandboxes (e.g. Cursor), use
full / all permissions when later running
. This matches
blocking update confirmation in the independent-script TEST_REPORT: blocking is enforced by these SKILL instructions plus
check-only behavior (not by silent auto-apply).
Strict check (Agent / IDE — recommended on ): Use
GATE_SKILL_CHECK_STRICT=1
. When
,
exits 3 and prints
— it stops
only that shell step.
Hard rule: after you ask the user,
end this assistant turn; do
not call
,
, or MCP in the
same message.
applies without a prior user step —
do not use
in chat for the blocking flow; use
→ user confirms → .
Step 1 — Check
Install root: /
read
. Typical
:
$HOME/.cursor/skills/<name>/
,
$HOME/.codex/skills/<name>/
,
$HOME/.openclaw/skills/<name>/
,
$HOME/.agents/skills/<name>/
,
$HOME/.gemini/antigravity/skills/<name>/
. Single-arg: the script resolves
in that order when
exists; otherwise
is
. Workspace-only trees need two-arg
/
with explicit
.
Agent selection rules (run
at most one of the fenced examples below; choose by OS and files under
):
- macOS / Linux / WSL / Git Bash: If exists → use only the Bash example.
- Windows (native PowerShell): If exists → use only the PowerShell example.
- Windows without (typical ClawHub install): If only exists → try WSL or Git Bash () using the same command shape as the Bash example. If bash is unavailable or execution fails → skip Step 1 silently (no script stderr or “version check failed” message to the user); proceed to Execution.
- Neither script exists: Skip Step 1 silently; proceed to Execution. Do not invent or run / .
Bash (blocking — no auto; example Cursor):
bash
GATE_SKILL_CHECK_STRICT=1 bash "$HOME/.cursor/skills/gate-info-macroimpact/scripts/update-skill.sh" check "gate-info-macroimpact"
PowerShell:
powershell
$env:GATE_SKILL_CHECK_STRICT = '1'
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.cursor\skills\gate-info-macroimpact\scripts\update-skill.ps1" check "gate-info-macroimpact"
Result semantics: = no action.
= remote newer;
with blocking flow, do not apply until the user agrees.
= could not compare — proceed with current version per
info-news-runtime-rules.md;
do not surface technical check failure details to the user.
Agent parse (stdout): GATE_SKILL_UPDATE_AGENT_ACTION=…
.
BLOCK_UNTIL_USER_CONFIRMS_UPDATE
→ Step 2 before Execution.
→ no block from the check script.
Step 2 — Confirm or Reject (blocking)
Runtime: Use the
same shell family for Step 2 as for Step 1 (Bash vs PowerShell). If Step 1 was
skipped, do
not run
or
.
-
STOP — do NOT proceed to Execution yet.
-
Inform the user (e.g. newer version available; summarize if helpful).
-
Wait for the user’s reply — blocking step.
Hard rule (Cursor / Agent): When
reports
, or
BLOCK_UNTIL_USER_CONFIRMS_UPDATE
, or strict
,
end this turn after asking.
Only in the
user’s next message run
(if they agree) or
(if they decline). Do
not chain
in the same turn as
for this flow.
- User agrees → run with from strict stdout when required, then Execution.
- User declines → , then Execution on the current install.
Two-step gate (strict ): /
(without
GATE_SKILL_UPDATE_MODE=auto
)
fail until
matches
. User decline →
.
bash
GATE_SKILL_CONFIRM_TOKEN="<paste from check stdout>" bash "$HOME/.cursor/skills/gate-info-macroimpact/scripts/update-skill.sh" apply "gate-info-macroimpact"
bash
bash "$HOME/.cursor/skills/gate-info-macroimpact/scripts/update-skill.sh" revoke-pending "gate-info-macroimpact"
powershell
$env:GATE_SKILL_CONFIRM_TOKEN = '<paste from check stdout>'
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.cursor\skills\gate-info-macroimpact\scripts\update-skill.ps1" apply "gate-info-macroimpact"
powershell
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.cursor\skills\gate-info-macroimpact\scripts\update-skill.ps1" revoke-pending "gate-info-macroimpact"
If Step 1 was not strict (no pending token):
without
is allowed.
If or : no update step; proceed to Execution.
Optional — GATE_SKILL_UPDATE_MODE=auto
For
CI / unattended automation only: setting
GATE_SKILL_UPDATE_MODE=auto
on
makes the script
apply immediately when the remote is newer —
no user confirmation and
incompatible with
blocking update confirmation tests. Do
not use
on
when reproducing the blocking PD flow.
Parameters
- name: Frontmatter above; must match on gate-skills.
- Invoke: Use
$SKILL_ROOT/scripts/update-skill.sh
(or ) where is this skill — e.g. , , ~/.openclaw/skills/<name>
, , ~/.gemini/antigravity/skills/<name>
; do not treat (or any host root without ) as the install. With one arg, the script resolves in that order before falling back to the script’s directory; workspace installs need explicit . Two-arg / / : canonical order is absolute (skill root) first, then ; / auto-swap when only one normalized path contains (e.g. agent passes then path).
- ClawHub vs full tree: Installs without may copy it from gate/gate-skills under (manual only; agents must not auto-download).
Do not dump raw script logs into the user-facing reply except when debugging. On
exit 3 (strict), do not run Execution until Step 2 is resolved. On
or
failure, still run Execution when appropriate per runtime rules.
MCP Dependencies
Legacy path only — this section applies when Step 0 emitted
.
Required MCP Servers
| MCP Server | Status |
|---|
| Gate-Info | ✅ Required |
| Gate-News | ✅ Required |
MCP Tools Used
Query Operations (Read-only)
- info_macro_get_economic_calendar
- info_macro_get_macro_indicator
- info_macro_get_macro_summary (use when no specific indicator is named)
- news_feed_search_news
- info_marketsnapshot_get_market_snapshot
Authentication
- API Key Required: No
- Credentials Source: None; this skill uses read-only Gate Info / Gate News MCP access only.
Installation Check
- Required: Gate-Info, Gate-News
- Install: Use the local Gate MCP installation flow for the current host IDE before continuing.
- Continue only after the required Gate MCP server is available in the current environment.
Routing Rules
Legacy path only — when Step 0 emitted
, routing is delegated to
.
| User Intent | Keywords | Action |
|---|
| Macro event impact on crypto | "non-farm payroll BTC" "CPI crypto impact" "Fed decision market" | Execute this Skill's full workflow |
| Upcoming economic calendar | "any macro data today" "economic calendar this week" | Execute this Skill (calendar-focused mode) |
| Specific macro indicator query | "what's the current CPI" "latest GDP data" | Execute this Skill (indicator-focused mode) |
| Pure coin analysis without macro angle | "analyze SOL" "how is BTC" | Route to |
| Market overview | "how's the market" | Route to |
| News only | "any crypto news" | Route to |
| Why price moved | "why did BTC crash" | Route to |
Execution Workflow
Legacy path only — this section applies when Step 0 emitted
.
Step 0: Multi-Dimension Intent Check
- If the query is about macro-economic impact on crypto, proceed with this Skill.
- If the query also mentions coin-specific fundamentals, risk check, or on-chain data beyond the macro angle, route to (if available).
Step 1: Intent Recognition & Parameter Extraction
Extract from user input:
- : Macro event/indicator name (e.g., "CPI", "non-farm payroll", "Fed meeting", "interest rate")
- (optional): Related coin (default: BTC if not specified)
- : Time window for calendar/news (default: 7d for calendar, 24h for news)
If the macro event cannot be identified, ask the user to clarify — do not guess.
Step 2: Call MCP Tools in Parallel
| Step | MCP Tool | Parameters | Retrieved Data | Parallel |
|---|
| 1a | info_macro_get_economic_calendar
| start_date={today}, end_date={today+14d}
| Upcoming economic events | Yes |
| 1b | info_macro_get_macro_indicator
| mode="latest", indicator={event_keyword}
| Latest value of the specific macro indicator | Yes |
| 1c | | query={event_keyword}, limit=5, sort_by="importance"
| Related news articles | Yes |
| 1d | info_marketsnapshot_get_market_snapshot
| symbol={coin}, timeframe="1d"
| Current market data for the correlated coin | Yes |
Note: If a specific indicator is not mentioned, use
info_macro_get_macro_summary
instead of
info_macro_get_macro_indicator
for Step 1b.
All four primary tools run in parallel when applicable.
Step 3: LLM Aggregation
The LLM must:
- Match the user's query to relevant economic calendar events
- Compare actual vs forecast vs previous values (surprise factor)
- Correlate macro data with crypto price action
- Reference historical patterns where appropriate
- Combine with latest news for context
Report Template
Legacy path only — this section applies when Step 0 emitted
.
markdown
## Macro-Economic Impact Analysis
> Generated: {timestamp} | Related Asset: {coin}
### Economic Calendar
|------|-------|----------|----------|--------|--------|
| {date} | {event_name} | {previous} | {forecast} | {actual or "Pending"} | {High/Medium/Low} |
### Key Indicator: {indicator_name}
|--------|-------|
| Latest Value | {value} |
| Previous Value | {previous} |
| Change | {change} ({direction}) |
**Interpretation**: {LLM analysis}
### Crypto Market Correlation
|--------|-------|---------|
| {coin} Price | ${price} | — |
| 24h Change | {change_24h}% | — |
**Historical Pattern**: {LLM analysis}
### Related News
1. [{title}]({source}) — {time}
### Impact Assessment
{LLM: 3–5 sentences on surprise factor, risk-on/risk-off, levels to watch, upcoming events}
### Risk Factors
{Data-driven risk alerts}
> Macroeconomic impacts on crypto are complex and non-deterministic. This does not constitute investment advice.
Decision Logic
| Condition | Assessment |
|---|
| Actual > Forecast (inflation metrics like CPI) | Hotter-than-expected — may delay rate cuts, bearish for risk assets |
| Actual < Forecast (inflation metrics) | Cooler-than-expected — supports rate cut narrative, bullish for risk assets |
| Actual > Forecast (employment data) | Stronger labor market — mixed (growth positive but rate cut delay) |
| Actual < Forecast (employment data) | Weakening labor market — supports cuts but signals slowdown |
| Event status = Pending | Upcoming — markets may position ahead of release |
| BTC 24h change > 5% coinciding with macro event | Significant move correlating with macro release |
| No related news found | Limited market commentary — event may not yet be widely covered |
Error Handling
| Error Type | Handling |
|---|
info_macro_get_economic_calendar
fails | Skip calendar section; focus on indicator + news |
info_macro_get_macro_indicator
fails | Skip indicator detail; use calendar data if available |
| fails | Skip news section |
info_marketsnapshot_get_market_snapshot
fails | Skip market correlation section |
| All Tools fail | Return error; suggest user try again later |
| Indicator not found | Suggest similar indicators; ask user to clarify |
| No upcoming macro events | Inform user; show recent past events if available |
Cross-Skill Routing
| User Follow-up Intent | Route To |
|---|
| "Analyze BTC for me" | |
| "What's the technical outlook?" | |
| "How's the overall market?" | |
| "Why did BTC crash?" | |
| "What about DeFi impact?" | |
| "Any crypto news?" | |
Safety Rules
- No price predictions: Describe potential impacts and historical patterns, not specific price targets.
- Correlation ≠ causation: State that macro–crypto links are probabilistic.
- Data transparency: Label source, time, and reference period for each data point.
- No trading advice: Do not recommend specific trades based on macro data.
- Flag uncertainty: When data is pending, label forecast vs actual clearly.
- Historical patterns disclaimer: Past performance does not guarantee future results.
- Age & eligibility: Intended for users aged 18 or above with full civil capacity in their jurisdiction.
- Data flow: The host agent processes user prompts; this skill directs read-only Gate-Info and Gate-News MCP tools listed above. The LLM synthesizes from tool results. This skill does not invoke additional third-party data services.