跳到正文
Skillpedia
其他5.1k · #15040

peon-ping-config

它能做什么

它编辑 peon-ping 配置文件,修改音量、当前使用的声音包、声音包轮换和声音类别。适合在 Claude Code 中使用 peon-ping 声音提醒的人。

适用场景

  • ✓当你想调整 peon-ping 声音的音量时。
  • ✓当你想让 peon-ping 轮换使用多个声音包时。
  • ✓当你想开启或关闭某些声音类别时。

技能链接

https://github.com/PeonPing/peon-ping/blob/main/skills/peon-ping-config/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PeonPing/peon-ping/blob/main/skills/peon-ping-config/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把 peon-ping 的音量调到 30%,并在 peon 和 glados 两个声音包之间轮换。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体打开 peon-ping 配置文件,只修改你指定的设置,其余保持不变。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

peon-ping-config

Update peon-ping configuration settings.

Config location

The config file is at ${CLAUDE_CONFIG_DIR:-$HOME/.claude}/hooks/peon-ping/config.json.

Available settings

  • volume (number, 0.0–1.0): Sound volume
  • default_pack (string): Current sound pack name (e.g. "peon", "sc_kerrigan", "glados"). Legacy key active_pack is also accepted as a fallback.
  • enabled (boolean): Master on/off switch
  • pack_rotation (array of strings): List of packs to rotate through per session. Empty [] uses default_pack only.
  • pack_rotation_mode (string): "random" (default) picks a random pack each session. "round-robin" cycles through in order. "session_override" uses explicit per-session assignments from /peon-ping-use; invalid or missing packs fall back to default_pack and the stale assignment is removed. Legacy value "agentskill" is accepted as an alias.
  • categories (object): Toggle individual CESP sound categories:
    • session.start, task.acknowledge, task.complete, task.error, input.required, resource.limit, user.spam — each a boolean
  • disabled_sounds (object): Disable specific sound files within a pack, keyed by pack name → category → array of filenames (basenames). Example:
    "disabled_sounds": {
      "peon": { "session.start": ["Hello1.wav"] }
    }
    
    If every sound in a category is listed, that category stays silent. Prefer the CLI:
    peon sounds list [pack]
    peon sounds disable <category> <file> [--pack=<name>]
    peon sounds enable  <category> <file> [--pack=<name>]
    
  • annoyed_threshold (number): How many rapid prompts trigger user.spam sounds
  • annoyed_window_seconds (number): Time window for the annoyed threshold
  • silent_window_seconds (number): Suppress task.complete sounds for tasks shorter than this many seconds
  • session_ttl_days (number, default: 7): Expire stale per-session pack assignments older than N days (when using session_override mode)
  • desktop_notifications (boolean): Toggle notification popups independently from sounds (default: true)
  • use_sound_effects_device (boolean): Route audio through macOS Sound Effects device (true) or default output via afplay (false). Only affects macOS. Default: true

How to update

  1. Read the config file using the Read tool
  2. Edit the relevant field(s) using the Edit tool
  3. Confirm the change to the user

Common Configuration Examples

Disable desktop notification popups but keep sounds

User request: "Disable desktop notifications"

Action: Set desktop_notifications: false in config

Result:

  • ✅ Sounds continue playing (voice reminders)
  • ❌ Desktop notification popups suppressed
  • ✅ Mobile notifications unaffected (separate toggle)

Alternative CLI command:

peon notifications off
# or
peon popups off

Adjust volume

User request: "Set volume to 30%"

Action: Set volume: 0.3 in config

Enable round-robin pack rotation

User request: "Enable round-robin pack rotation with peon and glados"

Action: Set:

{
  "pack_rotation": ["peon", "glados"],
  "pack_rotation_mode": "round-robin"
}

Directory pack bindings

Permanently associate a sound pack with a working directory so every session in that directory uses the right pack automatically. Uses the path_rules config key (array of { "pattern": "<glob>", "pack": "<name>" } objects).

CLI commands

# Bind a pack to the current directory
peon packs bind <pack>
# e.g. peon packs bind glados
# → bound glados to /Users/dan/Frontend

# Bind with a custom glob pattern (matches any dir with that name)
peon packs bind <pack> --pattern "*/Frontend/*"

# Auto-download a missing pack and bind it
peon packs bind <pack> --install

# Remove binding for the current directory
peon packs unbind

# Remove a specific pattern binding
peon packs unbind --pattern "*/Frontend/*"

# List all bindings (* marks rules matching current directory)
peon packs bindings

Manual config

The path_rules array in config.json can also be edited directly:

{
  "path_rules": [
    { "pattern": "/Users/dan/Frontend/*", "pack": "glados" },
    { "pattern": "*/backend/*", "pack": "sc_kerrigan" }
  ]
}

Patterns use Python fnmatch glob syntax. First matching rule wins. Path rules override default_pack and pack_rotation but are overridden by session_override assignments.

List available packs

To

常见问题

peon-ping 的配置保存在哪里?

保存在 Claude 配置目录下 peon-ping hooks 文件夹中的 config.json 文件里。

几种轮换模式有什么不同?

random 每个会话随机选择一个声音包,round-robin 按顺序循环使用声音包,session override 则使用你为每个会话指定的声音包。

我能隐藏桌面弹窗但保留声音吗?

可以。该技能建议把桌面通知设为关闭,这样声音仍会播放。

详情

作者的原始描述

Update peon-ping configuration — volume, pack rotation, categories, active pack, and other settings. Use when user wants to change peon-ping settings like volume, enable round-robin, add packs to rotation, toggle sound categories, or adjust any config.

repo: PeonPing/peon-ping

热度

GitHub 星标
5.1k
排名
#15040
许可证
MIT
更新时间
2026/10/19

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能