@double-codeing/flow2spec 2.2.2 → 2.2.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/README.md
CHANGED
|
@@ -14,12 +14,12 @@ Flow2Spec 把**配置根里的知识库**(`rules/`、`skills/`、`docs-index.m
|
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
# 在目标代码仓库(配置根的父目录)执行(默认仅写入 .cursor/)
|
|
17
|
-
npx @
|
|
17
|
+
npx @double-codeing/flow2spec init
|
|
18
18
|
# 指定 AI 工具配置目录(可多选)
|
|
19
|
-
npx @
|
|
20
|
-
npx @
|
|
19
|
+
npx @double-codeing/flow2spec init claude
|
|
20
|
+
npx @double-codeing/flow2spec init cursor claude codex
|
|
21
21
|
# 或全局安装后
|
|
22
|
-
npm install -g @
|
|
22
|
+
npm install -g @double-codeing/flow2spec
|
|
23
23
|
flow2spec init
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
## 一、init 做了什么
|
|
21
21
|
|
|
22
|
-
在**配置根父目录**执行 **`flow2spec init [agent ...]`**(未全局安装可用 **`npx @
|
|
22
|
+
在**配置根父目录**执行 **`flow2spec init [agent ...]`**(未全局安装可用 **`npx @double-codeing/flow2spec init`**)。`agent` 省略时默认 **`cursor`** → **`.cursor/`**;可多个:`cursor claude codex`,各写一套相同结构。详见 **`flow2spec --help`**。
|
|
23
23
|
|
|
24
24
|
对每个所选配置根:**覆盖写入** `templates/` 中的 `rules/`、`skills/`、`template/`,并预建 **`stock-docs/`**、**`req-docs/`**。Cursor 下 Agent 按场景加载 **`skills/<标识>/SKILL.md`**。
|
|
25
25
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
| 项 | 说明 |
|
|
35
35
|
| ---- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
36
|
-
| 用法 | `npx @
|
|
36
|
+
| 用法 | `npx @double-codeing/flow2spec init` 或全局安装后 `flow2spec init [cursor \| claude \| codex ...]`;默认 **cursor** |
|
|
37
37
|
| 写入 | 各配置根下 `stock-docs/`、`req-docs/`、`template/`、`rules/`、`skills/`(见 [Flow2Spec使用说明](./Flow2Spec使用说明.md#一init-做了什么))。**`.claude/`** 下 **`rules/*.md`**(`globs`→`paths`);**`.cursor/`** 下 **`rules/*.mdc`** |
|
|
38
38
|
| 结果 | Agent 按场景加载 `skills/*/SKILL.md` |
|
|
39
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@double-codeing/flow2spec",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "flow2spec init:落盘 .cursor/.claude/.codex 等配置根的 rules、skills、stock-docs/req-docs,文档驱动、f2s 可写回知识库工作流。",
|
|
5
5
|
"homepage": "https://github.com/Lands-1203/Flow2Spec#readme",
|
|
6
6
|
"repository": {
|