architext 0.0.2 → 0.0.4
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 +41 -1
- package/README.md +10 -5
- package/README.zh-CN.md +10 -5
- package/dist/index.js +43 -39
- package/dist/templates/en/docs/global/api_snapshot.json +24 -0
- package/dist/templates/en/docs/global/command_api.json +26 -0
- package/dist/templates/en/docs/global/env_registry.json +12 -0
- package/dist/templates/en/docs/global/map.json +5 -0
- package/dist/templates/en/docs/global/public_api.json +12 -0
- package/dist/templates/en/docs/prompts/code.md +21 -28
- package/dist/templates/en/docs/prompts/edit.md +18 -9
- package/dist/templates/en/docs/prompts/inherit.md +42 -23
- package/dist/templates/en/docs/prompts/plan.md +141 -47
- package/dist/templates/en/docs/prompts/recover.md +63 -0
- package/dist/templates/en/docs/prompts/ref.md +258 -0
- package/dist/templates/en/docs/prompts/revise.md +1 -1
- package/dist/templates/en/docs/prompts/scope.md +3 -3
- package/dist/templates/en/docs/prompts/start.md +9 -15
- package/dist/templates/en/docs/shared/verify-result-handling.md +6 -0
- package/dist/templates/en/docs/templates/design.template.md +77 -0
- package/dist/templates/en/docs/templates/spec.template.md +60 -25
- package/dist/templates/en/skills/archi-data-sync/SKILL.md +83 -0
- package/dist/templates/en/skills/archi-decompose-roadmap/SKILL.md +178 -132
- package/dist/templates/en/skills/archi-design-patterns/SKILL.md +139 -0
- package/dist/templates/en/skills/archi-feature-relations/SKILL.md +118 -0
- package/dist/templates/en/skills/archi-silent-audit/SKILL.md +118 -0
- package/dist/templates/zh/briefs/_base.md +2 -2
- package/dist/templates/zh/briefs/_modules.md +2 -2
- package/dist/templates/zh/docs/global/api_snapshot.json +24 -0
- package/dist/templates/zh/docs/global/command_api.json +26 -0
- package/dist/templates/zh/docs/global/data_snapshot.json +0 -1
- package/dist/templates/zh/docs/global/design_tokens.json +0 -1
- package/dist/templates/zh/docs/global/dictionary.json +1 -1
- package/dist/templates/zh/docs/global/env_registry.json +12 -0
- package/dist/templates/zh/docs/global/error_codes.json +0 -8
- package/dist/templates/zh/docs/global/map.json +28 -3
- package/dist/templates/zh/docs/global/public_api.json +12 -0
- package/dist/templates/zh/docs/global/vision.md +1 -1
- package/dist/templates/zh/docs/prompts/audit.md +8 -8
- package/dist/templates/zh/docs/prompts/code.md +33 -40
- package/dist/templates/zh/docs/prompts/edit.md +19 -10
- package/dist/templates/zh/docs/prompts/fix.md +8 -2
- package/dist/templates/zh/docs/prompts/inherit.md +45 -27
- package/dist/templates/zh/docs/prompts/map.md +2 -1
- package/dist/templates/zh/docs/prompts/plan.md +143 -50
- package/dist/templates/zh/docs/prompts/recover.md +63 -0
- package/dist/templates/zh/docs/prompts/ref.md +258 -0
- package/dist/templates/zh/docs/prompts/remove.md +2 -14
- package/dist/templates/zh/docs/prompts/revise.md +12 -4
- package/dist/templates/zh/docs/prompts/scope.md +6 -6
- package/dist/templates/zh/docs/prompts/start.md +19 -26
- package/dist/templates/zh/docs/shared/verify-result-handling.md +6 -0
- package/dist/templates/zh/docs/templates/design.template.md +77 -0
- package/dist/templates/zh/docs/templates/spec.template.md +60 -25
- package/dist/templates/zh/rules/00_system.md +35 -5
- package/dist/templates/zh/rules/01_workflow.md +5 -4
- package/dist/templates/zh/rules/02_tech_stack.md +7 -6
- package/dist/templates/zh/rules/03_data_governance.md +40 -9
- package/dist/templates/zh/rules/99_context_glue.md +2 -2
- package/dist/templates/zh/skills/archi-data-sync/SKILL.md +83 -0
- package/dist/templates/zh/skills/archi-decompose-roadmap/SKILL.md +82 -37
- package/dist/templates/zh/skills/archi-design-patterns/SKILL.md +139 -0
- package/dist/templates/zh/skills/archi-feature-relations/SKILL.md +118 -0
- package/dist/templates/zh/skills/archi-plan-options/SKILL.md +25 -25
- package/dist/templates/zh/skills/archi-silent-audit/SKILL.md +118 -0
- package/dist/templates/zh/skills/archi-ui-wireframe/SKILL.md +1 -1
- package/package.json +2 -2
- package/dist/templates/zh-Hant/briefs/_base.md +0 -115
- package/dist/templates/zh-Hant/briefs/_modules.md +0 -173
- package/dist/templates/zh-Hant/docs/global/data_snapshot.json +0 -31
- package/dist/templates/zh-Hant/docs/global/design_tokens.json +0 -135
- package/dist/templates/zh-Hant/docs/global/dictionary.json +0 -35
- package/dist/templates/zh-Hant/docs/global/error_codes.json +0 -19
- package/dist/templates/zh-Hant/docs/global/map.json +0 -94
- package/dist/templates/zh-Hant/docs/global/roadmap.json +0 -39
- package/dist/templates/zh-Hant/docs/global/vision.md +0 -82
- package/dist/templates/zh-Hant/docs/prompts/audit.md +0 -150
- package/dist/templates/zh-Hant/docs/prompts/code.md +0 -160
- package/dist/templates/zh-Hant/docs/prompts/edit.md +0 -87
- package/dist/templates/zh-Hant/docs/prompts/fix.md +0 -86
- package/dist/templates/zh-Hant/docs/prompts/help.md +0 -69
- package/dist/templates/zh-Hant/docs/prompts/inherit.md +0 -270
- package/dist/templates/zh-Hant/docs/prompts/map.md +0 -131
- package/dist/templates/zh-Hant/docs/prompts/plan.md +0 -252
- package/dist/templates/zh-Hant/docs/prompts/remove.md +0 -162
- package/dist/templates/zh-Hant/docs/prompts/revise.md +0 -160
- package/dist/templates/zh-Hant/docs/prompts/scope.md +0 -198
- package/dist/templates/zh-Hant/docs/prompts/start.md +0 -258
- package/dist/templates/zh-Hant/docs/templates/plan.template.json +0 -88
- package/dist/templates/zh-Hant/docs/templates/scope-brief.template.md +0 -58
- package/dist/templates/zh-Hant/docs/templates/spec.template.md +0 -51
- package/dist/templates/zh-Hant/docs/templates/ui.template.md +0 -51
- package/dist/templates/zh-Hant/rules/00_system.md +0 -123
- package/dist/templates/zh-Hant/rules/01_workflow.md +0 -93
- package/dist/templates/zh-Hant/rules/02_tech_stack.md +0 -192
- package/dist/templates/zh-Hant/rules/03_data_governance.md +0 -102
- package/dist/templates/zh-Hant/rules/04_cli_tools.md +0 -50
- package/dist/templates/zh-Hant/rules/90_custom_rules.md +0 -21
- package/dist/templates/zh-Hant/rules/99_context_glue.md +0 -53
- package/dist/templates/zh-Hant/skills/archi-decompose-roadmap/SKILL.md +0 -293
- package/dist/templates/zh-Hant/skills/archi-interview-protocol/SKILL.md +0 -86
- package/dist/templates/zh-Hant/skills/archi-plan-options/SKILL.md +0 -364
- package/dist/templates/zh-Hant/skills/archi-ui-wireframe/SKILL.md +0 -337
package/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,47 @@ All notable changes are documented here, following [Keep a Changelog](https://ke
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
## [Unreleased](https://github.com/JiuNian3219/architext/compare/v0.0.
|
|
9
|
+
## [Unreleased](https://github.com/JiuNian3219/architext/compare/v0.0.4...HEAD) / 待发布
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## [0.0.4](https://github.com/JiuNian3219/architext/releases/tag/v0.0.4) - 2026-03-01
|
|
14
|
+
|
|
15
|
+
### Added / 新增
|
|
16
|
+
|
|
17
|
+
- `archi pack` + `/archi.recover` — 用户数据备份与恢复流程 / User data backup and restore flow
|
|
18
|
+
- `/archi.ref` — 外部知识引用管理命令 / External knowledge reference management command
|
|
19
|
+
- `design.md` 技术方案设计模板与 `archi-design-patterns` Skill / Design template and archi-design-patterns Skill
|
|
20
|
+
- 项目初始化流程支持可选生成 `project-brief.md` / Init flow supports optional `project-brief.md` generation
|
|
21
|
+
- 子代理审查层与内容切片机制 / Sub-agent review layer and content slicing mechanism
|
|
22
|
+
- 维度积木 spec 骨架、WBS 分解与任务类型体系 / Spec skeleton, WBS decomposition and task type system
|
|
23
|
+
- OpenCode、Claude Code 作为目标 IDE 支持 / OpenCode and Claude Code as target IDE options
|
|
24
|
+
- 网站 Iterate 区块,Workflow 简化为 start → plan → code → audit 四阶段 / Website Iterate section, simplified Workflow to four stages
|
|
25
|
+
|
|
26
|
+
### Changed / 变更
|
|
27
|
+
|
|
28
|
+
- 移除 zh-Hant 支持,简化为 zh + en 双语 / Removed zh-Hant, simplified to zh + en
|
|
29
|
+
- 项目类型重构为特征标签体系 / Project type refactored to feature tag system
|
|
30
|
+
- 移除 terminal-gate-base、status-gate 共享片段,内联至各协议 / Inlined shared gate snippets into protocols
|
|
31
|
+
|
|
32
|
+
### Fixed / 修复
|
|
33
|
+
|
|
34
|
+
- 更新 prompts 时解析 `[[SKILL:...]]` / `[[NO-SKILL:...]]` 能力标记 / Parse capability refs when updating prompts
|
|
35
|
+
- 统一 templates 中 Skill 调用格式 / Unified Skill invocation format in templates
|
|
36
|
+
- 在 `02_tech_stack` 中为 ITP 固定协议添加分区标记 / Added section markers for ITP fixed protocols
|
|
37
|
+
- 明确协议可覆盖 `00_system` 的范围 / Clarified protocol override scope for `00_system`
|
|
38
|
+
- 在 `00_system` 中定义跨文件规则优先级链 / Defined cross-file rule priority chain
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## [0.0.3](https://github.com/JiuNian3219/architext/releases/tag/v0.0.3) - 2026-02-27
|
|
43
|
+
|
|
44
|
+
### Fixed / 修复
|
|
45
|
+
|
|
46
|
+
- `archi init` 冲突检测现在展示全部冲突文件,移除之前的 5 条显示上限 / `archi init` conflict detection now shows all conflicting files, removing the previous 5-item display limit
|
|
47
|
+
- `archi uninstall` 补全 Skills 文件(`.cursor/skills/archi-*/` 等)的删除逻辑,之前这些文件不会被清理 / `archi uninstall` now correctly removes Skills directories (e.g. `.cursor/skills/archi-*/`), which were previously left behind
|
|
48
|
+
- `archi uninstall` 删除文件后自动清理空目录(rules、commands、skills 及编辑器根目录),解决目录残留问题 / `archi uninstall` now removes empty directories (rules, commands, skills, and editor root dirs) after file deletion
|
|
49
|
+
- 官网落地页版本号改为构建时从 npm 注册表拉取,始终显示已发布版本,不再依赖本地 package.json / Website landing page version is now fetched from npm registry at build time, always showing the published version instead of local package.json
|
|
10
50
|
|
|
11
51
|
---
|
|
12
52
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[](LICENSE)
|
|
11
11
|
[](https://nodejs.org)
|
|
12
12
|
|
|
13
|
-
**Supported IDEs:** Cursor *(recommended)* · Windsurf · Trae · VS Code
|
|
13
|
+
**Supported IDEs:** Cursor *(recommended)* · Windsurf · Trae · VS Code · Claude Code · OpenCode
|
|
14
14
|
|
|
15
15
|
</div>
|
|
16
16
|
|
|
@@ -28,6 +28,8 @@ Before a single line of code is written, Architext forces you and your AI to ali
|
|
|
28
28
|
|
|
29
29
|
> **No Docs, No Code.** Code is just a downstream artifact of documents.
|
|
30
30
|
|
|
31
|
+
Architext targets **small-to-medium applications**, designed for **solo developers** or **solo + AI assistant** workflows. Whether you use chat-based AI today or a future JARVIS-like persistent assistant, the document-driven approach gives AI stable context, clear execution boundaries, and keeps you in control of every decision.
|
|
32
|
+
|
|
31
33
|
Architext operates in two layers:
|
|
32
34
|
|
|
33
35
|
| Layer | How to trigger | Responsibility |
|
|
@@ -64,8 +66,9 @@ npx archi init
|
|
|
64
66
|
|
|
65
67
|
```
|
|
66
68
|
✔ Select language › English
|
|
67
|
-
✔ Select IDE(s) › Cursor (multiselect — Cursor / Windsurf / Trae / VS Code)
|
|
69
|
+
✔ Select IDE(s) › Cursor (multiselect — Cursor / Windsurf / Trae / VS Code / Claude Code / OpenCode)
|
|
68
70
|
✔ Select project type › Web SPA / PWA
|
|
71
|
+
✔ Generate project-brief.md? › Yes (fill in project requirements for /archi.start or /archi.inherit)
|
|
69
72
|
|
|
70
73
|
● Deploying Architext...
|
|
71
74
|
✔ Docs deployed → .architext/
|
|
@@ -84,7 +87,7 @@ npx archi init
|
|
|
84
87
|
|
|
85
88
|
**Step 2 — AI chat: initialize your project**
|
|
86
89
|
|
|
87
|
-
`archi init`
|
|
90
|
+
When you choose to generate it, `archi init` creates a tailored `project-brief.md` at your project root. Fill it in, then run:
|
|
88
91
|
|
|
89
92
|
```
|
|
90
93
|
/archi.start project-brief.md
|
|
@@ -92,7 +95,7 @@ npx archi init
|
|
|
92
95
|
|
|
93
96
|
The AI reads the brief, interviews you on key decisions, and generates the project's foundation documents (`vision.md`, `roadmap.json`, `tech_stack`, etc.).
|
|
94
97
|
|
|
95
|
-
> **Existing codebase?** Skip `/archi.start` and use `/archi.inherit` instead — it reverse-engineers your project and registers existing features as `LEG-xx` tasks.
|
|
98
|
+
> **Existing codebase?** Skip `/archi.start` and use `/archi.inherit` instead — it reverse-engineers your project and registers existing features as `LEG-xx` tasks. Optional: pass `project-brief.md` when the codebase is minimal (skeleton repo) to supplement vision and roadmap.
|
|
96
99
|
|
|
97
100
|
---
|
|
98
101
|
|
|
@@ -215,7 +218,7 @@ AI: [Reading code + spec + plan + vision + tech_stack...]
|
|
|
215
218
|
| Command | Description |
|
|
216
219
|
|:---|:---|
|
|
217
220
|
| `/archi.start [brief]` | Read a project brief and generate foundation docs (vision / roadmap / tech_stack etc.) |
|
|
218
|
-
| `/archi.inherit` | Reverse-engineer
|
|
221
|
+
| `/archi.inherit [brief]` | Reverse-engineer existing codebase; optionally pass project-brief.md to supplement vision/roadmap (skeleton repos) |
|
|
219
222
|
| `/archi.scope [file_path]` | Decompose extra requirements into roadmap tasks; omit file to trigger an interview |
|
|
220
223
|
| `/archi.plan <ID> [context]` | Deep architecture interview → spec / plan ([?UI] also ui.md + ui_concept.html); supply context to reduce questions |
|
|
221
224
|
| `/archi.code <ID>` | Implement from plan phase by phase; only `active` tasks are allowed |
|
|
@@ -294,6 +297,8 @@ Four IDEs are currently supported. During `archi init` you manually select which
|
|
|
294
297
|
| Windsurf | `.windsurf/rules/` | `.md` | Supported |
|
|
295
298
|
| Trae | `.trae/rules/` | `.md` | Supported |
|
|
296
299
|
| VS Code | `.github/instructions/` | `.instructions.md` | Supported |
|
|
300
|
+
| Claude Code | `.claude/rules/` | `.md` | Supported |
|
|
301
|
+
| OpenCode | `.opencode/rules/` | `.md` | Supported |
|
|
297
302
|
|
|
298
303
|
Support for additional editors is planned.
|
|
299
304
|
|
package/README.zh-CN.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
[](LICENSE)
|
|
11
11
|
[](https://nodejs.org)
|
|
12
12
|
|
|
13
|
-
**支持的 IDE:** Cursor *(推荐)* · Windsurf · Trae · VS Code
|
|
13
|
+
**支持的 IDE:** Cursor *(推荐)* · Windsurf · Trae · VS Code · Claude Code · OpenCode
|
|
14
14
|
|
|
15
15
|
</div>
|
|
16
16
|
|
|
@@ -28,6 +28,8 @@ Architext 是一套**文档驱动 AI 开发 (DDAD)** 协议,将你的 AI 编
|
|
|
28
28
|
|
|
29
29
|
> **无文档,不代码。** 代码只是文档的下游产物。
|
|
30
30
|
|
|
31
|
+
Architext 面向**中小型应用**,为 **1 人团队** 或 **1 人 + AI 助手** 的协作模式设计。无论你用的是对话式 AI 还是未来的「贾维斯式」持续助手,文档驱动的工作流都能让 AI 有稳定的上下文、清晰的执行边界,而你始终掌握决策权。
|
|
32
|
+
|
|
31
33
|
Architext 以两个层次协同运作:
|
|
32
34
|
|
|
33
35
|
| 层次 | 触发方式 | 职责 |
|
|
@@ -64,8 +66,9 @@ npx archi init
|
|
|
64
66
|
|
|
65
67
|
```
|
|
66
68
|
✔ 选择语言 › 简体中文
|
|
67
|
-
✔ 选择 IDE › Cursor (多选 — Cursor / Windsurf / Trae / VS Code)
|
|
69
|
+
✔ 选择 IDE › Cursor (多选 — Cursor / Windsurf / Trae / VS Code / Claude Code / OpenCode)
|
|
68
70
|
✔ 选择项目类型 › Web SPA / PWA
|
|
71
|
+
✔ 是否生成 project-brief.md? › 是(生成后填写项目需求,供 /archi.start 或 /archi.inherit 使用)
|
|
69
72
|
|
|
70
73
|
● 正在部署 Architext...
|
|
71
74
|
✔ 文档已部署 → .architext/
|
|
@@ -84,7 +87,7 @@ npx archi init
|
|
|
84
87
|
|
|
85
88
|
**第二步 · AI 对话:初始化项目**
|
|
86
89
|
|
|
87
|
-
|
|
90
|
+
选择生成时,`archi init` 会在项目根目录生成 `project-brief.md`。填写完毕后,在 AI 编辑器中运行:
|
|
88
91
|
|
|
89
92
|
```
|
|
90
93
|
/archi.start project-brief.md
|
|
@@ -92,7 +95,7 @@ npx archi init
|
|
|
92
95
|
|
|
93
96
|
AI 读取 Brief,就关键决策向你提问,生成项目的基础文档(`vision.md`、`roadmap.json`、`tech_stack` 等)。
|
|
94
97
|
|
|
95
|
-
> **已有代码?** 跳过 `/archi.start`,改用 `/archi.inherit` —— 逆向分析项目,将已有功能注册为 `LEG-xx` 任务,同时生成 `map.json
|
|
98
|
+
> **已有代码?** 跳过 `/archi.start`,改用 `/archi.inherit` —— 逆向分析项目,将已有功能注册为 `LEG-xx` 任务,同时生成 `map.json`。可选:代码库尚空时传 `project-brief.md` 补充愿景与路线图。
|
|
96
99
|
|
|
97
100
|
---
|
|
98
101
|
|
|
@@ -215,7 +218,7 @@ AI: [正在读取 代码 + spec + plan + vision + tech_stack...]
|
|
|
215
218
|
| 命令 | 说明 |
|
|
216
219
|
|:---|:---|
|
|
217
220
|
| `/archi.start [brief]` | 读取需求 Brief,生成项目基础文档(vision / roadmap / tech_stack 等) |
|
|
218
|
-
| `/archi.inherit` |
|
|
221
|
+
| `/archi.inherit [brief]` | 逆向分析已有代码库;可选传 project-brief.md 补充愿景/路线图(骨架仓库) |
|
|
219
222
|
| `/archi.scope [file_path]` | 将额外需求拆解为 Roadmap 任务;无文件则自动发起访谈 |
|
|
220
223
|
| `/archi.plan <ID> [context]` | 深度架构访谈 → 生成 spec / plan([?UI] 附 ui.md + ui_concept.html);可附加已知上下文减少提问 |
|
|
221
224
|
| `/archi.code <ID>` | 按 plan 分阶段实现代码;仅 `active` 任务可进入 |
|
|
@@ -294,6 +297,8 @@ Agent 模式适合单次会话。Architext 提供跨会话、跨成员、跨 AI
|
|
|
294
297
|
| Windsurf | `.windsurf/rules/` | `.md` | 支持 |
|
|
295
298
|
| Trae | `.trae/rules/` | `.md` | 支持 |
|
|
296
299
|
| VS Code | `.github/instructions/` | `.instructions.md` | 支持 |
|
|
300
|
+
| Claude Code | `.claude/rules/` | `.md` | 支持 |
|
|
301
|
+
| OpenCode | `.opencode/rules/` | `.md` | 支持 |
|
|
297
302
|
|
|
298
303
|
后续计划扩展更多编辑器支持。
|
|
299
304
|
|