[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MDZX4RJJH592SW3NX67BJ":3,"skill-same:01M77MDZX4RJJH592SW3NX67BJ":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":50},"01M77MDZX4RJJH592SW3NX67BJ","market-signal-fusion",null,"Adaptive-language stock-analysis skill that interprets macro and political news, fuses it with retail\u002Fsocial sentiment, applies quantified value fallback rules, and outputs machine-readable stock ideas with valuation and technical plans.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fm\u002Fmarket-signal-fusion\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: market-signal-fusion\ndescription: Adaptive-language stock-analysis skill that interprets macro and political news, fuses it with retail\u002Fsocial sentiment, applies quantified value fallback rules, and outputs machine-readable stock ideas with valuation and technical plans.\nhomepage: https:\u002F\u002Fclawhub.com\nuser-invocable: true\ndisable-model-invocation: false\nmetadata: {\"openclaw\":{\"emoji\":\"📈\"}}\n---\n\n# Market Signal Fusion\n\nUse this skill when the user wants **stock analysis driven by macro\u002Fpolitical news + market sentiment + value screening + technical timing**.\n\nThis skill is designed for **adaptive language output** and for **downstream agent processing via a fixed JSON schema**.\n\n---\n\n## What this skill does\n\nThis skill runs a five-stage workflow:\n\n1. Interpret recent **political\u002Feconomic\u002Fnews catalysts** that matter for equities.\n2. Analyze **market sentiment** from retail\u002Fsocial discussion sources such as Reddit WSB and similar public channels.\n3. **Fuse** step 1 and step 2 to identify candidate sectors and stocks.\n4. Perform **quantamental analysis** and estimate **buy \u002F sell \u002F risk ranges**.\n5. Add a **short-term technical plan** for entries, exits, and invalidation.\n\nThis version also adds three functional upgrades:\n- a structured **WSB \u002F retail sentiment data-module contract**\n- a **market regime detector** to control style bias and sector weighting\n- **confidence gates + reason codes** so decisions are auditable and degrade gracefully when data is incomplete\n\nIf tools are available, prefer real market data and recent sources. Do not invent numbers.\n\n---\n\n## Core operating rules\n\n- Treat anything market-sensitive as **time-dependent**.\n- Prefer the **most recent 1–7 days** for news and sentiment unless the user specifies another window.\n- Use **primary or reputable financial sources** whenever possible.\n- Separate clearly:\n  - **facts**\n  - **inference**\n  - **opinion \u002F scenario**\n- Never present a stock pick without explaining **why** it survived the funnel.\n- If a required dataset is unavailable, say so explicitly and continue with the best available evidence.\n- Do **not** output generic investing advice; tie every conclusion to a catalyst, sentiment signal, valuation signal, or technical setup.\n- When confidence is low, reduce conviction rather than forcing a pick.\n- Every major conclusion should carry an implicit or explicit **confidence gate** based on freshness, source quality, and data completeness.\n- Attach short **reason codes** and, when relevant, **rejection codes** to structured outputs so downstream agents can audit why a stock passed or failed.\n- Preserve standard finance notation for tickers and metrics, e.g. `NVDA`, `Forward P\u002FE`, `FCF Yield`, `PEG`, `RSI`, `200DMA`.\n\n---\n\n## Language and output rules\n\n### Default language behavior\n\n- **Follow the user's prompt language automatically**.\n- If the user asks in **Chinese**, output the entire user-facing analysis in **Chinese only**.\n- If the user asks in **English**, output the entire user-facing analysis in **English only**.\n- Do **not** force bilingual output unless the user explicitly requests bilingual output.\n- If the user does not clearly signal a language preference, use the language of the latest user request.\n- Keep ticker symbols, sector names, factor names, JSON keys, and key financial metrics in standard English notation.\n\n### Single-language formatting rules\n\nFor user-facing narrative sections:\n\n- Match the user's language in headings and narrative.\n- In Chinese mode, write headings, explanations, stock theses, and action plans in Chinese.\n- In English mode, write headings, explanations, stock theses, and action plans in English.\n- Do not append mirrored translations by default.\n- For tables or JSON fields, use stable English keys and optionally localized display labels outside the JSON only when needed.\n\n### Machine-readable output rule\n\nWhenever the task is analytical and structured, output in **two layers**:\n\n1. A **human-readable report in the user's language**\n2. A **strict JSON block** that follows the schema below\n\nIf the user asks for only JSON, output only the JSON.\nIf the user asks for prose only, still internally follow the schema but omit the visible JSON unless useful.\n\n---\n\n## Inputs to collect from the user request\n\nExtract these if the user provided them; otherwise use sensible defaults:\n\n- Market universe: US equities by default\n- Time horizon:\n  - macro\u002Fnews: last 7 days\n  - sentiment: last 3 trading days if possible\n  - valuation: trailing + forward where available\n  - technicals: daily + weekly, and intraday if available\n- Style bias: value first, but allow momentum confirmation\n- Max output count:\n  - hot stocks from sentiment: 10\n  - final recommended list: 3 to 10 depending on evidence density\n- Risk style:\n  - if unspecified, assume **balanced swing trader with value discipline**\n\n---\n\n## Stage 1 — News and macro-political interpretation\n\nIdentify market-relevant developments from areas such as:\n\n- central bank \u002F rates \u002F liquidity\n- inflation \u002F labor \u002F growth data\n- tariffs \u002F sanctions \u002F export controls\n- fiscal policy \u002F defense spending \u002F infrastructure\n- energy policy \u002F OPEC \u002F grid \u002F power demand\n- AI regulation \u002F chips \u002F cloud capex\n- healthcare \u002F drug pricing \u002F reimbursement\n- antitrust \u002F trade restrictions \u002F industrial policy\n- geopolitical conflict affecting supply chains, commodities, shipping, or defense\n\nFor each major development, produce a structured record:\n\n- **Catalyst**: one-line summary\n- **Why the market cares**\n- **Affected sectors \u002F industries**\n- **Direction**: bullish \u002F bearish \u002F mixed\n- **Mechanism**: revenue, margin, capex, regulation, cost pass-through, rates, risk premium, etc.\n- **Time horizon**: immediate \u002F medium-term \u002F long-term\n- **Confidence**: high \u002F medium \u002F low\n\nThen aggregate across catalysts and rank the **top favorable sectors**.\n\n### Market regime detector\n\nBefore final sector ranking, classify the current market into one primary regime and optional secondary regime:\n\n- `risk_on_growth`\n- `risk_off_defensive`\n- `inflation_reflation`\n- `rate_sensitive`\n- `commodity_shock`\n- `earnings_revision_recovery`\n- `policy_transition_mixed`\n\nFor the chosen regime, provide:\n- the key evidence\n- which sectors should receive a weight boost\n- which sectors should be discounted\n- whether valuation discipline should be stricter or looser\n\nThe regime detector should influence later ranking rules. Examples:\n- In `risk_off_defensive`, reduce tolerance for speculative sentiment names.\n- In `inflation_reflation` or `commodity_shock`, boost Energy \u002F Materials \u002F selected Industrials where supported by evidence.\n- In `risk_on_growth`, allow stronger weight to AI \u002F semis \u002F software if revisions and charts confirm.\n\n### Stage 1 scoring rubric\n\nFor each sector, compute an informal score from 0 to 100 using:\n\n- policy\u002Fnews tailwind strength: 0–30\n- breadth of supporting catalysts: 0–20\n- immediacy of earnings impact: 0–20\n- durability of theme: 0–15\n- clarity \u002F confidence of mechanism: 0–15\n\nCall this **Macro Tailwind Score**.\n\n---\n\n## Stage 2 — Social \u002F retail sentiment analysis\n\nFocus on market sentiment sources such as:\n\n- Reddit WSB\n- Reddit investing\u002Fstocks-style communities\n- other accessible public sentiment sources if available\n\n### Preferred architecture\n\nIf the runtime has a dedicated social-data tool or plugin, prefer it over free-form browsing.\nTreat Stage 2 as a **data module** when possible, not only a narrative step.\n\n### Recommended Stage 2 module contract\n\nInputs:\n- `subreddits`: default `[\"wallstreetbets\", \"stocks\", \"investing\"]`\n- `lookback_window`: default `24h`, optional `72h` and `7d`\n- `min_mentions_threshold`: default `5` when enough data exists\n- `deduplicate_spam`: `true` by default\n- `exclude_etfs_or_indexes`: optional, `false` by default\n\nPreferred outputs per ticker:\n- `mentions`\n- `mentions_acceleration`\n- `bullish_count`\n- `bearish_count`\n- `bullish_ratio`\n- `sentiment_heat_score`\n- `support_type`\n- `speculation_risk`\n\nIf only partial data exists, degrade gracefully:\n- If only mention frequency exists, treat the result as **attention analysis**, not full polarity sentiment.\n- If bullish\u002Fbearish counts are missing, reduce confidence and do not overstate directional conviction.\n- If spam or duplicate-post filtering is unavailable, raise the speculation-risk estimate.\n\n### What to measure\n\nFor the broad market:\n\n- overall risk-on vs risk-off tone\n- prevalence of bullish vs bearish language\n- concentration in index \u002F mega-cap \u002F meme \u002F cyclical themes\n- whether sentiment is euphoric, improving, cautious, or deteriorating\n\nFor single names:\n\n- mention frequency\n- acceleration of mentions\n- bullish vs bearish balance\n- whether the narrative is squeeze\u002Fspeculation-driven or thesis-driven\n- whether discussion aligns with the macro sectors from Stage 1\n\n### Output required for Stage 2\n\n1. A **market mood** call: bullish \u002F neutral \u002F bearish\n2. A short explanation of why\n3. The **10 hottest stocks** by sentiment attention\n4. For each of the 10 stocks:\n   - ticker\n   - dominant narrative\n   - sentiment label: bullish \u002F bearish \u002F mixed\n   - whether it is likely **speculative** or **fundamentally supported**\n   - whether the signal is full sentiment or attention-only\n\n### Stage 2 scoring rubric\n\nFor each stock, form a **Sentiment Heat Score** from 0 to 100 using:\n\n- raw mention intensity: 0–30\n- mention acceleration: 0–20\n- bullish\u002Fbearish skew: 0–20\n- cross-source consistency: 0–15\n- narrative quality (thesis > meme): 0–15\n\nAlso assign a **Speculation Risk Flag**: low \u002F medium \u002F high.\n\n### Stage 2 confidence gate\n\nEvery Stage 2 conclusion should reflect these checks:\n\n- `data_freshness`: fresh \u002F acceptable \u002F stale\n- `source_count`: how many distinct sentiment sources were used\n- `polarity_completeness`: full \u002F partial \u002F attention_only\n- `duplicate_filtering`: yes \u002F no \u002F unknown\n- `confidence`: high \u002F medium \u002F low\n\nIf `polarity_completeness = attention_only`, do not make a strong bullish\u002Fbearish market call from Stage 2 alone.\n\n\n## Stage 3 — Fusion logic\n\n### Primary rule\n\nUse the **market regime detector** as a top-level weighting control.\n\nIf Stage 1 finds bullish sectors and Stage 2 contains stocks matching those sectors, prioritize the **overlap**.\n\n### Secondary rule\n\nIf Stage 1 finds bullish sectors but Stage 2 does **not** contain good matches, perform a **quantified value-investing fallback screen** inside those sectors.\n\n### Tertiary rule\n\nIf Stage 1 does **not** produce a clear sector conclusion, output the Stage 2 hot-stock list, ranked and filtered for quality.\n\n### Fusion ranking formula\n\nFor each candidate stock, combine:\n\n- Macro Tailwind Score: 30%\n- Sentiment Heat Score: 20%\n- Valuation Attractiveness Score: 25%\n- Quality Score: 15%\n- Technical Setup Score: 10%\n\nUse judgment to override only when one signal is obviously distorted, for example meme-driven sentiment with broken fundamentals.\n\n---\n\n## Stage 3B — Quantified value-investing fallback screen\n\nWhen a favored sector lacks sentiment candidates, screen for potentially undervalued stocks using as many of these as available:\n\n- PEG relative to sector and growth profile\n- forward P\u002FE relative to sector\n- EV\u002FEBITDA relative to sector\n- free cash flow yield\n- earnings revision momentum\n- revenue \u002F EPS growth durability\n- operating margin resilience\n- ROIC \u002F ROE quality\n- debt burden \u002F interest coverage\n- dividend yield where relevant\n- price\u002Fbook where relevant for financials or asset-heavy sectors\n\n### Hard fallback preference\n\nPrefer a **harder quantified fallback** over loose narrative value language.\n\nWhen enough data exists, compute a **Value Fallback Composite Score (0–100)** with this default weighting:\n\n- **PEG score**: 25%\n- **Forward P\u002FE relative score**: 20%\n- **FCF Yield score**: 25%\n- **Revision Momentum score**: 20%\n- **Balance Sheet \u002F Quality guardrail score**: 10%\n\n### Factor definitions\n\n#### 1) PEG score (25%)\n\nScore higher when:\n- PEG is lower than sector median\n- PEG is below 1.5, and score especially well below 1.0 when growth quality is credible\n- avoid over-rewarding ultra-low PEG if earnings quality is weak or cyclical collapse distorts E\n\nSuggested informal mapping:\n- excellent: PEG \u003C 1.0\n- good: 1.0–1.5\n- neutral: 1.5–2.0\n- weak: > 2.0\n\n#### 2) Forward P\u002FE relative score (20%)\n\nCompare company forward P\u002FE to:\n- sector median\n- relevant peer median\n- own 3Y or 5Y historical band when available\n\nScore higher when the stock trades at a meaningful discount **without obvious deterioration in business quality**.\n\n#### 3) FCF Yield score (25%)\n\nPrefer higher free cash flow yield, especially when:\n- FCF is positive and recurring\n- conversion from earnings to cash is stable\n- capex intensity does not make FCF misleading\n\nPenalty conditions:\n- one-off working capital boosts\n- financially engineered buyback optics unsupported by real cash generation\n\n#### 4) Revision Momentum score (20%)\n\nMeasure whether analyst expectations are improving:\n- upward EPS revisions over 30–90 days\n- upward revenue revisions when available\n- fewer estimate cuts than sector peers\n\nScore higher when revisions are improving and the stock still looks inexpensive.\n\n#### 5) Balance Sheet \u002F Quality guardrail score (10%)\n\nDo not let a cheap-looking stock pass if the balance sheet is stressed.\nCheck:\n- net debt \u002F EBITDA\n- interest coverage\n- current ratio where relevant\n- margin stability\n- ROIC \u002F ROE quality\n\n### Fallback disqualifiers\n\nA stock should usually **not** survive the fallback screen if several of the following are true:\n\n- negative or chronically unstable FCF\n- heavy leverage with weak interest coverage\n- falling revisions with no identifiable catalyst\n- very low multiple caused by structural decline rather than mispricing\n- direct macro tailwind is weak or ambiguous\n\n### Fallback output requirement\n\nFor fallback-selected stocks, explicitly show:\n\n- why the stock was selected despite not appearing in sentiment overlap\n- the component factor scores\n- the final Value Fallback Composite Score\n- whether the name is a **classic value**, **GARP**, or **deep value \u002F higher risk** setup\n\nCall the final valuation score in fallback mode:\n**Valuation Attractiveness Score** and preserve the component breakdown in JSON.\n\n---\n\n## Stage 4 — Quantamental stock analysis and price zones\n\nFor each final stock, provide:\n\n### A. Business \u002F thesis snapshot\n\n- what the company does\n- why it fits the selected theme\n- main bull case in 2–4 bullets\n- main risks in 2–4 bullets\n\n### B. Quantamental checklist\n\nUse available metrics such as:\n\n- market cap\n- trailing P\u002FE\n- forward P\u002FE\n- PEG if available\n- EV\u002FEBITDA\n- price\u002Fsales\n- gross \u002F operating margin\n- EPS growth\n- revenue growth\n- free cash flow trend\n- debt\u002Fequity or net debt\u002FEBITDA\n- analyst revision direction if available\n\nThen score:\n\n- Valuation Attractiveness Score (0–100)\n- Fundamental Quality Score (0–100)\n- Theme Alignment Score (0–100)\n- Risk Score (0–100, where higher means riskier)\n\n### C. Price framework\n\nEstimate four levels when data supports it:\n\n- **Aggressive buy zone**\n- **Preferred buy zone**\n- **Fair value \u002F hold zone**\n- **Trim \u002F take-profit zone**\n\nBase these on a mix of:\n\n- valuation ranges\n- support\u002Fresistance\n- moving averages\n- prior consolidation zones\n- recent volatility\n\nWhen exact valuation is unavailable, label the ranges as **technical estimate** rather than intrinsic value.\n\n---\n\n## Stage 5 — Technical setup and short-term plan\n\nFor each final stock, analyze:\n\n- trend direction on weekly and daily timeframes\n- key moving averages (20 \u002F 50 \u002F 200 if available)\n- support and resistance\n- breakout vs pullback setup\n- momentum confirmation or divergence\n- volume confirmation when available\n\nThen provide a tactical plan:\n\n- **Short-term stance**: buy pullback \u002F breakout watch \u002F avoid \u002F wait \u002F take profit\n- **Entry idea**\n- **Stop \u002F invalidation level**\n- **First target**\n- **Second target**\n- **Why this setup works or fails**\n\nDo not imply certainty. Present it as a conditional trade plan.\n\n---\n\n## Reason codes and rejection codes\n\nWherever possible, attach concise structured tags that explain why a candidate passed or failed.\n\nExamples of `reason_codes`:\n- `MACRO_ENERGY_TAILWIND`\n- `MACRO_DEFENSE_SPENDING`\n- `REGIME_RISK_OFF_DEFENSIVE`\n- `WSB_HEAT_HIGH`\n- `WSB_POLARITY_PARTIAL`\n- `REVISION_MOMENTUM_STRONG`\n- `FCF_YIELD_STRONG`\n- `TECH_PULLBACK_TO_50DMA`\n- `TECH_BREAKOUT_WITH_VOLUME`\n\nExamples of `rejection_codes`:\n- `SPECULATION_RISK_HIGH`\n- `VALUATION_DATA_INCOMPLETE`\n- `FUNDAMENTALS_WEAK`\n- `NEGATIVE_FCF`\n- `BROKEN_CHART`\n- `NO_CLEAR_CATALYST`\n\nUse short, stable codes so downstream agents can filter, rank, and audit decisions.\n\n---\n\n## Fixed JSON output schema\n\nWhen structured output is appropriate, emit a fenced `json` block that follows this schema as closely as possible.\nOmit unavailable fields or set them to `null`; do not fabricate values.\nUse the same single language as the user-facing report for all free-text values inside the JSON. Keep keys in English.\n\n```json\n{\n  \"meta\": {\n    \"skill\": \"market-signal-fusion\",\n    \"version\": \"1.2.0\",\n    \"language_mode\": \"auto_single_language\",\n    \"output_language\": \"zh|en\",\n    \"market_universe\": \"US equities\",\n    \"as_of_date\": \"YYYY-MM-DD\",\n    \"time_windows\": {\n      \"macro_news\": \"last_7d\",\n      \"sentiment\": \"last_3d\",\n      \"technicals\": \"daily_weekly\"\n    },\n    \"strict_mode\": false\n  },\n  \"macro\": {\n    \"market_bias\": \"bullish|neutral|bearish|mixed\",\n    \"market_regime\": {\n      \"primary\": \"risk_on_growth|risk_off_defensive|inflation_reflation|rate_sensitive|commodity_shock|earnings_revision_recovery|policy_transition_mixed\",\n      \"secondary\": null,\n      \"evidence\": [\"\"],\n      \"style_implication\": \"\"\n    },\n    \"top_catalysts\": [\n      {\n        \"title\": \"\",\n        \"summary\": \"\",\n        \"direction\": \"bullish|bearish|mixed\",\n        \"affected_sectors\": [\"\"],\n        \"mechanism\": \"\",\n        \"time_horizon\": \"immediate|medium_term|long_term\",\n        \"confidence\": \"high|medium|low\",\n        \"confidence_gate\": {\n          \"data_freshness\": \"fresh|acceptable|stale\",\n          \"source_count\": 0,\n          \"source_quality\": \"high|medium|low\",\n          \"missing_fields\": [\"\"]\n        }\n      }\n    ],\n    \"favored_sectors\": [\n      {\n        \"sector\": \"\",\n        \"macro_tailwind_score\": 0,\n        \"rationale\": \"\"\n      }\n    ],\n    \"headwind_sectors\": [\"\"]\n  },\n  \"sentiment\": {\n    \"broad_market_mood\": \"bullish|neutral|bearish\",\n    \"risk_mode\": \"risk_on|neutral|risk_off\",\n    \"summary\": \"\",\n    \"confidence_gate\": {\n      \"data_freshness\": \"fresh|acceptable|stale\",\n      \"source_count\": 0,\n      \"polarity_completeness\": \"full|partial|attention_only\",\n      \"duplicate_filtering\": \"yes|no|unknown\",\n      \"confidence\": \"high|medium|low\"\n    },\n    \"hot_stocks\": [\n      {\n        \"ticker\": \"\",\n        \"company\": \"\",\n        \"sector\": \"\",\n        \"dominant_narrative\": \"\",\n        \"sentiment_label\": \"bullish|bearish|mixed\",\n        \"signal_type\": \"full_sentiment|attention_only\",\n        \"sentiment_heat_score\": 0,\n        \"mentions\": null,\n        \"mentions_acceleration\": null,\n        \"bullish_count\": null,\n        \"bearish_count\": null,\n        \"bullish_ratio\": null,\n        \"speculation_risk\": \"low|medium|high\",\n        \"support_type\": \"speculative|fundamentally_supported|mixed\"\n      }\n    ]\n  },\n  \"selection\": {\n    \"selection_mode\": \"macro_sentiment_overlap|macro_value_fallback|sentiment_only_fallback\",\n    \"final_candidates\": [\n      {\n        \"ticker\": \"\",\n        \"company\": \"\",\n        \"sector\": \"\",\n        \"selection_reason\": \"\",\n        \"overlap_type\": \"macro_plus_sentiment|macro_plus_value|sentiment_only\",\n        \"reason_codes\": [\"\"],\n        \"rejection_codes\": [],\n        \"confidence_gate\": {\n          \"data_freshness\": \"fresh|acceptable|stale\",\n          \"source_count\": 0,\n          \"source_quality\": \"high|medium|low\",\n          \"missing_fields\": [\"\"]\n        },\n        \"scores\": {\n          \"macro_tailwind_score\": 0,\n          \"sentiment_heat_score\": 0,\n          \"valuation_attractiveness_score\": 0,\n          \"quality_score\": 0,\n          \"technical_setup_score\": 0,\n          \"composite_score\": 0\n        },\n        \"value_fallback\": {\n          \"used\": true,\n          \"style_bucket\": \"classic_value|garp|deep_value_higher_risk|null\",\n          \"component_scores\": {\n            \"peg_score\": 0,\n            \"forward_pe_relative_score\": 0,\n            \"fcf_yield_score\": 0,\n            \"revision_momentum_score\": 0,\n            \"balance_sheet_quality_score\": 0\n          },\n          \"value_fallback_composite_score\": 0\n        }\n      }\n    ]\n  },\n  \"stock_analysis\": [\n    {\n      \"ticker\": \"\",\n      \"company\": \"\",\n      \"sector\": \"\",\n      \"thesis\": \"\",\n      \"bull_case\": [\"\"],\n      \"risks\": [\"\"],\n      \"reason_codes\": [\"\"],\n      \"rejection_codes\": [],\n      \"confidence_gate\": {\n        \"data_freshness\": \"fresh|acceptable|stale\",\n        \"source_count\": 0,\n        \"source_quality\": \"high|medium|low\",\n        \"missing_fields\": [\"\"]\n      },\n      \"metrics\": {\n        \"price\": null,\n        \"market_cap\": null,\n        \"trailing_pe\": null,\n        \"forward_pe\": null,\n        \"peg\": null,\n        \"ev_ebitda\": null,\n        \"fcf_yield\": null,\n        \"revenue_growth\": null,\n        \"eps_growth\": null,\n        \"operating_margin\": null,\n        \"net_debt_ebitda\": null,\n        \"revision_momentum\": null\n      },\n      \"scores\": {\n        \"valuation_attractiveness_score\": 0,\n        \"fundamental_quality_score\": 0,\n        \"theme_alignment_score\": 0,\n        \"risk_score\": 0\n      },\n      \"price_zones\": {\n        \"aggressive_buy_zone\": \"\",\n        \"preferred_buy_zone\": \"\",\n        \"fair_value_hold_zone\": \"\",\n        \"trim_take_profit_zone\": \"\",\n        \"zone_basis\": \"valuation|technical|mixed\"\n      },\n      \"technical_plan\": {\n        \"trend\": \"uptrend|sideways|downtrend|mixed\",\n        \"stance\": \"buy_pullback|breakout_watch|wait|avoid|take_profit\",\n        \"support\": [\"\"],\n        \"resistance\": [\"\"],\n        \"entry_idea\": \"\",\n        \"stop_invalidation\": \"\",\n        \"target_1\": \"\",\n        \"target_2\": \"\"\n      }\n    }\n  ],\n  \"summary\": {\n    \"best_sector_now\": {\n      \"name\": \"\",\n      \"reason\": \"\"\n    },\n    \"best_value_candidate\": \"\",\n    \"best_momentum_candidate\": \"\",\n    \"market_stance_1_4w\": \"\"\n  }\n}\n```\n\n---\n\n## Final response template\n\nUse this structure unless the user requests another format.\n\n### 1) Macro and policy read\n\n- Top 3–5 market-moving developments\n- Sector beneficiaries\n- Sector headwinds\n- Ranked favorable sectors with Macro Tailwind Scores\n\n### 2) Market sentiment read\n\n- Broad market mood: bullish \u002F neutral \u002F bearish\n- One-paragraph explanation in the user's language\n- Top 10 hottest stocks:\n  - ticker\n  - theme\n  - heat score\n  - sentiment label\n  - speculation risk\n\n### 3) Final selected candidates\n\nFor each chosen stock, show:\n\n- ticker and company\n- sector \u002F theme\n- why selected\n- overlap type:\n  - macro + sentiment overlap\n  - macro + value fallback\n  - sentiment-only fallback\n\n### 4) Quantamental scorecard\n\nFor each final stock, include:\n\n- key valuation metrics\n- quality metrics\n- composite view\n- aggressive buy zone\n- preferred buy zone\n- trim zone\n\n### 5) Tactical trading view\n\nFor each final stock, include:\n\n- trend\n- support\u002Fresistance\n- entry style\n- stop\u002Finvalidation\n- short-term targets\n\n### 6) Summary judgment\n\nClose with:\n\n- most attractive sector right now\n- strongest value candidate\n- strongest momentum candidate\n- broad market stance for the next 1–4 weeks\n\n### 7) JSON output\n\nAfter the single-language report, include the JSON block unless the user asked not to.\n\n---\n\n## Decision rules for edge cases\n\n### When sentiment is very hot but fundamentals are poor\n\nSay explicitly that the stock is **sentiment-driven, not value-supported**.\n\n### When macro is bullish but charts are broken\n\nMark as **good company \u002F bad timing** and prefer waiting for technical repair.\n\n### When valuation is attractive but no catalyst exists\n\nMark as **watchlist value, low urgency**.\n\n### When news and sentiment conflict\n\nPrefer the signal with the clearer time horizon and stronger evidence. Explain the conflict.\n\n### When fallback screen is triggered but data is partial\n\nUse the fallback framework with only available factors, state which factors are missing, and lower confidence accordingly.\n\n### When strict mode is requested\n\nIn strict mode, require stronger evidence to issue a final candidate:\n- at least one high-quality macro source for Stage 1 conclusions\n- sentiment polarity better than `attention_only` for strong sentiment claims\n- at least 3 of the 5 fallback factors for value mode\n- at least one technical confirmation signal before issuing an actionable short-term trade plan\n\n---\n\n## Style requirements\n\n- Be concrete and investment-oriented.\n- Avoid vague phrases like “looks interesting” without evidence.\n- Show a ranking, not just descriptions.\n- State when a conclusion is **data-backed** vs **inference**.\n- Keep the narrative concise but decision-useful.\n- Keep human-readable output in a single language matching the user and machine-readable output strict.\n\n---\n\n## Safety and honesty\n\n- Do not fabricate prices, multiples, sentiment counts, or technical levels.\n- If no trustworthy data is available for a requested component, say that component is unavailable.\n- Remind the user that this is analysis, not guaranteed investment advice.\n","# Market Signal Fusion\n\nUse this skill when the user wants **stock analysis driven by macro\u002Fpolitical news + market sentiment + value screening + technical timing**.\n\nThis skill is designed for **adaptive language output** and for **downstream agent processing via a fixed JSON schema**.\n\n---\n\n## What this skill does\n\nThis skill runs a five-stage workflow:\n\n1. Interpret recent **political\u002Feconomic\u002Fnews catalysts** that matter for equities.\n2. Analyze **market sentiment** from retail\u002Fsocial discussion sources such as Reddit WSB and similar public channels.\n3. **Fuse** step 1 and step 2 to identify candidate sectors and stocks.\n4. Perform **quantamental analysis** and estimate **buy \u002F sell \u002F risk ranges**.\n5. Add a **short-term technical plan** for entries, exits, and invalidation.\n\nThis version also adds three functional upgrades:\n- a structured **WSB \u002F retail sentiment data-module contract**\n- a **market regime detector** to control style bias and sector weighting\n- **confidence gates + reason codes** so decisions are auditable and degrade gracefully when data is incomplete\n\nIf tools are available, prefer real market data and recent sources. Do not invent numbers.\n\n---\n\n## Core operating rules\n\n- Treat anything market-sensitive as **time-dependent**.\n- Prefer the **most recent 1–7 days** for news and sentiment unless the user specifies another window.\n- Use **primary or reputable financial sources** whenever possible.\n- Separate clearly:\n  - **facts**\n  - **inference**\n  - **opinion \u002F scenario**\n- Never present a stock pick without explaining **why** it survived the funnel.\n- If a required dataset is unavailable, say so explicitly and continue with the best available evidence.\n- Do **not** output generic investing advice; tie every conclusion to a catalyst, sentiment signal, valuation signal, or technical setup.\n- When confidence is low, reduce conviction rather than forcing a pick.\n- Every major conclusion should carry an implicit or explicit **confidence gate** based on freshness, source quality, and data completeness.\n- Attach short **reason codes** and, when relevant, **rejection codes** to structured outputs so downstream agents can audit why a stock passed or failed.\n- Preserve standard finance notation for tickers and metrics, e.g. `NVDA`, `Forward P\u002FE`, `FCF Yield`, `PEG`, `RSI`, `200DMA`.\n\n---\n\n## Language and output rules\n\n### Default language behavior\n\n- **Follow the user's prompt language automatically**.\n- If the user asks in **Chinese**, output the entire user-facing analysis in **Chinese only**.\n- If the user asks in **English**, output the entire user-facing analysis in **English only**.\n- Do **not** force bilingual output unless the user explicitly requests bilingual output.\n- If the user does not clearly signal a language preference, use the language of the latest user request.\n- Keep ticker symbols, sector names, factor names, JSON keys, and key financial metrics in standard English notation.\n\n### Single-language formatting rules\n\nFor user-facing narrative sections:\n\n- Match the user's language in headings and narrative.\n- In Chinese mode, write headings, explanations, stock theses, and action plans in Chinese.\n- In English mode, write headings, explanations, stock theses, and action plans in English.\n- Do not append mirrored translations by default.\n- For tables or JSON fields, use stable English keys and optionally localized display labels outside the JSON only when needed.\n\n### Machine-readable output rule\n\nWhenever the task is analytical and structured, output in **two layers**:\n\n1. A **human-readable report in the user's language**\n2. A **strict JSON block** that follows the schema below\n\nIf the user asks for only JSON, output only the JSON.\nIf the user asks for prose only, still internally follow the schema but omit the visible JSON unless useful.\n\n---\n\n## Inputs to collect from the user request\n\nExtract these if the user provided them; otherwise use sensible defaults:\n\n- Market universe: US equities by default\n- Time horizon:\n  - macro\u002Fnews: last 7 days\n  - sentiment: last 3 trading days if possible\n  - valuation: trailing + forward where available\n  - technicals: daily + weekly, and intraday if available\n- Style bias: value first, but allow momentum confirmation\n- Max output count:\n  - hot stocks from sentiment: 10\n  - final recommended list: 3 to 10 depending on evidence density\n- Risk style:\n  - if unspecified, assume **balanced swing trader with value discipline**\n\n---\n\n## Stage 1 — News and macro-political interpretation\n\nIdentify market-relevant developments from areas such as:\n\n- central bank \u002F rates \u002F liquidity\n- inflation \u002F labor \u002F growth data\n- tariffs \u002F sanctions \u002F export controls\n- fiscal policy \u002F defense spending \u002F infrastructure\n- energy policy \u002F OPEC \u002F grid \u002F power demand\n- AI regulation \u002F chips \u002F cloud capex\n- healthcare \u002F drug pricing \u002F reimbursement\n- antitrust \u002F trade restrictions \u002F industrial policy\n- geopolitical conflict affecting supply chains, commodities, shipping, or defense\n\nFor each major development, produce a structured record:\n\n- **Catalyst**: one-line summary\n- **Why the market cares**\n- **Affected sectors \u002F industries**\n- **Direction**: bullish \u002F bearish \u002F mixed\n- **Mechanism**: revenue, margin, capex, regulation, cost pass-through, rates, risk premium, etc.\n- **Time horizon**: immediate \u002F medium-term \u002F long-term\n- **Confidence**: high \u002F medium \u002F low\n\nThen aggregate across catalysts and rank the **top favorable sectors**.\n\n### Market regime detector\n\nBefore final sector ranking, classify the current market into one primary regime and optional secondary regime:\n\n- `risk_on_growth`\n- `risk_off_defensive`\n- `inflation_reflation`\n- `rate_sensitive`\n- `commodity_shock`\n- `earnings_revision_recovery`\n- `policy_transition_mixed`\n\nFor the chosen regime, provide:\n- the key evidence\n- which sectors should receive a weight boost\n- which sectors should be discounted\n- whether valuation discipline should be stricter or looser\n\nThe regime detector should influence later ranking rules. Examples:\n- In `risk_off_defensive`, reduce tolerance for speculative sentiment names.\n- In `inflation_reflation` or `commodity_shock`, boost Energy \u002F Materials \u002F selected Industrials where supported by evidence.\n- In `risk_on_growth`, allow stronger weight to AI \u002F semis \u002F software if revisions and charts confirm.\n\n### Stage 1 scoring rubric\n\nFor each sector, compute an informal score from 0 to 100 using:\n\n- policy\u002Fnews tailwind strength: 0–30\n- breadth of supporting catalysts: 0–20\n- immediacy of earnings impact: 0–20\n- durability of theme: 0–15\n- clarity \u002F confidence of mechanism: 0–15\n\nCall this **Macro Tailwind Score**.\n\n---\n\n## Stage 2 — Social \u002F retail sentiment analysis\n\nFocus on market sentiment sources such as:\n\n- Reddit WSB\n- Reddit investing\u002Fstocks-style communities\n- other accessible public sentiment sources if available\n\n### Preferred architecture\n\nIf the runtime has a dedicated social-data tool or plugin, prefer it over free-form browsing.\nTreat Stage 2 as a **data module** when possible, not only a narrative step.\n\n### Recommended Stage 2 module contract\n\nInputs:\n- `subreddits`: default `[\"wallstreetbets\", \"stocks\", \"investing\"]`\n- `lookback_window`: default `24h`, optional `72h` and `7d`\n- `min_mentions_threshold`: default `5` when enough data exists\n- `deduplicate_spam`: `true` by default\n- `exclude_etfs_or_indexes`: optional, `false` by default\n\nPreferred outputs per ticker:\n- `mentions`\n- `mentions_acceleration`\n- `bullish_count`\n- `bearish_count`\n- `bullish_ratio`\n- `sentiment_heat_score`\n- `support_type`\n- `speculation_risk`\n\nIf only partial data exists, degrade gracefully:\n- If only mention frequency exists, treat the result as **attention analysis**, not full polarity sentiment.\n- If bullish\u002Fbearish counts are missing, reduce confidence and do not overstate directional conviction.\n- If spam or duplicate-post filtering is unavailable, raise the speculation-risk estimate.\n\n### What to measure\n\nFor the broad market:\n\n- overall risk-on vs risk-off tone\n- prevalence of bullish vs bearish language\n- concentration in index \u002F mega-cap \u002F meme \u002F cyclical themes\n- whether sentiment is euphoric, improving, cautious, or deteriorating\n\nFor single names:\n\n- mention frequency\n- acceleration of mentions\n- bullish vs bearish balance\n- whether the narrative is squeeze\u002Fspeculation-driven or thesis-driven\n- whether discussion aligns with the macro sectors from Stage 1\n\n### Output required for Stage 2\n\n1. A **market mood** call: bullish \u002F neutral \u002F bearish\n2. A short explanation of why\n3. The **10 hottest stocks** by sentiment attention\n4. For each of the 10 stocks:\n   - ticker\n   - dominant narrative\n   - sentiment label: bullish \u002F bearish \u002F mixed\n   - whether it is likely **speculative** or **fundamentally supported**\n   - whether the signal is full sentiment or attention-only\n\n### Stage 2 scoring rubric\n\nFor each stock, form a **Sentiment Heat Score** from 0 to 100 using:\n\n- raw mention intensity: 0–30\n- mention acceleration: 0–20\n- bullish\u002Fbearish skew: 0–20\n- cross-source consistency: 0–15\n- narrative quality (thesis > meme): 0–15\n\nAlso assign a **Speculation Risk Flag**: low \u002F medium \u002F high.\n\n### Stage 2 confidence gate\n\nEvery Stage 2 conclusion should reflect these checks:\n\n- `data_freshness`: fresh \u002F acceptable \u002F stale\n- `source_count`: how many distinct sentiment sources were used\n- `polarity_completeness`: full \u002F partial \u002F attention_only\n- `duplicate_filtering`: yes \u002F no \u002F unknown\n- `confidence`: high \u002F medium \u002F low\n\nIf `polarity_completeness = attention_only`, do not make a strong bullish\u002Fbearish market call from Stage 2 alone.\n\n\n## Stage 3 — Fusion logic\n\n### Primary rule\n\nUse the **market regime detector** as a top-level weighting control.\n\nIf Stage 1 finds bullish sectors and Stage 2 contains stocks matching those sectors, prioritize the **overlap**.\n\n### Secondary rule\n\nIf Stage 1 finds bullish sectors but Stage 2 does **not** contain good matches, perform a **quantified value-investing fallback screen** inside those sectors.\n\n### Tertiary rule\n\nIf Stage 1 does **not** produce a clear sector conclusion, output the Stage 2 hot-stock list, ranked and filtered for quality.\n\n### Fusion ranking formula\n\nFor each candidate stock, combine:\n\n- Macro Tailwind Score: 30%\n- Sentiment Heat Score: 20%\n- Valuation Attractiveness Score: 25%\n- Quality Score: 15%\n- Technical Setup Score: 10%\n\nUse judgment to override only when one signal is obviously distorted, for example meme-driven sentiment with broken fundamentals.\n\n---\n\n## Stage 3B — Quantified value-investing fallback screen\n\nWhen a favored sector lacks sentiment candidates, screen for potentially undervalued stocks using as many of these as available:\n\n- PEG relative to sector and growth profile\n- forward P\u002FE relative to sector\n- EV\u002FEBITDA relative to sector\n- free cash flow yield\n- earnings revision momentum\n- revenue \u002F EPS growth durability\n- operating margin resilience\n- ROIC \u002F ROE quality\n- debt burden \u002F interest coverage\n- dividend yield where relevant\n- price\u002Fbook where relevant for financials or asset-heavy sectors\n\n### Hard fallback preference\n\nPrefer a **harder quantified fallback** over loose narrative value language.\n\nWhen enough data exists, compute a **Value Fallback Composite Score (0–100)** with this default weighting:\n\n- **PEG score**: 25%\n- **Forward P\u002FE relative score**: 20%\n- **FCF Yield score**: 25%\n- **Revision Momentum score**: 20%\n- **Balance Sheet \u002F Quality guardrail score**: 10%\n\n### Factor definitions\n\n#### 1) PEG score (25%)\n\nScore higher when:\n- PEG is lower than sector median\n- PEG is below 1.5, and score especially well below 1.0 when growth quality is credible\n- avoid over-rewarding ultra-low PEG if earnings quality is weak or cyclical collapse distorts E\n\nSuggested informal mapping:\n- excellent: PEG \u003C 1.0\n- good: 1.0–1.5\n- neutral: 1.5–2.0\n- weak: > 2.0\n\n#### 2) Forward P\u002FE relative score (20%)\n\nCompare company forward P\u002FE to:\n- sector median\n- relevant peer median\n- own 3Y or 5Y historical band when available\n\nScore higher when the stock trades at a meaningful discount **without obvious deterioration in business quality**.\n\n#### 3) FCF Yield score (25%)\n\nPrefer higher free cash flow yield, especially when:\n- FCF is positive and recurring\n- conversion from earnings to cash is stable\n- capex intensity does not make FCF misleading\n\nPenalty conditions:\n- one-off working capital boosts\n- financially engineered buyback optics unsupported by real cash generation\n\n#### 4) Revision Momentum score (20%)\n\nMeasure whether analyst expectations are improving:\n- upward EPS revisions over 30–90 days\n- upward revenue revisions when available\n- fewer estimate cuts than sector peers\n\nScore higher when revisions are improving and the stock still looks inexpensive.\n\n#### 5) Balance Sheet \u002F Quality guardrail score (10%)\n\nDo not let a cheap-looking stock pass if the balance sheet is stressed.\nCheck:\n- net debt \u002F EBITDA\n- interest coverage\n- current ratio where relevant\n- margin stability\n- ROIC \u002F ROE quality\n\n### Fallback disqualifiers\n\nA stock should usually **not** survive the fallback screen if several of the following are true:\n\n- negative or chronically unstable FCF\n- heavy leverage with weak interest coverage\n- falling revisions with no identifiable catalyst\n- very low multiple caused by structural decline rather than mispricing\n- direct macro tailwind is weak or ambiguous\n\n### Fallback output requirement\n\nFor fallback-selected stocks, explicitly show:\n\n- why the stock was selected despite not appearing in sentiment overlap\n- the component factor scores\n- the final Value Fallback Composite Score\n- whether the name is a **classic value**, **GARP**, or **deep value \u002F higher risk** setup\n\nCall the final valuation score in fallback mode:\n**Valuation Attractiveness Score** and preserve the component breakdown in JSON.\n\n---\n\n## Stage 4 — Quantamental stock analysis and price zones\n\nFor each final stock, provide:\n\n### A. Business \u002F thesis snapshot\n\n- what the company does\n- why it fits the selected theme\n- main bull case in 2–4 bullets\n- main risks in 2–4 bullets\n\n### B. Quantamental checklist\n\nUse available metrics such as:\n\n- market cap\n- trailing P\u002FE\n- forward P\u002FE\n- PEG if available\n- EV\u002FEBITDA\n- price\u002Fsales\n- gross \u002F operating margin\n- EPS growth\n- revenue growth\n- free cash flow trend\n- debt\u002Fequity or net debt\u002FEBITDA\n- analyst revision direction if available\n\nThen score:\n\n- Valuation Attractiveness Score (0–100)\n- Fundamental Quality Score (0–100)\n- Theme Alignment Score (0–100)\n- Risk Score (0–100, where higher means riskier)\n\n### C. Price framework\n\nEstimate four levels when data supports it:\n\n- **Aggressive buy zone**\n- **Preferred buy zone**\n- **Fair value \u002F hold zone**\n- **Trim \u002F take-profit zone**\n\nBase these on a mix of:\n\n- valuation ranges\n- support\u002Fresistance\n- moving averages\n- prior consolidation zones\n- recent volatility\n\nWhen exact valuation is unavailable, label the ranges as **technical estimate** rather than intrinsic value.\n\n---\n\n## Stage 5 — Technical setup and short-term plan\n\nFor each final stock, analyze:\n\n- trend direction on weekly and daily timeframes\n- key moving averages (20 \u002F 50 \u002F 200 if available)\n- support and resistance\n- breakout vs pullback setup\n- momentum confirmation or divergence\n- volume confirmation when available\n\nThen provide a tactical plan:\n\n- **Short-term stance**: buy pullback \u002F breakout watch \u002F avoid \u002F wait \u002F take profit\n- **Entry idea**\n- **Stop \u002F invalidation level**\n- **First target**\n- **Second target**\n- **Why this setup works or fails**\n\nDo not imply certainty. Present it as a conditional trade plan.\n\n---\n\n## Reason codes and rejection codes\n\nWherever possible, attach concise structured tags that explain why a candidate passed or failed.\n\nExamples of `reason_codes`:\n- `MACRO_ENERGY_TAILWIND`\n- `MACRO_DEFENSE_SPENDING`\n- `REGIME_RISK_OFF_DEFENSIVE`\n- `WSB_HEAT_HIGH`\n- `WSB_POLARITY_PARTIAL`\n- `REVISION_MOMENTUM_STRONG`\n- `FCF_YIELD_STRONG`\n- `TECH_PULLBACK_TO_50DMA`\n- `TECH_BREAKOUT_WITH_VOLUME`\n\nExamples of `rejection_codes`:\n- `SPECULATION_RISK_HIGH`\n- `VALUATION_DATA_INCOMPLETE`\n- `FUNDAMENTALS_WEAK`\n- `NEGATIVE_FCF`\n- `BROKEN_CHART`\n- `NO_CLEAR_CATALYST`\n\nUse short, stable codes so downstream agents can filter, rank, and audit decisions.\n\n---\n\n## Fixed JSON output schema\n\nWhen structured output is appropriate, emit a fenced `json` block that follows this schema as closely as possible.\nOmit unavailable fields or set them to `null`; do not fabricate values.\nUse the same single language as the user-facing report for all free-text values inside the JSON. Keep keys in English.\n\n```json\n{\n  \"meta\": {\n    \"skill\": \"market-signal-fusion\",\n    \"version\": \"1.2.0\",\n    \"language_mode\": \"auto_single_language\",\n    \"output_language\": \"zh|en\",\n    \"market_universe\": \"US equities\",\n    \"as_of_date\": \"YYYY-MM-DD\",\n    \"time_windows\": {\n      \"macro_news\": \"last_7d\",\n      \"sentiment\": \"last_3d\",\n      \"technicals\": \"daily_weekly\"\n    },\n    \"strict_mode\": false\n  },\n  \"macro\": {\n    \"market_bias\": \"bullish|neutral|bearish|mixed\",\n    \"market_regime\": {\n      \"primary\": \"risk_on_growth|risk_off_defensive|inflation_reflation|rate_sensitive|commodity_shock|earnings_revision_recovery|policy_transition_mixed\",\n      \"secondary\": null,\n      \"evidence\": [\"\"],\n      \"style_implication\": \"\"\n    },\n    \"top_catalysts\": [\n      {\n        \"title\": \"\",\n        \"summary\": \"\",\n        \"direction\": \"bullish|bearish|mixed\",\n        \"affected_sectors\": [\"\"],\n        \"mechanism\": \"\",\n        \"time_horizon\": \"immediate|medium_term|long_term\",\n        \"confidence\": \"high|medium|low\",\n        \"confidence_gate\": {\n          \"data_freshness\": \"fresh|acceptable|stale\",\n          \"source_count\": 0,\n          \"source_quality\": \"high|medium|low\",\n          \"missing_fields\": [\"\"]\n        }\n      }\n    ],\n    \"favored_sectors\": [\n      {\n        \"sector\": \"\",\n        \"macro_tailwind_score\": 0,\n        \"rationale\": \"\"\n      }\n    ],\n    \"headwind_sectors\": [\"\"]\n  },\n  \"sentiment\": {\n    \"broad_market_mood\": \"bullish|neutral|bearish\",\n    \"risk_mode\": \"risk_on|neutral|risk_off\",\n    \"summary\": \"\",\n    \"confidence_gate\": {\n      \"data_freshness\": \"fresh|acceptable|stale\",\n      \"source_count\": 0,\n      \"polarity_completeness\": \"full|partial|attention_only\",\n      \"duplicate_filtering\": \"yes|no|unknown\",\n      \"confidence\": \"high|medium|low\"\n    },\n    \"hot_stocks\": [\n      {\n        \"ticker\": \"\",\n        \"company\": \"\",\n        \"sector\": \"\",\n        \"dominant_narrative\": \"\",\n        \"sentiment_label\": \"bullish|bearish|mixed\",\n        \"signal_type\": \"full_sentiment|attention_only\",\n        \"sentiment_heat_score\": 0,\n        \"mentions\": null,\n        \"mentions_acceleration\": null,\n        \"bullish_count\": null,\n        \"bearish_count\": null,\n        \"bullish_ratio\": null,\n        \"speculation_risk\": \"low|medium|high\",\n        \"support_type\": \"speculative|fundamentally_supported|mixed\"\n      }\n    ]\n  },\n  \"selection\": {\n    \"selection_mode\": \"macro_sentiment_overlap|macro_value_fallback|sentiment_only_fallback\",\n    \"final_candidates\": [\n      {\n        \"ticker\": \"\",\n        \"company\": \"\",\n        \"sector\": \"\",\n        \"selection_reason\": \"\",\n        \"overlap_type\": \"macro_plus_sentiment|macro_plus_value|sentiment_only\",\n        \"reason_codes\": [\"\"],\n        \"rejection_codes\": [],\n        \"confidence_gate\": {\n          \"data_freshness\": \"fresh|acceptable|stale\",\n          \"source_count\": 0,\n          \"source_quality\": \"high|medium|low\",\n          \"missing_fields\": [\"\"]\n        },\n        \"scores\": {\n          \"macro_tailwind_score\": 0,\n          \"sentiment_heat_score\": 0,\n          \"valuation_attractiveness_score\": 0,\n          \"quality_score\": 0,\n          \"technical_setup_score\": 0,\n          \"composite_score\": 0\n        },\n        \"value_fallback\": {\n          \"used\": true,\n          \"style_bucket\": \"classic_value|garp|deep_value_higher_risk|null\",\n          \"component_scores\": {\n            \"peg_score\": 0,\n            \"forward_pe_relative_score\": 0,\n            \"fcf_yield_score\": 0,\n            \"revision_momentum_score\": 0,\n            \"balance_sheet_quality_score\": 0\n          },\n          \"value_fallback_composite_score\": 0\n        }\n      }\n    ]\n  },\n  \"stock_analysis\": [\n    {\n      \"ticker\": \"\",\n      \"company\": \"\",\n      \"sector\": \"\",\n      \"thesis\": \"\",\n      \"bull_case\": [\"\"],\n      \"risks\": [\"\"],\n      \"reason_codes\": [\"\"],\n      \"rejection_codes\": [],\n      \"confidence_gate\": {\n        \"data_freshness\": \"fresh|acceptable|stale\",\n        \"source_count\": 0,\n        \"source_quality\": \"high|medium|low\",\n        \"missing_fields\": [\"\"]\n      },\n      \"metrics\": {\n        \"price\": null,\n        \"market_cap\": null,\n        \"trailing_pe\": null,\n        \"forward_pe\": null,\n        \"peg\": null,\n        \"ev_ebitda\": null,\n        \"fcf_yield\": null,\n        \"revenue_growth\": null,\n        \"eps_growth\": null,\n        \"operating_margin\": null,\n        \"net_debt_ebitda\": null,\n        \"revision_momentum\": null\n      },\n      \"scores\": {\n        \"valuation_attractiveness_score\": 0,\n        \"fundamental_quality_score\": 0,\n        \"theme_alignment_score\": 0,\n        \"risk_score\": 0\n      },\n      \"price_zones\": {\n        \"aggressive_buy_zone\": \"\",\n        \"preferred_buy_zone\": \"\",\n        \"fair_value_hold_zone\": \"\",\n        \"trim_take_profit_zone\": \"\",\n        \"zone_basis\": \"valuation|technical|mixed\"\n      },\n      \"technical_plan\": {\n        \"trend\": \"uptrend|sideways|downtrend|mixed\",\n        \"stance\": \"buy_pullback|breakout_watch|wait|avoid|take_profit\",\n        \"support\": [\"\"],\n        \"resistance\": [\"\"],\n        \"entry_idea\": \"\",\n        \"stop_invalidation\": \"\",\n        \"target_1\": \"\",\n        \"target_2\": \"\"\n      }\n    }\n  ],\n  \"summary\": {\n    \"best_sector_now\": {\n      \"name\": \"\",\n      \"reason\": \"\"\n    },\n    \"best_value_candidate\": \"\",\n    \"best_momentum_candidate\": \"\",\n    \"market_stance_1_4w\": \"\"\n  }\n}\n```\n\n---\n\n## Final response template\n\nUse this structure unless the user requests another format.\n\n### 1) Macro and policy read\n\n- Top 3–5 market-moving developments\n- Sector beneficiaries\n- Sector headwinds\n- Ranked favorable sectors with Macro Tailwind Scores\n\n### 2) Market sentiment read\n\n- Broad market mood: bullish \u002F neutral \u002F bearish\n- One-paragraph explanation in the user's language\n- Top 10 hottest stocks:\n  - ticker\n  - theme\n  - heat score\n  - sentiment label\n  - speculation risk\n\n### 3) Final selected candidates\n\nFor each chosen stock, show:\n\n- ticker and company\n- sector \u002F theme\n- why selected\n- overlap type:\n  - macro + sentiment overlap\n  - macro + value fallback\n  - sentiment-only fallback\n\n### 4) Quantamental scorecard\n\nFor each final stock, include:\n\n- key valuation metrics\n- quality metrics\n- composite view\n- aggressive buy zone\n- preferred buy zone\n- trim zone\n\n### 5) Tactical trading view\n\nFor each final stock, include:\n\n- trend\n- support\u002Fresistance\n- entry style\n- stop\u002Finvalidation\n- short-term targets\n\n### 6) Summary judgment\n\nClose with:\n\n- most attractive sector right now\n- strongest value candidate\n- strongest momentum candidate\n- broad market stance for the next 1–4 weeks\n\n### 7) JSON output\n\nAfter the single-language report, include the JSON block unless the user asked not to.\n\n---\n\n## Decision rules for edge cases\n\n### When sentiment is very hot but fundamentals are poor\n\nSay explicitly that the stock is **sentiment-driven, not value-supported**.\n\n### When macro is bullish but charts are broken\n\nMark as **good company \u002F bad timing** and prefer waiting for technical repair.\n\n### When valuation is attractive but no catalyst exists\n\nMark as **watchlist value, low urgency**.\n\n### When news and sentiment conflict\n\nPrefer the signal with the clearer time horizon and stronger evidence. Explain the conflict.\n\n### When fallback screen is triggered but data is partial\n\nUse the fallback framework with only available factors, state which factors are missing, and lower confidence accordingly.\n\n### When strict mode is requested\n\nIn strict mode, require stronger evidence to issue a final candidate:\n- at least one high-quality macro source for Stage 1 conclusions\n- sentiment polarity better than `attention_only` for strong sentiment claims\n- at least 3 of the 5 fallback factors for value mode\n- at least one technical confirmation signal before issuing an actionable short-term trade plan\n\n---\n\n## Style requirements\n\n- Be concrete and investment-oriented.\n- Avoid vague phrases like “looks interesting” without evidence.\n- Show a ranking, not just descriptions.\n- State when a conclusion is **data-backed** vs **inference**.\n- Keep the narrative concise but decision-useful.\n- Keep human-readable output in a single language matching the user and machine-readable output strict.\n\n---\n\n## Safety and honesty\n\n- Do not fabricate prices, multiples, sentiment counts, or technical levels.\n- If no trustworthy data is available for a requested component, say that component is unavailable.\n- Remind the user that this is analysis, not guaranteed investment advice.\n",{"name":5,"homepage":24,"metadata":25,"description":7,"user-invocable":28,"disable-model-invocation":20},"https:\u002F\u002Fclawhub.com",{"openclaw":26},{"emoji":27},"📈",true,"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fm\u002Fmarket-signal-fusion",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":28},[40,43,46],{"tool":41,"command":42},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill market-signal-fusion",{"tool":44,"command":45},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill market-signal-fusion",{"tool":47,"command":48},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill market-signal-fusion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fm\u002Fmarket-signal-fusion\u002FSKILL.md",[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]