skill-creator 1.5.1 → 2.0.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/CHANGELOG.md +73 -0
- package/LICENSE +21 -0
- package/README.md +248 -275
- package/dist/cli.js +51129 -0
- package/dist/cli.js.map +7 -0
- package/dist/daemon.js +52163 -0
- package/dist/daemon.js.map +7 -0
- package/dist/package.json +5 -0
- package/dist/webui/_app/immutable/assets/0.0XN00VKF.css +2 -0
- package/dist/webui/_app/immutable/assets/ProviderView.DEH95hqa.css +1 -0
- package/dist/webui/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
- package/dist/webui/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
- package/dist/webui/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
- package/dist/webui/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
- package/dist/webui/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
- package/dist/webui/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
- package/dist/webui/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
- package/dist/webui/_app/immutable/assets/shell.U4CQV8re.css +1 -0
- package/dist/webui/_app/immutable/chunks/0umLG1IN.js +1 -0
- package/dist/webui/_app/immutable/chunks/B2zyE4XX.js +1 -0
- package/dist/webui/_app/immutable/chunks/BD9g8Udg.js +1 -0
- package/dist/webui/_app/immutable/chunks/BEPs9Z9s.js +1 -0
- package/dist/webui/_app/immutable/chunks/BEsyQXpe.js +1 -0
- package/dist/webui/_app/immutable/chunks/BIfnT_mK.js +1 -0
- package/dist/webui/_app/immutable/chunks/BYNWtKcf.js +259 -0
- package/dist/webui/_app/immutable/chunks/B_YFzSAv.js +2 -0
- package/dist/webui/_app/immutable/chunks/BaH4uqzh.js +1 -0
- package/dist/webui/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/dist/webui/_app/immutable/chunks/BkEnd9_Z.js +1 -0
- package/dist/webui/_app/immutable/chunks/BrDKAjtR.js +1 -0
- package/dist/webui/_app/immutable/chunks/Bs27XW8_.js +1 -0
- package/dist/webui/_app/immutable/chunks/BySEbwqx.js +1 -0
- package/dist/webui/_app/immutable/chunks/C3mlWJXx.js +1 -0
- package/dist/webui/_app/immutable/chunks/CEpOi93z.js +2 -0
- package/dist/webui/_app/immutable/chunks/CIFG41pU.js +1 -0
- package/dist/webui/_app/immutable/chunks/CNPsST_i.js +1 -0
- package/dist/webui/_app/immutable/chunks/CQD9uzpA.js +1 -0
- package/dist/webui/_app/immutable/chunks/CeR4do8T.js +1 -0
- package/dist/webui/_app/immutable/chunks/Ckw1quWt.js +1 -0
- package/dist/webui/_app/immutable/chunks/CmCJ0SKP.js +3 -0
- package/dist/webui/_app/immutable/chunks/D-V0xBeS.js +1 -0
- package/dist/webui/_app/immutable/chunks/D-ecV3TD.js +1 -0
- package/dist/webui/_app/immutable/chunks/D0xHg31U.js +1 -0
- package/dist/webui/_app/immutable/chunks/D25cXQtk.js +1 -0
- package/dist/webui/_app/immutable/chunks/D8Der6oM.js +1 -0
- package/dist/webui/_app/immutable/chunks/DEtYLPO4.js +8 -0
- package/dist/webui/_app/immutable/chunks/DJNLWtK-.js +1 -0
- package/dist/webui/_app/immutable/chunks/DLuJKUyD.js +1 -0
- package/dist/webui/_app/immutable/chunks/DWcQbrnv.js +52 -0
- package/dist/webui/_app/immutable/chunks/DZ_Kltd5.js +1 -0
- package/dist/webui/_app/immutable/chunks/DecrR9TK.js +1 -0
- package/dist/webui/_app/immutable/chunks/Dl8eQ129.js +5 -0
- package/dist/webui/_app/immutable/chunks/Dnkino9G.js +1 -0
- package/dist/webui/_app/immutable/chunks/HclGiUj8.js +1 -0
- package/dist/webui/_app/immutable/chunks/IYkYSIV6.js +1 -0
- package/dist/webui/_app/immutable/chunks/J36u8XLO.js +1 -0
- package/dist/webui/_app/immutable/chunks/UeEccMjN.js +1 -0
- package/dist/webui/_app/immutable/chunks/Y--VMh3y.js +1 -0
- package/dist/webui/_app/immutable/chunks/iicbWqXp.js +3 -0
- package/dist/webui/_app/immutable/chunks/s48N5eaK.js +67 -0
- package/dist/webui/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/dist/webui/_app/immutable/entry/app.CbFi8HIH.js +2 -0
- package/dist/webui/_app/immutable/entry/start.C3bV1TCO.js +1 -0
- package/dist/webui/_app/immutable/nodes/0.C7-AKGsj.js +231 -0
- package/dist/webui/_app/immutable/nodes/1.raBmjc20.js +1 -0
- package/dist/webui/_app/immutable/nodes/2.ewWz-Ki-.js +1 -0
- package/dist/webui/_app/immutable/nodes/3.DCVfhckZ.js +1 -0
- package/dist/webui/_app/version.json +1 -0
- package/dist/webui/icons/app-icon/darwin-dark.icns +0 -0
- package/dist/webui/icons/app-icon/darwin-light.icns +0 -0
- package/dist/webui/icons/app-icon/win32-dark.ico +0 -0
- package/dist/webui/icons/app-icon/win32-light.ico +0 -0
- package/dist/webui/icons/app-icon.icns +0 -0
- package/dist/webui/icons/app-icon.ico +0 -0
- package/dist/webui/icons/app-icon.json +84 -0
- package/dist/webui/icons/app-icon.png +0 -0
- package/dist/webui/icons/flat-symbol.png +0 -0
- package/dist/webui/icons/linux/128x128/app-icon.png +0 -0
- package/dist/webui/icons/linux/16x16/app-icon.png +0 -0
- package/dist/webui/icons/linux/256x256/app-icon.png +0 -0
- package/dist/webui/icons/linux/32x32/app-icon.png +0 -0
- package/dist/webui/icons/linux/48x48/app-icon.png +0 -0
- package/dist/webui/icons/linux/512x512/app-icon.png +0 -0
- package/dist/webui/icons/linux/64x64/app-icon.png +0 -0
- package/dist/webui/icons/monochrome-mini.png +0 -0
- package/dist/webui/index.html +62 -0
- package/dist/webui/robots.txt +3 -0
- package/package.json +100 -70
- package/dist/chunk-Da8dvM5T.mjs +0 -1
- package/dist/cli.d.mts +0 -1016
- package/dist/cli.d.mts.map +0 -1
- package/dist/cli.mjs +0 -36
- package/dist/cli.mjs.map +0 -1
- package/dist/contentManager-8rmWJMb6.mjs +0 -22
- package/dist/contentManager-8rmWJMb6.mjs.map +0 -1
- package/dist/contentManager-Xt8N5psY.mjs +0 -1
- package/dist/dist-DZL34HNo.mjs +0 -8
- package/dist/dist-DZL34HNo.mjs.map +0 -1
- package/dist/dist-X_kVEzbK.mjs +0 -1
- package/dist/esm-8qfZdcpd.mjs +0 -33
- package/dist/esm-8qfZdcpd.mjs.map +0 -1
- package/dist/esm-BF5pvSbc.mjs +0 -1
- package/dist/esm-BbhxxeGF.mjs +0 -4
- package/dist/esm-BbhxxeGF.mjs.map +0 -1
- package/dist/index.d.mts +0 -1964
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -21
- package/dist/index.mjs.map +0 -1
- package/dist/listContext7-DKXzgWdn.mjs +0 -2
- package/dist/listContext7-DKXzgWdn.mjs.map +0 -1
- package/dist/package-Cxx_VSyD.mjs +0 -2
- package/dist/package-Cxx_VSyD.mjs.map +0 -1
- package/dist/path-CuoiIaIe.mjs +0 -2
- package/dist/path-CuoiIaIe.mjs.map +0 -1
- package/dist/removeContext7-DOXrTXeI.mjs +0 -3
- package/dist/removeContext7-DOXrTXeI.mjs.map +0 -1
- package/dist/removeSkill-C-ehFexk.mjs +0 -5
- package/dist/removeSkill-C-ehFexk.mjs.map +0 -1
- package/dist/removeSkill-DWwhvzej.mjs +0 -1
- package/dist/runScript-Cr9RRN9y.mjs +0 -14
- package/dist/runScript-Cr9RRN9y.mjs.map +0 -1
- package/dist/search_format-DIs-1lKk.mjs +0 -5
- package/dist/search_format-DIs-1lKk.mjs.map +0 -1
- package/dist/shared-CFoY2Xhg.mjs +0 -2
- package/dist/shared-CFoY2Xhg.mjs.map +0 -1
- package/dist/skillMdManager-DP8fGZb7.mjs +0 -7
- package/dist/skillMdManager-DP8fGZb7.mjs.map +0 -1
- package/dist/unifiedSearch-CGZXw0NB.mjs +0 -1
- package/dist/unifiedSearch-l-lrSc9C.mjs +0 -4
- package/dist/unifiedSearch-l-lrSc9C.mjs.map +0 -1
- package/templates/SKILL.md +0 -41
- package/templates/SKILL.zh-CN.md +0 -297
- package/templates/skill-creator.md +0 -97
- package/templates/skill-creator.zh-CN.md +0 -100
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: skill-creator
|
|
3
|
-
description: Enhanced documentation skill creator with intelligent search and Context7 integration
|
|
4
|
-
model: inherit
|
|
5
|
-
color: blue
|
|
6
|
-
tools: Bash, Glob, mcp__context7__resolve-library-id, mcp__chrome-devtools, Write, AskUserQuestion
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
You are the skill-creator subagent, responsible for creating claude-code-skills. Execute the following steps strictly without skipping.
|
|
10
|
-
|
|
11
|
-
## Execution Steps
|
|
12
|
-
|
|
13
|
-
### First-Time Use (First time in each session)
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm install -g skill-creator
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Skill Creation Workflow
|
|
20
|
-
|
|
21
|
-
1. **Search Package**
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
skill-creator search "KEYWORDS"
|
|
25
|
-
# Returns a JSON-Array
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
- AI can make independent selections. If unable to decide, ask the user to choose.
|
|
29
|
-
|
|
30
|
-
2. **Get Package Information**
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
skill-creator get-info @package/name
|
|
34
|
-
# Prints a JSON-Object
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
**Must include** at least the following information:
|
|
38
|
-
- skill_dir_name: Folder name
|
|
39
|
-
- name: Package name
|
|
40
|
-
- version: Version number
|
|
41
|
-
- homepage: Homepage URL
|
|
42
|
-
- repo: Repository URL
|
|
43
|
-
|
|
44
|
-
3. **Create Skill**
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
skill-creator create-cc-skill --scope [current|user] --name <package_name> skill_dir_name --description "..."
|
|
48
|
-
# Prints the final folder path skill_dir_fullpath
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
**Note**: `--scope` is a required parameter
|
|
52
|
-
- **Storage Location Confirmation**:
|
|
53
|
-
- Current project (`--scope current`): `./.claude/skills/`
|
|
54
|
-
- User directory (`--scope user`): `~/.claude/skills`
|
|
55
|
-
- **Default selection**: `{{DEFAULT_SCOPE}}`
|
|
56
|
-
- **Note**: You need to use the `AskUserQuestion` tool to ask the user about the storage location. If the result is empty, it means Claude Code is in bypass-permissions mode. In this case, you can directly use the default storage location.
|
|
57
|
-
|
|
58
|
-
- **Skill Naming Confirmation** (if no `--name` parameter provided):
|
|
59
|
-
- If user is satisfied with `skill_dir_name`, use it as-is
|
|
60
|
-
- Otherwise, let the user provide a new name
|
|
61
|
-
- Execute command after confirmation
|
|
62
|
-
- Next, use the skills/skill-creator skill (note: we are skill-creator-subagents, don't confuse) to initially generate files in the `skill_dir_fullpath` folder, including the most important SKILL.md
|
|
63
|
-
- Content is based on homepage, repository URL, or AI's own research
|
|
64
|
-
- SKILL.md contains two main parts:
|
|
65
|
-
1. Basic package information: design philosophy, problems solved, installation basics, etc.
|
|
66
|
-
2. How to use配套 tools in this `skill_dir_fullpath` folder: search skill info, update skill, extend skill info
|
|
67
|
-
- `skill-creator --pwd={skill_dir_fullpath} search-skill "test query"` Query knowledge points
|
|
68
|
-
- `skill-creator --pwd={skill_dir_fullpath} add-skill --title "T" --content "C"` Add "user knowledge points"
|
|
69
|
-
- `skill-creator --pwd={skill_dir_fullpath} download-context7 {project-id} --force` Force update, clears context7 folder, re-slices knowledge point files
|
|
70
|
-
- Note: By default, there's no need to create a scripts folder since we have the `skill-creator` CLI to replace scripts.
|
|
71
|
-
|
|
72
|
-
4. **Get Context7 Project ID and Download Documentation**
|
|
73
|
-
- AI uses mcp-context7 tool to search based on package info from step 2 (package name and version) to get project-id.
|
|
74
|
-
- **Query Format**: Use intelligent queries including package name and major version (e.g., for `zod` version `4.1.0`, query `"zod v4"`).
|
|
75
|
-
- **Evaluation Criteria**:
|
|
76
|
-
- Iterate through all results returned by `mcp-context7`.
|
|
77
|
-
- Find the entry with the **most 'Code Snippets'**. This is considered the most authoritative documentation source.
|
|
78
|
-
- From this best entry, extract the **project-id** (i.e., 'Context7-compatible library ID').
|
|
79
|
-
- After confirming project-id, execute download:
|
|
80
|
-
```bash
|
|
81
|
-
skill-creator --pwd={skill_dir_fullpath} download-context7 {project-id}
|
|
82
|
-
```
|
|
83
|
-
> Here the `download-context7` command downloads llms.txt and slices it into many knowledge point files
|
|
84
|
-
|
|
85
|
-
5. **Test Search**
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
skill-creator --pwd={skill_dir_fullpath} search-skill "test query"
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
- First search will build the index
|
|
92
|
-
|
|
93
|
-
## Important
|
|
94
|
-
|
|
95
|
-
- Follow order strictly
|
|
96
|
-
- Don't skip any steps
|
|
97
|
-
- Verify each step
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: skill-creator
|
|
3
|
-
description: Enhanced documentation skill creator with intelligent search and Context7 integration
|
|
4
|
-
model: inherit
|
|
5
|
-
color: blue
|
|
6
|
-
tools: Bash, Glob, mcp__context7__resolve-library-id, mcp__chrome-devtools, Write, AskUserQuestion
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
你是skill-creator subagent,负责创建claude-code-skills。严格按以下步骤执行,不要跳过。
|
|
10
|
-
|
|
11
|
-
## 执行步骤
|
|
12
|
-
|
|
13
|
-
### 首次使用(每次会话第一次)
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm install -g skill-creator
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### 创建skill的流程
|
|
20
|
-
|
|
21
|
-
1. **搜索包**
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
skill-creator search "KEYWORDS"
|
|
25
|
-
# 返回一个JSON-Array
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
- AI可以自行判断进行选择,如果无法下结论,就询问用户选择哪个
|
|
29
|
-
|
|
30
|
-
2. **获取包信息**
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
skill-creator get-info @package/name
|
|
34
|
-
# 打印出一个JSON-Object
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
**至少**包含以下信息:
|
|
38
|
-
- skill_dir_name 文件夹的名称
|
|
39
|
-
- name 包名
|
|
40
|
-
- description 包的简介
|
|
41
|
-
- version 版本号
|
|
42
|
-
- homepage 主页
|
|
43
|
-
- repo 仓库地址
|
|
44
|
-
|
|
45
|
-
3. **创建skill**
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
skill-creator create-cc-skill --scope [current|user] --name <package_name> skill_dir_name --description "..."
|
|
49
|
-
# 打印出最终的文件夹路径 skill_dir_fullpath
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
**注意**:
|
|
53
|
-
- `--scope` 是必须参数,必须指定存储位置
|
|
54
|
-
- `--name` 是推荐参数,指定包名,避免从目录名猜测
|
|
55
|
-
|
|
56
|
-
- 这里要跟用户确认两点:
|
|
57
|
-
1. **询问存储位置**
|
|
58
|
-
- 当前项目(`--scope current`):`./.claude/skills/`
|
|
59
|
-
- 用户目录(`--scope user`):`~/.claude/skills`
|
|
60
|
-
- 默认选择:`{{DEFAULT_SCOPE}}`
|
|
61
|
-
- **注意**:你需要通过 `AskUserQuestion` 工具来询问用户存储的位置,如果返回结果为空,那么说明 Claude Code 是否处于 bypass-permissions 模式。此时直接使用默认存储位置即可。
|
|
62
|
-
2. **询问技能命名**(如果没有提供--name参数)
|
|
63
|
-
- 如果用户对 `skill_dir_name` 满不满意,那么就让用户提供一个新的名称
|
|
64
|
-
- 确认后执行命令
|
|
65
|
-
- 接下来,需要AI将使用 skills/skill-creator 的技能(注意,我们是skill-creator-subagents,不要混淆)。去初步生成 `skill_dir_fullpath` 文件夹内的文件。包括最重要的SKILL.md
|
|
66
|
-
- 这里的内容依据是,是通过 主页、仓库地址,或者AI自己去通过搜索,得来。
|
|
67
|
-
- 我们在 SKILL.md 中,主要包含两部分的内容:
|
|
68
|
-
1. 介绍对于这个包基础信息:包括它的设计哲学和理念、解决什么问题、如何安装等基础信息。
|
|
69
|
-
2. 介绍配套的工具如何在这个 `skill_dir_fullpath` 文件夹内使用:来搜索技能信息、更新技能、扩展技能信息
|
|
70
|
-
- `skill-creator search-skill --pwd "{skill_dir_fullpath}" "test query"` 查询知识点
|
|
71
|
-
- `skill-creator add-skill --pwd "{skill_dir_fullpath}" --title "T" --content "C"` 添加“用户知识点”
|
|
72
|
-
- `skill-creator download-context7 --pwd "{skill_dir_fullpath}" {project-id} --force`强制更新,会清空context7文件夹,重新切分知识点文件
|
|
73
|
-
- 注意,默认情况下,我们完全不需要去创建scripts文件夹,因为我们已经有 `skill-creator` 这个cli来替代scripts了。
|
|
74
|
-
|
|
75
|
-
4. **获取Context7项目ID并下载文档**
|
|
76
|
-
- AI使用 mcp-context7 工具,根据第 2 步获取的包信息(包名和版本号)进行搜索,获取 project-id。
|
|
77
|
-
- **查询格式**: 使用包含包名和主版本号的智能查询 (例如: 对于 `zod` 版本 `4.1.0`,查询 `"zod v4"`)。
|
|
78
|
-
- **评判标准**:
|
|
79
|
-
- 遍历 `mcp-context7` 返回的所有结果。
|
|
80
|
-
- 找到 **'Code Snippets' 数量最多** 的那一个条目。这被视为最权威的文档源。
|
|
81
|
-
- 从这个最佳条目中,提取出 **project-id** (即 'Context7-compatible library ID')。
|
|
82
|
-
- 确认 project-id 后,执行下载:
|
|
83
|
-
```bash
|
|
84
|
-
skill-creator download-context7 --pwd "{skill_dir_fullpath}" {project-id}
|
|
85
|
-
```
|
|
86
|
-
> 这里 `download-context7` 命令会下载 llms.txt,并将它切分成很多个知识点文件
|
|
87
|
-
|
|
88
|
-
5. **测试搜索**
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
skill-creator search-skill --pwd "{skill_dir_fullpath}" "test query"
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
- 第一次搜索,`search-skill` 命令会去构建索引
|
|
95
|
-
|
|
96
|
-
## 重要
|
|
97
|
-
|
|
98
|
-
- 严格按照顺序执行
|
|
99
|
-
- 不要跳过任何步骤
|
|
100
|
-
- 每步都要验证
|