@heihei0299/matt-skills 2.0.1 → 2.0.2
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 +2 -2
- package/bin/cli.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,9 +33,9 @@ npx @heihei0299/matt-skills init # 默认编程相关 26(engineer
|
|
|
33
33
|
npx @heihei0299/matt-skills init --all # 安装全量 33(含 productivity)
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
`init`
|
|
36
|
+
`init` 默认只在目标没有 `AGENTS.md` 时初始化;已有项目默认跳过以保护定制,显式 `init --all` 会刷新模板并安装/覆盖全量 33 个 skill。模板全量 33,默认仅安装默认范围 26(engineering 18 + 独有所需 4 + 核心独有 4,见 config/engineering.json 与 config/required.json),无需二次拉取上游。
|
|
37
37
|
|
|
38
|
-
选项:`--dest <path>` 指定目标目录(默认当前目录);`--all` 包含非编程技能(productivity,默认编程 26:engineering 18 + 独有所需 4 + 核心独有 4
|
|
38
|
+
选项:`--dest <path>` 指定目标目录(默认当前目录);`--all` 包含非编程技能(productivity,默认编程 26:engineering 18 + 独有所需 4 + 核心独有 4);已有目标使用 `init --all` 刷新,普通 `init` 跳过。
|
|
39
39
|
**增量同步(已有项目)**:已有项目更新到最新模板与技能:
|
|
40
40
|
|
|
41
41
|
```sh
|
package/bin/cli.js
CHANGED
|
@@ -66,6 +66,7 @@ Init options:
|
|
|
66
66
|
--dest <path> Target directory (default: current directory)
|
|
67
67
|
--all Include non-programming skills (productivity) and optional proprietary; default only core programming (engineering 18 + required 4 + default proprietary 4 → 26)
|
|
68
68
|
--help, -h Show this help
|
|
69
|
+
提示:已有 AGENTS.md 时普通 init 跳过;显式 init --all 刷新模板并覆盖全量 skills。
|
|
69
70
|
|
|
70
71
|
提示:matt-skills --help 查看全量
|
|
71
72
|
`;
|
|
@@ -283,7 +284,7 @@ async function initCommand({ dest, all }) {
|
|
|
283
284
|
const target = dest ? path.resolve(process.cwd(), dest) : process.cwd();
|
|
284
285
|
const marker = path.join(target, 'AGENTS.md');
|
|
285
286
|
const onlyProgramming = !all;
|
|
286
|
-
if (await pathExists(marker)) {
|
|
287
|
+
if (await pathExists(marker) && !all) {
|
|
287
288
|
process.stdout.write('模板已存在(AGENTS.md),跳过\n');
|
|
288
289
|
} else {
|
|
289
290
|
await cp(TEMPLATE_DIR, target, { recursive: true, force: true });
|