reskill 1.1.1 → 1.3.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.
Files changed (63) hide show
  1. package/README.md +30 -1
  2. package/README.zh-CN.md +35 -6
  3. package/dist/cli/commands/__integration__/helpers.d.ts +2 -1
  4. package/dist/cli/commands/__integration__/helpers.d.ts.map +1 -1
  5. package/dist/cli/commands/doctor.d.ts.map +1 -1
  6. package/dist/cli/commands/index.d.ts +4 -0
  7. package/dist/cli/commands/index.d.ts.map +1 -1
  8. package/dist/cli/commands/login.d.ts +10 -0
  9. package/dist/cli/commands/login.d.ts.map +1 -0
  10. package/dist/cli/commands/logout.d.ts +9 -0
  11. package/dist/cli/commands/logout.d.ts.map +1 -0
  12. package/dist/cli/commands/publish.d.ts +32 -0
  13. package/dist/cli/commands/publish.d.ts.map +1 -0
  14. package/dist/cli/commands/uninstall.d.ts.map +1 -1
  15. package/dist/cli/commands/whoami.d.ts +9 -0
  16. package/dist/cli/commands/whoami.d.ts.map +1 -0
  17. package/dist/cli/index.js +3352 -123
  18. package/dist/core/auth-manager.d.ts +71 -0
  19. package/dist/core/auth-manager.d.ts.map +1 -0
  20. package/dist/core/cache-manager.d.ts +16 -1
  21. package/dist/core/cache-manager.d.ts.map +1 -1
  22. package/dist/core/config-loader.d.ts +64 -1
  23. package/dist/core/config-loader.d.ts.map +1 -1
  24. package/dist/core/extractor.d.ts +62 -0
  25. package/dist/core/extractor.d.ts.map +1 -0
  26. package/dist/core/git-resolver.d.ts +28 -1
  27. package/dist/core/git-resolver.d.ts.map +1 -1
  28. package/dist/core/http-resolver.d.ts +108 -0
  29. package/dist/core/http-resolver.d.ts.map +1 -0
  30. package/dist/core/index.d.ts +15 -0
  31. package/dist/core/index.d.ts.map +1 -1
  32. package/dist/core/install-directory.d.ts +81 -0
  33. package/dist/core/install-directory.d.ts.map +1 -0
  34. package/dist/core/installer.d.ts +4 -0
  35. package/dist/core/installer.d.ts.map +1 -1
  36. package/dist/core/publisher.d.ts +85 -0
  37. package/dist/core/publisher.d.ts.map +1 -0
  38. package/dist/core/registry-client.d.ts +141 -0
  39. package/dist/core/registry-client.d.ts.map +1 -0
  40. package/dist/core/registry-resolver.d.ts +62 -0
  41. package/dist/core/registry-resolver.d.ts.map +1 -0
  42. package/dist/core/skill-manager.d.ts +51 -1
  43. package/dist/core/skill-manager.d.ts.map +1 -1
  44. package/dist/core/skill-parser.d.ts +5 -1
  45. package/dist/core/skill-parser.d.ts.map +1 -1
  46. package/dist/core/skill-validator.d.ts +110 -0
  47. package/dist/core/skill-validator.d.ts.map +1 -0
  48. package/dist/index.d.ts +3 -3
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +1769 -55
  51. package/dist/types/index.d.ts +30 -0
  52. package/dist/types/index.d.ts.map +1 -1
  53. package/dist/utils/git.d.ts +4 -3
  54. package/dist/utils/git.d.ts.map +1 -1
  55. package/dist/utils/http.d.ts +51 -0
  56. package/dist/utils/http.d.ts.map +1 -0
  57. package/dist/utils/index.d.ts +2 -0
  58. package/dist/utils/index.d.ts.map +1 -1
  59. package/dist/utils/registry-scope.d.ts +150 -0
  60. package/dist/utils/registry-scope.d.ts.map +1 -0
  61. package/dist/utils/registry.d.ts +22 -0
  62. package/dist/utils/registry.d.ts.map +1 -0
  63. package/package.json +4 -2
package/README.md CHANGED
@@ -52,7 +52,17 @@ npx reskill@latest <command> # Or use npx directly
52
52
  | `doctor` | Diagnose environment and check for issues |
53
53
  | `completion install` | Install shell tab completion |
54
54
 
55
- Run `reskill <command> --help` for detailed options.
55
+ ### Common Options
56
+
57
+ | Option | Commands | Description |
58
+ | ------ | -------- | ----------- |
59
+ | `--no-save` | `install` | Install without saving to `skills.json` (for personal skills) |
60
+ | `-g, --global` | `install`, `uninstall`, `list` | Install/manage skills globally (user directory) |
61
+ | `-a, --agent <agents...>` | `install` | Specify target agents (e.g., `cursor`, `claude-code`) |
62
+ | `--mode <mode>` | `install` | Installation mode: `symlink` (default) or `copy` |
63
+
64
+
65
+ Run `reskill <command> --help` for complete options and detailed usage.
56
66
 
57
67
  ## Source Formats
58
68
 
@@ -79,6 +89,25 @@ npx reskill@latest install user/skill@v1.0.0
79
89
  npx reskill@latest install github:user/skill1 github:user/skill2@v1.0.0
80
90
  ```
81
91
 
92
+ ### Monorepo Support
93
+
94
+ For repositories containing multiple skills (monorepo), specify the path to the skill directory:
95
+
96
+ ```bash
97
+ # Shorthand format with subpath
98
+ npx reskill@latest install github:org/monorepo/skills/planning@v1.0.0
99
+ npx reskill@latest install gitlab:company/skills/frontend/components@latest
100
+
101
+ # URL format with subpath
102
+ npx reskill@latest install https://github.com/org/monorepo.git/skills/planning@v1.0.0
103
+ npx reskill@latest install git@gitlab.company.com:team/skills.git/backend/apis@v2.0.0
104
+
105
+ # GitHub web URL automatically extracts subpath
106
+ npx reskill@latest install https://github.com/org/monorepo/tree/main/skills/planning
107
+ ```
108
+
109
+ **Requirements**: The specified directory must contain a valid `SKILL.md` file following the [Agent Skills Specification](https://agentskills.io).
110
+
82
111
  ## Version Specification
83
112
 
84
113
  | Format | Example | Description |
package/README.zh-CN.md CHANGED
@@ -52,20 +52,49 @@ npx reskill@latest <command> # 或直接使用 npx
52
52
  | `doctor` | 诊断环境并检查问题 |
53
53
  | `completion install` | 安装 Shell Tab 补全 |
54
54
 
55
- 运行 `reskill <command> --help` 查看详细选项。
55
+ ### 常用选项
56
+
57
+ | 选项 | 适用命令 | 说明 |
58
+ | ---- | ------- | ---- |
59
+ | `--no-save` | `install` | 安装时不保存到 `skills.json`(用于个人技能) |
60
+ | `-g, --global` | `install`, `uninstall`, `list` | 全局安装/管理技能(用户目录) |
61
+ | `-a, --agent <agents...>` | `install` | 指定目标 Agent(如 `cursor`, `claude-code`) |
62
+ | `--mode <mode>` | `install` | 安装模式:`symlink`(默认)或 `copy` |
63
+
64
+ 运行 `reskill <command> --help` 查看完整选项和详细用法。
56
65
 
57
66
  ## 源格式
58
67
 
59
68
  ```bash
60
- github:user/skill@v1.0.0 # GitHub 简写
61
- gitlab:group/skill@latest # GitLab 简写
62
- gitlab.company.com:team/skill@v1.0.0 # 自建实例
63
- https://github.com/user/repo/tree/main/path # 网页 URL(支持子路径)
69
+ # 基本格式
70
+ npx reskill@latest install github:user/skill@v1.0.0
71
+ npx reskill@latest install gitlab:group/skill@latest
72
+ npx reskill@latest install gitlab.company.com:team/skill@v1.0.0
73
+ npx reskill@latest install https://github.com/user/repo/tree/main/path
64
74
 
65
75
  # 一次安装多个 skills
66
- reskill install github:user/skill1 github:user/skill2@v1.0.0
76
+ npx reskill@latest install github:user/skill1 github:user/skill2@v1.0.0
77
+ ```
78
+
79
+ ### Monorepo 支持
80
+
81
+ 对于包含多个技能的仓库(monorepo),可以指定技能目录的路径:
82
+
83
+ ```bash
84
+ # 简写格式带子路径
85
+ npx reskill@latest install github:org/monorepo/skills/planning@v1.0.0
86
+ npx reskill@latest install gitlab:company/skills/frontend/components@latest
87
+
88
+ # URL 格式带子路径
89
+ npx reskill@latest install https://github.com/org/monorepo.git/skills/planning@v1.0.0
90
+ npx reskill@latest install git@gitlab.company.com:team/skills.git/backend/apis@v2.0.0
91
+
92
+ # GitHub 网页 URL 自动提取子路径
93
+ npx reskill@latest install https://github.com/org/monorepo/tree/main/skills/planning
67
94
  ```
68
95
 
96
+ **要求**:指定的目录必须包含符合 [Agent Skills 规范](https://agentskills.io) 的有效 `SKILL.md` 文件。
97
+
69
98
  ## 版本规范
70
99
 
71
100
  | 格式 | 示例 | 说明 |
@@ -84,12 +84,13 @@ export declare function updateMockSkillVersion(skillDir: string, newVersion: str
84
84
  * @param dir - Directory to create the file in
85
85
  * @param skills - Skills to include in the configuration
86
86
  * @param defaults - Default options
87
+ * @param registries - Custom registry configuration
87
88
  */
88
89
  export declare function setupSkillsJson(dir: string, skills?: Record<string, string>, defaults?: {
89
90
  installDir?: string;
90
91
  installMode?: 'symlink' | 'copy';
91
92
  targetAgents?: string[];
92
- }): void;
93
+ }, registries?: Record<string, string>): void;
93
94
  /**
94
95
  * Read skills.json configuration
95
96
  *
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/__integration__/helpers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,eAAO,MAAM,YAAY,QAAyC,CAAC;AACnE,eAAO,MAAM,GAAG,QAAyD,CAAC;AAG1E,eAAO,MAAM,cAAc,qEAAqE,CAAC;AACjG,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAM9C,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,MAAM,EACZ,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3B,SAAS,CAuBX;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAEnD;AAMD;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAMvC;AAMD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,SAAU,GAChB,MAAM,CAyCR;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAoB5E;AAMD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,SAAU,GAChB,MAAM,CAiCR;AAED;;;;;G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MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAoCrE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAUrD;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CA4CzB;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,SAgDtB,CAAC;AAEL,eAAe,aAAa,CAAC"}
@@ -4,7 +4,11 @@ export { infoCommand } from './info.js';
4
4
  export { initCommand } from './init.js';
5
5
  export { installCommand } from './install.js';
6
6
  export { listCommand } from './list.js';
7
+ export { loginCommand } from './login.js';
8
+ export { logoutCommand } from './logout.js';
7
9
  export { outdatedCommand } from './outdated.js';
10
+ export { publishCommand } from './publish.js';
8
11
  export { uninstallCommand } from './uninstall.js';
9
12
  export { updateCommand } from './update.js';
13
+ export { whoamiCommand } from './whoami.js';
10
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * login command - Authenticate with a reskill registry
3
+ *
4
+ * Token-only login: requires a pre-generated token from Web UI.
5
+ * Logs in to the registry and stores the token in ~/.reskillrc
6
+ */
7
+ import { Command } from 'commander';
8
+ export declare const loginCommand: Command;
9
+ export default loginCommand;
10
+ //# sourceMappingURL=login.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/login.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAsFpC,eAAO,MAAM,YAAY,SAOH,CAAC;AAEvB,eAAe,YAAY,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * logout command - Log out from a reskill registry
3
+ *
4
+ * Removes the token from ~/.reskillrc
5
+ */
6
+ import { Command } from 'commander';
7
+ export declare const logoutCommand: Command;
8
+ export default logoutCommand;
9
+ //# sourceMappingURL=logout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logout.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/logout.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4CpC,eAAO,MAAM,aAAa,SAGH,CAAC;AAExB,eAAe,aAAa,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * publish command - Publish a skill to the registry
3
+ *
4
+ * Validates and publishes skill metadata to the reskill registry.
5
+ * Use --dry-run to validate without actually publishing.
6
+ */
7
+ import { Command } from 'commander';
8
+ /**
9
+ * Build the full skill name for publishing
10
+ *
11
+ * Priority:
12
+ * 1. If name already contains scope (e.g., "@scope/name"), use as-is
13
+ * 2. If registry has a configured scope, use that scope
14
+ * 3. Throw error if no scope configured (no fallback)
15
+ *
16
+ * @param name - Skill name (may or may not include scope)
17
+ * @param registry - Registry URL
18
+ * @param _userHandle - Deprecated, no longer used (kept for backward compatibility)
19
+ * @returns Full skill name with scope (e.g., "@kanyun/planning-with-files")
20
+ * @throws Error if registry has no configured scope
21
+ *
22
+ * @internal Exported for testing
23
+ */
24
+ export declare function buildPublishSkillName(name: string, registry: string, _userHandle?: string): string;
25
+ /**
26
+ * Check if a registry URL is a blocked public registry
27
+ * @internal Exported for testing
28
+ */
29
+ export declare function isBlockedPublicRegistry(registryUrl: string): boolean;
30
+ export declare const publishCommand: Command;
31
+ export default publishCommand;
32
+ //# sourceMappingURL=publish.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/publish.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiDpC;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,GACnB,MAAM,CAcR;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAYpE;AA4ZD,eAAO,MAAM,cAAc,SAYH,CAAC;AAEzB,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/uninstall.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAoEzB,CAAC;AAEL,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/uninstall.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAgFzB,CAAC;AAEL,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * whoami command - Show current authenticated user
3
+ *
4
+ * Displays the currently logged in user for a registry
5
+ */
6
+ import { Command } from 'commander';
7
+ export declare const whoamiCommand: Command;
8
+ export default whoamiCommand;
9
+ //# sourceMappingURL=whoami.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"whoami.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/whoami.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAmEpC,eAAO,MAAM,aAAa,SAMH,CAAC;AAExB,eAAe,aAAa,CAAC"}