← 返回 Skills 市场
yzhong52

Guitar Chord

作者 Yuchen · GitHub ↗ · v2.0.4 · MIT-0
cross-platform ✓ 安全检测通过
464
总下载
1
收藏
0
当前安装
11
版本数
在 OpenClaw 中安装
/install ascii-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...
使用说明 (SKILL.md)

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

Tool Purpose Check
cargo / Rust Build and run the CLI cargo --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 \x3Cskill_dir> && cargo run -- get \x3CCHORD> 2>/dev/null

Multiple chords side by side:

cd \x3Cskill_dir> && cargo run -- list \x3CCHORD1> \x3CCHORD2> ... 2>/dev/null

List all supported chords:

cd \x3Cskill_dir> && cargo run -- all 2>/dev/null

Replace \x3Cskill_dir> 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)
安全使用建议
This skill is a coherent, self-contained Rust CLI for rendering chord diagrams. Before installing: (1) be aware building with cargo will download dependencies from crates.io and will compile code on your machine; (2) installing rustup will add ~/.cargo and ~/.rustup and may modify your PATH; (3) the init script writes a .gitignore and performs a local cargo build that creates a target/ directory inside the skill folder; (4) review the bundled source if you want extra assurance (it's MIT/Apache-2.0 licensed and transparent here). If you are unsure, run the init/build in an isolated environment (container or VM) or inspect the files locally before executing scripts.
功能分析
Type: OpenClaw Skill Name: ascii-chord Version: 2.0.4 The skill is a legitimate utility for displaying ASCII guitar chord diagrams. It bundles the full source code of the 'ascii_chord' Rust project and includes a standard initialization script (scripts/init.sh) that pre-builds the binary using cargo. The Rust code (src/chord.rs, src/chords.rs) and the SKILL.md instructions are consistent with the stated purpose, showing no signs of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name/description, declared requirement (cargo), and included Rust source all align: building a local Rust CLI is required and appropriate for rendering ASCII chord diagrams.
Instruction Scope
SKILL.md instructs only to build/run the bundled CLI and to run a post-install init script that writes a .gitignore and pre-warms a cargo build. The CLI code only prints diagrams and optionally writes an all_supported_chords.md when invoked with --save. No instructions ask for unrelated files, secrets, or external endpoints.
Install Mechanism
There is a post-install shell step (scripts/init.sh) that runs cargo build --release in the skill directory. This is local source build (no arbitrary download URL), but cargo will fetch dependencies from crates.io during build and will compile code on the machine. The SKILL.md also tells users how to install rustup which modifies ~/.cargo and ~/.rustup and may update PATH. These are expected for a Rust project but involve network fetches and changes to the user's home environment.
Credentials
The skill requests no environment variables or credentials. The only side-effects are filesystem writes limited to the skill directory (target/) and the optional all_supported_chords.md; rustup/rust toolchain installation will add ~/.cargo and ~/.rustup which is expected.
Persistence & Privilege
always:false and the skill does not attempt to modify other skills or global agent settings. It creates /target/ build artifacts in its own directory, may create .gitignore in the skill directory, and can write an all_supported_chords.md when asked — these are within the skill's scope.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ascii-chord
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ascii-chord 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.4
Rename skill display name from ascii-chord to guitar-chord
v2.0.3
Add scripts/init.sh: sets up .gitignore for /target and pre-warms cargo build cache
v2.0.2
Add diagram legend, first-build timing warning, chord discovery tip, fix repo URL to ascii-music/ascii_chord
v2.0.1
Source now bundled with skill — no runtime git clone needed; removed git dependency
v2.0.0
SKILL.md now co-located in GitHub repo (yzhong52/ascii_chord)
v1.0.4
Update repo link to new organization: github.com/ascii-music/ascii_chord
v1.0.3
Bundle pre-compiled macOS arm64 binary; pin to commit 197a4703; remove external git clone and cargo build requirement to eliminate false-positive VirusTotal flag
v1.0.2
Remove curl|sh pattern to fix VirusTotal false positive
v1.1.0
Declare required bins (git, cargo), document rustup side effects on home dir, add third-party code disclosure and repo review guidance — addresses ClawHub review feedback
v1.0.1
Declare required tools (git + cargo/Rust), clarify repo is MIT licensed and authored by the skill publisher, add preflight check for existing clone
v1.0.0
Initial release — show ASCII guitar chord diagrams using Yz's ascii_chord Rust CLI
元数据
Slug ascii-chord
版本 2.0.4
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 11
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 464 次。

如何安装 Guitar Chord?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ascii-chord」即可一键安装,无需额外配置。

Guitar Chord 是免费的吗?

是的,Guitar Chord 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Guitar Chord 支持哪些平台?

Guitar Chord 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Guitar Chord?

由 Yuchen(@yzhong52)开发并维护,当前版本 v2.0.4。

💬 留言讨论