Logo Skills Cli Sync

Skills Cli Sync

Tổ chức
laststance
skills-cli-sync

Sync skills-desktop's AGENT_DEFINITIONS and UNIVERSAL_AGENT_IDS with the upstream vercel-labs/skills CLI, then update docs and validate. Use when bumping SKILLS_CLI_VERSION, mirroring a new upstream skills-CLI release, or when the agent list / universal set drifts from upstream agents.ts.

Tổng quan

Nhà phát hànhlaststance
Kho mãskills-desktop
Tên kỹ năngskills-cli-sync
Sao
43
Bản fork
5
Tệp đi kèm
1
Giấy phépMIT
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 là Markdown thuần túy, không phải 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ộ.

  • 1 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 laststance công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Skills Cli Sync 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 thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/laststance/skills-desktop/tree/main/.claude/skills/skills-cli-sync
  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/laststance/skills-desktop.git /tmp/skills-desktop
mkdir -p .claude/skills
cp -r /tmp/skills-desktop/.claude/skills/skills-cli-sync .claude/skills/skills-cli-sync
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 Skills Cli Sync 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ự tải Skills Cli Sync 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 Skills Cli Sync không bị giới hạn ở mô hình mà kỹ năng này được viết cho. 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 kỹ năng chưa dùng không tốn chi phí.

  • Đổ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.

Skills CLI sync (AGENT_DEFINITIONS)

This app mirrors the agent list of the upstream vercel-labs/skills CLI. When upstream ships a release, AGENT_DEFINITIONS, UNIVERSAL_AGENT_IDS, and SKILLS_CLI_VERSION in apps/desktop/src/shared/constants.ts must be re-synced, the docs refreshed, and the gates re-run. This skill encodes that procedure.

The steps below are invariant — they hold for any version bump. Concrete counts and agent names belong only to the "Latest run" section at the bottom; never bake a count into a step.

Source of truth

  • Upstream: src/agents.ts (agent list) and src/types.ts (the Agent shape + home-dir helpers) in vercel-labs/skills.
  • This app: the JSDoc on AGENT_DEFINITIONS, UNIVERSAL_AGENT_IDS, and SKILLS_CLI_VERSION in apps/desktop/src/shared/constants.ts is authoritative — read it before editing. AGENTS.md → Domain Concepts → Skills CLI lists the same pointers. Don't duplicate those rules here; this skill is the procedure.

Phase 1 — Fetch the upstream agent list (no local clone)

Tags are v-prefixed (v1.5.10; bare 1.5.10 404s). Fetch the two source files at the version you're syncing to — reproducible on any machine:

bash
NEW=1.5.11   # the upstream version you are syncing to
BASE="https://raw.githubusercontent.com/vercel-labs/skills/v${NEW}"
curl -fsSL "$BASE/src/agents.ts" -o /tmp/agents.ts
curl -fsSL "$BASE/src/types.ts"  -o /tmp/types.ts

Use …/main/… instead of v${NEW} to preview the latest unreleased list.

Phase 2 — Extraction rules (getting these wrong breaks the sync silently)

  • Join on the upstream name: field — it equals the --agent flag value and this app's cliId. Not displayName. Display names can match while ids diverge (the kimi trap).
  • name: keys can be quoted / hyphenated ('kimi-code-cli', 'kiro-cli'). A naive ^\s+\w+: { regex misses them — extract with grep "name: '".
  • globalSkillsDir / skillsDir are usually computed from home-dir helper constants at the top of agents.ts (e.g. configHome=~/.config, codexHome=~/.codex, claudeHome=~/.claude, plus per-vendor homes). Resolve each to a concrete ~/…-relative path before deriving anything.
bash
grep -nE "name: '" /tmp/agents.ts   # the upstream agent identifiers (= cliId)

For each upstream agent read: name, displayName, globalSkillsDir, skillsDir, showInUniversalList. Then diff the upstream name: set against the current cliId set in AGENT_DEFINITIONS to find additions, removals, and cliId renames.

Phase 3 — The two INDEPENDENT derivation rules (do not conflate)

Rule A — installDir / scanDir (from globalSkillsDir):

  • installDir = the parent of globalSkillsDir, home-relative.
  • scanDir = installDir, except when globalSkillsDir resolves to the universal source ~/.agents/skills → scanDir diverges to the agent's own home, usually .<name>. Check the agent's docs when its own skills dir is nested: Pi keeps .pi/agent, because ~/.pi/agent/skills is its user skills dir and ~/.pi/skills is not read. This is the v0.13.0 guard: if scanDir aliased the source, the scanner would surface every shared source skill as that agent's own "valid local skill".

Rule B — UNIVERSAL_AGENT_IDS (from skillsDir):

  • An id belongs iff skillsDir === '.agents/skills' && showInUniversalList !== false.
  • Note it keys off skillsDir, not globalSkillsDir. An agent can be universal (reads ~/.agents/skills) yet keep its own globalSkillsDir (so no scanDir override) — that's the canonical proof the two rules are independent. Don't assume "universal ⇒ scanDir diverges" or vice-versa.

Phase 4 — Exclusions

Skip an upstream agent when:

  • globalSkillsDir: undefined — it can't be represented as an install path.
  • It's a showInUniversalList: false pseudo-agent (a non-real aggregate entry).
  • Its globalSkillsDir collides with another agent's dir → a scanDir clash that would double-count the shared directory.

showInUniversalList: false also excludes an otherwise-eligible agent from UNIVERSAL_AGENT_IDS.

Phase 5 — Edit apps/desktop/src/shared/constants.ts

  • Add / modify AGENT_DEFINITIONS entries (id, cliId, name, installDir, scanDir). Every field is required — no silent fallback.
  • Keep the internal id stable when only cliId changes. id is the Redux/checkbox state key; changing it drops persisted user state. (kimi kept id: 'kimi-cli' while cliId became kimi-code-cli.)
  • Display-name-only rebrand: change name only; leave id / cliId / installDir / scanDir. Then grep the renderer for the old display name and update any UI example/doc that hard-codes it (e.g. a StatusBadge JSDoc @example).
  • Update UNIVERSAL_AGENT_IDS per Phase 3 Rule B.
  • Bump SKILLS_CLI_VERSION.
  • Do not hand-edit derived values. AgentId / AGENT_IDS (z.enum) / AgentName / AGENT_ID_TO_CLI_NAME / SHARED_AGENT_PATHS all derive from AGENT_DEFINITIONS automatically.
  • The app's only CLI surface is find + add (skillsCliService). New upstream commands (run / prompt / sync / …) need no app change.

Phase 6 — Update the docs

  • AGENTS.md — SKILLS_CLI_VERSION in the Domain Concepts → Skills CLI table.
  • README.md — the "N AI Agents Supported" count, any renamed display name, and the "…and X more" tail.
  • SPEC.md — the agent table (add new rows, fix renames), every agent-count mention, then reflow: npx prettier --write SPEC.md (a wider new cliId can re-pad the whole table — that diff is expected, not churn).

Phase 7 — Validate (all must pass, in order)

bash
node .claude/skills/skills-cli-sync/reconcile-agents.mjs   # constants ↔ SPEC drift gate
npx prettier --check README.md SPEC.md AGENTS.md
pnpm validate                                              # lint + test + typecheck + dead-code
pnpm test:e2e                                              # only after validate is green

reconcile-agents.mjs (shipped beside this file) asserts every AGENT_DEFINITIONS entry has a matching SPEC row on (cliId, detection-path) and that no SPEC row references a removed cliId. It exits non-zero on drift, so it doubles as a CI / pre-PR gate.

Also confirm no stale references survive:

bash
git grep -nE "<OLD_VERSION>" -- '*.md' '*.ts'   # e.g. 1\.5\.9 — should be only intentional history
git grep -n "<old display name>" -- '*.ts' '*.tsx'

Phase 8 — Commit

One focused commit, e.g. chore: sync skills CLI agent definitions to <NEW>. Summarize in the body: agents added/removed, any id/cliId migrations, display-name rebrands, the UNIVERSAL_AGENT_IDS delta, and the version bump. Do not bump package.json version — releases are owned solely by /electron-release.


Latest run (example — point-in-time, NOT part of the procedure)

2026-10-28 · v1.7.0 → v1.7.4 (3 agents moved to the universal source)

  • No agent-list change: the upstream name: set (79) minus the app cliId set (75) is exactly the 4 standing exclusions. Zero app orphans, no id/cliId migrations, no display-name rebrands. types.ts is unchanged.
  • Install-path moves (Rule A): upstream now sets globalSkillsDir to ~/.agents/skills for codex, fx and pi. So installDir → .agents, and scanDir keeps each agent's own home: .codex, .fx, and .pi/agent (Pi's user skills dir).
  • Universal delta (Rule B): fx and pi now use skillsDir: '.agents/skills', so UNIVERSAL_AGENT_IDS 19 → 21. codex was already universal.
  • Excluded at this version: eve and promptscript (globalSkillsDir: undefined), universal (showInUniversalList: false), zenflow (dir collides with zencoder's ~/.zencoder/skills).
  • Edits: SKILLS_CLI_VERSION 1.7.0 → 1.7.4; the e2e pin (marketplace-install-regression.e2e.ts); AGENTS.md pinned-version cell and universal count; the SPEC directory diagram's Codex line. README/SPEC tables are unchanged because detection paths follow scanDir.
  • Gates: reconcile-agents.mjs clean (75/75), prettier clean, pnpm validate green (228 files / 3256 tests), pnpm test:e2e green (116 tests).

2026-08-26 JST · v1.5.18 → v1.5.23 (+4 community agents)

  • +4 agents: grok (Grok Build) and kimchi (Kimchi) from v1.5.20, minimax-code (MiniMax Code) from v1.5.22, and posit-assistant (Posit Assistant) from v1.5.23. Each keeps its own global skills directory, so installDir = scanDir; AGENT_DEFINITIONS 69 → 73.
  • No migrations/rebrands: zero app orphans; no id/cliId, path, or display-name changes to existing agents. UNIVERSAL_AGENT_IDS stays 16 because all four additions use their own skillsDir.
  • Excluded at this version: eve and promptscript (globalSkillsDir: undefined), universal (showInUniversalList: false), zenflow (dir collides with zencoder's ~/.zencoder/skills).
  • Edits: bumped SKILLS_CLI_VERSION 1.5.18 → 1.5.23; updated the e2e pin, CLAUDE.md pinned-version cell, README/SPEC agent counts and table, website metadata/copy, llms.txt, and the website's download links to the current v0.27.3 release assets.
  • Gates: reconcile-agents.mjs clean (73/73), prettier clean, pnpm validate green (180 files / 2313 tests), pnpm test:e2e green (61 tests), website lint/build green.

2026-07-16 · v1.5.13 → v1.5.18 (+1 community agent)

  • +1 agent: zcode (ZCode, added upstream in v1.5.16) — own home dir ~/.zcode/skills, so installDir = scanDir = '.zcode' (no universal-source divergence). AGENT_DEFINITIONS 68 → 69; UNIVERSAL_AGENT_IDS stays 16 (zcode's skillsDir is .zcode/skills, not .agents/skills).
  • No migrations/rebrands: zero app orphans; no id/cliId or display-name changes. Upstream types.ts only widened its own AgentName union.
  • Excluded at this version: eve and promptscript (globalSkillsDir: undefined), universal (showInUniversalList: false), zenflow (dir collides with zencoder's ~/.zencoder/skills).
  • Edits: bumped SKILLS_CLI_VERSION 1.5.13 → 1.5.18; bumped the e2e pin (marketplace-install-regression.e2e.ts literal skills@1.5.18 add … + comment); bumped the CLAUDE.md Domain-Concepts pinned-version cell; agent count 68 → 69 in README/SPEC + website copy (Hero, Features, layout, llms.txt — llms.txt was still at a stale 54).
  • Gates: reconcile-agents.mjs clean (69/69), prettier clean, pnpm validate green, pnpm test:e2e green.

2026-06-24 · v1.5.11 → v1.5.13 (version pin + excluded upstream agent)

  • No app agent-list change: upstream name: set is 72 and app cliId set stays 68. The only upstream addition since v1.5.11 that is not already mirrored is eve, which has globalSkillsDir: undefined, so Phase 4 excludes it. App orphans remained zero.
  • Unchanged derived sets: AGENT_DEFINITIONS stayed 68, UNIVERSAL_AGENT_IDS stayed 16, with no id/cliId migrations and no display-name rebrands.
  • Excluded at this version: eve and promptscript (globalSkillsDir: undefined), universal (showInUniversalList: false), zenflow (dir collides with zencoder's ~/.zencoder/skills).
  • Edits: bumped SKILLS_CLI_VERSION 1.5.11 → 1.5.13; bumped the e2e pin (marketplace-install-regression.e2e.ts literal skills@1.5.13 add … + comment); bumped the CLAUDE.md/AGENTS.md Domain-Concepts pinned-version cell; ignored local .agents/** in ESLint so repo-local skill copies do not break pnpm validate.
  • Gates: reconcile-agents.mjs clean, prettier clean, pnpm validate green, pnpm test:e2e green (60 tests).

2026-06-14 · v1.5.10 → v1.5.11 (version-only bump)

  • No agent-list change: src/agents.ts is byte-identical between v1.5.10 and v1.5.11 (diff clean), so AGENT_DEFINITIONS, UNIVERSAL_AGENT_IDS, and every doc agent-count stayed put. Drift gate confirmed: upstream name: set (71) minus app cliId set (68) = exactly the 3 standing exclusions below; zero app orphans.
  • Edits: bumped SKILLS_CLI_VERSION 1.5.10 → 1.5.11; bumped the e2e pin (marketplace-install-regression.e2e.ts literal skills@1.5.11 add … + comment); bumped the CLAUDE.md Domain-Concepts pinned-version cell.
  • Unchanged history kept verbatim: the "CLI 1.5.10" / "added in v1.5.10" comments in constants.ts and the *.test.ts files are accurate history of when kimi migrated / agents landed — not bumped.
  • Excluded at this version (still valid, agents.ts unchanged): promptscript (globalSkillsDir: undefined), universal (showInUniversalList: false), zenflow (dir collides with zencoder's ~/.zencoder/skills).
  • Gates: reconcile-agents.mjs clean, prettier clean, pnpm validate + pnpm test:e2e green.

2026-06-05 · v1.5.5 → v1.5.10 (PR #204, commit 41b455e)

  • +14 community agents: antigravity-cli, astrbot, autohand-code, inference.sh, jazz, lingma, loaf, moxby, ona, qoder-cn, reasonix, terramind, tinycloud, zed.
  • kimi migration: cliId kimi-cli → kimi-code-cli; installDir .config/agents → .agents; scanDir → .kimi. Internal id kept kimi-cli (state preservation).
  • Windsurf → Devin Desktop: display name only; the .codeium/windsurf install/scan path is unchanged (upstream CLI was not renamed).
  • Counts: AGENT_DEFINITIONS 54 → 68; UNIVERSAL_AGENT_IDS 13 → 16 (+antigravity-cli, loaf, zed).
  • scanDir-divergent at this version (Rule A exceptions): cline, dexto, kimi-code-cli, loaf, warp, zed.
  • Excluded at this version: promptscript (globalSkillsDir: undefined), universal (showInUniversalList: false), zenflow (dir collides with zencoder's ~/.zencoder/skills).
  • Gates: pnpm validate (1376 tests) + pnpm test:e2e (55 tests) green.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

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

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

Sync skills-desktop's AGENT_DEFINITIONS and UNIVERSAL_AGENT_IDS with the upstream vercel-labs/skills CLI, then update docs and validate. Use when bumping SKILLS_CLI_VERSION, mirroring a new upstream skills-CLI release, or when the agent list / universal set drifts from upstream agents.ts.

Vì sao nên dùng Skills Cli Sync 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. Skills Cli Sync 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 Skills Cli Sync trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/laststance/skills-desktop/tree/main/.claude/skills/skills-cli-sync. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành 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 Skills Cli Sync?

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.

Bạn có thể dùng Skills Cli Sync 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 Skills Cli Sync 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 Skills Cli Sync có miễn phí không?

Có. Kỹ năng này được laststance phát hành trên GitHub theo giấy phép MIT. 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 cho mô hình các công cụ mới để gọi — mã đượ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à tiêu chí của đầu ra tốt. 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 👇