browsing-bluesky

通过 API 和 firehose 浏览 Bluesky 内容,包括搜索帖子、获取用户活动、采样热门话题、读取 feed 和列表以及分析分类账户。支持认证访问以获取个性化 feed,适用于研究、监控、趋势分析和采样场景。

仓库最近推送
GitHub Stars
420
Forks
19
Issues / PRs
20

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "browsing-bluesky":https://skillpi.com/zh/skills/deepskill-d716d2d394898fed5181efe16d110aaf5701edaa4a79efbe74d23449ec63a021。安装前核对上游来源和版本:https://github.com/oaustegard/claude-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

通过 API 和 firehose 浏览 Bluesky 内容,包括搜索帖子、获取用户活动、采样热门话题、读取 feed 和列表以及分析分类账户。支持认证访问以获取个性化 feed,适用于研究、监控、趋势分析和采样场景。

0 下载

介绍来源: third_party · oaustegard · 0.6.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: browsing-bluesky
description: Browse Bluesky content via API and firehose - search posts, fetch user activity, sample trending topics, read feeds and lists, analyze and categorize accounts. Supports authenticated access for personalized feeds. Use for Bluesky research, user monitoring, trend analysis, feed reading, firehose sampling, account categorization.
metadata:
  version: 0.6.0

Browsing Bluesky

Access Bluesky content through public APIs and real-time firehose. Supports optional authentication for personalized feeds. Includes account analysis for categorization.

Implementation

Add skill directory to path and import:

import sys
sys.path.insert(0, '/path/to/skills/browsing-bluesky')  # or use .claude/skills symlink path
from browsing_bluesky import (
    # Core browsing
    search_posts, get_user_posts, get_profile, get_feed_posts, sample_firehose,
    get_thread, get_quotes, get_likes, get_reposts,
    get_followers, get_following, search_users,
    # Trending
    get_trending, get_trending_topics,
    # Account analysis
    get_all_following, get_all_followers, extract_post_text,
    extract_keywords, analyze_account, analyze_accounts,
    # Authentication utilities
    is_authenticated, get_authenticated_user, authenticated_identity,
    clear_session
)

Authentication (Optional)

Authentication enables personalized feeds (like Paper Skygest) that require knowing who's asking.

Setup

  1. Create an app password at Bluesky: Settings → Privacy and Security → App Passwords
  2. Set environment variables:
    export BSKY_HANDLE="yourhandle.bsky.social"
    export BSKY_APP_PASSWORD="xxxx-xxxx-xxxx-xxxx"

Which account reads

Two credential pairs are recognised, and the prefix is the only difference:

Pair Identity
MUNINN_BSKY_HANDLE / MUNINN_BSKY_APP_PASSWORD muninn — preferred
BSKY_HANDLE / BSKY_APP_PASSWORD owner — used when no Muninn pair is set

BSKY_IDENTITY=muninn|owner picks one outright, and a pair named that way is never substituted for: asking for muninn with no Muninn pair set reads as public rather than quietly reading as the owner. An unrecognised value raises.

This matters because a booted container holds both pairs. Until 2026-08-28 the unprefixed one won, so every authenticated read — the following timeline, and the mutes, blocks and labelers that shape all of them — came back as the account owner with nothing in the output saying so, from a skill documented as read-only that was nonetheless holding an app password carrying write scope on his account. On a machine with only the documented BSKY_* pair, nothing changes.

Behavior

  • Transparent: All functions work identically with or without credentials
  • Automatic: Auth headers are added opportunistically when credentials exist
  • Graceful: Failed auth silently falls back to public access. A misspelled BSKY_IDENTITY is configuration, not auth failure, and raises instead
  • Secure: Tokens cached in memory only, never logged or persisted

Check Auth Status

if is_authenticated():
    print(f"Logged in as: {get_authenticated_user()}")
else:
    print("Using public access")

# Which pair answered — a handle alone does not say whether it was chosen
# or simply the only one set.
authenticated_identity()   # {'identity': 'muninn', 'handle': ..., 'did': ...}

# Clear session if needed (e.g., switching accounts or identities)
clear_session()

Research Workflows

Investigate a Topic

Use search_posts() with query syntax matching bsky.app advanced search:

  • Basic terms: event sourcing
  • Exact phrases: "event sourcing"
  • User filter: from:acairns.co.uk or use author= param
  • Date filter: since:2025-01-01 or use since= param
  • Hashtags, mentions, domain links: #python mentions:user domain:github.com

Combine query syntax with function params for complex searches.

Monitor a User

  1. Fetch profile with get_profile(handle) for context (bio, follower count, post count)
  2. Get recent posts with get_user_posts(handle, limit=N)
  3. For topic-specific user content, use search_posts(query, author=handle)

Discover What's Trending

Recommended workflow — trending API first, firehose for deep dives:

1. Quick scan with trending topics (~500 tokens)

topics = get_trending_topics(limit=10)
# Returns: {topics: [{topic, display_name, description, link}, ...],
#           suggested: [...]}

2. Rich trends with post counts and actors

trends = get_trending(limit=10)
for t in trends:
    print(f"{t['display_name']} — {t['post_count']} posts ({t['status']})")
# Each trend includes: topic, display_name, link, started_at,
#   post_count, status, category, actors

3. Targeted exploration of selected trends

posts = search_posts(trend["topic"], limit=25)

4. Optional: Firehose for velocity monitoring or long-tail discovery

Prerequisites: Install Node.js dependencies once per session:

cd /home/claude && npm install ws https-proxy-agent 2>/dev/null
data = sample_firehose(duration=30)  # Full firehose sample
data = sample_firehose(duration=20, filter="python")  # Filtered sample

Returns dict with keys:

  • window: {startTime, endTime, durationSeconds} — sampling time range
  • stats: {totalReceived, totalPosts, postsPerSecond, filter, languages} — volume metrics and language breakdown
  • topWords: [[word, count], ...] — top 50 words (count >= 3)
  • topPhrases: [[bigram, count], ...] — top 30 bigrams (count >= 2)
  • topTrigrams: [[trigram, count], ...] — top 20 trigrams (count >= 2)
  • entities: [[entity, count], ...] — top 25 handles/hashtags (count >= 2)
  • samplePosts: [{text, altTexts, hasImages}, ...] — first 50 matching posts

Read Feeds and Lists

get_feed_posts() accepts:

  • List URLs: https://bsky.app/profile/austegard.com/lists/3lankcdrlip2f
  • Feed URLs: https://bsky.app/profile/did:plc:xxx/feed/feedname
  • AT-URIs: at://did:plc:xxx/app.bsky.graph.list/xyz

The function extracts the AT-URI from URLs automatically.

Explore a Thread

Fetch full thread context for a post with parents and replies:

thread = get_thread("https://bsky.app/profile/user/post/xyz", depth=10)
# Returns: {post: {...}, parent: {...}, replies: [...]}

Find Quote Posts

Discover posts that quote a specific post:

quotes = get_quotes("https://bsky.app/profile/user/post/xyz")
for q in quotes:
    print(f"@{q['author_handle']}: {q['text'][:80]}")

Analyze Engagement

Get users who engaged with a post:

likes = get_likes(post_url)
reposts = get_reposts(post_url)

# Accepts both URLs and AT-URIs
likes = get_likes("at://did:plc:.../app.bsky.feed.post/...")

Read Embed Images

Every parsed post carries an images field — a list of {alt, url, transcription} dicts, one per embed image. The legacy image_alts: list[str] field is preserved (non-empty alts only).

When alt text is missing and the image content matters, opt in to model transcription via the transcribe parameter on any post-fetch function (get_user_posts, search_posts, get_feed_posts, get_thread, get_quotes):

# Routine/bulk work (zeitgeist, inbox review, news scans) —
# gemini-2.5-flash-lite is the recommended default. Cheapest production
# model anywhere ($0.10/$0.40 per 1M tokens), ~95% accuracy on dense
# screenshots in May 2026 benchmarks:
posts = get_user_posts("ayourtch.bsky.social", limit=40, transcribe="gemini-lite")

# Token-perfect transcription, still cheap:
posts = get_user_posts(..., transcribe="gemini-flash")

# Frontier model with thinking_level=minimal — for cases where the image
# content needs reasoning, not just transcription:
posts = get_user_posts(..., transcribe="gemini-3.5-flash")

# Anthropic single-vendor option (note: empirically weaker prompt-following
# than Gemini on dense transcription — Haiku tends to summarize rather
# than transcribe):
posts = get_user_posts(..., transcribe="haiku")

# Interactive sessions where image is part of the active task and you want
# conversation context to inform interpretation (only available on Anthropic):
thread = get_thread(post_url, transcribe="opus")

# Default (no transcription) — current behavior preserved:
posts = get_user_posts("ayourtch.bsky.social", limit=40)

Policy is invariant across all callers: images with non-empty alt text are never transcribed (the author already described the image; trust it). Only images with missing or empty alt are sent to the model. Network or API failures leave transcription as None; callers degrade silently.

Cost/quality empirics (May 2026, n=3 dense terminal screenshots, single run each — sample size is small, treat as directional):

Alias Latency $/image Chord-token recall
gemini-lite ~8s ~$0.001 95%
gemini-flash ~10s ~$0.003 100%
gemini-3.5-flash ~10s ~$0.014 100%
haiku ~7s ~$0.008 18% (summarizes)
opus ~20s ~$0.12 91%

Requires either ANTHROPIC_API_KEY (or API_KEY in /mnt/project/claude.env) for the haiku / opus aliases, or CF AI Gateway credentials in /mnt/project/proxy.env for the gemini-* aliases. Transcription only fires when the parameter is set, so callers without the relevant credentials can simply pick a different alias or leave the feature off.

Explore Social Graph

Navigate follower/following relationships:

followers = get_followers("handle.bsky.social")
following = get_following("handle.bsky.social")

# Returns list of actor dicts with handle, display_name, did, description, etc.

Find Users

Search for users by name, handle, or bio:

users = search_users("machine learning researcher")
for u in users:
    print(f"{u['display_name']} (@{u['handle']}): {u['description'][:100]}")

API Endpoint Notes

  • Public AppView: https://api.bsky.app/xrpc/ for unauthenticated reads
  • PDS: https://bsky.social/xrpc/ for authenticated requests
  • Trending: app.bsky.unspecced.getTrends (rich) and app.bsky.unspecced.getTrendingTopics (lightweight)
  • Firehose: wss://jetstream1.us-east.bsky.network/subscribe
  • Endpoint routing is automatic - authenticated requests go to PDS, public requests go to AppView
  • Rate limits exist but are generous for read operations

Return Format

All API functions return structured dicts with:

  • uri: AT protocol identifier
  • text: Post content
  • created_at: ISO timestamp
  • author_handle: User handle
  • author_name: Display name
  • likes, reposts, replies: Engagement counts
  • links: Full URLs extracted from post facets (post text truncates URLs with "...")
  • image_alts: Alt text from embedded images
  • url: Direct link to post on bsky.app

Profile function returns: handle, display_name, description, followers, following, posts, did

Account Analysis

Analyze accounts for categorization by topic. Fetches profile and posts, extracts keywords, and returns structured data for Claude to categorize.

Analyze a User's Network

# Analyze accounts you follow
results = analyze_accounts(following="yourhandle.bsky.social", limit=50)

# Analyze your followers
results = analyze_accounts(followers="yourhandle.bsky.social", limit=50)

# Analyze specific handles
results = analyze_accounts(handles=["user1.bsky.social", "user2.bsky.social"])

Single Account Analysis

analysis = analyze_account("user.bsky.social")
# Returns: {handle, display_name, description, keywords, post_count, followers, following}

Keyword Extraction Options

Stopwords parameter filters domain-specific noise:

  • "en": English (general purpose, default)
  • "ai": AI/ML domain (filters tech boilerplate)
  • "ls": Life Sciences (filters research methodology)
results = analyze_accounts(following="handle", stopwords="ai")

Requires: extracting-keywords skill with YAKE venv for keyword extraction.

Filtering Accounts

results = analyze_accounts(
    following="handle",
    exclude_patterns=["bot", "spam", "promo"]  # Skip accounts matching these
)

Paginated Following/Followers

For large account lists beyond the 100 limit of get_following/get_followers:

all_following = get_all_following("handle", limit=500)  # Handles pagination
all_followers = get_all_followers("handle", limit=500)

Account Analysis Output

Each analyzed account returns:

{
    "handle": "user.bsky.social",
    "display_name": "User Name",
    "description": "Bio text here",
    "keywords": ["keyword1", "keyword2", "keyword3"],
    "post_count": 20,
    "followers": 1234,
    "following": 567
}

Claude uses bio + keywords to categorize accounts by topic without hardcoded rules

版本历史

  1. declauding-v0.16.0 GitHub ↗
    原版更新说明

    # declauding declauding is a skill that rewrites prose that reads as model-written into the plain technical prose that a person would have written. Before handing the text back, it checks the rewrite against the draft for any number, name, quotation, hedge or ranking that the edit dropped or added. Install it like any skill in [oaustegard/claude-skills](https://github.com/oaustegard/claude-skills), by copying this directory into the agent's skills folder. The agent then runs it on a draft of prose that someone else will read, and when asked to "declaude", "de-slop" or "humanize" a text. It returns the rewritten text, or, if you ask for the annotated version, an HTML file that marks each edit with the original and the reason for it. ## The register "Register" means the style a piece of prose is written in. [`references/register.md`](references/register.md) catalogues 56 tics that mark prose as model-written. Each entry gives the tell (the surface pattern to look for), why it marks model prose, the fix, and a before-and-after from real text. They fall into five families: | Entries | Family | Example | |---|---|---| | 1–23, 37–42 | **Staging:** the sentence is built so the reader feels a finding arrive instead of being told it | *It is not a wrong answer. It is a non-answer.* | | 24–36 | **Encyclopedic and chatbot:** stock phrasing with nothing staged: inflated verbs, participle tails, forced triads, chatbot sign-offs | *Gallery 825 serves as the exhibition space and boasts 3,000 square feet.* | | 43–47 | **Flat certainty:** an adverb or absolute negative stands in for evidence | *The retry is provably safe.* | | 48–52 | **Confiding essayist:** staging aimed at the reader's trust | *Let's be honest: I won't pretend the first run was clean.* | | 53–56 | **Compressed syntax:** a claim packed into fewer words than a reader can parse | *the others check behaviour the old code never reached* | The staging entries that come up most often: | # | Tic | Example | |---|---|---| | 2 | Negation-first reveal | *It is not a wrong answer. It is a non-answer.* | | 3 | Significance designation | *It is the leg that answers the actual question.* | | 4 | Abstraction agency | *Median hides it.* / *The table shows it.* | | 5 | Deferred noun | *Five of those six rows are one cluster. The sixth is not.* | | 7 | Coy or thesis-shaped header | *What "exhausted" means* / *The one gap that does clear the bar* | | 11 | Straw-man knockdown | *"It thinks twice as long" is the obvious reading, and it is wrong.* | | 12 | Aphoristic closer | *It is the kind of number that looks like evidence and is not.* | | 15 | Fragment cadence | *Six legs. One GPU, one server build, one sampler, one question set.* | | 37 | Dressed metaphor | *That is information loss wearing the costume of a style fix.* | ## Workflow [`SKILL.md`](SKILL.md) has the full procedure. In short: 1. Read the whole draft first, and note where it contradicts itself. 2. State the draft's point in one sentence. If it has none, get one from the author and rebuild around it. 3. Run the linter, then the structural review in a subagent or fresh session that did not write the draft. 4. Ask of each sentence whether it states a finding or stages one, then check headers, paragraph breaks and closers. 5. If the draft describes something that just changed, hand it to a subagent that has not seen the old version, and fix whatever it trips over. 6. Run the preservation diff, and report contradictions to the author instead of fixing them. ## Scripts Run these from the skill's directory. ```sh python3 scripts/declaude_lint.py DRAFT.md --skip-quoted # tells, line by line python3 scripts/declaude_review.py DRAFT.md # headers, openers, closers python3 scripts/declaude_rank.py DRAFT.md --top 15 # most staged sentences first python3 scripts/declaude_diff.py SOURCE.md REWRITE.md # what the edit lost or added python3 scripts/fresh_eyes.py packet README.md # prompt for a newcomer read ``` The linter reads Markdown, plain text and HTML, and needs only the standard library and Python 3.9 or later. It exits 1 when it finds candidates, so it can run as a pre-commit hook. Each hit still needs a reader's judgment, and no regex reaches a staged paragraph or closer, so a clean report does not mean the draft is clean. `--skip-quoted` ignores blockquotes, table rows, code and italic spans, where a document like this one quotes bad prose as examples. The structural review sends only the headers, the opening and closing sentences and any isolated one-line paragraphs to a model: Gemini with `GEMINI_API_KEY`, Claude with `ANTHROPIC_API_KEY`, and with neither it prints the prompt for an agent to answer. The ranker needs torch and transformers. The diff counts constructions rather than words: rewriting "the format that most invites staged reveals" as "more than most formats do" keeps the word *most* and loses the ranking. When adding a lint rule, check that it reports zero on `tests/sample-clean.md`, which is human-written prose. [`references/corpus.md`](references/corpus.md) and [`references/preservation.md`](references/preservation.md) have the measurements behind the diff, the ranker, and the linter's `corpus-register` line, which measures how much of a draft uses the vocabulary of the flat-certainty family. Above about 1.0 per 100 words, read entries 43 to 47. A high score locates the register and does not mean a model wrote the draft. ## Overcorrection Prose stripped of confidence, rhythm and opinion is worse than the tics. The skill keeps certainty that has evidence behind it, first-person judgment, varied sentence length, digression and the author's own habits. It does not compress what remains: a rewrite that is shorter and harder to parse fails entries 53 to 56. A flagged shape sometimes carries a claim, and [`references/exceptions.md`](references/exceptions.md) lists when each one is earned. The rewrite never adds a name, number, date, quote or citation that the source or the author did not supply. When the author provides a sample of their writing, the sample overrides the rules. ## Model profiles [`references/models/`](references/models/) says what drafts from Opus 4.6 to 5.5, Sonnet 4.6 and 5, Haiku 4.5 and Fable 5.1 tend to carry, and how each model goes wrong when it runs the pass itself. ## Sources Entries 1 to 23 come from a register pass on a published benchmark post, and 37 to 42 from passes on drafts and a reference page in this repository. Other families draw on [blader/humanizer](https://github.com/blader/humanizer) and the Wikipedia AI Cleanup project's [Signs of AI writing](https://en.wikipedia.org/wiki/Wikipedia:Signs_of_AI_writing) (24–36), Louis Abraham's [load-bearing](https://github.com/louisabraham/load-bearing) clusters of pull request descriptions (43–47), Simon Willison's [llm-cliche-highlighter](https://github.com/simonw/tools/blob/main/llm-cliche-highlighter.html) (48–52), and Clark, Martin and Mahowald, [arXiv 2610.29162](https://arxiv.org/abs/2610.29162) (53–56). [`CHANGELOG.md`](CHANGELOG.md) has the history of each addition. Related skills: [challenging](../challenging) runs an adversarial review of a draft's voice and returns findings rather than text; [crafting-instructions](../crafting-instructions) covers prompts, which have a different target register. **Skill folder:** [declauding](https://github.com/oaustegard/claude-skills/tree/main/declauding) --- Release of **declauding** version 0.16.0 ## 📥 Download & Install **[⬇️ Download declauding.zip](https://github.com/oaustegard/claude-skills/releases/download/declauding-v0.16.0/declauding.zip)** To install: 1. Click the download link above (ignore the "Source code" archives below - they're auto-generated by GitHub) 2. Go to [Claude.ai Customize › Skills](https://claude.ai/customize/skills) 3. Upload the downloaded ZIP file 4. Requires paid Claude Pro or Team account See [official documentation](https://support.claude.com/en/articles/12512198-how-to-create-custom-skills) for more details. ## Recent Changes ``` ddc0856 declauding 0.16.0: flag announcing the expected default and abandoned approaches as changelog 8cfff30 docs: Update CHANGELOG.md for released skills ```

  2. transcribing-images-v0.3.1 GitHub ↗
    原版更新说明

    No README found for this skill. **Skill folder:** [transcribing-images](https://github.com/oaustegard/claude-skills/tree/main/transcribing-images) --- Release of **transcribing-images** version 0.3.1 ## 📥 Download & Install **[⬇️ Download transcribing-images.zip](https://github.com/oaustegard/claude-skills/releases/download/transcribing-images-v0.3.1/transcribing-images.zip)** To install: 1. Click the download link above (ignore the "Source code" archives below - they're auto-generated by GitHub) 2. Go to [Claude.ai Customize › Skills](https://claude.ai/customize/skills) 3. Upload the downloaded ZIP file 4. Requires paid Claude Pro or Team account See [official documentation](https://support.claude.com/en/articles/12512198-how-to-create-custom-skills) for more details. ## Recent Changes ``` 2ffc844 transcribing-images 0.3.1: describe the test set, clarify the gemini-3.5-flash name and when to escalate 8cfff30 docs: Update CHANGELOG.md for released skills ```

  3. orchestrating-chat-agents-v1.1.1 GitHub ↗
    原版更新说明

    # orchestrating-chat-agents Orchestrates parallel API instances, delegated sub-tasks, and multi-agent workflows with streaming and tool-enabled delegation patterns. Routes by surface — native subagents in Cowork and Claude Code, httpx fan-out on claude.ai — and covers Gemini delegation via the Cloudflare AI Gateway on every surface. Use for parallel analysis, multi-perspective reviews, or complex task decomposition. In Claude Code, where native subagents exist, which mechanism to launch them with is `dispatching-subagents`; its README maps the neighbouring skills. **Skill folder:** [orchestrating-chat-agents](https://github.com/oaustegard/claude-skills/tree/main/orchestrating-chat-agents) --- Release of **orchestrating-chat-agents** version 1.1.1 ## 📥 Download & Install **[⬇️ Download orchestrating-chat-agents.zip](https://github.com/oaustegard/claude-skills/releases/download/orchestrating-chat-agents-v1.1.1/orchestrating-chat-agents.zip)** To install: 1. Click the download link above (ignore the "Source code" archives below - they're auto-generated by GitHub) 2. Go to [Claude.ai Customize › Skills](https://claude.ai/customize/skills) 3. Upload the downloaded ZIP file 4. Requires paid Claude Pro or Team account See [official documentation](https://support.claude.com/en/articles/12512198-how-to-create-custom-skills) for more details. ## Recent Changes ``` eb1e387 orchestrating-chat-agents 1.1.1: say what minimal and xhigh do on each Gemini model 8cfff30 docs: Update CHANGELOG.md for released skills ```

  4. drawing-video-v1.1.1 GitHub ↗
    原版更新说明

    No README found for this skill. **Skill folder:** [drawing-video](https://github.com/oaustegard/claude-skills/tree/main/drawing-video) --- Release of **drawing-video** version 1.1.1 ## 📥 Download & Install **[⬇️ Download drawing-video.zip](https://github.com/oaustegard/claude-skills/releases/download/drawing-video-v1.1.1/drawing-video.zip)** To install: 1. Click the download link above (ignore the "Source code" archives below - they're auto-generated by GitHub) 2. Go to [Claude.ai Customize › Skills](https://claude.ai/customize/skills) 3. Upload the downloaded ZIP file 4. Requires paid Claude Pro or Team account See [official documentation](https://support.claude.com/en/articles/12512198-how-to-create-custom-skills) for more details. ## Recent Changes ``` 67f47c0 drawing-video 1.1.1: explain why _cf_request needs thinkingLevel low, attribute the 22s clip to the model that ran it 8cfff30 docs: Update CHANGELOG.md for released skills ```

  5. browsing-bluesky-v0.8.1 GitHub ↗
    原版更新说明

    # browsing-bluesky Comprehensive Bluesky browsing via public APIs and real-time firehose. ## Features - **Search posts** - Advanced search with filters (query syntax matching bsky.app) - **User monitoring** - Fetch profiles and recent posts - **Feed/list reading** - Read from custom feeds and curated lists - **Firehose sampling** - Real-time trending topic detection ## Network Requirements This skill requires the following URLs to be whitelisted in your environment: ### API Access - `https://api.bsky.app` - Bluesky public API (search, profiles, feeds) - Used by: `search_posts()`, `get_user_posts()`, `get_profile()`, `get_feed_posts()` ### Firehose Access - `wss://jetstream1.us-east.bsky.network` - Bluesky Jetstream firehose WebSocket - Used by: `sample_firehose()` ### Important Notes - **Do NOT use** `public.api.bsky.app` - This subdomain returns 403 errors from some environments - **Always use** `api.bsky.app` instead - No authentication required for public read operations ## Dependencies ### Python - `requests` - For HTTP API calls ### Node.js (for firehose sampling only) - `ws` - WebSocket client - `https-proxy-agent` - Proxy support Install Node.js dependencies once per session: ```bash cd /home/claude && npm install ws https-proxy-agent ``` ## Installation Add the skill directory to your Python path: ```python import sys sys.path.insert(0, '/path/to/browsing-bluesky') from browsing_bluesky import search_posts, get_user_posts, get_profile, get_feed_posts, sample_firehose ``` ## Usage Examples ### Search Posts ```python # Basic search posts = search_posts("event sourcing", limit=10) # With filters posts = search_posts("MCP", author="austegard.com", since="2025-01-01", limit=20) # Query syntax (like bsky.app advanced search) posts = search_posts('from:acairns.co.uk "event sourcing" lang:en') ``` ### Monitor a User ```python # Get profile profile = get_profile("austegard.com") print(f"{profile['display_name']}: {profile['followers']} followers") # Get recent posts posts = get_user_posts("austegard.com", limit=20) ``` ### Read Feeds and Lists ```python # From URL posts = get_feed_posts("https://bsky.app/profile/austegard.com/lists/3lankcdrlip2f") # From AT-URI posts = get_feed_posts("at://did:plc:xxx/app.bsky.graph.list/xyz") ``` ### Sample Trending Topics ```python # Sample for 30 seconds data = sample_firehose(duration=30) print(f"Top words: {data['topWords'][:10]}") print(f"Trending phrases: {data['topPhrases'][:5]}") print(f"Entities: {data['entities'][:5]}") # Filter for specific term data = sample_firehose(duration=20, filter="python") print(f"Found {data['stats']['totalPosts']} posts about 'python'") ``` ## Return Data Format All API functions return structured dictionaries: **Post objects:** ```python { "uri": "at://...", "text": "Post content", "created_at": "2025-01-01T00:00:00.000Z", "author_handle": "user.bsky.social", "author_name": "Display Name", "likes": 42, "reposts": 10, "replies": 5, "url": "https://bsky.app/profile/user.bsky.social/post/..." } ``` **Profile objects:** ```python { "handle": "user.bsky.social", "display_name": "Display Name", "description": "Bio text", "followers": 100, "following": 50, "posts": 200, "did": "did:plc:..." } ``` **Firehose sample data:** ```python { "window": {"startTime": "...", "endTime": "...", "durationSeconds": 30}, "stats": {"totalReceived": 1000, "totalPosts": 500, "postsPerSecond": 16.7}, "topWords": [["word", count], ...], "topPhrases": [["phrase", count], ...], "entities": [["Named Entity", count], ...], "samplePosts": [{"text": "...", "altTexts": [...], "hasImages": true}, ...] } ``` ## Troubleshooting ### 403 Errors from API - Ensure you're using `api.bsky.app` not `public.api.bsky.app` - Verify `api.bsky.app` is whitelisted in your environment ### Firehose Sampling Fails - Check Node.js dependencies are installed: `npm list ws https-proxy-agent` - Verify `jetstream1.us-east.bsky.network` WebSocket access is allowed - If behind a proxy, ensure `https_proxy` environment variable is set ### Module Import Errors - Directory name has hyphens (`browsing-bluesky`) but module uses underscores (`browsing_bluesky`) - Use `importlib.util.spec_from_file_location()` if standard import fails ## Related Skills This skill consolidates and replaces: - `sampling-bluesky-zeitgeist` (deprecated) - Firehose sampling now built-in ## Version 0.5.0 **Skill folder:** [browsing-bluesky](https://github.com/oaustegard/claude-skills/tree/main/browsing-bluesky) --- Release of **browsing-bluesky** version 0.8.1 ## 📥 Download & Install **[⬇️ Download browsing-bluesky.zip](https://github.com/oaustegard/claude-skills/releases/download/browsing-bluesky-v0.8.1/browsing-bluesky.zip)** To install: 1. Click the download link above (ignore the "Source code" archives below - they're auto-generated by GitHub) 2. Go to [Claude.ai Customize › Skills](https://claude.ai/customize/skills) 3. Upload the downloaded ZIP file 4. Requires paid Claude Pro or Team account See [official documentation](https://support.claude.com/en/articles/12512198-how-to-create-custom-skills) for more details. ## Recent Changes ``` afce24d browsing-bluesky 0.8.1: split transcription empirics by test set, define token recall, say what gemini-3.5-flash runs 8cfff30 docs: Update CHANGELOG.md for released skills ```

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.6.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 提供完整的Bluesky内容浏览和分析功能,包括搜索帖子、获取用户活动、采样热门话题等
  • 支持认证访问以获取个性化feed,满足不同用户需求
  • 包含账户分析功能,可用于分类和研究目的
触发精准90/100

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰
  • description详细描述了功能和使用场景,触发条件明确
结构规范85/100

亮点

  • Phase/步骤清晰,有出口条件,含端到端示例
  • frontmatter完整,单文件≤500行
  • 文档结构良好,有详细的实现说明和使用示例
执行可靠80/100

亮点

  • 工具来源明确,参数正确
  • 覆盖主要异常,不可逆操作有确认机制
  • 有详细的认证说明和错误处理机制
证据可验 (前四项均值)88/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • api.bsky.app
  • bsky.app
  • bsky.social

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。