简介
智能故障诊断与技能推荐引擎,自动检测工作流阻塞并提供精准恢复方案,支持多平台执行风格适配。
原始描述
Scenario-driven skill recommendation engine for ClawHub. Detects failed or stuck workflows, builds targeted search queries, and returns ranked skill recommen...
通过你的 Agent 添加
安装目录:skill-feed/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心功能
skill-feed 是一款场景驱动的智能推荐引擎,专为 ClawHub 生态设计。其核心能力在于自动识别用户工作流中的故障信号(命令失败、超时、重试超限、输出缺失等),通过分层搜索策略匹配最优技能,并提供可直接执行的恢复路径。
显著优势
1. 智能故障感知 无需用户手动描述问题,系统自动捕获 6 类触发信号:API 失败(4xx/5xx)、重试阈值超限、预期输出缺失、执行超时、主动技能请求、目标模糊场景。这种主动诊断机制大幅降低了故障排查的认知负担。
2. 三层精准检索 采用「宽泛能力→场景细分→故障特征」的递进式查询构建,结合平台令牌(Twitter/X/Telegram/GitHub)与错误代码(401/403/429/timeout),确保推荐结果与真实故障高度相关。
3. 多执行环境适配 内置 Claude Code、ChatGPT、Gemini 三种输出风格模板:终端优先的命令序列、紧凑的检查清单、显式假设的验证框架。同一推荐逻辑可无缝切换呈现形式,适应不同 AI 助手的交互习惯。
4. 结构化恢复路径 每次输出包含:主推荐技能 + 2 个备选 + 3-5 步即时行动 + 成功校验标准 + 降级方案。这种「主-备-验-退」四层架构确保用户在主路径失效时仍有明确退路。
局限性与风险
依赖实时搜索基础设施
核心功能依赖 https://clawhub.ai/skills?focus=search 的可用性。离线场景下仅能降级至本地引用文件(references/top-skills-*.md),推荐时效性和覆盖率可能下降。
反噪声机制依赖对话状态 「避免重复推荐」功能需要维护单会话的推荐历史,跨会话或状态丢失时可能产生冗余建议。
高风险操作需人工确认 设计原则明确禁止自动执行高风险外部动作,这虽提升了安全性,但也意味着部分场景需要额外交互确认,可能延长恢复时间。
适用人群
- 使用 ClawHub 自动化工作流但频繁遭遇平台 API 变更、权限调整的技术用户
- 需要在 Claude Code / ChatGPT / Gemini 间迁移脚本、追求跨平台一致性的开发者
- 希望将故障排查从「经验驱动」转为「系统驱动」的团队运维人员
常规风险
- Token 泄露风险:搜索查询构建过程中可能嵌入敏感错误信息,需确保 ClawHub 搜索端点的传输加密与日志脱敏
- 推荐偏差:依赖社区技能的 stars/更新时间排序,可能遗漏小众但更匹配的方案
- 执行环境误判:若未正确识别当前 provider,输出格式可能与用户预期不符
总结
skill-feed 将「故障诊断→技能发现→恢复执行」的完整链路封装为自动化工作流,是 ClawHub 生态中提升开发韧性的关键基础设施。其多平台适配设计尤其适合在 heterogeneous AI 工具链中寻求一致体验的用户。
技能正文
name: skill-feed description: Scenario-driven skill recommendation engine for ClawHub. Detects failed or stuck workflows, builds targeted search queries, and returns ranked skill recommendations with immediate recovery steps and fallback paths. Use when users say they want to do something but are blocked (errors, retries, timeout, missing outputs, unclear implementation path), or when you need recommendations adapted for Claude Code, ChatGPT, and Gemini execution styles.
SkillFeed
Automatically match the best skills to unblock a failed or stuck workflow.
Trigger Conditions (auto)
Run this skill when any of these signals appears:
- Command/API failure (non-zero exit, HTTP 4xx/5xx)
- Retry threshold exceeded (default >=2 retries)
- Expected output missing (for example no tweet id after post task)
- Execution timeout exceeded
- User explicitly asks for tool/skill recommendation
- User describes a goal but has no clear implementation path
Do not trigger for normal delay/noise or when the user already has a working solution.
Workflow
- Capture failure context
- task name
- platform (X/Twitter, Telegram, GitHub, etc.)
- error message/code
- latest action log summary
- Classify failure type
- auth/permission
- rate limit/quota
- network/timeout
- invalid params/payload
- unknown
- Build layered search queries (broad -> scenario -> failure)
- Q1 broad capability query
- Q2 scenario-specific query
- Q3 failure-specific query with error tokens
- Search ClawHub
- Use
https://clawhub.ai/skills?focus=search - Always perform a live search; use
references/top-skills-*.mdonly as offline fallback - Prefer sorting by stars / recently updated when comparing candidates
- Use
- Rank candidates
- match to goal (highest weight)
- match to failure type
- setup cost and risk
- maintenance signals
- Return recovery plan
- Top 1 primary skill
- 2 alternatives
- 3-5 concrete next actions
- fallback path if primary fails
- Anti-noise guardrails
- Avoid repeating the same recommendation for the same error within a single conversation
- Avoid auto-running high-risk external actions without user confirmation
Query Construction Rules
Generate queries from context tokens:
- Goal tokens:
post,schedule,auto reply,daily report - Platform tokens:
x,twitter,tweet,telegram,github - Failure tokens:
401,403,429,timeout,invalid token,permission denied
Example for failed tweet post:
- Q1:
tweet automation - Q2:
x twitter schedule post cron - Q3:
twitter post failed 401 invalid token rate limit
Provider Adaptation (Claude Code / ChatGPT / Gemini)
Format the recovery plan for the current provider by default. Only include multi-provider runbooks when the user explicitly requests cross-platform output.
- Keep core logic provider-neutral
- Use the same goal, failure classification, query generation, and ranking flow.
- Detect current provider and use the matching execution style
- Claude Code: terminal-first, exact command sequences, minimal commentary.
- ChatGPT: compact checklist bullets, short "why" before steps.
- Gemini: explicit sections, assumptions, deterministic validation criteria.
- Normalize outputs
- Keep identical recommendation order across providers.
- Only vary phrasing and action formatting.
Output Format
- Goal:
- Failure signal:
- Primary recommendation:
<skill>(/slug) — - Alternatives:
<skill>(/slug) —<skill>(/slug) —
- Immediate actions (3-5 steps)
- Success check:
- expected output present
- no critical error in latest run
- Fallback if still failing
- Execution notes:
References
- Search and ranking recipes:
references/discovery-workflow.md - Scenario keyword map:
references/query-templates.md - Claude Code / ChatGPT / Gemini adaptation:
references/provider-adaptation.md
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。