@cregis-dev/cckit 0.6.1 → 0.6.3
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/LICENSE +21 -21
- package/README.md +11 -5
- package/bin/cckit.js +3 -3
- package/package.json +1 -2
- package/registry.json +116 -116
- package/src/commands/init.js +1 -1
- package/src/commands/update.js +1 -1
- package/src/steps/install-skills.js +3 -1
- package/src/utils/logger.js +16 -16
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 cregis-dev
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 cregis-dev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -31,11 +31,11 @@ cckit 是**编排工具**,不是模板打包器。运行时调用外部工具
|
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
# 直接使用(推荐)
|
|
34
|
-
npx @cregis-dev/cckit
|
|
34
|
+
npx @cregis-dev/cckit install
|
|
35
35
|
|
|
36
36
|
# 或全局安装
|
|
37
37
|
npm install -g @cregis-dev/cckit
|
|
38
|
-
cckit
|
|
38
|
+
cckit install
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
交互式引导会依次:
|
|
@@ -44,14 +44,20 @@ cckit init
|
|
|
44
44
|
2. 选择大模型(MiniMax / Kimi / Gemini / GPT)
|
|
45
45
|
3. 安装 Plugins、Rules、Skills、BMAD、MCP
|
|
46
46
|
|
|
47
|
+
### 本地测试
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
node bin/cckit.js install
|
|
51
|
+
```
|
|
52
|
+
|
|
47
53
|
### 企业统一部署
|
|
48
54
|
|
|
49
55
|
```bash
|
|
50
56
|
# 全默认模式 — 适合 CI/CD 或批量初始化
|
|
51
|
-
npx @cregis-dev/cckit
|
|
57
|
+
npx @cregis-dev/cckit install --yes --api-key sk-your-key
|
|
52
58
|
|
|
53
59
|
# 企业标准化参数
|
|
54
|
-
cckit
|
|
60
|
+
cckit install \
|
|
55
61
|
--user-name "TeamMember" \
|
|
56
62
|
--lang ts,py \
|
|
57
63
|
--model kimi \
|
|
@@ -63,7 +69,7 @@ cckit init \
|
|
|
63
69
|
|
|
64
70
|
## 命令
|
|
65
71
|
|
|
66
|
-
### `cckit
|
|
72
|
+
### `cckit install`
|
|
67
73
|
|
|
68
74
|
初始化项目,编排安装所有组件。
|
|
69
75
|
|
package/bin/cckit.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { run } from '../src/cli.js'
|
|
3
|
-
run(process.argv)
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { run } from '../src/cli.js'
|
|
3
|
+
run(process.argv)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cregis-dev/cckit",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"description": "Enterprise-grade Claude Code configuration toolkit — orchestrates external tools to set up unified rules, skills, MCP and methodology for teams",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"yaml": "^2.8.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@vitest/coverage-v8": "^4.0.18",
|
|
52
51
|
"vitest": "^4.0.18"
|
|
53
52
|
}
|
|
54
53
|
}
|
package/registry.json
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2.0.0",
|
|
3
|
-
"plugins": {
|
|
4
|
-
"everything-claude-code": {
|
|
5
|
-
"name": "Everything Claude Code",
|
|
6
|
-
"marketplace": "everything-claude-code",
|
|
7
|
-
"marketplaceSource": {
|
|
8
|
-
"source": "github",
|
|
9
|
-
"repo": "affaan-m/everything-claude-code"
|
|
10
|
-
},
|
|
11
|
-
"default": true,
|
|
12
|
-
"description": "Rules, agents, commands, skills, and hooks for Claude Code"
|
|
13
|
-
},
|
|
14
|
-
"superpowers": {
|
|
15
|
-
"name": "Superpowers",
|
|
16
|
-
"marketplace": "claude-plugins-official",
|
|
17
|
-
"default": true,
|
|
18
|
-
"description": "Structured workflows with brainstorming, debugging, TDD, and code review skills"
|
|
19
|
-
},
|
|
20
|
-
"claude-code-setup": {
|
|
21
|
-
"name": "Claude Code Setup",
|
|
22
|
-
"marketplace": "claude-plugins-official",
|
|
23
|
-
"default": true,
|
|
24
|
-
"description": "Analyze codebases and recommend Claude Code automations, audit and improve CLAUDE.md files"
|
|
25
|
-
},
|
|
26
|
-
"claude-md-management": {
|
|
27
|
-
"name": "Claude MD Management",
|
|
28
|
-
"marketplace": "claude-plugins-official",
|
|
29
|
-
"default": true,
|
|
30
|
-
"description": "Audit, improve, and update CLAUDE.md documentation files"
|
|
31
|
-
},
|
|
32
|
-
"code-simplifier": {
|
|
33
|
-
"name": "Code Simplifier",
|
|
34
|
-
"marketplace": "claude-plugins-official",
|
|
35
|
-
"default": true,
|
|
36
|
-
"description": "Simplify and refine code for clarity, consistency, and maintainability"
|
|
37
|
-
},
|
|
38
|
-
"commit-commands": {
|
|
39
|
-
"name": "Commit Commands",
|
|
40
|
-
"marketplace": "claude-plugins-official",
|
|
41
|
-
"default": true,
|
|
42
|
-
"description": "Git commit workflows: commit, push, PR creation, and branch cleanup"
|
|
43
|
-
},
|
|
44
|
-
"firecrawl": {
|
|
45
|
-
"name": "Firecrawl",
|
|
46
|
-
"marketplace": "claude-plugins-official",
|
|
47
|
-
"default": true,
|
|
48
|
-
"description": "Web scraping, search, and skill generation using Firecrawl"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"rules": {
|
|
52
|
-
"template": "templates/rules",
|
|
53
|
-
"target": ".claude/rules"
|
|
54
|
-
},
|
|
55
|
-
"skills": [
|
|
56
|
-
{
|
|
57
|
-
"id": "pinchtab",
|
|
58
|
-
"repo": "https://github.com/pinchtab/pinchtab",
|
|
59
|
-
"skill": "pinchtab",
|
|
60
|
-
"installCommand": "npx skills add https://github.com/pinchtab/pinchtab --skill pinchtab -y -a claude-code"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"id": "find-skills",
|
|
64
|
-
"repo": "https://github.com/vercel-labs/skills",
|
|
65
|
-
"skill": "find-skills",
|
|
66
|
-
"installCommand": "npx skills add https://github.com/vercel-labs/skills --skill find-skills -y -a claude-code"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"id": "skill-vetter",
|
|
70
|
-
"repo": "https://github.com/useai-pro/openclaw-skills-security",
|
|
71
|
-
"skill": "skill-vetter",
|
|
72
|
-
"installCommand": "npx skills add https://github.com/useai-pro/openclaw-skills-security@skill-vetter -y -a claude-code"
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
|
-
"bmad": {
|
|
76
|
-
"command": "npx",
|
|
77
|
-
"args": [
|
|
78
|
-
"bmad-method",
|
|
79
|
-
"install",
|
|
80
|
-
"--directory",
|
|
81
|
-
".",
|
|
82
|
-
"--modules",
|
|
83
|
-
"bmm,tea",
|
|
84
|
-
"--communication-language",
|
|
85
|
-
"Chinese",
|
|
86
|
-
"--document-output-language",
|
|
87
|
-
"Chinese",
|
|
88
|
-
"--tools",
|
|
89
|
-
"claude-code",
|
|
90
|
-
"--yes",
|
|
91
|
-
"--
|
|
92
|
-
"
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
"mcp": {
|
|
96
|
-
"template": "templates/mcp/claude-code/.mcp.json",
|
|
97
|
-
"target": ".mcp.json"
|
|
98
|
-
},
|
|
99
|
-
"userSettings": {
|
|
100
|
-
"apiUrl": "https://gateway.cregis.ai",
|
|
101
|
-
"models": {
|
|
102
|
-
"minimax": "MiniMax-M2.5",
|
|
103
|
-
"kimi": "Kimi-K2.5",
|
|
104
|
-
"gemini": "gemini-3.1-pro-preview",
|
|
105
|
-
"gpt": "gpt-5.3-codex"
|
|
106
|
-
},
|
|
107
|
-
"defaultModel": "minimax",
|
|
108
|
-
"modelEnvKeys": [
|
|
109
|
-
"ANTHROPIC_MODEL",
|
|
110
|
-
"ANTHROPIC_SMALL_FAST_MODEL",
|
|
111
|
-
"ANTHROPIC_DEFAULT_SONNET_MODEL",
|
|
112
|
-
"ANTHROPIC_DEFAULT_OPUS_MODEL",
|
|
113
|
-
"ANTHROPIC_DEFAULT_HAIKU_MODEL"
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": "2.0.0",
|
|
3
|
+
"plugins": {
|
|
4
|
+
"everything-claude-code": {
|
|
5
|
+
"name": "Everything Claude Code",
|
|
6
|
+
"marketplace": "everything-claude-code",
|
|
7
|
+
"marketplaceSource": {
|
|
8
|
+
"source": "github",
|
|
9
|
+
"repo": "affaan-m/everything-claude-code"
|
|
10
|
+
},
|
|
11
|
+
"default": true,
|
|
12
|
+
"description": "Rules, agents, commands, skills, and hooks for Claude Code"
|
|
13
|
+
},
|
|
14
|
+
"superpowers": {
|
|
15
|
+
"name": "Superpowers",
|
|
16
|
+
"marketplace": "claude-plugins-official",
|
|
17
|
+
"default": true,
|
|
18
|
+
"description": "Structured workflows with brainstorming, debugging, TDD, and code review skills"
|
|
19
|
+
},
|
|
20
|
+
"claude-code-setup": {
|
|
21
|
+
"name": "Claude Code Setup",
|
|
22
|
+
"marketplace": "claude-plugins-official",
|
|
23
|
+
"default": true,
|
|
24
|
+
"description": "Analyze codebases and recommend Claude Code automations, audit and improve CLAUDE.md files"
|
|
25
|
+
},
|
|
26
|
+
"claude-md-management": {
|
|
27
|
+
"name": "Claude MD Management",
|
|
28
|
+
"marketplace": "claude-plugins-official",
|
|
29
|
+
"default": true,
|
|
30
|
+
"description": "Audit, improve, and update CLAUDE.md documentation files"
|
|
31
|
+
},
|
|
32
|
+
"code-simplifier": {
|
|
33
|
+
"name": "Code Simplifier",
|
|
34
|
+
"marketplace": "claude-plugins-official",
|
|
35
|
+
"default": true,
|
|
36
|
+
"description": "Simplify and refine code for clarity, consistency, and maintainability"
|
|
37
|
+
},
|
|
38
|
+
"commit-commands": {
|
|
39
|
+
"name": "Commit Commands",
|
|
40
|
+
"marketplace": "claude-plugins-official",
|
|
41
|
+
"default": true,
|
|
42
|
+
"description": "Git commit workflows: commit, push, PR creation, and branch cleanup"
|
|
43
|
+
},
|
|
44
|
+
"firecrawl": {
|
|
45
|
+
"name": "Firecrawl",
|
|
46
|
+
"marketplace": "claude-plugins-official",
|
|
47
|
+
"default": true,
|
|
48
|
+
"description": "Web scraping, search, and skill generation using Firecrawl"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"rules": {
|
|
52
|
+
"template": "templates/rules",
|
|
53
|
+
"target": ".claude/rules"
|
|
54
|
+
},
|
|
55
|
+
"skills": [
|
|
56
|
+
{
|
|
57
|
+
"id": "pinchtab",
|
|
58
|
+
"repo": "https://github.com/pinchtab/pinchtab",
|
|
59
|
+
"skill": "pinchtab",
|
|
60
|
+
"installCommand": "npx skills add https://github.com/pinchtab/pinchtab --skill pinchtab -y -a claude-code"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "find-skills",
|
|
64
|
+
"repo": "https://github.com/vercel-labs/skills",
|
|
65
|
+
"skill": "find-skills",
|
|
66
|
+
"installCommand": "npx skills add https://github.com/vercel-labs/skills --skill find-skills -y -a claude-code"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "skill-vetter",
|
|
70
|
+
"repo": "https://github.com/useai-pro/openclaw-skills-security",
|
|
71
|
+
"skill": "skill-vetter",
|
|
72
|
+
"installCommand": "npx skills add https://github.com/useai-pro/openclaw-skills-security@skill-vetter -y -a claude-code"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"bmad": {
|
|
76
|
+
"command": "npx",
|
|
77
|
+
"args": [
|
|
78
|
+
"bmad-method",
|
|
79
|
+
"install",
|
|
80
|
+
"--directory",
|
|
81
|
+
".",
|
|
82
|
+
"--modules",
|
|
83
|
+
"bmm,tea",
|
|
84
|
+
"--communication-language",
|
|
85
|
+
"Chinese",
|
|
86
|
+
"--document-output-language",
|
|
87
|
+
"Chinese",
|
|
88
|
+
"--tools",
|
|
89
|
+
"claude-code",
|
|
90
|
+
"--yes",
|
|
91
|
+
"--output-folder",
|
|
92
|
+
"_bmad-output"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"mcp": {
|
|
96
|
+
"template": "templates/mcp/claude-code/.mcp.json",
|
|
97
|
+
"target": ".mcp.json"
|
|
98
|
+
},
|
|
99
|
+
"userSettings": {
|
|
100
|
+
"apiUrl": "https://gateway.cregis.ai",
|
|
101
|
+
"models": {
|
|
102
|
+
"minimax": "MiniMax-M2.5",
|
|
103
|
+
"kimi": "Kimi-K2.5",
|
|
104
|
+
"gemini": "gemini-3.1-pro-preview",
|
|
105
|
+
"gpt": "gpt-5.3-codex"
|
|
106
|
+
},
|
|
107
|
+
"defaultModel": "minimax",
|
|
108
|
+
"modelEnvKeys": [
|
|
109
|
+
"ANTHROPIC_MODEL",
|
|
110
|
+
"ANTHROPIC_SMALL_FAST_MODEL",
|
|
111
|
+
"ANTHROPIC_DEFAULT_SONNET_MODEL",
|
|
112
|
+
"ANTHROPIC_DEFAULT_OPUS_MODEL",
|
|
113
|
+
"ANTHROPIC_DEFAULT_HAIKU_MODEL"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
package/src/commands/init.js
CHANGED
|
@@ -105,7 +105,7 @@ export async function runInit(opts = {}, _deps = {}) {
|
|
|
105
105
|
fn: _deps.installRules || installRules,
|
|
106
106
|
opts: {
|
|
107
107
|
targetDir,
|
|
108
|
-
rulesConfig: registry.rules
|
|
108
|
+
rulesConfig: registry.rules,
|
|
109
109
|
skip: config.excludeGroups.includes('ecc'),
|
|
110
110
|
},
|
|
111
111
|
},
|
package/src/commands/update.js
CHANGED
|
@@ -31,7 +31,9 @@ export async function installSkills(opts, logger, _deps = {}) {
|
|
|
31
31
|
for (const skillDef of opts.skills) {
|
|
32
32
|
logger.info(` Installing skill: ${skillDef.id}`)
|
|
33
33
|
try {
|
|
34
|
-
|
|
34
|
+
// Use installCommand from registry if available, otherwise fallback to basic command
|
|
35
|
+
const installCmd = skillDef.installCommand || `npx skills add ${skillDef.repo} --skill ${skillDef.skill} -y -a claude-code`
|
|
36
|
+
await execFileFn(installCmd, [], {
|
|
35
37
|
cwd: opts.targetDir,
|
|
36
38
|
shell: true,
|
|
37
39
|
})
|
package/src/utils/logger.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import chalk from 'chalk'
|
|
2
|
-
|
|
3
|
-
export function createLogger(options = {}) {
|
|
4
|
-
const { write = (msg) => console.log(msg), debug: debugEnabled = false } = options
|
|
5
|
-
|
|
6
|
-
return {
|
|
7
|
-
info: (msg) => write(msg),
|
|
8
|
-
success: (msg) => write(chalk.green(` \u2713 ${msg}`)),
|
|
9
|
-
error: (msg) => write(chalk.red(` \u2717 ${msg}`)),
|
|
10
|
-
warn: (msg) => write(chalk.yellow(` \u26A0 ${msg}`)),
|
|
11
|
-
debug: (msg) => { if (debugEnabled) write(chalk.gray(` [debug] ${msg}`)) },
|
|
12
|
-
step: (current, total, msg) => write(chalk.blue(` [${current}/${total}] ${msg}`)),
|
|
13
|
-
banner: (msg) => write(chalk.bold.green(`\n${msg}\n`)),
|
|
14
|
-
newline: () => write('')
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
import chalk from 'chalk'
|
|
2
|
+
|
|
3
|
+
export function createLogger(options = {}) {
|
|
4
|
+
const { write = (msg) => console.log(msg), debug: debugEnabled = false } = options
|
|
5
|
+
|
|
6
|
+
return {
|
|
7
|
+
info: (msg) => write(msg),
|
|
8
|
+
success: (msg) => write(chalk.green(` \u2713 ${msg}`)),
|
|
9
|
+
error: (msg) => write(chalk.red(` \u2717 ${msg}`)),
|
|
10
|
+
warn: (msg) => write(chalk.yellow(` \u26A0 ${msg}`)),
|
|
11
|
+
debug: (msg) => { if (debugEnabled) write(chalk.gray(` [debug] ${msg}`)) },
|
|
12
|
+
step: (current, total, msg) => write(chalk.blue(` [${current}/${total}] ${msg}`)),
|
|
13
|
+
banner: (msg) => write(chalk.bold.green(`\n${msg}\n`)),
|
|
14
|
+
newline: () => write('')
|
|
15
|
+
}
|
|
16
|
+
}
|