@haaaiawd/anws 1.1.0 → 1.2.1
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 +217 -48
- package/package.json +1 -1
- package/templates/.agent/rules/agents.md +112 -93
- package/templates/.agent/skills/design-reviewer/SKILL.md +161 -0
- package/templates/.agent/skills/spec-writer/SKILL.md +50 -0
- package/templates/.agent/skills/spec-writer/references/prd_template.md +116 -113
- package/templates/.agent/skills/system-designer/SKILL.md +113 -19
- package/templates/.agent/skills/system-designer/references/system-design-detail-template.md +198 -0
- package/templates/.agent/skills/system-designer/references/system-design-template.md +118 -145
- package/templates/.agent/skills/task-planner/SKILL.md +5 -0
- package/templates/.agent/skills/task-reviewer/SKILL.md +287 -0
- package/templates/.agent/workflows/blueprint.md +77 -3
- package/templates/.agent/workflows/challenge.md +57 -90
- package/templates/.agent/workflows/change.md +8 -0
- package/templates/.agent/workflows/craft.md +8 -0
- package/templates/.agent/workflows/design-system.md +88 -17
- package/templates/.agent/workflows/explore.md +9 -0
- package/templates/.agent/workflows/forge.md +75 -31
- package/templates/.agent/workflows/genesis.md +36 -2
- package/templates/.agent/workflows/quickstart.md +289 -0
- package/templates/.agent/workflows/scout.md +10 -1
package/README.md
CHANGED
|
@@ -1,96 +1,265 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img src="assets/logo.png" width="200" alt="Antigravity Workflow System">
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://github.com/google-deepmind/antigravity)
|
|
7
|
+
[](https://github.com/karpathy/vibe-coding)
|
|
8
|
+
|
|
9
|
+
[English](./README.md) | [中文](./README_CN.md)
|
|
10
|
+
|
|
11
|
+
</div>
|
|
9
12
|
|
|
10
13
|
---
|
|
11
14
|
|
|
12
|
-
##
|
|
15
|
+
## ⚡ What is this?
|
|
13
16
|
|
|
14
|
-
|
|
15
|
-
npm install -g @haaaiawd/anws
|
|
16
|
-
```
|
|
17
|
+
A **structured workflow framework** for Agentic AI assistants, designed to solve the core pain points of the Vibe Coding era.
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
> 💡 **TL;DR**: Stop letting AI write spaghetti code. Force it to think like an architect first.
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
### 🎯 Problems We Solve
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
| Pain Point | The Problem | Our Solution |
|
|
24
|
+
| ---------------------- | ----------------------------------------------------------- | -------------------------------------------------------------- |
|
|
25
|
+
| **Architecture Drift** | AI generates inconsistent patterns across the same codebase | `/genesis` forces PRD & architecture design first |
|
|
26
|
+
| **Spaghetti Code** | AI lacks project context, writes code that doesn't fit | Tasks include constraints & acceptance criteria |
|
|
27
|
+
| **Context Amnesia** | New session = AI forgets all previous decisions | `.agent/rules/agents.md` + versioned docs as persistent memory |
|
|
28
|
+
| **Lack of Planning** | Vibe Coding skips design, creates tech debt | Mandatory design-first workflow |
|
|
23
29
|
|
|
24
|
-
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 🚀 Quick Start
|
|
25
33
|
|
|
26
|
-
|
|
34
|
+
### Option A — npm CLI (Recommended)
|
|
27
35
|
|
|
28
36
|
```bash
|
|
29
|
-
|
|
37
|
+
npm install -g @haaaiawd/anws
|
|
38
|
+
cd your-project
|
|
30
39
|
anws init
|
|
31
40
|
```
|
|
32
41
|
|
|
33
|
-
|
|
34
|
-
- **检测到冲突**:显示已存在的托管文件数量,询问是否覆盖(默认 **N**)。
|
|
35
|
-
确认后只会覆盖 `anws` 管理的文件,你的自定义文件不受影响。
|
|
36
|
-
- **非 TTY 环境(如 CI)**:检测到冲突时自动跳过,不挂起进程。
|
|
42
|
+
> Requires Node.js ≥ 18.
|
|
37
43
|
|
|
38
|
-
###
|
|
44
|
+
### Option B — GitHub Release
|
|
39
45
|
|
|
40
|
-
|
|
46
|
+
Download the latest `.zip` from [Releases](https://github.com/Haaaiawd/Antigravity-Workflow-System/releases), then copy `.agent/` to your project root.
|
|
47
|
+
|
|
48
|
+
### 📦 Update Existing Installation
|
|
41
49
|
|
|
42
50
|
```bash
|
|
51
|
+
cd your-project
|
|
43
52
|
anws update
|
|
44
53
|
```
|
|
45
54
|
|
|
46
|
-
|
|
47
|
-
|
|
55
|
+
> `anws update` overwrites all managed workflow/skill files to the latest version while **preserving** your `agents.md`.
|
|
56
|
+
> If the `agents.md` template has new content, an `agents.md.new` file will be generated for you to merge manually.
|
|
48
57
|
|
|
49
|
-
###
|
|
58
|
+
### Your First Project 🐣
|
|
50
59
|
|
|
51
|
-
|
|
52
|
-
|------|------|
|
|
53
|
-
| `-v`, `--version` | 打印版本号 |
|
|
54
|
-
| `-h`, `--help` | 显示帮助信息 |
|
|
60
|
+
> **The easiest way to start**: Just run the `/quickstart` command! The AI will automatically analyze your project state and guide you step-by-step through the entire lifecycle (from `/genesis` to `/forge`).
|
|
55
61
|
|
|
56
|
-
|
|
62
|
+
**Looking for inspiration? Alternative prompt**: "I want to build a web-based macOS simulator, including Dock, top bar, and several system apps. Please start this new project from scratch according to the development process."
|
|
57
63
|
|
|
58
|
-
|
|
64
|
+
### 🔁 Built with Itself (Dogfooding)
|
|
59
65
|
|
|
60
|
-
|
|
66
|
+
Fun fact: **This very CLI tool (`anws`) was built using its own workflows!**
|
|
67
|
+
We used the `/genesis` workflow to design the CLI's architecture, and the `/forge` workflow to implement the code. This project serves as a live demonstration of what Antigravity Workflow System can achieve.
|
|
61
68
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
69
|
+
**Deep Thinking & Architecture Design**: The AI will automatically execute the `/genesis` workflow, thinking deeply about project requirements and producing the PRD and architecture design.
|
|
70
|
+
<img src="assets/genesis工作流演示.jpg" width="800" alt="Genesis Workflow">
|
|
71
|
+
|
|
72
|
+
**Interactive Requirement Alignment**: The AI will ask follow-up questions for ambiguous requirements to ensure the design matches your intuition.
|
|
73
|
+
<img src="assets/与人类交互确认细节.jpg" width="800" alt="Human Interaction">
|
|
74
|
+
|
|
75
|
+
**Autonomous Task Breakdown & Execution**: The AI will autonomously call necessary Skills (e.g., `spec-writer`, `task-planner`, etc.) to complete documentation and task decomposition.
|
|
76
|
+
<img src="assets/自主调用skills.jpg" width="800" alt="Skills Execution">
|
|
77
|
+
|
|
78
|
+
---
|
|
65
79
|
|
|
66
|
-
|
|
67
|
-
|
|
80
|
+
## 🗺️ Decision Flowchart
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
┌─────────────────┐
|
|
84
|
+
│ Where are you? │
|
|
85
|
+
└────────┬────────┘
|
|
86
|
+
┌─────────────────┼─────────────────┐
|
|
87
|
+
▼ ▼ ▼
|
|
88
|
+
┌──────────┐ ┌──────────┐ ┌──────────┐
|
|
89
|
+
│ New │ │ Legacy │ │ Existing │
|
|
90
|
+
│ Project │ │ Takeover │ │ Change │
|
|
91
|
+
└────┬─────┘ └────┬─────┘ └────┬─────┘
|
|
92
|
+
│ │ │
|
|
93
|
+
▼ ▼ ▼
|
|
94
|
+
/genesis /scout Tweak existing task?
|
|
95
|
+
│ │ / \
|
|
96
|
+
│ │ / \
|
|
97
|
+
└────────┬────────┘ /change /genesis
|
|
98
|
+
│ (modify only) (new tasks)
|
|
99
|
+
▼ │ │
|
|
100
|
+
/design-system <--------+------------+
|
|
101
|
+
(optional, recommended)
|
|
102
|
+
|
|
|
103
|
+
v
|
|
104
|
+
/challenge
|
|
105
|
+
(design review)
|
|
106
|
+
|
|
|
107
|
+
v
|
|
108
|
+
/blueprint
|
|
109
|
+
|
|
|
110
|
+
v
|
|
111
|
+
/challenge
|
|
112
|
+
(task review)
|
|
113
|
+
|
|
|
114
|
+
v
|
|
115
|
+
/forge
|
|
116
|
+
(code delivery)
|
|
68
117
|
```
|
|
69
118
|
|
|
70
119
|
---
|
|
71
120
|
|
|
72
|
-
##
|
|
121
|
+
## 🔑 Core Principles
|
|
122
|
+
|
|
123
|
+
### 1. Versioned Architecture
|
|
124
|
+
> Don't "fix" architecture docs. **Evolve** them.
|
|
125
|
+
|
|
126
|
+
- `genesis/v1` → `genesis/v2` on major changes
|
|
127
|
+
- Full traceability of decisions
|
|
128
|
+
- No "it was always like this" mystery
|
|
129
|
+
|
|
130
|
+
### 2. Deep Thinking First
|
|
131
|
+
> AI must think before it writes.
|
|
132
|
+
|
|
133
|
+
- Workflows force multi-step reasoning via `sequentialthinking`
|
|
134
|
+
- `[!IMPORTANT]` blocks as guardrails
|
|
135
|
+
- No shallow, scan-and-output responses
|
|
136
|
+
|
|
137
|
+
### 3. Filesystem as Memory
|
|
138
|
+
> Chat is ephemeral. Files are eternal.
|
|
139
|
+
|
|
140
|
+
- `AGENTS.md` = AI's anchor
|
|
141
|
+
- Architecture docs = persistent decisions
|
|
142
|
+
- New session recovery in 30 seconds
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## 📋 Workflows
|
|
147
|
+
|
|
148
|
+
| Command | Purpose | Input | Output |
|
|
149
|
+
| ----------------- | ------------------------------------------------------- | ----------------- | ------------------------------------------ |
|
|
150
|
+
| **`/quickstart`** | **One-command entry: orchestrates the whole lifecycle** | Auto-detected | Full pipeline orchestration |
|
|
151
|
+
| `/genesis` | Start from zero, create PRD & architecture | Vague idea | PRD, Architecture, ADRs |
|
|
152
|
+
| `/scout` | Analyze legacy codebase risks | Existing code | Risk report, Gap analysis |
|
|
153
|
+
| `/design-system` | Detailed design for a system | Architecture | System Design doc |
|
|
154
|
+
| `/challenge` | Review Design & Tasks (intelligent detection) | Full Docs / TASKS | Challenge Report (Graded) |
|
|
155
|
+
| `/blueprint` | Break architecture into tasks | PRD + Arch | TASKS.md (WBS) |
|
|
156
|
+
| `/forge` | Execute tasks — architecture to code | TASKS.md | Working code, verified |
|
|
157
|
+
| `/change` | Tweak existing tasks (no new tasks) | Minor tweak | Updated TASKS + Design files (modify only) |
|
|
158
|
+
| `/explore` | Deep research & brainstorm | Topic/Question | Exploration report |
|
|
159
|
+
| `/craft` | Create workflows/skills/prompts | Creation request | Workflow / Skill / Prompt docs |
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 🛠️ Compatibility & Prerequisites
|
|
164
|
+
|
|
165
|
+
> ⚠️ **Important**: This framework requires **Antigravity** environment with `.agent/workflows/` support.
|
|
166
|
+
|
|
167
|
+
| Environment | Status | Notes |
|
|
168
|
+
| --------------- | :--------------------------: | ------------------------------ |
|
|
169
|
+
| **Antigravity** | ✅ Supported | Full workflow + skills support |
|
|
170
|
+
| Claude Code | ❌ No native workflow support | |
|
|
171
|
+
| Cursor | ❌ No workflow support | |
|
|
172
|
+
| GitHub Copilot | ❌ No workflow support | |
|
|
173
|
+
|
|
174
|
+
**What is Antigravity?**
|
|
175
|
+
|
|
176
|
+
Antigravity is an Agentic AI coding environment that natively recognizes `.agent/workflows/` directory and can execute slash commands like `/genesis`, `/blueprint`, etc.
|
|
177
|
+
|
|
178
|
+
### 🔌 Required: Sequential Thinking MCP Server
|
|
179
|
+
|
|
180
|
+
This framework uses `sequentialthinking` for deep reasoning. Install it via MCP Store:
|
|
181
|
+
|
|
182
|
+
1. Open **Antigravity Editor**
|
|
183
|
+
2. Click **"..."** (three dots) in the sidebar → **Additional Options**
|
|
184
|
+
3. Select **MCP Servers**
|
|
185
|
+
4. Open **MCP Store** and search for `sequential-thinking`
|
|
186
|
+
5. Click **Add** to install
|
|
187
|
+
|
|
188
|
+
> 💡 Without this, workflows still work, but deep thinking features will be limited.
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## ⚡ Invoke Workflows
|
|
193
|
+
|
|
194
|
+
Antigravity will automatically recognize the intent and trigger the appropriate workflow. You can use it in two ways:
|
|
73
195
|
|
|
74
|
-
|
|
75
|
-
|
|
196
|
+
#### ⚡ Method A: Slash Protocol (Explicit)
|
|
197
|
+
Directly type the command in the chat or editor to trigger the workflow.
|
|
198
|
+
- `/genesis` - Start project creation
|
|
199
|
+
- `/scout` - Analyze existing codebase
|
|
200
|
+
- `/blueprint` - Break down architecture into tasks
|
|
201
|
+
|
|
202
|
+
#### 🧠 Method B: Intent Protocol (Implicit)
|
|
203
|
+
Just speak naturally. Antigravity will automatically select and run the right workflow.
|
|
204
|
+
- *"I want to start a new project for a todo app"* → Triggers `/genesis`
|
|
205
|
+
- *"Help me understand this legacy code and its risks"* → Triggers `/scout`
|
|
206
|
+
- *"I think there are gaps in this design, challenge it"* → Triggers `/challenge`
|
|
207
|
+
- *"The architecture is ready, let's plan the tasks"* → Triggers `/blueprint`
|
|
208
|
+
- *"Change the error message on the login page"* → Triggers `/change` (tweak existing task)
|
|
209
|
+
- *"I need to add a back-to-top button"* → Triggers `/genesis` (requires new task)
|
|
76
210
|
|
|
77
211
|
---
|
|
78
212
|
|
|
79
|
-
##
|
|
213
|
+
## 📁 Project Structure
|
|
214
|
+
|
|
215
|
+
```
|
|
216
|
+
your-project/
|
|
217
|
+
├── .agent/
|
|
218
|
+
│ ├── rules/
|
|
219
|
+
│ │ └── agents.md # 🧠 AI's anchor point
|
|
220
|
+
│ ├── workflows/ # Workflow definitions
|
|
221
|
+
│ │ ├── genesis.md
|
|
222
|
+
│ │ ├── scout.md
|
|
223
|
+
│ │ ├── design-system.md
|
|
224
|
+
│ │ ├── challenge.md
|
|
225
|
+
│ │ ├── blueprint.md
|
|
226
|
+
│ │ ├── forge.md
|
|
227
|
+
│ │ ├── change.md
|
|
228
|
+
│ │ ├── explore.md
|
|
229
|
+
│ │ └── craft.md
|
|
230
|
+
│ │
|
|
231
|
+
│ └── skills/ # Reusable skills
|
|
232
|
+
│ ├── concept-modeler/
|
|
233
|
+
│ ├── spec-writer/
|
|
234
|
+
│ ├── task-planner/
|
|
235
|
+
│ └── ...
|
|
236
|
+
│
|
|
237
|
+
└── genesis/ # Versioned architecture docs
|
|
238
|
+
├── v1/
|
|
239
|
+
│ ├── 01_PRD.md
|
|
240
|
+
│ ├── 02_ARCHITECTURE.md
|
|
241
|
+
│ ├── 03_ADR/
|
|
242
|
+
│ ├── 05_TASKS.md
|
|
243
|
+
│ └── 07_CHALLENGE_REPORT.md
|
|
244
|
+
└── v2/ # New version on major changes
|
|
245
|
+
```
|
|
80
246
|
|
|
81
|
-
|
|
247
|
+
## 🙌 Contributing
|
|
82
248
|
|
|
83
|
-
|
|
249
|
+
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
|
|
84
250
|
|
|
85
251
|
---
|
|
86
252
|
|
|
87
|
-
##
|
|
253
|
+
## 📜 License
|
|
88
254
|
|
|
89
|
-
|
|
90
|
-
- 无运行时依赖
|
|
255
|
+
[MIT](LICENSE) © 2026
|
|
91
256
|
|
|
92
257
|
---
|
|
93
258
|
|
|
94
|
-
|
|
259
|
+
<div align="center">
|
|
260
|
+
|
|
261
|
+
**Made for architects who code, and AIs who think.**
|
|
262
|
+
|
|
263
|
+
🧠 *"Good architecture isn't written. It's designed."*
|
|
95
264
|
|
|
96
|
-
|
|
265
|
+
</div>
|
package/package.json
CHANGED
|
@@ -1,93 +1,112 @@
|
|
|
1
|
-
# AGENTS.md - AI 协作协议
|
|
2
|
-
|
|
3
|
-
> **"如果你正在阅读此文档,你就是那个智能体 (The Intelligence)。"**
|
|
4
|
-
>
|
|
5
|
-
> 这个文件是你的**锚点 (Anchor)**。它定义了项目的法则、领地的地图,以及记忆协议。
|
|
6
|
-
> 当你唤醒(开始新会话)时,**请首先阅读此文件**。
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## 🧠 30秒恢复协议 (Quick Recovery)
|
|
11
|
-
|
|
12
|
-
**当你开始新会话或感到"迷失"时,立即执行**:
|
|
13
|
-
|
|
14
|
-
1. **读取 .agent/rules/agents.md** → 获取项目地图
|
|
15
|
-
2. **查看下方"当前状态"** → 找到最新架构版本
|
|
16
|
-
3. **读取 `genesis/v{N}/05_TASKS.md`** → 了解当前待办
|
|
17
|
-
4. **开始工作**
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## 🗺️ 地图 (领地感知)
|
|
22
|
-
|
|
23
|
-
以下是这个项目的组织方式:
|
|
24
|
-
|
|
25
|
-
| 路径 | 描述 | 访问协议 |
|
|
26
|
-
|------|------|----------|
|
|
27
|
-
| `src/` | **实现层**。实际的代码库。 | 通过 Task 读/写。 |
|
|
28
|
-
| `genesis/` | **设计演进史**。版本化架构状态 (v1, v2...)。 | **只读**(旧版) / **写一次**(新版)。 |
|
|
29
|
-
| `genesis/v{N}/` | **当前真理**。最新的架构定义。 | 永远寻找最大的 `v{N}`。 |
|
|
30
|
-
| `.agent/workflows/` | **工作流**。`/genesis`, `/blueprint` 等。 | 通过 `view_file` 阅读。 |
|
|
31
|
-
| `.agent/skills/` | **技能库**。原子能力。 | 通过 `view_file` 调用。 |
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## 📍 当前状态 (由 Workflow 自动更新)
|
|
36
|
-
|
|
37
|
-
> **注意**: 此部分由 `/genesis`、`/blueprint` 和 `/forge` 自动维护。
|
|
38
|
-
|
|
39
|
-
- **最新架构版本**: `尚未初始化`
|
|
40
|
-
- **活动任务清单**: `尚未生成`
|
|
41
|
-
- **待办任务数**: -
|
|
42
|
-
- **最近一次更新**: `-`
|
|
43
|
-
|
|
44
|
-
### 🌊 Wave 1 — 待 /blueprint 或 /forge 设置
|
|
45
|
-
_尚未开始执行_
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## 🌳 项目结构 (Project Tree)
|
|
50
|
-
|
|
51
|
-
> **注意**: 此部分由 `/genesis` 维护。
|
|
52
|
-
|
|
53
|
-
```text
|
|
54
|
-
(等待 Genesis 初始化结构树...)
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## 🧭 导航指南 (Navigation Guide)
|
|
60
|
-
|
|
61
|
-
> **注意**: 此部分由 `/genesis` 维护。
|
|
62
|
-
|
|
63
|
-
- **在新架构就绪前**: 请勿大规模修改代码。
|
|
64
|
-
- **遇到架构问题**: 请查阅 `genesis/v{N}/03_ADR/`。
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## 🛠️ 工作流注册表
|
|
69
|
-
|
|
70
|
-
| 工作流 | 触发时机 | 产出 |
|
|
71
|
-
|--------|---------|------|
|
|
72
|
-
| `/
|
|
73
|
-
| `/
|
|
74
|
-
| `/
|
|
75
|
-
| `/
|
|
76
|
-
| `/
|
|
77
|
-
| `/
|
|
78
|
-
| `/
|
|
79
|
-
| `/
|
|
80
|
-
| `/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
1
|
+
# AGENTS.md - AI 协作协议
|
|
2
|
+
|
|
3
|
+
> **"如果你正在阅读此文档,你就是那个智能体 (The Intelligence)。"**
|
|
4
|
+
>
|
|
5
|
+
> 这个文件是你的**锚点 (Anchor)**。它定义了项目的法则、领地的地图,以及记忆协议。
|
|
6
|
+
> 当你唤醒(开始新会话)时,**请首先阅读此文件**。
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 🧠 30秒恢复协议 (Quick Recovery)
|
|
11
|
+
|
|
12
|
+
**当你开始新会话或感到"迷失"时,立即执行**:
|
|
13
|
+
|
|
14
|
+
1. **读取 .agent/rules/agents.md** → 获取项目地图
|
|
15
|
+
2. **查看下方"当前状态"** → 找到最新架构版本
|
|
16
|
+
3. **读取 `genesis/v{N}/05_TASKS.md`** → 了解当前待办
|
|
17
|
+
4. **开始工作**
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 🗺️ 地图 (领地感知)
|
|
22
|
+
|
|
23
|
+
以下是这个项目的组织方式:
|
|
24
|
+
|
|
25
|
+
| 路径 | 描述 | 访问协议 |
|
|
26
|
+
|------|------|----------|
|
|
27
|
+
| `src/` | **实现层**。实际的代码库。 | 通过 Task 读/写。 |
|
|
28
|
+
| `genesis/` | **设计演进史**。版本化架构状态 (v1, v2...)。 | **只读**(旧版) / **写一次**(新版)。 |
|
|
29
|
+
| `genesis/v{N}/` | **当前真理**。最新的架构定义。 | 永远寻找最大的 `v{N}`。 |
|
|
30
|
+
| `.agent/workflows/` | **工作流**。`/genesis`, `/blueprint` 等。 | 通过 `view_file` 阅读。 |
|
|
31
|
+
| `.agent/skills/` | **技能库**。原子能力。 | 通过 `view_file` 调用。 |
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 📍 当前状态 (由 Workflow 自动更新)
|
|
36
|
+
|
|
37
|
+
> **注意**: 此部分由 `/genesis`、`/blueprint` 和 `/forge` 自动维护。
|
|
38
|
+
|
|
39
|
+
- **最新架构版本**: `尚未初始化`
|
|
40
|
+
- **活动任务清单**: `尚未生成`
|
|
41
|
+
- **待办任务数**: -
|
|
42
|
+
- **最近一次更新**: `-`
|
|
43
|
+
|
|
44
|
+
### 🌊 Wave 1 — 待 /blueprint 或 /forge 设置
|
|
45
|
+
_尚未开始执行_
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 🌳 项目结构 (Project Tree)
|
|
50
|
+
|
|
51
|
+
> **注意**: 此部分由 `/genesis` 维护。
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
(等待 Genesis 初始化结构树...)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 🧭 导航指南 (Navigation Guide)
|
|
60
|
+
|
|
61
|
+
> **注意**: 此部分由 `/genesis` 维护。
|
|
62
|
+
|
|
63
|
+
- **在新架构就绪前**: 请勿大规模修改代码。
|
|
64
|
+
- **遇到架构问题**: 请查阅 `genesis/v{N}/03_ADR/`。
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 🛠️ 工作流注册表
|
|
69
|
+
|
|
70
|
+
| 工作流 | 触发时机 | 产出 |
|
|
71
|
+
|--------|---------|------|
|
|
72
|
+
| `/quickstart` | 新用户入口 / 不知道从哪开始 | 编排其他工作流 |
|
|
73
|
+
| `/genesis` | 新项目 / 重大重构 | PRD, Architecture, ADRs |
|
|
74
|
+
| `/scout` | 变更前 / 接手项目 | `genesis/v{N}/00_SCOUT_REPORT.md` |
|
|
75
|
+
| `/design-system` | genesis 后 | 04_SYSTEM_DESIGN/*.md |
|
|
76
|
+
| `/blueprint` | genesis 后 | 05_TASKS.md + agents.md 初始 Wave |
|
|
77
|
+
| `/change` | 微调已有任务 | 更新 TASKS + SYSTEM_DESIGN (仅修改) + CHANGELOG |
|
|
78
|
+
| `/explore` | 调研时 | 探索报告 |
|
|
79
|
+
| `/challenge` | 决策前质疑 | 07_CHALLENGE_REPORT.md (含问题总览目录) |
|
|
80
|
+
| `/forge` | 编码执行 | 代码 + 更新 agents.md Wave 块 |
|
|
81
|
+
| `/craft` | 创建工作流/技能/提示词 | Workflow / Skill / Prompt 文档 |
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## 📜 宪法 (The Constitution)
|
|
86
|
+
|
|
87
|
+
1. **版本即法律**: 不"修补"架构文档,只"演进"。变更必须创建新版本。
|
|
88
|
+
2. **显式上下文**: 决策写入 ADR,不留在"聊天记忆"里。
|
|
89
|
+
3. **交叉验证**: 编码前对照 `05_TASKS.md`。我在做计划好的事吗?
|
|
90
|
+
4. **美学**: 文档应该是美的。善用 Markdown 和 Emoji。
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
## 🔄 Auto-Updated Context
|
|
94
|
+
|
|
95
|
+
<!-- AUTO:BEGIN — 由工作流自动维护,请勿手动编辑此区块 -->
|
|
96
|
+
|
|
97
|
+
### 技术栈决策
|
|
98
|
+
- [由 genesis/tech-evaluator 自动填充]
|
|
99
|
+
|
|
100
|
+
### 系统边界
|
|
101
|
+
- [由 genesis/system-architect 自动填充]
|
|
102
|
+
|
|
103
|
+
### 活跃 ADR
|
|
104
|
+
- [由 genesis 自动填充 ADR 摘要]
|
|
105
|
+
|
|
106
|
+
### 当前任务状态
|
|
107
|
+
- [由 blueprint/forge 自动更新]
|
|
108
|
+
|
|
109
|
+
<!-- AUTO:END -->
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
> **状态自检**: 准备好了?提醒用户运行 `/quickstart` 开始吧。
|