Chuyển đến nội dung
Skillpedia
Agent48k · #4464

distribute-skill-to-all-agents

Skill này làm gì

Công cụ này sao chép một skill (một bộ hướng dẫn cho AI) vào thư mục skill của tất cả các agent AI của bạn. Điều này đảm bảo mọi agent đều có thể dùng cùng một skill.

Khi nào nên dùng

  • ✓Khi bạn muốn một skill hoạt động trên tất cả các agent của mình.
  • ✓Khi bạn cập nhật một skill và muốn thay đổi đến được mọi agent.
  • ✓Khi bạn thêm một agent mới và muốn cấp cho nó các skill giống những agent khác.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/distribute-skill-to-all-agents/SKILL.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/distribute-skill-to-all-agents/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Sao chép skill “analyze_log” cho tất cả các agent của tôi.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ trước tiên lưu skill vào một vị trí chính. Sau đó, nó kiểm tra xem các agent khác có được thiết lập để dùng vị trí chính đó không (thường qua các đường tắt gọi là symlink). Nếu một agent không dùng đường tắt (như Hermes), công cụ sẽ sao chép skill thủ công vào agent đó. Cuối cùng, nó kiểm tra xem tất cả các bản sao có giống hệt nhau khô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.

Distribute a Skill Across All Agents

When to Use

  • Use when a skill should be made available across multiple local agent skill folders.
  • Use when the user asks to sync or distribute skill updates to other agents.

The user has 4 agent skill locations on his MacBook. A skill must exist in each (or via symlink) to be discoverable by every agent.

The 4 Canonical Locations

Agent Skills Folder Notes
Codex / OpenAI Agents ~/.agents/skills/ Canonical — author skills here first
Claude Code ~/.claude/skills/ Symlink → ~/.agents/skills/ — writing to .agents/skills automatically covers Claude
Pi Agent ~/.pi/agent/skills/ Symlink → ~/.agents/skills/ — auto-covered. (Path is /agent/ nested — NOT ~/.pi/skills/)
Hermes Agent ~/.hermes/skills/ Independent copy — the only one needing a manual copy

Workflow

  1. Author the skill in ~/.agents/skills/<skill-name>/SKILL.md (canonical). Follow effective-agent-skills SKILL.md guidance.
  2. Verify the .claude symlink is intact (one-time check):
    ls -la ~/.claude/skills
    # Expect: ~/.claude/skills -> ~/.agents/skills
    
    If it's a real directory instead of a symlink, the user has diverged copies — ask before touching.
  3. Copy to .hermes only (.claude and .pi are symlinks — already covered):
    SKILL=<skill-name>
    cp -r ~/.agents/skills/$SKILL ~/.hermes/skills/
    
  4. Verify all 4 locations show identical byte counts:
    for p in ~/.agents/skills/$SKILL ~/.claude/skills/$SKILL ~/.pi/agent/skills/$SKILL ~/.hermes/skills/$SKILL; do
      echo "$p: $(wc -c < $p/SKILL.md) bytes"
    done
    
    All four numbers must match. If .claude or .pi shows a different byte count, that symlink is broken — investigate before proceeding.

Updating an Existing Distributed Skill

Same flow — re-copy from ~/.agents/skills/ to .hermes/skills/. The .claude and .pi symlinks update automatically. cp -r overwrites by default; use rsync -a --delete if the skill folder has nested files that may have been removed:

rsync -a --delete ~/.agents/skills/$SKILL/ ~/.hermes/skills/$SKILL/

Pitfalls

  • ~/.pi/skills/ is the wrong location. Pi Agent loads from ~/.pi/agent/skills/ only. A skill placed in ~/.pi/skills/ is invisible. If you find skills already there, they're orphans — confirm with the user before deleting.
  • ~/.claude/skills is a symlink, not a folder. cp -r ~/.agents/skills/foo ~/.claude/skills/ will error with "are identical". Skip the explicit Claude copy.
  • Project-local skills exist too — ./.pi/agent/skills/ (or .pi/skills/) inside a repo overrides the global one on collision (later-discovered wins). This skill only handles GLOBAL distribution.
  • .pi/agent/skills is a symlink → .agents/skills. Don't cp into it (errors "are identical"); it auto-syncs. Only .hermes/skills is an independent copy — don't unilaterally consolidate Hermes into a symlink unless the user asks.
  • Hermes snapshots skills at session start. A newly-distributed skill won't appear inside a running Hermes session until restart (it works fine for future sessions and for the other 3 agents immediately).
  • Filename casing matters on case-sensitive volumes. SKILL.md must be uppercase.

When NOT to Use This Skill

  • Skill is project-specific → put it in ./.claude/skills/, ./.pi/agent/skills/, etc. inside the repo, not globally.
  • Editing one agent's skill only (e.g. a Hermes-only workflow) → patch that file directly, don't propagate.
  • Removing a skill globally is destructive. First show the exact skill directories that would be removed, confirm with the user, then use the user's preferred safe deletion method for ~/.agents/skills/ and ~/.hermes/skills/.

Limitations

  • Adapted from davidondrej/skills; verify local paths, tools, credentials, and agent features before acting.
  • For commands, remote access, scheduling, browser automation, or file-changing workflows, get explicit user approval and confirm the target environment first.
Câu hỏi thường gặp

“Agent” và “skill” là gì?

Agent là các chương trình AI có thể thực hiện công việc. Skill là các bộ hướng dẫn dạy agent cách làm việc mới.

Vì sao tôi cần sao chép skill sang mọi agent?

Mỗi agent có thể tìm skill trong thư mục riêng của nó. Để một agent “thấy” skill mới, skill cần nằm đúng trong thư mục của agent đó.

Điều gì xảy ra nếu tôi không dùng công cụ này?

Bạn sẽ phải tự sao chép từng skill vào thư mục của mỗi agent, việc này tốn thời gian và dễ sai sót.

Chi tiết

Mô tả gốc của tác giả

Distribute a skill across configured agent skill folders while respecting local symlink layouts.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4464
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự