Communitygithub.com

wshobson/hermes-tweet

安装并使用 Hermes Tweet,这是一个 Hermes Agent 插件,用于 X/Twitter 研究、时间线读取、推文分析以及需审批的私有或状态变更操作。当需要安装 Hermes Tweet、研究 X/Twitter 账户、监控发布信号、调查提及、审计抽奖或准备需授权的 X 操作时使用。当 Hermes Agent 工作流需要当前 X/Twitter 上下文时主动使用。需要 XQUIK_API_KEY 来启用读取和操作工具。

hermes-tweet 是什么?

Hermes Tweet 是 Hermes Agent 的一个插件,为 X/Twitter 提供了一套完整的工具集。它的设计遵循“只读优先、操作需审批”的原则,确保所有私有或状态变更操作都明确处于用户控制之下。该插件支持账户研究、关键词监控、提及分析、抽奖审计、支持工单分类等多种工作流。原理上,它通过 `tweet_explore` 路由探索内置端点目录,使用 `tweet_read` 执行公开的只读查询,而 `tweet_action` 仅在用户显式启用 `HERMES_TWEET_ENABLE_ACTIONS=true` 并通过人工审批后才能调用。此脚本可在任何运行 Hermes Agent 的环境中运行,要求设置 `XQUIK_API_KEY` 环境变量。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/wshobson/agents/tree/main/plugins/hermes-tweet/skills/hermes-tweet

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Hermes Tweet

Hermes Tweet 为 Hermes Agent 添加了 X/Twitter 工具集。它可用于社交监听、账户研究、发布监控、支持工单分类、抽奖审计以及那些私有或状态变更操作需要保持明确受控的工作流。

何时使用此脚本

当用户希望进行以下操作时使用此脚本:

  • 在 Hermes Agent 运行时中安装 Hermes Tweet
  • 发现可用的 X/Twitter 读取和操作路由
  • 读取 X/Twitter 账户、推文、趋势、监控或搜索数据
  • 在起草回复或活动策划前总结公开信号
  • 确保私有和状态变更操作在操作者显式意图下才能执行

设置

通过 Hermes 安装并启用插件:

hermes plugins install Xquik-dev/hermes-tweet --enable

Hermes 在安装和更新期间会扫描插件。请检查每条警告。 危险判定会阻止安装或禁用更新。

在 Hermes 运行时主机上设置 API 密钥:

export XQUIK_API_KEY="<your-key>"
export HERMES_TWEET_ENABLE_ACTIONS="false"

对于只读会话,请保持 HERMES_TWEET_ENABLE_ACTIONS 为 false。仅当需要执行已获批准的私有读取、写入、监控、Webhook、提取、绘图或媒体操作时,才将其设置为 true。

输入

在选择路由之前,请询问以下输入:

  • 目标:研究、监控、支持工单分类、抽奖审计或操作准备
  • 目标:账户句柄、推文 URL、关键词、列表、监控项或趋势
  • 时间窗口和新鲜度要求
  • 是否涉及任何私有或状态变更操作
  • 确认 Hermes 运行时已设置 XQUIK_API_KEY

工作流

  1. 使用 tweet_explore 搜索内置端点目录以找到匹配的路由。
  2. 选择目录路由后,通过 tweet_read 读取公开的 X/Twitter 数据。
  3. 仅在显式批准后,使用 tweet_action 执行私有或状态变更路由。
  4. 将 API 密钥存储在环境变量或 Hermes 运行时环境文件中。
  5. 不要将凭据粘贴到提示、问题、PR 评论或工具输入中。
  6. 当用户要求的是活动、监控、支持或抽奖工作流(而非单次读取)时,请加载工作流模式。

工具模型

工具用途
tweet_explore搜索内置端点目录,无需使用 API 密钥。
tweet_read当 XQUIK_API_KEY 已设置时,调用目录中列出的公共只读端点。
tweet_action仅在操作门控启用时,调用私有读取、写入、监控、Webhook、提取、绘图和媒体操作。

输出格式

返回简洁的操作输出:

总结:
- 检查了什么以及原因

读取路由:
- 目录路径、输入和结果总结

操作计划:
- 提议的私有或状态变更操作,每个都等待显式批准

下一步检查:
- 后续路由或监控频率(如有用)

使用示例

在起草回复前研究一个账户:

使用 Hermes Tweet 检查 @example 最近的公开上下文,然后再起草回复。
保持操作禁用。

监控一个发布关键词:

跟踪 X/Twitter 上今天对“Example Launch”的提及。
总结主题和重要账户。不要发帖。

准备一个受控的帖子:

起草一条发布推文,并列出你将使用的确切 tweet_action 调用。
在任何操作路由执行前等待批准。

捕获结构化的路由备注:

{
  "objective": "support-triage",
  "route": "/api/v1/x/search",
  "action_gate": "disabled",
  "approval_required": true
}

故障排除

  • 如果只显示 tweet_explore,请在 Hermes 运行时主机上配置 XQUIK_API_KEY 并重新加载或重启当前 Hermes 会话。
  • 如果操作路由不可用,请将公共读取操作分开进行。仅对已批准的私有或状态变更操作设置 HERMES_TWEET_ENABLE_ACTIONS=true。
  • 如果路由不匹配,请再次使用 tweet_explore 并选择目录中列出的路径,而不是猜测端点。

最佳实践

  • 将 Hermes Tweet 视为 Hermes 原生的 X/Twitter 层,而不是通用的 API 包装器。
  • 默认情况下保持研究为只读。在创建或更改监控项之前需要批准。
  • 在进行私有或状态变更调用之前,使用桌面端或网关操作者审查。
  • 在调用 tweet_read 或 tweet_action 之前,验证确切的目录路径。
  • 环境变量更改后,重启网关、cron 或长时间运行的 Hermes 会话。

参见

social-publishing 插件与 Hermes Tweet 互补,用于广泛的多平台发布。Hermes Tweet 专注于 Hermes Agent 的 X/Twitter 工具集及其只读优先、操作需审批的运行模式。

当路由边界不清楚时,请参阅端点和审批合同。请参阅官方指南:https://github.com/Xquik-dev/hermes-tweet#readme。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

wshobson/accessibility-compliance

Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.

wshobson/airflow-dag-patterns

Build production Apache Airflow DAGs with best practices for operators, sensors, testing, and deployment. Use when creating data pipelines, orchestrating workflows, or scheduling batch jobs.

wshobson/angular-migration

Migrate from AngularJS to Angular using hybrid mode, incremental component rewriting, and dependency injection updates. Use when upgrading AngularJS applications, planning framework migrations, or modernizing legacy Angular code.

wshobson/anti-reversing-techniques

Understand anti-reversing, obfuscation, and protection techniques encountered during software analysis. Use this skill when analyzing malware evasion techniques, when implementing anti-debugging protections for CTF challenges, when reverse engineering packed binaries, or when building security research tools that need to detect virtualized environments.

wshobson/api-design-principles

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

wshobson/architecture-decision-records

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

wshobson/architecture-patterns

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.

wshobson/async-python-patterns

Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I/O-bound applications requiring non-blocking operations.

wshobson/attack-tree-construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

wshobson/auth-implementation-patterns

Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.

wshobson/avoid-ai-writing

Audit and rewrite prose so it stops reading as machine-generated. Use this skill when asked to remove AI-isms, clean up AI writing, edit a draft for AI tells, audit a README, changelog, release note, PR description, or blog post for machine-sounding prose, or make text sound less like AI. Supports a detect-only mode, a rewrite mode, and an edit-in-place mode, with optional voice and context profiles.

wshobson/backtesting-frameworks

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

wshobson/bash-defensive-patterns

Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.

wshobson/bats-testing-patterns

Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.

wshobson/bazel-build-optimization

Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.

wshobson/before-you-build

Pre-build product and feature risk review for founders, product managers, and AI-assisted builders. Use this skill when the user is about to build a landing page, MVP, SaaS product, internal tool, agent workflow, or major feature and needs to check demand, positioning, monetization, retention, trust, distribution, and adoption risk before implementation starts.

wshobson/billing-automation

Build automated billing systems for recurring payments, invoicing, subscription lifecycle, and dunning management. Use when implementing subscription billing, automating invoicing, or managing recurring payment systems.

wshobson/binary-analysis-patterns

Master binary analysis patterns including disassembly, decompilation, control flow analysis, and code pattern recognition. Use when analyzing executables, understanding compiled code, or performing static analysis on binaries.

wshobson/block-no-verify-hook

Configure a PreToolUse hook to prevent AI agents from skipping git pre-commit hooks with --no-verify and other bypass flags. Use when setting up Claude Code projects that enforce commit quality gates.

wshobson/brand-landingpage

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens — use frontend-design instead.

相关技能