Logo Sync Public Skills

Sync Public Skills

Cộng đồng
aktsmm
sync-public-skills

Synchronize curated Agent Skills across approved repositories with policy checks and verification. Use when publishing or updating managed skills, validating a repository mirror, or selecting a safe sync scope. Triggers on "sync public skills", "publish skills", "public 公開", "skill sync", "repository mirror".

Tổng quan

Nhà phát hànhaktsmm
Kho mãAgent-Skills
Tên kỹ năngsync-public-skills
Sao
27
Bản fork
5
Tệp đi kèm
2
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được aktsmm công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Sync Public Skills trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/aktsmm/Agent-Skills/tree/master/sync-public-skills
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aktsmm/Agent-Skills.git /tmp/Agent-Skills
mkdir -p .claude/skills
cp -r /tmp/Agent-Skills/sync-public-skills .claude/skills/sync-public-skills
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Sync Public Skills trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Sync Public Skills ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Sync Public Skills với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

sync-public-skills

private skill repo(SSOT)から public / EMU private / GIM internal へ、行き先ごとに安全な skill だけを同期する。自己完結 SKILL。

Scope

  • 対象 source: private repo の .github/skills/<skill>/(native skill)。copilot-skills/{skills,m-skills}/ は private inventory とし、public へ同期しない
  • 公開先: public skill repo, EMU private repo, GIM internal repo
  • 配布(public/private → 実行環境 ~/.copilot)は Agent Skills Ninja の担当。この SKILL は repo への同期 / 公開だけを扱う

Environment

  • SYNC_PUBLIC_SKILLS_PRIVATE_REPO: private repo ルート
  • SYNC_PUBLIC_SKILLS_PUBLIC_REPO: public repo ルート
  • SYNC_PUBLIC_SKILLS_SCRIPT: Sync-AndPush.ps1 のフルパス
  • SYNC_INTERNAL_SKILLS_EMU_REPO: EMU private repo
  • SYNC_INTERNAL_SKILLS_GIM_REPO: GIM internal repo
  • いずれも Process scope 優先、無ければ User scope で解決する([System.Environment]::GetEnvironmentVariable($name,'User'))
  • 本文の scripts/...(Commit-DirtySkills.ps1、skill-distribution.json、Sync-AndPush.ps1 等)は skill 同梱ではなく private repo ルート相対の外部依存。存在しなければ実行せず停止する

Mode

  • 既定は safe-auto: この skill が明示実行された場合に限り、監査 → 行き先別に安全な skill だけ sync → push まで進める
  • review-only / dry-run / プレビュー 指定時は、候補・監査・予定差分・commit message を提示して停止する
  • Explicit requests approve their named scope and known destinations. Display remotes/visibility; confirm new or unclear destinations, visibility/privileges, destructive deletion or sensitive decisions. "All" adds no destinations.
  • EMU/GIM require an explicit destination request and their sync flags; known configuration alone is not approval. Safe-auto all includes confirming/pushing its own allowed intake commits to the verified private origin before distribution, never unrelated queued commits.
  • all 指定時は、primary だけでなく private repo の未コミット skill 差分も対象にする(下記 All Mode)

All Mode(all 指定時の dirty 取り込み)

  • まず scripts/Commit-DirtySkills.ps1 をdry-runし、skill contentとNot Doneを確認する。意味・scopeが明確な場合だけ -Applyでskill単位にcommitする
  • 対象は skill content のみ: .github/skills/<skill>/** と copilot-skills/skills/<skill>/**。copilot-skills/m-skills/<skill>/** は legacy/手動 opt-in 時だけ対象にする。.skill-meta.json と shared file(README / assets)は除外する
  • .skill-meta.json が未追跡で dirty に出たら local-only metadata とみなし、stage せず削除してよい。tracked なら自動削除せず停止する
  • skill 以外の dirty(scripts、設定、無関係ファイル、/memories/**)はコミットしない。混在すれば stage せず Not Done に列挙する
  • Commit by owning skill; group its related small edits and relevant formatting together. Never mix unrelated skills, shared files or other dirty paths, and do not require separate pushes for one bounded improvement.
  • コミット後に各 skill の public / EMU / GIM 振り分けを監査する。public-safe だけ public へ、internal-only / private-only は EMU/GIM へ振り、public へ漏らさない
  • secret / 顧客名 / 個人メール / 具体 TPID / ローカル絶対パスを含む skill は、コミットは可だが public sync から除外する。一般化できないものは EMU/GIM 側も停止して確認する
  • Hold only the affected skill when scope is unclear, deletion is destructive, or privileges/publication/default behavior change; bounded authoring within approved scope needs no repeated approval.

Gates(公開前に必ず確認)

  • public / internal / denied / copilot-deniedの分類SSOTは scripts/skill-distribution.json。publicCopilotSkills は空を維持し、promptやSKILL本文へ現在の一覧を複製しない
  • 公開承認が未取得・不明なら、Askツールで対象・理由・監査に基づく推奨方針・公開/保留/非公開の選択肢・既存公開への影響を示して確認する。ツール不在・無回答時は未承認の公開と影響する同期を止め、保留を永久的なdenyへ変換しない。
  • 既存公開Skillの統合・改名・内容変更でも、承認待ちだけを理由に publicSkills から外す、deniedSkills に入れる、公開版を削除する操作は禁止。公開済み版を維持し未承認の更新は止める。選択的保留をrunnerが保証できなければ影響する同期を停止する。実漏洩は別途incident recoveryへ進む。
  • dirty は sync 必要性ではなく、未確定 authoring の gate として扱う。通常 sync の要否は private source path と public / EMU / GIM destination path の content diff で判定する。content diff は tracked file を基準にし、raw な filesystem hash 比較だけで判断しない。両 repo で untracked な build 生成物(__pycache__/*.pyc 等)が phantom diff として出て、pending 集合が実際の倍近くに見える。候補が出たら git ls-files で tracked かどうかを確認してから対象に含める
  • 実行前に Mode / Selected Skills / 選択外の public diff を示す。対象が明示されていれば primary-only、all / broad なら broad とし、会話の流れだけで primary を推測しない
  • primary が明示されている場合、既定の確認範囲は primary とその同期経路に限定する。全 skill 棚卸し、全 duplicate、全 copilot-skills license audit は all / broad / audit / 棚卸し が明示された場合だけ行う
  • private-only / internal-only / MS 社内向け skill は public sync から除外する。社内限定は EMU private repo や GIM internal repo 経路へ逃がす
  • .skill-meta.json は local-only metadata として、dirty 判定 / stage / push / public diff から除外する
  • shared file(.github/skills/README.md、assets/**、自動生成の .github/skills/LICENSE)は skill commit と分離する。broad sync 後に LICENSE だけ generated drift が残ったら内容を確認し、意図どおりなら sync/index commit へ分ける
  • sync-only 実行中は README / assets / index / SKILL 本文を編集しない
  • broad の前に、public にだけある assets の削除予定を確認する。README が参照する asset は削除せず、private source へ戻すか、参照ごと廃止するかを確認する
  • public safety audit: 想定外の skill 漏れ込みや、想定外の削除が出たら停止して原因を確認する
  • Stop for ambiguous remotes, unconfirmed selected content, unexpected deletion or audit failure. Complete explicitly authorized all-mode intake/private push before distribution; snapshot primary-only rejects selected dirty/unpushed content. Preserve unrelated dirty; broad/all retains branch/clean/current/classification.
  • 手動コピーや一時 sync script を作らず、正式 runner の Sync-AndPush.ps1 とその scope parameter を使う
  • secret / 顧客情報 / 個人メール / 具体 TPID / ローカル絶対パスを public にも EMU にも入れない。例は placeholder にする

Destination Audits and Gates

Destination 別の判定(公開可否 / 除外リスト / repo visibility / sensitive scan)はこの SKILL が決める。詳細手順と既定リストは references/instructions/audits-and-gates.md。

  • Runner capability gate: relaxed primary-only requires committed audited-SHA/origin, same-SHA policy, scoped audits, source preservation and public tree/scope checks. Local drafts are not support. Otherwise use no new flags/relaxation and hand off the update; legacy broad may retain its existing full gates.
  • New Skill Classification Gate: with that runner, primary-only audits selected skills and defers unselected dirty/unknowns without copying them; broad/all retains whole-repo classification. Legacy runners retain their existing stop conditions.
  • Agent Discovery Gate: ask classification only for an unknown selected skill. Never infer public permission or use -AllowUnknownSkills as a bypass. "Not this run" excludes that skill temporarily; it is neither permanent deny nor publication approval.
  • Copilot-Skills Private Inventory Gate: .copilot 由来ミラーは license に関係なく public 対象外とし、private repo 内だけに保持する
  • EMU Private Sync Gate: visibility PRIVATE/INTERNAL 確認、secret 類を placeholder 化
  • GIM Internal Sync Gate: org-owned internal へ MS 社内向け skill を集約。既定 internal セット SSOT
  • Incident Recovery: prevention gate を抜けて public へ漏れた場合の復旧(filter-repo の限界、GitHub Sensitive Data Removal 申請、fork purge、rename vs delete、robocopy move の罠)は references の Incident Recovery 節を参照

Sync Strategy

  • 今回同期する明示 skill を primary とする
  • Capable primary-only pins selected native content/config with -PrimarySkills, -SourceCommit, -ExpectedSourceOrigin; unselected/shared/inventory/orphan paths remain untouched.
  • 対象 skill が明示されている場合は、その skill の readiness、source/destination diff、漏れ込みだけを先に確認する。既定は primary-only とする
  • Capability-verified snapshots reject selected/config dirty or unpushed commits, but allow detached/behind original sources with unrelated dirty. Legacy primary/broad retains master/clean/current gates; never apply snapshot exceptions to it.
  • Review the whole ahead range before a separate authorized private push; integrate divergence before push and refresh pins. Read-only primary never pushes private authoring; zero committed diff means no sync.
  • all 指定時は unselected dirty を放置せず、All Mode で skill 単位にコミットしてから sync する
  • For capability-verified primary-only, audit/pin remote blobs/config, re-audit after advancement, and use matching code from a clean audited checkout when needed; temporarily redirect Process source env and restore finally. Legacy cannot promise SHA-bound execution and must not simulate it.
  • primary-only では他 skill directory の削除、shared file 更新、broad 一括削除ロジックを使わない。public / internal diff が selected primary destination path だけであることを検証する
  • Capability-verified primary-only requires pre-push public index/commit identity and whole-commit literal scope after exclusions. Reject transformation/leakage without retrying. Legacy keeps its existing verification but is insufficient for this new pre-push guarantee; use the update handoff when that guarantee is required.

Workflow

  1. private / public / script、必要なら EMU / GIM repo を解決し、primary・branch / remote・ahead/behind・dirty 状態を確認する
  2. Check capabilities and selected readiness/classification/content diff. Preview read-only first with the bundled scripts/Preview-SyncDiff.ps1 (pending diff per public-safe skill from tracked blobs, leaks, stale directories, unclassified skills); it is skill-bundled, unlike the private-repo-root scripts. Only capable primary-only defers unselected authoring; legacy/broad/all retains full stop gates. Never skip selected license, secret, deletion or mirror checks.
  3. all 指定時は、Commit-DirtySkills.ps1のdry-run→-Applyでskill単位にcommitする。skill以外のdirtyはNot Doneに残し、同期scriptはprivate dirtyを暗黙commitしない
    • In safe-auto all, verify private origin/visibility and the entire ahead range, isolate unrelated dirty, integrate behind/divergence, validate and push only the authorized intake commits before sync. If isolation or scope cannot be established, stop that pre-step; never let -SkipDevPush hide pending commits.
    • Legacy/broad distribution must execute from a verified clean/current checkout with its Process source env temporarily aligned and restored afterward; otherwise hold distribution, not unrelated authoring.
  4. safe path を選ぶ
    • legacy primary-only: retain the old gates or hand off the runner update when relaxed behavior is required; never substitute broad to bypass a selected-scope stop.
    • capability-verified primary-only: Sync-AndPush.ps1 -PrimarySkills <skill-name...> -SourceCommit <audited-full-sha> -ExpectedSourceOrigin <approved-origin-url> -Message "sync: <skill summary>" -SkipDevPush
    • broad: Sync-AndPush.ps1 -Message "sync: <summary>" -SkipDevPush -ExcludeCopilotSkills <監査で確定した除外名>
    • EMU private: Sync-AndPush.ps1 -SyncEmu [-EmuDryRun]
    • GIM internal: Sync-AndPush.ps1 -SyncInternal [-InternalDryRun]
  5. Confirm only the approved destination set changed. Primary-only never pushes private source; any separately requested private push must have a scoped ahead range, clean execution checkout and integrated remote updates.
  6. Git の master = origin/master だけで完了としない。publicはlocal source/destination hashとremote到達を確認し、GIM/EMUはremote treeのpath集合とblob SHAを確認する。Missing / Mismatch / Extra = 0になるまで完了扱いにしない

Gotchas

  • Verification cost: measured on the sync suite, fixture rebuilds and pwsh-spawning integration tests dominate (about 100s for 42 tests); isolation and fetch cost seconds. For small skill edits run the targeted checks plus Invoke-Pester -ExcludeTag Integration, and run the full suite once before committing runner/backend changes. Call Update-PublicSkillsReadme.ps1 -Check once; it can leave a stale non-zero $LASTEXITCODE, so reset it before reuse.
  • Formatter drift: relevant alignment belongs with the owning skill's bounded change; unrelated whitespace drift is a separate normalization change after verification. Do not blanket-stage other authoring or require a separate commit for every formatting line.
  • Push rejected / divergence: push前にfetchしてahead/behindを再計算する。双方にcommitがあれば変更pathの重複を調べ、競合がなければnormal mergeで同期する。stale tracking refのままrebaseやpushへ進まない
  • Public README stale stop: right after skills are added or removed, broad sync stops at the README freshness gate (Public Skills README is stale). Run Update-PublicSkillsReadme.ps1, review the generated rows, commit it as a separate index commit and push, then rerun the same command; the runner publishes only once. Reset $global:LASTEXITCODE first.
  • Unclassified count: the runner exits 2 while any skill is unclassified and has no override. When counting by script, treat internalSkills as objects (name / audience / internalOnly), not strings, or already classified skills are miscounted as unknown. Classify in scripts/skill-distribution.json, keep the lists sorted, and commit it before syncing.
  • Public checkout behind: public側の手元checkoutがremoteより遅れてscriptが止まったら、cleanかつahead 0を確認してgit pull --ff-onlyで最新化し、同じ引数で再実行する。dirty・ahead・divergenceがあれば停止する
  • HEAD.lock rename failure: 同じ失敗が2回続いたらnで停止し、HEAD・status・diff・rebase metadata・lock所有を確認する。未commit変更を保護し、reset --hardやlock一括削除はしない。HEADが不変でindex/worktreeだけがfetched remoteと一致すると証明できる場合だけ対象をHEADへ戻し、HEADをdetachしないverified mergeへ切り替える
  • Git Data API transient failure: blob/tree/commit/ref APIは共通retryと空SHA fail-fastを通す。ref更新後にremote treeを再取得し、stale path削除と完全一致を確認する
  • Internal full mirror only: internal subset指定は未選択Skillを削除し得るため拒否する。distribution configの全集合だけをdesired setとして使う
  • Skill rename: フォルダ名と name、distribution config、README / LICENSE index を同じ変更で揃え、旧フォルダを消す broad sync で反映する(primary-only は旧フォルダを消さない)。配布先でインストール済みの旧名コピーは更新で解決できず保留・要修復になり得るため、完了報告で新名の再インストールと旧フォルダ削除を案内する
  • All Mode rollback: tracked metadata、cross-root rename、commit失敗で停止する。commit途中の失敗は元HEADへ戻し、差分をunstagedで保持する

Report

  • Summary / Primary / Path Chosen / Audit / Private Sync / EMU / GIM / Public Sync / Verify / Not Done / Next Suggestions
  • List up to three read-only candidates from Git state/committed differences: dirty -> Retro; pending -> private range review; public-safe gap -> separately requested sync. Honor holds/visibility; no unknown/private/internal/denied public proposals, extra mutations or unsolicited full audits.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Sync Public Skills làm được gì?

Synchronize curated Agent Skills across approved repositories with policy checks and verification. Use when publishing or updating managed skills, validating a repository mirror, or selecting a safe sync scope. Triggers on "sync public skills", "publish skills", "public 公開", "skill sync", "repository mirror".

Vì sao nên dùng Sync Public Skills trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Sync Public Skills là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Sync Public Skills trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/aktsmm/Agent-Skills/tree/master/sync-public-skills. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Sync Public Skills?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Sync Public Skills với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Sync Public Skills với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Sync Public Skills có miễn phí không?

Kỹ năng này được aktsmm phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇