[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EPSXNQKFDKM2V9BE0E4DFK":3,"skill-same:01M7EPSXNQKFDKM2V9BE0E4DFK":79},{"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":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M7EPSXNQKFDKM2V9BE0E4DFK","pulse",null,"Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-imp-pulse\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pulse\ndescription: 'Multi-source recency research skill that takes the pulse of any topic\n  across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable\n  recent window (default 30 days). Forcing intake clarifies topic specificity, angle\n  (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope\n  before searching. Returns a synthesized briefing with citations, engagement metrics,\n  and cross-platform pattern analysis. Use when the user requests multi-source recency\n  intelligence on a topic (e.g., ''pulse on [topic]'', ''what''s happening with [topic]'',\n  ''what are people saying about [topic]'', ''current conversation about [topic]'',\n  ''take the pulse of [topic]'', ''trending: [topic]'', ''find me info on [topic]''),\n  and for competitor research, trend discovery, tool comparisons, and audience sentiment\n  analysis.'\nlicense: MIT\nmetadata:\n  source_spec: megaprompts\u002F01-pulse-megaprompt.md\n  build_pattern: Path B (direct conversion)\n  research_pack_convention: 'Agent Integrity Rules block preserved verbatim per PR\n    #657 audit'\n  version: 1.0.0\n---\n\n# Pulse — Multi-Source Recency Research\n\n> **Portability:** Works in Claude Code CLI and Claude.ai. Phase 4 accepts a local X\u002FTwitter search export before trying a live interface.\n\nA recency-oriented research skill that synthesizes what people are saying about a topic across Reddit, Hacker News, the open web, and (optionally) X\u002FTwitter — within a configurable time window. Output is a single coherent briefing with citations, engagement signals, and cross-platform pattern analysis. The skill captures the **current conversation**, not the canonical reference.\n\n## Invocation\n\n**Explicit trigger phrases:**\n- \"pulse on [topic]\"\n- \"what's happening with [topic]\"\n- \"what are people saying about [topic]\"\n- \"current conversation about [topic]\"\n- \"take the pulse of [topic]\"\n- \"trending: [topic]\"\n- \"find me info on [topic]\"\n\nAlso covers: competitor research with recency flavor, trend discovery, tool comparisons, audience sentiment analysis.\n\n## Agent Integrity Rules (Research-Pack Convention)\n\nThe following rules apply throughout the run. They are inherited from the research-pack convention and locked down by PR #657's cross-skill consistency audit.\n\n- **Execution discipline.** Phases 1–3 run in parallel (Reddit + HN + Web are independent). Within each phase, sequential calls only. **1 q\u002Fsec rate limit per platform.** Confirm response received before next call within the same phase.\n- **Source discipline.** Cite only sources returned by **this session's tool calls.** Training knowledge is labeled `[Background — not from search]` and excluded from primary findings count.\n- **Three-count tracking.** Queries sent \u002F sources received (shown) \u002F sources cited. Surfaced in the audit log inline in the synthesis section. Use `scripts\u002Fcitation_tracker.py` for the deterministic count.\n- **Retry policy.** On failure → wait 3s → retry once → log. After **3 consecutive failures across all sources:** stop, alert user, share what was collected. Never deliver an empty file.\n- **Plan-tier detection.** Reddit + HN are unauthenticated public JSON APIs (rate-limited per IP, not per plan). Surface rate-limit signals from response headers when available; degrade gracefully otherwise.\n\nSee `references\u002Fresearch_pack_conventions.md` for the canon and `references\u002Fparallel_execution_discipline.md` for the rate-limit rationale.\n\n## Phase 0: Grill-Me Intake (2–4 forcing questions, one at a time)\n\nDependency-ordered. Each question carries explicit \"why I'm asking\". Stop condition: max 4.\n\n### Q1 (root) — Topic Specificity\n\n> **What's the topic? State it in 1–2 sentences — be specific. \"AI\" or \"tech\" will get you a vague survey; \"self-hosted LLM deployment for small teams\" or \"Claude Code adoption among enterprise engineering orgs\" will get you a useful answer.**\n>\n> *Why I'm asking:* Specificity dictates search quality. Vague topics produce vague briefings. If your topic is broad, I'd rather narrow it now than spend a search budget on noise.\n\n**Refuse mush.** If the user says \"AI\", push back once: \"What about AI — adoption, safety, capability, regulation, or comparison? Pick an angle.\" If the user still won't narrow after one push-back, deliver with the explicit \"vague topic — survey level, not depth\" caveat.\n\n### Q2 (depends on Q1) — Angle\n\n> **What angle matters most? Pick one:**\n>\n> 1. **Trend** — what's accelerating or decelerating\n> 2. **Sentiment** — what people feel about it\n> 3. **Problems** — pain points and complaints\n> 4. **Opportunities** — gaps and unmet needs\n> 5. **Comparison** — how it stacks up against alternatives\n>\n> *Why I'm asking:* The angle dictates which sources weight more (Reddit for sentiment, HN for technical critique, Web for trend coverage) and how I rank the synthesis.\n\nForcing choice. **Recommended default:** trend, unless the topic obviously calls for a different angle.\n\n### Q3 (always) — Time Window\n\n> **Time window: 7 \u002F 14 \u002F 30 \u002F 60 \u002F 90 days? Default is 30.**\n>\n> *Why I'm asking:* 7 days catches breaking conversation; 90 days catches sustained narrative shift. Pick based on how recent the news matters.\n\nForcing choice with default.\n\n### Q4 (depends on Q1) — Platform Scope\n\n> **Any platform to skip? By default I'll cover Reddit + Hacker News + open web, plus X\u002FTwitter if browser automation is available. Skip any you don't care about.**\n>\n> *Why I'm asking:* Skipping a platform saves search budget. Reddit dominates sentiment; HN dominates technical critique; Web dominates breadth; X dominates breaking conversation. Skip what doesn't fit your angle.\n\nAsked only if Q1 + Q2 suggest some platforms are clearly off-target (e.g., consumer sentiment topic → HN less useful). Otherwise default to \"all platforms\".\n\n**Stop condition:** After Q4 (or earlier with dependency skips), commit and start Phase 1. Max 4 questions, never bundle.\n\n## Pre-flight\n\nBefore any phase fires:\n\n1. **Compute the time window** with `scripts\u002Ftime_window_calculator.py --window \u003CNd>`. Get back the Unix timestamp for `created_at_i>` (HN) and the `t=` parameter (`hour|day|week|month|year|all`) for Reddit.\n2. **Generate the output slug** with `scripts\u002Ftopic_slug_generator.py --topic \"\u003Ctopic>\" --date $(date +%Y-%m-%d)`. Detect if `${RESEARCH_DIR}\u002Fpulse\u002F\u003Cslug>-\u003Cdate>.md` already exists; if yes, append `-v2` suffix or warn user.\n3. **Start the three-count audit log** with `scripts\u002Fcitation_tracker.py --action start --session pulse-\u003Cdate>-\u003Cslug>`. This file at `~\u002F.pulse_sessions\u002F\u003Csession>.json` persists across the run.\n\n## Phase 1: Reddit (parallel with HN + Web)\n\n**API:** `reddit.com\u002Fsearch.json` (unauthenticated, public JSON).\n\n**Queries (sequential within Reddit, 1 q\u002Fsec):**\n1. `sort=top&t=\u003Cwindow>&q=\u003Ctopic>` — top posts in window\n2. `sort=new&t=\u003Cwindow>&q=\u003Ctopic>` — new posts in window (catches breaking signal)\n3. For each of the top 3–5 posts by score: fetch the comments JSON (`\u003Cpost-url>.json?limit=top`) for the top 10–20 comments.\n\n**Headers \u002F rate limits.** Reddit rate-limits by IP, not plan. Throttle to 1 q\u002Fsec. If response has `X-Ratelimit-Remaining: 0` or returns 429, wait 3s, retry once. If still failing, fall back to subreddit-restricted search (`r\u002F\u003Ctopic-subreddit>\u002Fsearch.json`) or `?raw_json=1`.\n\n**Record each query:** `citation_tracker.py --action record_sent --session NAME --query \"...\"`.\n**Record received counts:** `citation_tracker.py --action record_received --session NAME --count N`.\n\n## Phase 2: Hacker News (parallel with Reddit + Web)\n\n**API:** Algolia HN search (`hn.algolia.com\u002Fapi\u002Fv1\u002F`).\n\n**Queries (sequential within HN, 1 q\u002Fsec):**\n1. `search?query=\u003Ctopic>&numericFilters=created_at_i>\u003Ctimestamp>&tags=story` — stories in window\n2. `search?query=\u003Ctopic>&numericFilters=created_at_i>\u003Ctimestamp>&tags=comment` — comments in window (catches discussion signal)\n\n**Failure handling.** If HN returns empty: broaden the query (remove uncommon nouns); if still empty, drop the timestamp filter as last resort and label results \"outside window\".\n\n**HN bias note.** HN skews technical \u002F builder. Surface this in synthesis: \"HN's voice is implementation-oriented; consumer sentiment will be under-represented here.\"\n\n## Phase 3: Web Search (parallel with Reddit + HN)\n\n**Tools:** Available web search + fetch (e.g., `WebSearch` + `WebFetch`).\n\n**Query strategy (sequential within Web, 1 q\u002Fsec):**\n1. **Trusted publishers** — `\"\u003Ctopic>\" site:nytimes.com OR site:wsj.com OR site:wired.com OR site:theverge.com OR site:techcrunch.com after:\u003Cdate>`\n2. **Recent reviews** — `\"\u003Ctopic>\" review \u003Cyear>` or `\"\u003Ctopic>\" \"honest review\" after:\u003Cdate>`\n3. **Honest-opinion sources** — `\"\u003Ctopic>\" problems OR complaints OR \"worth it\" after:\u003Cdate>`\n\nFetch the top 3–5 URLs per query. Truncate at the body, skip cookie\u002Fnav markup.\n\n**Citation discipline.** Every claim in the Web section must trace to a fetched URL. Do NOT cite from snippets alone; fetch first.\n\n## Phase 4: X\u002FTwitter (sequential, optional)\n\nRun last. Reasons:\n- Most likely to fail \u002F require browser automation\n- X content overlaps significantly with Reddit\u002FHN — so it adds delta, not primary signal\n\n**Interface (in priority order):**\n1. **User-provided JSON export.** Import it before any live request:\n   ```bash\n   python3 scripts\u002Fcitation_tracker.py \\\n     --action import_sources \\\n     --session NAME \\\n     --input \u002Fpath\u002Fto\u002Fx-search.json \\\n     --platform x \\\n     --since 2026-07-01T00:00:00Z \\\n     --until 2026-08-01T00:00:00Z\n   ```\n   The importer accepts Xquik Tweet Search, X API v2, and generic JSON exports.\n   It normalizes legacy and snake-case fields, joins X API `includes.users`,\n   filters the requested window, and deduplicates by Tweet ID. It makes no\n   network calls and requires no API key. The audit stores the filename and\n   SHA-256 digest, not the user's absolute path.\n2. **Grok** if available in the harness.\n3. **X API** if authenticated.\n4. **Browser automation** if the harness supports it.\n5. **Skip with note** if none of the above are available.\n\n**Documented behavior:**\n> If Phase 4 is skipped: include the section header `## X\u002FTwitter` with body `Skipped — [reason: no browser automation \u002F no Grok \u002F no X API]`. Do NOT pretend to have data.\n\n## Synthesis (Cross-Platform Patterns)\n\nAfter Phases 1–4 complete (or Phase 4 skipped), produce the synthesis:\n\n1. **Consensus signals** — points where 3+ platforms agree (highest confidence). Tag each with cited source URLs.\n2. **Controversy signals** — points where platforms disagree. Note who says what.\n3. **Pain points** — recurring complaints across sources (esp. Reddit + Web).\n4. **Excitement signals** — recurring enthusiasm (esp. HN + X if available).\n5. **Emerging trends** — first-time mentions in newest posts but absent from older ones (compare `sort=new` vs `sort=top`).\n6. **Gaps** — what's notably absent that you'd expect to find.\n\nFor each pattern, **cite the source URLs** that support it. Use `citation_tracker.py --action record_cited --session NAME --url \"...\"` per citation.\n\nSee `references\u002Fcross_platform_synthesis.md` for detection heuristics.\n\n## Output\n\nSave to file AND paste in chat:\n\n**File:** `${RESEARCH_DIR}\u002Fpulse\u002F\u003Ctopic-slug>-\u003CYYYY-MM-DD>.md` (path from `topic_slug_generator.py`).\n\n**Format:**\n\n```markdown\n# [TOPIC] — Pulse (Last [N] Days)\n*Generated: [DATE] | Angle: [Q2 choice]*\n\n## TL;DR\n[2-3 sentences max]\n\n## Reddit\n### Top Posts\n- **[Title]** (r\u002Fsub) — [score, comments] — [summary] — [URL]\n### What Reddit Is Saying\n[Narrative paragraph]\n\n## Hacker News\n### Notable Stories\n- **[Title]** — [points, comments] — [summary] — [URL]\n### What HN Is Saying\n[Narrative paragraph; note HN's technical\u002Fbuilder bias]\n\n## Web\n### Key Sources\n- **[Title]** ([Publication]) — [takeaway] — [URL]\n### What the Web Is Saying\n[Narrative paragraph]\n\n## X\u002FTwitter (if available)\n[Cleaned response, with handles\u002Freferences preserved]\n[Or: \"Skipped — [reason]\"]\n\n## Cross-Platform Patterns\n[Highest-confidence signals across sources]\n\n## Key Takeaways\n- [3-5 bullets]\n\n## Content Angles (if applicable)\n[2-3 specific angles supported by the data]\n\n---\n*Audit:* Queries sent: N (Reddit: a, HN: b, Web: c, X: d|skipped).\nSources received: M. Sources cited: K. Training knowledge: 0 ([Background] excluded from count).\n```\n\n## Error Handling\n\n| Failure | Behavior |\n|---|---|\n| Topic is too vague (Q1) | Refuse to start. Re-ask Q1 once with examples. After 1 push-back, deliver with \"vague topic\" caveat. |\n| Reddit blocks \u002F rate-limits | Try `?raw_json=1` or fall back to subreddit-restricted search. Honor 3s-retry. |\n| HN returns empty | Broaden query, drop timestamp filter as last resort, label results \"outside window\". |\n| Web search returns nothing useful | Note in output; don't fabricate sources. |\n| Browser automation unavailable | Import a supplied export. Otherwise skip Phase 4 with a note. |\n| Local X export is invalid | Stop Phase 4. Report the parse error. Do not guess missing records. |\n| WebFetch times out | Use what loaded, mark the source as \"truncated\". |\n| 3 consecutive failures across sources | Stop. Return what was collected with explicit \"stopped early\" note. Do NOT deliver empty file. |\n| All sources fail | Return error with diagnostic info. Do NOT deliver empty file. |\n\n## Tooling\n\n| Script | Role |\n|---|---|\n| `scripts\u002Ftime_window_calculator.py` | Compute Unix timestamps + Reddit `t=` parameter from window string (`30d`, `7d`, etc.). Deterministic from `datetime.now()`. |\n| `scripts\u002Fcitation_tracker.py` | Three-count audit log plus local X export normalization and deduplication. |\n| `scripts\u002Ftopic_slug_generator.py` | Filesystem-safe slug + duplicate-date detection for output paths. |\n\n## References\n\n- `references\u002Fresearch_pack_conventions.md` — Agent Integrity Rules canon (7+ sources: Google SRE, Reddit API docs, Algolia HN docs, exponential-backoff literature, citation discipline)\n- `references\u002Fcross_platform_synthesis.md` — consensus \u002F controversy \u002F pain detection across platforms (7+ sources)\n- `references\u002Fparallel_execution_discipline.md` — 1 q\u002Fsec rationale + plan-tier signals (7+ sources)\n\n## Anti-Patterns To Reject\n\n- Starting any search before the user commits to topic specificity (Q1)\n- Batching intake questions instead of one at a time\n- Hardcoded URLs that won't survive API changes (note format, explain may evolve)\n- Irrelevant person or brand references in the skill body\n- Tight coupling to one X\u002FTwitter interface\n- Counting duplicate Tweet IDs or repeated citation URLs as separate sources\n- Missing fallback behavior on source failure\n- \"Just use [specific tool]\" without explaining what the tool does\n- Citing training knowledge in the cited count\n- Fabricating sources to fill out a section\n\n---\n\n**Version:** 1.0.0\n**Source spec:** `megaprompts\u002F01-pulse-megaprompt.md` (maintainer-local draft spec — gitignored, not present in the public repository)\n**Build pattern:** Path B (direct conversion). Re-grill with `re-grill against the docs` if drift between spec and implementation surfaces.\n","# Pulse — Multi-Source Recency Research\n\n> **Portability:** Works in Claude Code CLI and Claude.ai. Phase 4 accepts a local X\u002FTwitter search export before trying a live interface.\n\nA recency-oriented research skill that synthesizes what people are saying about a topic across Reddit, Hacker News, the open web, and (optionally) X\u002FTwitter — within a configurable time window. Output is a single coherent briefing with citations, engagement signals, and cross-platform pattern analysis. The skill captures the **current conversation**, not the canonical reference.\n\n## Invocation\n\n**Explicit trigger phrases:**\n- \"pulse on [topic]\"\n- \"what's happening with [topic]\"\n- \"what are people saying about [topic]\"\n- \"current conversation about [topic]\"\n- \"take the pulse of [topic]\"\n- \"trending: [topic]\"\n- \"find me info on [topic]\"\n\nAlso covers: competitor research with recency flavor, trend discovery, tool comparisons, audience sentiment analysis.\n\n## Agent Integrity Rules (Research-Pack Convention)\n\nThe following rules apply throughout the run. They are inherited from the research-pack convention and locked down by PR #657's cross-skill consistency audit.\n\n- **Execution discipline.** Phases 1–3 run in parallel (Reddit + HN + Web are independent). Within each phase, sequential calls only. **1 q\u002Fsec rate limit per platform.** Confirm response received before next call within the same phase.\n- **Source discipline.** Cite only sources returned by **this session's tool calls.** Training knowledge is labeled `[Background — not from search]` and excluded from primary findings count.\n- **Three-count tracking.** Queries sent \u002F sources received (shown) \u002F sources cited. Surfaced in the audit log inline in the synthesis section. Use `scripts\u002Fcitation_tracker.py` for the deterministic count.\n- **Retry policy.** On failure → wait 3s → retry once → log. After **3 consecutive failures across all sources:** stop, alert user, share what was collected. Never deliver an empty file.\n- **Plan-tier detection.** Reddit + HN are unauthenticated public JSON APIs (rate-limited per IP, not per plan). Surface rate-limit signals from response headers when available; degrade gracefully otherwise.\n\nSee `references\u002Fresearch_pack_conventions.md` for the canon and `references\u002Fparallel_execution_discipline.md` for the rate-limit rationale.\n\n## Phase 0: Grill-Me Intake (2–4 forcing questions, one at a time)\n\nDependency-ordered. Each question carries explicit \"why I'm asking\". Stop condition: max 4.\n\n### Q1 (root) — Topic Specificity\n\n> **What's the topic? State it in 1–2 sentences — be specific. \"AI\" or \"tech\" will get you a vague survey; \"self-hosted LLM deployment for small teams\" or \"Claude Code adoption among enterprise engineering orgs\" will get you a useful answer.**\n>\n> *Why I'm asking:* Specificity dictates search quality. Vague topics produce vague briefings. If your topic is broad, I'd rather narrow it now than spend a search budget on noise.\n\n**Refuse mush.** If the user says \"AI\", push back once: \"What about AI — adoption, safety, capability, regulation, or comparison? Pick an angle.\" If the user still won't narrow after one push-back, deliver with the explicit \"vague topic — survey level, not depth\" caveat.\n\n### Q2 (depends on Q1) — Angle\n\n> **What angle matters most? Pick one:**\n>\n> 1. **Trend** — what's accelerating or decelerating\n> 2. **Sentiment** — what people feel about it\n> 3. **Problems** — pain points and complaints\n> 4. **Opportunities** — gaps and unmet needs\n> 5. **Comparison** — how it stacks up against alternatives\n>\n> *Why I'm asking:* The angle dictates which sources weight more (Reddit for sentiment, HN for technical critique, Web for trend coverage) and how I rank the synthesis.\n\nForcing choice. **Recommended default:** trend, unless the topic obviously calls for a different angle.\n\n### Q3 (always) — Time Window\n\n> **Time window: 7 \u002F 14 \u002F 30 \u002F 60 \u002F 90 days? Default is 30.**\n>\n> *Why I'm asking:* 7 days catches breaking conversation; 90 days catches sustained narrative shift. Pick based on how recent the news matters.\n\nForcing choice with default.\n\n### Q4 (depends on Q1) — Platform Scope\n\n> **Any platform to skip? By default I'll cover Reddit + Hacker News + open web, plus X\u002FTwitter if browser automation is available. Skip any you don't care about.**\n>\n> *Why I'm asking:* Skipping a platform saves search budget. Reddit dominates sentiment; HN dominates technical critique; Web dominates breadth; X dominates breaking conversation. Skip what doesn't fit your angle.\n\nAsked only if Q1 + Q2 suggest some platforms are clearly off-target (e.g., consumer sentiment topic → HN less useful). Otherwise default to \"all platforms\".\n\n**Stop condition:** After Q4 (or earlier with dependency skips), commit and start Phase 1. Max 4 questions, never bundle.\n\n## Pre-flight\n\nBefore any phase fires:\n\n1. **Compute the time window** with `scripts\u002Ftime_window_calculator.py --window \u003CNd>`. Get back the Unix timestamp for `created_at_i>` (HN) and the `t=` parameter (`hour|day|week|month|year|all`) for Reddit.\n2. **Generate the output slug** with `scripts\u002Ftopic_slug_generator.py --topic \"\u003Ctopic>\" --date $(date +%Y-%m-%d)`. Detect if `${RESEARCH_DIR}\u002Fpulse\u002F\u003Cslug>-\u003Cdate>.md` already exists; if yes, append `-v2` suffix or warn user.\n3. **Start the three-count audit log** with `scripts\u002Fcitation_tracker.py --action start --session pulse-\u003Cdate>-\u003Cslug>`. This file at `~\u002F.pulse_sessions\u002F\u003Csession>.json` persists across the run.\n\n## Phase 1: Reddit (parallel with HN + Web)\n\n**API:** `reddit.com\u002Fsearch.json` (unauthenticated, public JSON).\n\n**Queries (sequential within Reddit, 1 q\u002Fsec):**\n1. `sort=top&t=\u003Cwindow>&q=\u003Ctopic>` — top posts in window\n2. `sort=new&t=\u003Cwindow>&q=\u003Ctopic>` — new posts in window (catches breaking signal)\n3. For each of the top 3–5 posts by score: fetch the comments JSON (`\u003Cpost-url>.json?limit=top`) for the top 10–20 comments.\n\n**Headers \u002F rate limits.** Reddit rate-limits by IP, not plan. Throttle to 1 q\u002Fsec. If response has `X-Ratelimit-Remaining: 0` or returns 429, wait 3s, retry once. If still failing, fall back to subreddit-restricted search (`r\u002F\u003Ctopic-subreddit>\u002Fsearch.json`) or `?raw_json=1`.\n\n**Record each query:** `citation_tracker.py --action record_sent --session NAME --query \"...\"`.\n**Record received counts:** `citation_tracker.py --action record_received --session NAME --count N`.\n\n## Phase 2: Hacker News (parallel with Reddit + Web)\n\n**API:** Algolia HN search (`hn.algolia.com\u002Fapi\u002Fv1\u002F`).\n\n**Queries (sequential within HN, 1 q\u002Fsec):**\n1. `search?query=\u003Ctopic>&numericFilters=created_at_i>\u003Ctimestamp>&tags=story` — stories in window\n2. `search?query=\u003Ctopic>&numericFilters=created_at_i>\u003Ctimestamp>&tags=comment` — comments in window (catches discussion signal)\n\n**Failure handling.** If HN returns empty: broaden the query (remove uncommon nouns); if still empty, drop the timestamp filter as last resort and label results \"outside window\".\n\n**HN bias note.** HN skews technical \u002F builder. Surface this in synthesis: \"HN's voice is implementation-oriented; consumer sentiment will be under-represented here.\"\n\n## Phase 3: Web Search (parallel with Reddit + HN)\n\n**Tools:** Available web search + fetch (e.g., `WebSearch` + `WebFetch`).\n\n**Query strategy (sequential within Web, 1 q\u002Fsec):**\n1. **Trusted publishers** — `\"\u003Ctopic>\" site:nytimes.com OR site:wsj.com OR site:wired.com OR site:theverge.com OR site:techcrunch.com after:\u003Cdate>`\n2. **Recent reviews** — `\"\u003Ctopic>\" review \u003Cyear>` or `\"\u003Ctopic>\" \"honest review\" after:\u003Cdate>`\n3. **Honest-opinion sources** — `\"\u003Ctopic>\" problems OR complaints OR \"worth it\" after:\u003Cdate>`\n\nFetch the top 3–5 URLs per query. Truncate at the body, skip cookie\u002Fnav markup.\n\n**Citation discipline.** Every claim in the Web section must trace to a fetched URL. Do NOT cite from snippets alone; fetch first.\n\n## Phase 4: X\u002FTwitter (sequential, optional)\n\nRun last. Reasons:\n- Most likely to fail \u002F require browser automation\n- X content overlaps significantly with Reddit\u002FHN — so it adds delta, not primary signal\n\n**Interface (in priority order):**\n1. **User-provided JSON export.** Import it before any live request:\n   ```bash\n   python3 scripts\u002Fcitation_tracker.py \\\n     --action import_sources \\\n     --session NAME \\\n     --input \u002Fpath\u002Fto\u002Fx-search.json \\\n     --platform x \\\n     --since 2026-07-01T00:00:00Z \\\n     --until 2026-08-01T00:00:00Z\n   ```\n   The importer accepts Xquik Tweet Search, X API v2, and generic JSON exports.\n   It normalizes legacy and snake-case fields, joins X API `includes.users`,\n   filters the requested window, and deduplicates by Tweet ID. It makes no\n   network calls and requires no API key. The audit stores the filename and\n   SHA-256 digest, not the user's absolute path.\n2. **Grok** if available in the harness.\n3. **X API** if authenticated.\n4. **Browser automation** if the harness supports it.\n5. **Skip with note** if none of the above are available.\n\n**Documented behavior:**\n> If Phase 4 is skipped: include the section header `## X\u002FTwitter` with body `Skipped — [reason: no browser automation \u002F no Grok \u002F no X API]`. Do NOT pretend to have data.\n\n## Synthesis (Cross-Platform Patterns)\n\nAfter Phases 1–4 complete (or Phase 4 skipped), produce the synthesis:\n\n1. **Consensus signals** — points where 3+ platforms agree (highest confidence). Tag each with cited source URLs.\n2. **Controversy signals** — points where platforms disagree. Note who says what.\n3. **Pain points** — recurring complaints across sources (esp. Reddit + Web).\n4. **Excitement signals** — recurring enthusiasm (esp. HN + X if available).\n5. **Emerging trends** — first-time mentions in newest posts but absent from older ones (compare `sort=new` vs `sort=top`).\n6. **Gaps** — what's notably absent that you'd expect to find.\n\nFor each pattern, **cite the source URLs** that support it. Use `citation_tracker.py --action record_cited --session NAME --url \"...\"` per citation.\n\nSee `references\u002Fcross_platform_synthesis.md` for detection heuristics.\n\n## Output\n\nSave to file AND paste in chat:\n\n**File:** `${RESEARCH_DIR}\u002Fpulse\u002F\u003Ctopic-slug>-\u003CYYYY-MM-DD>.md` (path from `topic_slug_generator.py`).\n\n**Format:**\n\n```markdown\n# [TOPIC] — Pulse (Last [N] Days)\n*Generated: [DATE] | Angle: [Q2 choice]*\n\n## TL;DR\n[2-3 sentences max]\n\n## Reddit\n### Top Posts\n- **[Title]** (r\u002Fsub) — [score, comments] — [summary] — [URL]\n### What Reddit Is Saying\n[Narrative paragraph]\n\n## Hacker News\n### Notable Stories\n- **[Title]** — [points, comments] — [summary] — [URL]\n### What HN Is Saying\n[Narrative paragraph; note HN's technical\u002Fbuilder bias]\n\n## Web\n### Key Sources\n- **[Title]** ([Publication]) — [takeaway] — [URL]\n### What the Web Is Saying\n[Narrative paragraph]\n\n## X\u002FTwitter (if available)\n[Cleaned response, with handles\u002Freferences preserved]\n[Or: \"Skipped — [reason]\"]\n\n## Cross-Platform Patterns\n[Highest-confidence signals across sources]\n\n## Key Takeaways\n- [3-5 bullets]\n\n## Content Angles (if applicable)\n[2-3 specific angles supported by the data]\n\n---\n*Audit:* Queries sent: N (Reddit: a, HN: b, Web: c, X: d|skipped).\nSources received: M. Sources cited: K. Training knowledge: 0 ([Background] excluded from count).\n```\n\n## Error Handling\n\n| Failure | Behavior |\n|---|---|\n| Topic is too vague (Q1) | Refuse to start. Re-ask Q1 once with examples. After 1 push-back, deliver with \"vague topic\" caveat. |\n| Reddit blocks \u002F rate-limits | Try `?raw_json=1` or fall back to subreddit-restricted search. Honor 3s-retry. |\n| HN returns empty | Broaden query, drop timestamp filter as last resort, label results \"outside window\". |\n| Web search returns nothing useful | Note in output; don't fabricate sources. |\n| Browser automation unavailable | Import a supplied export. Otherwise skip Phase 4 with a note. |\n| Local X export is invalid | Stop Phase 4. Report the parse error. Do not guess missing records. |\n| WebFetch times out | Use what loaded, mark the source as \"truncated\". |\n| 3 consecutive failures across sources | Stop. Return what was collected with explicit \"stopped early\" note. Do NOT deliver empty file. |\n| All sources fail | Return error with diagnostic info. Do NOT deliver empty file. |\n\n## Tooling\n\n| Script | Role |\n|---|---|\n| `scripts\u002Ftime_window_calculator.py` | Compute Unix timestamps + Reddit `t=` parameter from window string (`30d`, `7d`, etc.). Deterministic from `datetime.now()`. |\n| `scripts\u002Fcitation_tracker.py` | Three-count audit log plus local X export normalization and deduplication. |\n| `scripts\u002Ftopic_slug_generator.py` | Filesystem-safe slug + duplicate-date detection for output paths. |\n\n## References\n\n- `references\u002Fresearch_pack_conventions.md` — Agent Integrity Rules canon (7+ sources: Google SRE, Reddit API docs, Algolia HN docs, exponential-backoff literature, citation discipline)\n- `references\u002Fcross_platform_synthesis.md` — consensus \u002F controversy \u002F pain detection across platforms (7+ sources)\n- `references\u002Fparallel_execution_discipline.md` — 1 q\u002Fsec rationale + plan-tier signals (7+ sources)\n\n## Anti-Patterns To Reject\n\n- Starting any search before the user commits to topic specificity (Q1)\n- Batching intake questions instead of one at a time\n- Hardcoded URLs that won't survive API changes (note format, explain may evolve)\n- Irrelevant person or brand references in the skill body\n- Tight coupling to one X\u002FTwitter interface\n- Counting duplicate Tweet IDs or repeated citation URLs as separate sources\n- Missing fallback behavior on source failure\n- \"Just use [specific tool]\" without explaining what the tool does\n- Citing training knowledge in the cited count\n- Fabricating sources to fill out a section\n\n---\n\n**Version:** 1.0.0\n**Source spec:** `megaprompts\u002F01-pulse-megaprompt.md` (maintainer-local draft spec — gitignored, not present in the public repository)\n**Build pattern:** Path B (direct conversion). Re-grill with `re-grill against the docs` if drift between spec and implementation surfaces.\n",{"name":5,"license":15,"metadata":24,"description":7},{"version":25,"source_spec":26,"build_pattern":27,"research_pack_convention":28},"1.0.0","megaprompts\u002F01-pulse-megaprompt.md","Path B (direct conversion)","Agent Integrity Rules block preserved verbatim per PR #657 audit","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-imp-pulse",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill pulse",{"tool":43,"command":44},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill pulse",{"tool":46,"command":47},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill pulse","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-imp-pulse\u002FSKILL.md",true,[51,57,61,65,71,75],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcross_platform_synthesis.md","REFERENCE","参考文档",9058,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-imp-pulse\u002Freferences\u002Fcross_platform_synthesis.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fparallel_execution_discipline.md",8601,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-imp-pulse\u002Freferences\u002Fparallel_execution_discipline.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fresearch_pack_conventions.md",8651,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-imp-pulse\u002Freferences\u002Fresearch_pack_conventions.md",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fcitation_tracker.py","SCRIPT","脚本",21747,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-imp-pulse\u002Fscripts\u002Fcitation_tracker.py",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Ftime_window_calculator.py",5028,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-imp-pulse\u002Fscripts\u002Ftime_window_calculator.py",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Ftopic_slug_generator.py",4970,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-imp-pulse\u002Fscripts\u002Ftopic_slug_generator.py",[80,87,95,102,109,116],{"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},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\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":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]