本文へ移動
cccskills
無料GitHub で公開

sampling-bluesky-zeitgeist

DEPRECATED - Use browsing-bluesky skill instead. Sample and analyze Bluesky firehose to identify trending topics and content clusters. Use when user asks about "what's happening on Bluesky", "Bluesky trends", "zeitgeist", "firehose analysis", or wants to see real-time topic clusters from the network.

インストール方法を見る

含まれるファイル(6)

  • SKILL.md5.6 KB
  • assets/zeitgeist-template.html10.1 KB
  • CHANGELOG.md944 B
  • README.md432 B
  • references/artifact-template.md2.1 KB
  • scripts/zeitgeist-sample.js8.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Sampling Bluesky Zeitgeist

⚠️ DEPRECATED: This skill has been consolidated into the browsing-bluesky skill.

Use browsing-bluesky for firehose sampling via the sample_firehose() function.


Legacy Documentation

Capture and analyze multiple windows of Bluesky firehose data, identify content clusters, and present results showing both individual sample windows and aggregate trends.

Workflow

1. Setup

Install dependencies:

cd /home/claude && npm install ws https-proxy-agent 2>/dev/null

2. Run Sample Windows

Execute 3 consecutive 10-second samples:

node /mnt/skills/user/sampling-bluesky-zeitgeist/scripts/zeitgeist-sample.js --duration 10 > /home/claude/sample1.json 2>/dev/null
node /mnt/skills/user/sampling-bluesky-zeitgeist/scripts/zeitgeist-sample.js --duration 10 > /home/claude/sample2.json 2>/dev/null
node /mnt/skills/user/sampling-bluesky-zeitgeist/scripts/zeitgeist-sample.js --duration 10 > /home/claude/sample3.json 2>/dev/null

3. Analyze & Build DATA Object

Parse each JSON file and aggregate:

  • Sum totalPosts, calculate avgPostsPerSecond
  • Merge topWords, topPhrases, entities across windows
  • Calculate per-minute rates: (count / totalDurationSec) * 60
  • Detect trends by comparing window counts

4. Identify Content Clusters

Group related terms into thematic clusters. For each cluster:

  • name: Descriptive label
  • emoji: Visual identifier
  • terms: Keywords that belong to this cluster
  • searchQuery: OR-joined terms for Bsky search (e.g., "trump OR republican OR congress")
  • totalMentions: Sum across all windows
  • mentionsPerMin: (totalMentions / totalDurationSec) * 60
  • trend: "up" if last window > first by 30%, "down" if <30%, else "stable"
  • samples: 2-3 example posts matching cluster

5. Create Artifact via Template

Copy template and inject DATA:

cp /mnt/skills/user/sampling-bluesky-zeitgeist/assets/zeitgeist-template.html /mnt/user-data/outputs/zeitgeist.html

Then use str_replace to inject the DATA object:

old_str: const DATA = {"aggregate":{"totalPosts":0,"totalDurationSec":30,"avgPostsPerSecond":0,"timestamp":""},"windows":[],"clusters":[],"entities":[],"phrases":[],"languages":{}};
new_str: const DATA = {YOUR_ACTUAL_DATA_OBJECT};

See references/artifact-template.md for the complete DATA schema.

Output Format

Present the artifact link, then provide a brief prose summary:

  • What's dominating the conversation (top 1-2 clusters)
  • Any notable velocity spikes
  • Interesting patterns (e.g., "Japanese-language posts spiking around [topic]")

Keep the summary brief — the artifact is the main deliverable.

Refresh Workflow

When user asks to refresh/update/sample again:

  1. Run new sample windows (same 3x10s pattern)
  2. Update the DATA object with new results
  3. Use str_replace to swap the DATA line in the existing artifact
  4. Report what changed: "Trump mentions up 20% from last sample, M23 discussion fading"

For comparison, track previous aggregate totals and show delta:

Previous: trump 50/min → Current: trump 62/min (+24%)

Topic Monitoring Workflow

When user specifies a topic to monitor (e.g., "track the Lakers game", "what's happening with the drone sightings"):

Option A: Filtered Sampling

Run samples with the --filter flag to capture only matching posts:

node zeitgeist-sample.js --duration 15 --filter "lakers" > /home/claude/topic1.json 2>/dev/null

This gives deeper analysis of a specific topic but misses broader context.

Option B: General + Topic Velocity (Recommended)

Run general samples, then:

  1. Calculate topic-specific velocity from the results
  2. Add a dedicated "Monitored Topic" cluster at the top
  3. Include sample posts matching the topic

In the DATA object, add a monitoredTopic field:

{
  "monitoredTopic": {
    "query": "lakers",
    "totalMentions": 45,
    "mentionsPerMin": 90.0,
    "trend": "up",
    "windowCounts": [12, 15, 18],
    "samples": ["Lakers up by 10 in the 4th!", "LeBron with another triple double"]
  }
}

Responding to Topic Requests

At start of conversation:

  • "What's happening with the drone sightings?" → Run general sample, highlight drone-related content as monitored topic
  • "Track mentions of Claude AI" → Same approach, focus on that term

Mid-conversation:

  • "Can you focus on the M23 conflict?" → Re-run samples, add M23 as monitored topic
  • "What about Japanese content specifically?" → Filter for lang:ja or highlight existing Japanese cluster

Follow-up pattern: User: "refresh but focus on the game" → Run new samples, keep monitored topic, update all data

Error Handling

If WebSocket connection fails:

  • Check that *.bsky.network is in allowed domains
  • Retry once with shorter duration (5s)
  • If still failing, report the error and suggest user check network settings

If sample returns zero posts:

  • Likely network/proxy issue
  • Report and do not create artifact

Customization Options

User may request:

  • Longer samples: Increase duration per window or add more windows
  • Topic focus: After initial sample, run filtered samples for specific clusters
  • Comparison: Run samples at different times and compare

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

GitHub repository access in containerized environments using REST API and credential detection. Use when git clone fails, or when accessing private repos/writing files via API.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1512026年10月12日 更新

Decide which model, effort level, and cascade shape each subagent gets, and how to keep improvement loops safe (evaluator-as-selector, stop on regression). Routes on measured cost-per-completed-task rather than per-token price, because a tier's token count varies more by task shape than price varies across tiers. Covers per-model effort semantics, the concision lever, cascade preconditions, context handoff, and watching a subagent fan-out live. Use when choosing a subagent's model or effort, when choosing how to escalate a failed attempt, or when asked which model or effort a task should get. Grounded in a 2026-07 calibration, a 2026-08 coding-cost study, a 2026-09 seeded-bug repair battery, a 2026-10 Haiku 5.5 ladder priced per spawn, and a 2026-10 retry-versus-escalation ladder on 295 SWE-bench Verified tasks; Managed Agents API specifics are operational, not calibrated.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1512026年10月12日 更新

Securely manages API credentials for multiple providers (Anthropic Claude, Google Gemini, GitHub). Use when skills need to access stored API keys for external service invocations.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1512026年10月12日 更新

Guidance for asking clarifying questions when user requests are ambiguous, have multiple valid approaches, or require critical decisions. Use when implementation choices exist that could significantly affect outcomes.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1512026年10月12日 更新

Pre-change blast-radius report for a symbol or file. Walks tree-sitting references, augments with a plain-text scan over non-parsed files (configs, plain docs), and clusters affected sites by feature (`_FEATURES.md`) or top-level package. Use when about to refactor, rename, or delete something in a repo you don't own — "what breaks if I change `validateUser`", "who calls this", "is this safe to remove", "where is this used", "blast radius", "impact analysis". This is the CONVERGENT pre-change risk skill — for "what is this repo?" use exploring-codebases; for "where is X?" use searching-codebases.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1512026年10月12日 更新

Read Bluesky/ATProto without depending on Bluesky's AppView — interactions on a user's posts, thread replies, any repo's records, network-wide backlinks across every lexicon, an account's handle and PDS history, which collections are active network-wide, and layer-by-layer outage diagnosis. Use when bsky.app or the AppView is down or slow, when a Bluesky read returns timeouts or 5xx, when asked who liked/replied/quoted/reposted something, when pulling live Bluesky context cheaply, when reading records straight from a PDS, when asked who references a record or account anywhere on the network, whether an account has changed handle or migrated servers, or which lexicons and non-Bluesky apps are active on atproto. Complements browsing-bluesky, which routes everything through the AppView and fails when it does.

日本語の概要は準備中です。原文の説明を表示しています。

oaustegard/claude-skills1512026年10月12日 更新

oaustegard のスキルをすべて見る

このスキルの問題を報告する