Read-only Mastodon skill. Outputs human-readable timeline summaries or raw JSON.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install mastodon-scout或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install mastodon-scout⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/mastodon-scout/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: mastodon-scout description: Read-only Mastodon skill. Outputs human-readable timeline summaries or raw JSON. metadata: {"clawdhub":{"emoji":"🦣"},"clawdis":{"envVars":[{"name":"MASTODON_TOKEN","required":true},{"name":"MASTODON_INSTANCE","required":false,"default":"https://mastodon.social"}]}} ---
Read-only Mastodon skill. Fetches data from the Mastodon API via a bundled Python script (scripts/mastodon_scout.py). Returns human-readable summaries by default, or raw JSON with --json.
---
python3 ./scripts/mastodon_scout.py <command> [options]
| Command | What it fetches | |---------|----------------| | home | Authenticated user's home timeline | | user-tweets | Authenticated user's own posts | | mentions | Mentions of the authenticated user | | search | Posts matching the query |
--instance <url> Mastodon instance base URL (default: $MASTODON_INSTANCE or https://mastodon.social)
--limit <int> Number of items to return (default: $LIMIT or 20)
--json Output raw JSON instead of human-readable text
MASTODON_TOKEN Required. OAuth bearer token.
MASTODON_INSTANCE Optional. Instance base URL (default: https://mastodon.social).
python3 ./scripts/mastodon_scout.py home
python3 ./scripts/mastodon_scout.py mentions --limit 10
python3 ./scripts/mastodon_scout.py search "golang"
python3 ./scripts/mastodon_scout.py home --json
python3 ./scripts/mastodon_scout.py home --instance https://fosstodon.org
---
The script formats each post as:
[N] Display Name (@user@instance) · <timestamp>
<content>
↩ <replies> 🔁 <reblogs> ⭐ <favourites>
<url>
The agent MAY add a brief summary after the list.
--json)Returns raw Mastodon API JSON. Return it verbatim — no interpretation.
---
The script prints a human-readable error to stderr and exits non-zero:
| Condition | Message | |-----------|---------| | Token missing | Error: MASTODON_TOKEN is not set | | 401 | Mastodon API error: 401 Unauthorized — check MASTODON_TOKEN | | 403 | Mastodon API error: 403 Forbidden | | 422 | Mastodon API error: 422 Unprocessable Entity | | 429 | Mastodon API error: 429 Rate Limited — try again later |
Do not retry on error. Guide the user to Authentication Setup if the token is missing or invalid.
---
mastodon-scout homeshow my mastodon timelinecheck mastodon mentionssearch mastodon for "golang"get my mastodon posts---
scripts/mastodon_scout.py uses stdlib only — no pip install required---
EXCEPTION TO STRICT MODE: If the user needs help obtaining a token, the agent may provide guidance before executing the skill.
Step 1: Access Development Settings
https://[instance-domain]/settings/applicationsStep 2: Create Application
- Application name: mastodon-scout (or any name) - Redirect URI: urn:ietf:wg:oauth:2.0:oob - Scopes: CRITICAL — only select read (uncheck write, follow, push)
Step 3: Get Access Token
Step 4: Set Environment Variable
export MASTODON_TOKEN="paste_token_here"
Step 5: Verify
python3 ./scripts/mastodon_scout.py home --limit 5
mastodon.social — General purpose (default)fosstodon.org — FOSS/tech communitymas.to — Tech focusedhachyderm.io — Tech/infosec community安装 Mastodon Scout 后,可以对 AI 说这些话来触发它
Help me get started with Mastodon Scout
Explains what Mastodon Scout does, walks through the setup, and runs a quick demo based on your current project
Use Mastodon Scout to read-only Mastodon skill
Invokes Mastodon Scout with the right parameters and returns the result directly in the conversation
What can I do with Mastodon Scout in my documents & notes workflow?
Lists the top use cases for Mastodon Scout, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/mastodon-scout/ 目录(个人级,所有项目可用),或 .claude/skills/mastodon-scout/(项目级)。重启 AI 客户端后,用 /mastodon-scout 主动调用,或让 AI 根据上下文自动发现并使用。
Mastodon Scout 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Mastodon Scout 可免费安装使用。请查阅仓库了解许可证信息。
Read-only Mastodon skill. Outputs human-readable timeline summaries or raw JSON.
Mastodon Scout 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Mastodon Scout
Identifies repetitive steps in your workflow and sets up Mastodon Scout to handle them automatically