Token导航 LogoToken导航TokenDH.com
运维执行命令clawhub未标认证来源可访问clear审计通过

magic-need魔法需要

Agent Skill

magic-need 用于补充运维相关能力,适合在 OpenClaw 中需要让 Agent 承接运维相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,973

周安装

339

GitHub Stars

公开资料未说明

下载量

2,793
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:magic-need(魔法需要)
来源仓库:https://github.com/guim4dev/magic-need
安装命令:
openclaw skills install magic-need
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install magic-need

简介

在任务执行中动态捕获 Agent 所需但未配置的工具或数据源。

  • 自动识别缺失依赖并生成补充请求清单。magic-need 属于运维类 Skill,可作为该场景下的辅助能力补充。
  • 需配合宿主系统实现技能动态加载机制才能生效。
  • 可能触发额外安装流程,请确认环境允许外部包引入。
  • 不适合用于生产环境关键路径,仅作辅助调试用途。

SKILL.md

name
magic-need
description
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 useful here".

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.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83.87%
按下载量换算2,342

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install magic-need 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills