skills-cn 1.4.9 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/cli.mjs +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
## 特性
|
|
15
15
|
|
|
16
|
-
- 🚀 **GitHub 加速**:使用
|
|
16
|
+
- 🚀 **GitHub 加速**:使用 kkgithub.com 和 gh-proxy.org 代理,解决中国大陆访问 GitHub 网络问题
|
|
17
17
|
- 📦 **一键安装**:支持多种来源格式安装 skills
|
|
18
18
|
- 🔄 **自动更新**:check 和 update 命令方便管理已安装的 skills
|
|
19
19
|
- 🌐 **多 Agent 支持**:支持 46+ 种主流 Coding Agent
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
|
|
27
27
|
### 解决方案
|
|
28
28
|
|
|
29
|
-
本项目保留 [vercel-labs/skills](https://github.com/vercel-labs/skills) 原版的高质量 skills,通过 `
|
|
29
|
+
本项目保留 [vercel-labs/skills](https://github.com/vercel-labs/skills) 原版的高质量 skills,通过 `kkgithub.com` 和 `gh-proxy.org` 代理实现 GitHub 访问加速,让中国大陆用户也能流畅地安装和使用优质 skills。
|
|
30
30
|
|
|
31
31
|
### 与原版的区别
|
|
32
32
|
|
|
33
33
|
| 对比项 | vercel-labs/skills | skills-cn |
|
|
34
34
|
| ------ | ----------------- | --------- |
|
|
35
|
-
| GitHub 访问 | 直连(国内缓慢/失败) |
|
|
35
|
+
| GitHub 访问 | 直连(国内缓慢/失败) | kkgithub.com + gh-proxy.org 加速 |
|
|
36
36
|
| skills 来源 | 官方高质量仓库 | 官方高质量仓库 |
|
|
37
37
|
| CLI 命令 | `npx skills` | `npx skills-cn` |
|
|
38
38
|
| 维护更新 | Vercel 官方 | 社区维护 |
|
|
@@ -434,8 +434,8 @@ Skills 遵循共享的 [Agent Skills 规范](https://agentskills.io),因此在
|
|
|
434
434
|
| `INSTALL_INTERNAL_SKILLS` | 设为 `1` 或 `true` 以显示和安装标记为 `internal: true` 的 skills |
|
|
435
435
|
| `DISABLE_TELEMETRY` | 设为 `1` 禁用匿名使用量遥测 |
|
|
436
436
|
| `DO_NOT_TRACK` | 禁用遥测的替代方式 |
|
|
437
|
-
| `GITHUB_PROXY_URL` | 自定义 GitHub 代理 URL(默认:`https://
|
|
438
|
-
| `GITHUB_RAW_PROXY_URL` | 自定义 GitHub raw 代理 URL(默认:`https://
|
|
437
|
+
| `GITHUB_PROXY_URL` | 自定义 GitHub 代理 URL(默认:`https://kkgithub.com`) |
|
|
438
|
+
| `GITHUB_RAW_PROXY_URL` | 自定义 GitHub raw 代理 URL(默认:`https://gh-proxy.org`) |
|
|
439
439
|
| `GITHUB_API_PROXY_URL` | 自定义 GitHub API 代理 URL(默认:`https://api.bgithub.com`) |
|
|
440
440
|
|
|
441
441
|
```bash
|
|
@@ -483,7 +483,7 @@ CI 环境中会自动禁用遥测。
|
|
|
483
483
|
|
|
484
484
|
## 致谢
|
|
485
485
|
|
|
486
|
-
本项目基于 [vercel-labs/skills](https://github.com/vercel-labs/skills) 开发,专门为解决中国大陆用户访问 GitHub 的网络问题而添加了
|
|
486
|
+
本项目基于 [vercel-labs/skills](https://github.com/vercel-labs/skills) 开发,专门为解决中国大陆用户访问 GitHub 的网络问题而添加了 kkgithub.com 和 gh-proxy.org 代理支持。
|
|
487
487
|
|
|
488
488
|
## 许可证
|
|
489
489
|
|
package/dist/cli.mjs
CHANGED
|
@@ -19,12 +19,12 @@ import { createHash } from "crypto";
|
|
|
19
19
|
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
20
20
|
const AGENTS_DIR$2 = ".agents";
|
|
21
21
|
const SKILLS_SUBDIR = "skills";
|
|
22
|
-
const GITHUB_PROXY_BASE = process.env.GITHUB_PROXY_URL || "https://
|
|
23
|
-
const GITHUB_RAW_PROXY = process.env.GITHUB_RAW_PROXY_URL || "https://
|
|
24
|
-
const GITHUB_API_PROXY = process.env.GITHUB_API_PROXY_URL || "https://
|
|
22
|
+
const GITHUB_PROXY_BASE = process.env.GITHUB_PROXY_URL || "https://kkgithub.com";
|
|
23
|
+
const GITHUB_RAW_PROXY = process.env.GITHUB_RAW_PROXY_URL || "https://gh-proxy.org";
|
|
24
|
+
const GITHUB_API_PROXY = process.env.GITHUB_API_PROXY_URL || "https://gh-proxy.org";
|
|
25
25
|
function toProxyUrl(url) {
|
|
26
|
-
if (url.startsWith("https://raw.githubusercontent.com/")) return
|
|
27
|
-
if (url.startsWith("https://api.github.com/")) return
|
|
26
|
+
if (url.startsWith("https://raw.githubusercontent.com/")) return `${GITHUB_RAW_PROXY}/https://raw.githubusercontent.com/` + url.slice(26);
|
|
27
|
+
if (url.startsWith("https://api.github.com/")) return `${GITHUB_API_PROXY}/https://api.github.com/` + url.slice(20);
|
|
28
28
|
if (url.startsWith("https://github.com/")) return url.replace("https://github.com/", `${GITHUB_PROXY_BASE}/`);
|
|
29
29
|
return url;
|
|
30
30
|
}
|
|
@@ -2173,7 +2173,7 @@ async function tryBlobInstall(ownerRepo, options = {}) {
|
|
|
2173
2173
|
tree
|
|
2174
2174
|
};
|
|
2175
2175
|
}
|
|
2176
|
-
var version$1 = "1.
|
|
2176
|
+
var version$1 = "1.5.0";
|
|
2177
2177
|
const isCancelled$1 = (value) => typeof value === "symbol";
|
|
2178
2178
|
async function isSourcePrivate(source) {
|
|
2179
2179
|
const ownerRepo = parseOwnerRepo(source);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skills-cn",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "The open agent skills ecosystem - 中国大陆 GitHub 加速版(使用
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "The open agent skills ecosystem - 中国大陆 GitHub 加速版(使用 kkgithub.com 和 gh-proxy.org 代理)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"skills-cn": "./bin/cli.mjs",
|