返回顶部
m

magic-need魔法需求捕捉

Capture tool and data needs from AI agents during task execution. When an agent identifies it needs a tool, API, or data source that doesn't exist, this skill provides a CLI to register that need. Needs are categorized automatically and can be reviewed periodically to build an integration roadmap. Use when the agent realizes it needs something that isn't available — e.g., "I would need X API to do this properly", "If I had access to Y logs I could investigate", "A tool that does Z would be usefu

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
237
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

magic-need

magic-need

捕捉你的AI智能体所渴望拥有的能力。让你的智能体为你规划产品需求。

概述

当AI智能体在执行任务时因缺乏数据或工具而受阻,该技能允许智能体精确记录所缺失的内容,而非直接失败或绕道而行。久而久之,这将构建出一份按优先级排序的集成与功能路线图。

灵感源自Sonarly的magic_fetch概念——为智能体提供一个无所作为的工具,让它告诉你真正需要什么。

使用方法

作为智能体(任务执行期间)

当你意识到需要某些尚未拥有的东西时:

bash

选项1:直接使用CLI


node ~/.openclaw/skills/magic-need/scripts/cli.js 服务X近期部署的API

选项2:通过shell执行

exec({ command: node ~/.openclaw/skills/magic-need/scripts/cli.js 上游服务的CPU指标 })

CLI将执行以下操作:

  1. 1. 将需求保存至~/.magic-need/needs.json
  2. 自动分类(集成、可观测性、运维、认证、数据库、存储)
  3. 返回包含需求ID的确认信息

作为人类(审查需求)

bash

列出所有需求


node scripts/cli.js list

生成报告(按类别分组)

node scripts/cli.js report

归档已解决的需求

node scripts/cli.js clear

自动分类

需求根据描述关键词自动分类:

类别关键词示例需求
集成api, endpoint获取用户数据的API
可观测性
metric, log, monitor | 过去一小时的错误日志 |
| 运维 | deploy, pipeline, ci | 服务X的近期部署 |
| 认证 | user, auth, login, permission | 服务Y的认证令牌 |
| 数据库 | database, db, query, schema | 获取活跃用户的查询 |
| 存储 | file, storage, upload, s3 | 上传文件至云存储 |
| 通用 | (默认) | 其他需求 |

数据格式

需求以JSON格式存储在~/.magic-need/needs.json中:

json
[
{
id: j8ldlr,
description: 近期部署的API,
createdAt: 2026-03-07T18:09:18.123Z,
status: pending,
category: integration
}
]

报告格式

report命令输出格式化摘要:

🪄 魔法需求报告 — 4个待处理

🔌 集成 (2)
• 认证服务的近期部署API
• 近期切换的功能标志

📊 可观测性 (1)
• 上游数据库的CPU指标

📝 通用 (1)
• 可视化数据流的工具

最佳实践

良好的需求描述

具体说明你的需求:

  • - ✅ 过去2小时内按服务名称筛选的部署API端点
  • ✅ 上游认证服务Pod的CPU和内存指标
  • ✅ 过去24小时内API网关变更的功能标志
  • ✅ 按受影响用户分组的Sentry错误

不良的需求描述

避免模糊描述:

  • - ❌ 需要更多数据
  • ❌ 没有工具无法完成
  • ❌ 有日志就好了

集成路线图

定期审查生成的报告以:

  1. 1. 识别模式(哪些类别需求最多?)
  2. 确定集成优先级(哪些需求阻碍了最多任务?)
  3. 优先构建最具影响力的工具

CLI参考

完整实现见scripts/cli.js。

命令

命令描述
cli.js 描述注册新需求
cli.js list
列出所有需求 | | cli.js report | 生成格式化报告 | | cli.js clear | 归档待处理需求 |

定时任务集成

如需接收每日报告,设置定时任务:

bash

每日晚上10点


0 22 * node ~/.openclaw/skills/magic-need/scripts/cli.js report | your-notification-script

或使用OpenClaw的定时任务系统将报告发送至Discord频道。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 magic-need-1776184029 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 magic-need-1776184029 技能

通过命令行安装

skillhub install magic-need-1776184029

下载

⬇ 下载 magic-need v1.0.0(免费)

文件大小: 6.18 KB | 发布时间: 2026-4-15 12:07

v1.0.0 最新 2026-4-15 12:07
Initial release of magic-need — a tool for capturing and prioritizing unmet agent needs.

- Provides a CLI to register missing tools, APIs, or data sources identified by AI agents during execution.
- Automatically categorizes needs (integration, observability, devops, auth, database, storage, general).
- Stores needs in JSON format for review and reporting.
- Includes list, report, and clear commands to manage and review needs.
- Designed to build an actionable integration and feature roadmap from real agent feedback.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部