← 返回
开发者工具 中文

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 na...
使用 ascii_chord CLI 工具显示 ASCII 吉他弦图。当被问到如何弹奏某和弦,或需要展示任意和弦的和弦图/示意图时使用。
yzhong52
开发者工具 clawhub v2.0.4 5 版本 99873.3 Key: 无需
★ 1
Stars
📥 768
下载
💾 7
安装
5
版本
#latest

概述

guitar-chord

Display ASCII guitar chord diagrams using ascii_chord — an open-source Rust CLI (MIT license, authored by the same person as this skill).

The source code is bundled with this skill — no cloning needed.

Required Tools

ToolPurposeCheck
---------
cargo / RustBuild and run the CLIcargo --version

Installing Rust (if not already installed)

# macOS (Homebrew — recommended)
brew install rustup-init && rustup-init

Or download from rustup.rs.

> Note: Installing Rust via rustup creates ~/.cargo and ~/.rustup in your home directory and may modify your shell PATH.

Post-Install Setup

After installing, run the init script once:

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

This will:

  1. Create a .gitignore in the skill directory to exclude cargo build artifacts (/target) from git
  2. Pre-warm the cargo build cache so the first chord lookup is fast

First Run Warning

If you skip the init script, the first cargo run will take 30–60 seconds while cargo compiles the binary. This is normal — subsequent runs are fast (binary is cached in target/). Do not interrupt the first build.

Diagram Legend

✕  = mute this string (don't play)
◯  = open string (play unfretted)
●  = fret this position (filled dot)
═  = nut (top of fretboard)
─  = fret wire
│  = string

Numbers on the left (when shown) indicate the starting fret position for higher-up chords.

Usage

The skill directory contains the full Rust source. Run from there:

Single chord:

cd <skill_dir> && cargo run -- get <CHORD> 2>/dev/null

Multiple chords side by side:

cd <skill_dir> && cargo run -- list <CHORD1> <CHORD2> ... 2>/dev/null

List all supported chords:

cd <skill_dir> && cargo run -- all 2>/dev/null

> Replace with the path where this skill is installed (e.g. ~/.openclaw/workspace/skills/ascii-chord).

Examples

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

# Multiple side by side (great for progressions)
cd ~/.openclaw/workspace/skills/ascii-chord && cargo run -- list C G Am F 2>/dev/null

# Full list of all supported chord names
cd ~/.openclaw/workspace/skills/ascii-chord && cargo run -- all 2>/dev/null

Discovering Supported Chords

Not all chord voicings are supported. If a user asks for a chord that fails, use all to list every supported chord name and find the closest match:

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

Notes

  • Suppress build warnings with 2>/dev/null
  • Chord names are case-sensitive (Am not am, B7 not b7)
  • After first build, subsequent runs are fast (binary cached by cargo in target/)
  • Source repo: https://github.com/ascii-music/ascii_chord (MIT licensed)

版本历史

共 5 个版本

  • v2.0.4 当前
    2026-05-03 03:41 安全 安全
  • v2.0.3
    2026-03-29 11:13
  • v1.0.1
    2026-03-26 22:17
  • v1.0.4
    2026-03-18 17:58
  • v1.0.2
    2026-03-14 01:30

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,558
productivity

AgentZero

yzhong52
与 AgentZero 房产列表追踪器交互(本地 Rust/Axum 后端,地址为 http://localhost:8000)。当被要求通过 URL 添加房产列表时使用,...
★ 1 📥 976
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,643