peon-ping-rename
Skill này làm gì
Skill này đặt tên cho phiên hiện tại để các thông báo peon-ping và tab terminal dễ phân biệt. Skill dành cho người chạy nhiều phiên Claude Code cùng lúc.
Khi nào nên dùng
- ✓Khi bạn chạy nhiều phiên Claude Code và muốn đặt tên cho từng phiên.
- ✓Khi bạn muốn một thông báo hiển thị tên phiên rõ ràng.
- ✓Khi bạn muốn đặt lại tên phiên về chế độ tự động.
Liên kết skill
https://github.com/PeonPing/peon-ping/blob/main/skills/peon-ping-rename/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Đổi tên phiên này thành Auth Refactor để tôi có thể tìm nó trong các tab terminal.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Một hook lưu tên cho phiên này và cập nhật tiêu đề tab terminal ngay lập tức. Gọi lệnh mà không có tên sẽ đặt lại về tự động.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
peon-ping-rename
Give the current session a custom name shown in desktop notification titles and the terminal tab title.
How it works
When the user types /peon-ping-rename <name>, a UserPromptSubmit hook intercepts the command before it reaches the model:
- Extracts the session ID and name
- Writes
session_names[session_id] = nameto.state.json - Immediately updates the terminal tab title via ANSI escape sequence
- Returns confirmation (zero tokens used)
On every subsequent hook event, peon.sh reads session_names[session_id] as the highest-priority project name. Multiple tabs in the same repo each get independent names.
Usage
/peon-ping-rename Auth Refactor
/peon-ping-rename API: payments
/peon-ping-rename ← reset to auto-detect
Names are capped at 50 characters. Allowed: letters, numbers, spaces, dots, hyphens, underscores.
Manual fallback (if hook fails)
1. Get the session ID
echo "$CLAUDE_SESSION_ID"
2. Write name to state
python3 -c "
import json, os, time
state_path = os.path.expanduser('~/.claude/hooks/peon-ping/.state.json')
try:
state = json.load(open(state_path))
except:
state = {}
state.setdefault('session_names', {})['SESSION_ID_HERE'] = 'My Session Name'
json.dump(state, open(state_path, 'w'), indent=2)
"
3. Trigger a hook event to refresh the tab title
Submit any prompt — peon.sh will pick up the new name on the next UserPromptSubmit or Stop event.
Reset
/peon-ping-rename
Or remove the session ID from session_names in .state.json directly.
Priority
/peon-ping-rename > CLAUDE_SESSION_NAME env var > .peon-label file > notification_title_script > project_name_map > notification_title_override > git repo name > folder name
Câu hỏi thường gặp
Tên phiên có thể dài bao nhiêu?
Tên được giới hạn ở 50 ký tự.
Những ký tự nào được phép?
Chữ cái, chữ số, khoảng trắng, dấu chấm, dấu gạch ngang và dấu gạch dưới.
Đổi tên có tốn token của mô hình không?
Skill nói rằng hook xử lý lệnh mà không dùng token của mô hình.
Chi tiết
Mô tả gốc của tác giả
Rename the current Claude session for peon-ping notifications and terminal tab title. Use when user wants to give this session a custom name like "/peon-ping-rename Auth Refactor". Call with no argument to reset to auto-detect.
repo: PeonPing/peon-ping
Độ phổ biến
- Sao GitHub
- 5.1k
- Vị trí xếp hạng
- #15042
- Giấy phép
- MIT
- Cập nhật
- 19/10/2026
Bình luận
- …
Thêm skill từ kho mã này
peon-ping-config
5.1kGiúp agent của bạn thay đổi cài đặt âm thanh peon-ping như âm lượng, bộ âm thanh, luân phiên bộ và các nhóm âm thanh được phát.
peon-ping-log
5.1kCho phép agent của bạn ghi lại số lần chống đẩy hoặc squat trong Peon Trainer và báo lại số lần cập nhật của bạn.
peon-ping-toggle
5.1kCho phép agent của bạn tắt hoặc bật âm thanh peon-ping trong một phiên, và chỉ bạn đến công cụ cài đặt cho các thay đổi khác.
peon-ping-use
5.1kCho phép agent của bạn chọn giọng nhân vật phát cho cuộc trò chuyện hiện tại, như GLaDOS, Peon hoặc Kerrigan.
Skill tương tự
blucli
394kGiúp agent của bạn tìm, phát, tạm dừng, nhóm và chỉnh âm lượng loa Bluesound và NAD qua lệnh blu.
camsnap
394kGiúp agent của bạn chụp ảnh, quay clip ngắn hoặc lấy sự kiện chuyển động từ camera mạng và webcam nội bộ mà bạn đã thiết lập.
eightctl
394kGiúp agent của bạn kiểm tra và điều khiển thiết bị Eight Sleep pod, gồm nhiệt độ, báo thức và lịch ngủ.