← 返回
AI智能 中文

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 skil...
在任务执行中捕获AI代理的工具和数据需求。当代理发现需要不存在的工具、API或数据源时,此
guim4dev
AI智能 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 513
下载
💾 6
安装
1
版本
#latest

概述

magic-need

Capture what your AI agent wishes it had. Let your agent spec your product for you.

Overview

When an AI agent is executing a task and hits a wall because it lacks data or tools, instead of just failing or working around it, this skill lets the agent register exactly what it's missing. Over time, this builds a prioritized roadmap of integrations and features.

Inspired by Sonarly's magic_fetch concept — give the agent a "tool that does nothing" and let it tell you what it actually needs.

Usage

As an Agent (During Task Execution)

When you realize you need something you don't have:

# Option 1: Use the CLI directly
node ~/.openclaw/skills/magic-need/scripts/cli.js "API for recent deploys of service X"

# Option 2: Use via shell exec
exec({
  command: 'node ~/.openclaw/skills/magic-need/scripts/cli.js "CPU metrics for upstream service"'
})

The CLI will:

  1. Save the need to ~/.magic-need/needs.json
  2. Auto-categorize it (integration, observability, devops, auth, database, storage)
  3. Return a confirmation with the need ID

As a Human (Reviewing Needs)

# List all needs
node scripts/cli.js list

# Generate a report (grouped by category)
node scripts/cli.js report

# Archive resolved needs
node scripts/cli.js clear

Auto-Categorization

Needs are automatically categorized based on description keywords:

CategoryKeywordsExample Need
----------------------------------
integrationapi, endpoint"API for fetching user data"
observabilitymetric, log, monitor"Error logs from last hour"
devopsdeploy, pipeline, ci"Recent deployments of service X"
authuser, auth, login, permission"Auth tokens for service Y"
databasedatabase, db, query, schema"Query to get active users"
storagefile, storage, upload, s3"Upload files to cloud storage"
general(default)Other needs

Data Format

Needs are stored as JSON in ~/.magic-need/needs.json:

[
  {
    "id": "j8ldlr",
    "description": "API for recent deploys",
    "createdAt": "2026-03-07T18:09:18.123Z",
    "status": "pending",
    "category": "integration"
  }
]

Report Format

The report command outputs a formatted summary:

🪄 **Magic Need Report** — 4 pending

🔌 **INTEGRATION** (2)
  • API for recent deploys of auth-service
  • Feature flags toggled recently

📊 **OBSERVABILITY** (1)
  • CPU metrics for upstream database

📝 **GENERAL** (1)
  • Tool to visualize data flow

Best Practices

Good Need Descriptions

Be specific about what you need:

  • ✅ "API endpoint for deploys in the last 2 hours, filtered by service name"
  • ✅ "CPU and memory metrics for upstream auth-service pods"
  • ✅ "Feature flags that changed in the last 24h for api-gateway"
  • ✅ "Sentry errors grouped by affected user segment"

Bad Need Descriptions

Avoid vague descriptions:

  • ❌ "need more data"
  • ❌ "can't do this without tools"
  • ❌ "would be nice to have logs"

Integration Roadmap

Periodically review the generated reports to:

  1. Identify patterns (which categories have the most needs?)
  2. Prioritize integrations (which needs block the most tasks?)
  3. Build the most impactful tools first

CLI Reference

See scripts/cli.js for the full implementation.

Commands

CommandDescription
----------------------
cli.js "description"Register a new need
cli.js listList all needs
cli.js reportGenerate formatted report
cli.js clearArchive pending needs

Cron Integration

To receive daily reports, set up a cronjob:

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

Or use OpenClaw's cron system to send reports to a Discord channel.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 22:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,106
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,801
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,308