返回顶部
m

magic-quill魔法羽毛

Generate OpenClaw Spellbook YAML theme mappings from a topic (game/movie/franchise/etc.) or a URL. Use when you need to create or refresh a themed spell mapping file under /spells with broad coverage of popular skills (default top 50). The generator now performs dynamic spell-list reference discovery first (searching for spell lists/APIs and parsing discovered JSON/HTML sources), then uses lore/context as secondary style input and falls back to heuristic spell names when references fail. NOTE: T

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

magic-quill

Magic Quill

一支神奇的羽毛笔,可为 OpenClaw Spellbook 铭刻主题法术映射,对热门技能具有高覆盖率。

输入参数

  • - --topic <名称> 或 --url (主要输入;法术列表查找优先按主题/话题搜索,提供 --url 时将其视为高优先级参考候选项)
  • 可选 --theme <名称> 用于覆盖最终主题名称(或仅使用 --theme 运行启发式模式)
  • 可选 --out <路径>(别名:--output)(默认值:spells/<主题别名>.yaml)
  • 可选 --limit <数量>(别名:--top)用于前 N 项覆盖(默认值:50)
  • 可选 --author <名称>(默认值:@magic-quill)

执行步骤

  1. 1. 尽可能从两个来源收集热门技能:
- skills.sh 热门安装数据 - ClawHub 下载 API 端点
  1. 2. 合并并去重结果,形成目标集合(若获取失败,则从内置备用技能中填补空缺)。
  2. 首先收集法术列表参考(主要法术来源):
- 根据话题/主题构建动态网络搜索查询(例如 <话题> spell list 和 <话题> spells api) - 将顶部搜索结果链接(DuckDuckGo HTML 结果)解析为候选参考 URL - 当存在 --url 时,将其作为高优先级候选 - 获取发现的 JSON/HTML 参考(例如若发现 dnd5eapi.co),提取法术名称,并从成功的参考中合并/去重名称
  1. 4. 收集背景/上下文(仅次要风格关键词):
- 如果提供了 --url,则获取并提取页面文本 - 否则如果提供了 --topic,则尝试 Wikipedia 摘要 API - 如果获取失败,则使用内置主题词典/启发式规则
  1. 5. 如果法术列表参考失败或未产生足够名称,则使用内置启发式法术名称生成器生成法术映射。
  2. 将 YAML 写入请求的输出路径(通常在 spells/ 下),包括 # spell-list-references: 注释链接,指向成功动态发现的法术列表来源/端点(如可用)。
  3. 如果输出文件位于 spells/ 下,则使用 npm run validate:spells 进行验证。

命令(用户)

bash
npm run generate:spellbook-theme -- --theme Studio Ghibli --limit 50 --author @you
npm run generate:spellbook-theme -- --topic Cyberpunk 2077 --limit 75 --out spells/cyberpunk-2077.yaml --author @you
npm run generate:spellbook-theme -- --url https://en.wikipedia.org/wiki/TheLordoftheRings --limit 50 --author @you
npm run generate:spellbook-theme -- --topic DnD 5e --limit 20 --author @you

命令(代理)

bash
node magic-quill/scripts/generate-spell-mapping.mjs --theme The Legend of Zelda --topic The Legend of Zelda --limit 50 --out spells/zelda.yaml --author @example
node scripts/validate-spells.mjs

从此仓库安装(子路径)

使用 npx skills add 配合仓库子路径源,例如:

bash
npx skills add wynnsu/openclaw-spellbook/magic-quill

⚠️ 需要 Hook 才能使用

此技能生成法术 YAML 映射文件——要在代理会话中实际使用主题法术,您需要安装 openclaw-spellbook hook。安装完整法术书包:

bash

安装法术书 hook(包含 magic-quill 技能)


npx skills add wynnsu/openclaw-spellbook

或直接从仓库仅安装 hook:
bash
npx skills add wynnsu/openclaw-spellbook/hooks/spellbook

该 hook 在运行时处理魔法法术名称与实际技能 ID 之间的转换。

安装后使用示例(提示词示例):

text
使用 magic-quill 创建一个包含前 50 项覆盖的星球大战法术映射,并将其写入 spells/star-wars.yaml。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 magic-quill-1776420071 技能

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

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

通过命令行安装

skillhub install magic-quill-1776420071

下载

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

文件大小: 20.95 KB | 发布时间: 2026-4-17 19:42

v1.0.0 最新 2026-4-17 19:42
Generate themed spell YAML mappings with dynamic spell-list discovery. Requires openclaw-spellbook hook to use generated spells in agent sessions.

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

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

p2p_official_large
返回顶部