跳到主内容
智客 ZICQ

技能库 智客分类:文档办公 news-reaction-failure-analyzer

News Reaction Failure Analyzer

判断一个市场是否对一个拥挤的投机立场的有利新闻反应不力——杰森·沙皮罗的COT反面过程第二步. 利用经统计验证的漂流标志测试(不是天真故障-结果,错误地证实了纯噪音),得出闭塞的CONFIRMED / NOT_CONFIRMED / INSUFITIENT_EVIDE判断结果。 通用出自 COT —— 用于 PEAD 和 macro- crowing 新闻失败检查 。 当用户要求检查新闻故障确认时使用,是否拥挤的市场"挤出"了好/坏消息,或者想在CROWDED上运行Shapiro第2步_. (原始内容存档于2017-10-21). Long/Crowded_shortt market.

1760 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

判断一个市场是否对一个拥挤的投机立场的有利新闻反应不力——杰森·沙皮罗的COT反面过程第二步. 利用经统计验证的漂流标志测试(不是天真故障-结果,错误地证实了纯噪音),得出闭塞的CONFIRMED / NOT_CONFIRMED / INSUFITIENT_EVIDE判断结果。 COT以外的通用软件——用于 PEAD 和宏存储新闻失败检查

何时用

这个技能

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:News Reaction Failure Analyzer、Overview、When to Use This Skill、Prerequisites、Workflow、Phase 1: Obtain symbol + direction。 其中含规范建议的小节:分步指令。

文件分析

文件分析:除 SKILL.md 外,正文引用了 references/news-failure-patterns.md、references/price-source-map.md、scripts/analyze_news_reaction.py,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

Judge whether a market FAILED to react to news favorable to a crowded speculative position — step 2 of Jason Shapiro's COT contrarian process. Consumes a cot-contrarian-detector report (or an explicit direction) plus a Claude-curated events JSON, fetches the underlying price series with a documented fallback chain, and produces a fail-closed CONFIRMED / NOT_CONFIRMED / INSUFFICIENT_EVIDENCE verdict using a statistically validated drift-significance test (not a naive failure-ratio, which false-confirms on pure noise). Generic beyond COT — reusable for PEAD and macro-crowding news-failure checks. Use when the user asks to check news-failure confirmation, whether a crowded market "shrugged off" good/bad news, or wants to run Shapiro step 2 on a CROWDED_LONG/CROWDED_SHORT market.

News Reaction Failure AnalyzerOverviewWhen to Use This SkillPrerequisitesWorkflowPhase 1: Obtain symbol + directionPhase 2: Curate the events JSON via WebSearchPhase 3: Run the CLIPhase 4: Present verdict + handoffOutputGuardrailsResources

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
news-reaction-failure-analyzer
description
Judge whether a market FAILED to react to news favorable to a crowded speculative position — step 2 of Jason Shapiro's COT contrarian process. Consumes a cot-contrarian-detector report (or an explicit direction) plus a Claude-curated events JSON, fetches the underlying price series with a documented fallback chain, and produces a fail-closed CONFIRMED / NOT_CONFIRMED / INSUFFICIENT_EVIDENCE verdict using a statistically validated drift-significance test (not a naive failure-ratio, which false-confirms on pure noise). Generic beyond COT — reusable for PEAD and macro-crowding news-failure checks. Use when the user asks to check news-failure confirmation, whether a crowded market "shrugged off" good/bad news, or wants to run Shapiro step 2 on a CROWDED_LONG/CROWDED_SHORT market.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 3
  • references/news-failure-patterns.md
  • references/price-source-map.md
  • scripts/analyze_news_reaction.py

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「news-reaction-failure-analyzer」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-c40f4516ddff85b3-%E6%96%B0%E9%97%BB%E5%8F%8D%E5%BA%94%E5%A4%B1%E8%B4%A5%E5%88%86%E6%9E%90%E5%99%A8.html
请存为 .cursor/skills/news-reaction-failure-analyzer/SKILL.md 或 .claude/skills/news-reaction-failure-analyzer/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/tradermonty/claude-trading-skills 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/tradermonty/claude-trading-skills' --list

npx skills add 'https://github.com/tradermonty/claude-trading-skills' --skill 'news-reaction-failure-analyzer'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: news-reaction-failure-analyzer description: Judge whether a market FAILED to react to news favorable to a crowded speculative position — step 2 of Jason Shapiro's COT contrarian process. Consumes a cot-contrarian-detector report (or an explicit direction) plus a Claude-curated events JSON, fetches the underlying price series with a documented fallback chain, and produces a fail-closed CONFIRMED / NOT_CONFIRMED / INSUFFICIENT_EVIDENCE verdict using a statistically validated drift-significance test (not a naive failure-ratio, which false-confirms on pure noise). Generic beyond COT — reusable for PEAD and macro-crowding news-failure checks. Use when the user asks to check news-failure confirmation, whether a crowded market "shrugged off" good/bad news, or wants to run Shapiro step 2 on a CROWDED_LONG/CROWDED_SHORT market. --- # News Reaction Failure Analyzer ## Overview Implements step 2 of Jason Shapiro's COT contrarian process: once a market is flagged as crowded (`cot-contrarian-detector`, step 1), check whether it FAILED to react to news that should have rewarded the crowd. A crowded-long market that doesn't rally on genuinely bullish news, or a crowded-short market that doesn't sell off on genuinely bearish news, is the core behavioral tell that the crowd has run out of buying/selling power — this is the confirmation step that turns "crowded" into a contrarian setup candidate (steps 3-5, still manual: price-action confirmation, entry, exit). **Why this isn't a naive failure-ratio check:** an earlier design flagged "news failure" whenever fewer than half the relevant events "responded" — but under pure noise, roughly 69% of individual events fail to respond by chance, so that rule would CONFIRM on random noise 48-83% of the time depending on sample size. This skill instead requires the market to have moved *significantly against* the crowd's favorable news (a drift- significance test with a Monte-Carlo-verified null false-positive bound), never merely "didn't respond enough." See `references/news-failure-patterns.md` for the full statistical rationale. ## When to Use This Skill **English:** - "Did the market shrug off [event] even though [asset] is crowded long/short?" - "Run a news-failure check on [symbol]" - "Is [symbol] confirmed for a Shapiro-style contrarian setup?" - After `cot-contrarian-detector` flags a market CROWDED_LONG / CROWDED_SHORT and the user wants to move to step 2 **Japanese:** - 「この市場は好材料に反応しなかった?」 - 「COTで偏っているこの銘柄のニュース失敗を確認して」 **Do NOT use when:** - The market isn't crowded (NEUTRAL classification) — this skill refuses fail-closed without an explicit `--direction` override - No curated events JSON exists yet — WebSearch must run first (Phase 2 below); never fabricate events or URLs to get a verdict ## Prerequisites - **FMP API Key:** Required. Set `FMP_API_KEY` or pass `--api-key`. Used for price data only (`stable/historical-price-eod/light`) — coverage varies by symbol; see `references/price-source-map.md`. - **Python 3.9+** with `requests` installed. - **WebSearch access** to curate the events JSON (Phase 2). Skill degrades gracefully without it (states the limitation; never fabricates events). - **Optional:** a `cot-contrarian-detector` JSON report (`--detector-json`) to auto-resolve symbol + direction, or supply `--direction` explicitly. ## Workflow ### Phase 1: Obtain symbol + direction From a `cot-contrarian-detector` report (`--detector-json`, symbol looked up in `markets[]`) or directly from the user (`--symbol` + `--direction`). A `NEUTRAL` classification, a symbol missing from the report, or a report older than `--max-detector-age-days` (default 10) all refuse fail-closed with a specific reason — only an explicit `--direction` overrides. ### Phase 2: Curate the events JSON via WebSearch Search news in the evaluation window (`--window-days`, default 10) using the 4-tier source hierarchy (issuer/primary → SEC/official stats → wire → portal — see `references/news-failure-patterns.md`). Write findings into an events JSON from `references/news-failure-patterns.md`'s template — `event`, `event_time` (ISO8601 with explicit UTC offset), `source_url`, `source_tier`, `expected_impact` (BULLISH/BEARISH) per event. **Never fabricate events or URLs.** WebSearch unavailable → state it explicitly; proceed without an events JSON only if the user accepts an `INSUFFICIENT_EVIDENCE` result (reason `no_events_provided`) — the CLI never raises an exception for a missing events file, it always exits 0 with a documented reason. ### Phase 3: Run the CLI ```bash python3 skills/news-reaction-failure-analyzer/scripts/analyze_news_reaction.py \ --symbol B6 --detector-json reports/cot_crowding_2026-07-12.json \ --events-json reports/nrf_events_B6_2026-07-12.json \ --output-dir reports/ ``` The script fetches the price series (documented fallback chain — futures symbol first, ETF proxy if 402/restricted or `rows == 0`; see `references/price-source-map.md`), computes effective dates / returns / z-scores per event, clusters events whose 3-trading-day windows overlap (independence guard), and synthesizes the verdict. ### Phase 4: Present verdict + handoff Present the verdict, aggregate stats (`drift_stat`, `responded_ratio`), and the evidence table (per-event returns/z-scores/reaction labels, with any `dropped_events` reasons shown — never silently hidden). If a proxy (`run_context.proxy_used`) was used, note the tracking-error caveat. Emit a handoff block for `contrarian-setup-gate` (#241, not yet built): ```json {"news_failure": {"verdict": "CONFIRMED", "confidence": "HIGH", "report_path": "reports/nrf_B6_2026-07-12.json"}} ``` ## Output - **JSON:** `reports/nrf__.json` — `schema_version`, `symbol`, `direction`, `expected_direction`, `actual_reaction` (`FAILED_TO_RALLY`/`FAILED_TO_SELL_OFF`/`RALLIED`/`SOLD_OFF`/ `MIXED_REACTION`/`NO_DATA`), `verdict`, `confidence`, `relevant_events_used`, `aggregate` (mean_z3/drift_stat/responded_ratio), `evidence[]`, `dropped_events[]`, `run_context`. - **Markdown:** `reports/nrf__.md` — human-readable verdict, aggregate stats, evidence table, dropped-events table, proxy caveat (if used), and methodology footnote. ## Guardrails - **CONFIRMED is not a trade signal.** It confirms step 2 of 5 — price- action confirmation (step 3), entry (step 4), and exit (step 5) are still manual and still required before any position. - **INSUFFICIENT_EVIDENCE never advances the pipeline.** Fewer than `--min-events` (default 3) usable relevant event *clusters*, a missing detector report, or a detector vintage (`data_date`) that's missing, unparsable, dated after `--as-of`, or older than `--max-detector-age-days` (stale), a `NEUTRAL` classification without an explicit override, or no working price source all produce this verdict — never a crash, never a forced call on inadequate data. - **COT publication lag.** COT data is 3-9 days old by the time it's read (see `cot-contrarian-detector`); news-failure evidence should be read in that context, not as same-day confirmation. - **Counter-direction events are context only** — shown in the evidence table but excluded from the verdict (only events whose `expected_impact` matches the crowd's `expected_direction` count). - **Proxy-based prices are noted, not hidden.** When an ETF proxy was used (`run_context.proxy_used`), the report says so — tracking error, expense drag, and roll-timing differences make the reaction-direction read approximate, not exact. - **Residual statistical risk under extreme correlation.** The verdict's null false-CONFIRMED rate is hard-verified under i.i.d. noise (<8%) and under a realistic residual-correlation stress (AR(1) ρ=0.1, <10%). Under an intentionally extreme correlation stress (lag-1 ρ=0.3 across non-clustered event windows — roughly 10x liquid-futures empirical autocorrelation), the measured null rate rises to ~11-13%. This is a documented v1 limitation, not a silent gap — see `references/news-failure-patterns.md` for the full numbers. Users who want the stricter <10% margin even under that stress can pass `--drift-z 1.75` (at the cost of missing some genuine news-failure signals, not just noise). - **Not investment advice.** Research/educational purposes only. ## Resources ### `references/news-failure-patterns.md` Full methodology: what qualifies as a relevant event, the 4-tier source hierarchy, worked examples, the events-JSON curation guide + template, and the verdict-threshold rationale (why drift-significance, not a naive ratio; the Monte-Carlo-verified null bounds). ### `references/price-source-map.md` Per-market price-source fallback chain, verified/402/0-rows status (live- probed at implementation time), ETF-proxy caveats, and markets with no viable source (documented `no_price_source` cases: VX, ZQ, HO, all agri on this key). ### When to Load References - **First use / explaining the methodology:** Load `references/news-failure-patterns.md` - **Explaining why a market has no verdict (no_price_source):** Load `references/price-source-map.md` - **Regular execution:** References not needed for the CLI itself — needed for Phase 2 (events curation) and for explaining results to the user

相关技能

文档办公

Ontology

为结构化的代理内存和可堆肥技能所打入的知识图. 在创建/征服实体(Person, project, Task, Evention, Document)时使用,链接相关对象,强制约束,规划多步动作作为图变,或技能需要共享状态时使用. 触发到"记住","我知道什么","链接X到Y",…

文档办公

Nano Pdf

使用纳米-pdf CLI编辑带有自然语言指令的PDF.

文档办公

Word / DOCX

创建,检查,并编辑有可靠样式的Microsoft Word文档和DOCX文件,编号,跟踪更改,表格,章节,并进行相容性检查. 当 (1) 任务涉及 Word 或 ".docx " 时使用; (2) 文件包括跟踪的更改,评论,字段,表格,模板,或页面布局限制; (3) 文档必须在不…

文档办公

Api Gateway

通过 Maton 网关调用第三方 API, 它为用户已经连接的应用程序注入证书 。 当用户命名一个连接的应用程序和其中的具体行动时使用此技能——读取一个邮箱,查询一个CMM,归档一个问题,更新一个电子表格,通过一个连接的搜索或刮取提供者运行一个查询. 每一次通话都到用户连接的应用…