返回顶部
g

guitar-chord吉他和弦图

Show ASCII guitar chord diagrams using the ascii_chord CLI tool. Use when asked how to play a guitar chord, or to show chord charts/diagrams for any chord name (e.g. E, B7, Am, C, G, Dm, etc.). Requires cargo (Rust toolchain) to be installed. The source code is bundled with this skill — build it with cargo from the skill directory.

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

guitar-chord

guitar-chord

使用 ascii_chord 显示 ASCII 吉他和弦图——这是一个开源 Rust 命令行工具(MIT 许可证,与本技能为同一作者)。

源代码已与本技能捆绑——无需克隆。

所需工具

工具用途检查
cargo / Rust构建并运行命令行工具cargo --version

安装 Rust(如果尚未安装)

bash

macOS(Homebrew — 推荐)


brew install rustup-init && rustup-init

或从 rustup.rs 下载。

注意: 通过 rustup 安装 Rust 会在您的主目录中创建 ~/.cargo 和 ~/.rustup,并可能修改您的 shell PATH。

安装后设置

安装完成后,运行一次初始化脚本:

bash
bash ~/.openclaw/workspace/skills/ascii-chord/scripts/init.sh

这将:

  1. 1. 在技能目录中创建 .gitignore,以排除 cargo 构建产物(/target)被 git 跟踪
  2. 预热 cargo 构建缓存,使首次和弦查询更快

首次运行警告

如果跳过初始化脚本,首次 cargo run 将需要 30–60 秒,因为 cargo 需要编译二进制文件。这是正常现象——后续运行会很快(二进制文件缓存在 target/ 中)。请勿中断首次构建。

图示图例

✕ = 静音此弦(不弹奏)
◯ = 空弦(弹奏不按弦)
● = 按此品位(实心圆点)
═ = 弦枕(指板顶部)
─ = 品丝
│ = 琴弦

左侧的数字(如果显示)表示高把位和弦的起始品位位置。

使用方法

技能目录包含完整的 Rust 源代码。请在该目录中运行:

单个和弦:
bash
cd <技能目录> && cargo run -- get <和弦名称> 2>/dev/null

多个和弦并排显示:
bash
cd <技能目录> && cargo run -- list <和弦1> <和弦2> ... 2>/dev/null

列出所有支持的和弦:
bash
cd <技能目录> && cargo run -- all 2>/dev/null

将 <技能目录> 替换为本技能安装的路径(例如 ~/.openclaw/workspace/skills/ascii-chord)。

示例

bash

单个和弦


cd ~/.openclaw/workspace/skills/ascii-chord && cargo run -- get Am 2>/dev/null

多个并排显示(非常适合和弦进行)

cd ~/.openclaw/workspace/skills/ascii-chord && cargo run -- list C G Am F 2>/dev/null

所有支持的和弦名称完整列表

cd ~/.openclaw/workspace/skills/ascii-chord && cargo run -- all 2>/dev/null

查找支持的和弦

并非所有和弦指法都受支持。如果用户请求的和弦失败,请使用 all 列出所有支持的和弦名称并找到最接近的匹配:

bash
cd ~/.openclaw/workspace/skills/ascii-chord && cargo run -- all 2>/dev/null

注意事项

  • - 使用 2>/dev/null 抑制构建警告
  • 和弦名称区分大小写(Am 而非 am,B7 而非 b7)
  • 首次构建后,后续运行速度很快(二进制文件由 cargo 缓存在 target/ 中)
  • 源代码仓库:https://github.com/ascii-music/ascii_chord(MIT 许可证)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ascii-chord-1776193537 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ascii-chord-1776193537 技能

通过命令行安装

skillhub install ascii-chord-1776193537

下载

⬇ 下载 guitar-chord v2.0.4(免费)

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

v2.0.4 最新 2026-4-15 12:06
Rename skill display name from ascii-chord to guitar-chord

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

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

p2p_official_large
返回顶部