sisyo 1.8.0 → 1.10.0
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 +18 -4
- package/bin/known-hashes.json +24 -0
- package/package.json +1 -1
- package/templates/.claude/rules/decision-memory.md +40 -0
- package/templates/.claude/rules/docs.md +67 -14
- package/templates/.claude/skills/kicho-devflow/SKILL.md +185 -0
- package/templates/.claude/skills/kicho-devflow/kdev.mjs +1404 -0
- package/templates/.claude/skills/kicho-devflow/templates/handbook.md +32 -0
- package/templates/.claude/skills/kicho-devflow/templates/request.json +63 -0
- package/templates/.claude/skills/kicho-devflow/templates/request.md +57 -0
- package/templates/.claude/skills/vibe-docs/SKILL.md +128 -193
- package/templates/SISYO.md +12 -10
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Quy trình chung cho **mọi dự án** của công ty. Mỗi dự án có một trang trong 🏦 Projects; anh đọc được trên mọi máy và điện thoại. Tài liệu kỹ thuật chi tiết cho agent vẫn ở `docs/` trong repo.
|
|
2
|
+
|
|
3
|
+
## Anh cần đọc gì
|
|
4
|
+
|
|
5
|
+
- **Trang sprint** (🏃 Sprint, xem theo timeline): mỗi sprint là một lần phát hành. Trang sprint ghi ngắn: đã làm gì, đã quyết gì, vài ảnh, test theo cụm, số đo, sprint sau làm gì.
|
|
6
|
+
- **Trang yêu cầu** (nằm trong sprint, tên `S5 · R6 · …`): khi agent cần anh quyết.
|
|
7
|
+
- **📚 Tài liệu dự án**, 4 trang ngắn: 🧭 Kiến trúc hệ thống (luồng đi, vì sao chọn), 🗄️ Cơ sở dữ liệu (mỗi bảng một dòng), 🧪 Cụm chức năng & test (test từng cụm, số case đạt), 📈 Số đo & cải tiến (trước → sau).
|
|
8
|
+
|
|
9
|
+
Anh không cần theo dõi tiến độ từng việc của agent.
|
|
10
|
+
|
|
11
|
+
## Vòng đời một yêu cầu
|
|
12
|
+
|
|
13
|
+
1. **Gửi**: anh nhắn trong Claude Code, hoặc tự viết một trang trong 📥 Yêu cầu.
|
|
14
|
+
2. **Xác nhận** 🟡: agent tự quyết gom thành một R hay không và đặt vào sprint nào. Trang R có các thẻ: hiện có gì, đề xuất, và chỉ những câu hỏi cần anh quyết (⭐ là phương án agent khuyên). Việc nhỏ (sửa một dòng, câu hỏi) thì làm luôn, ghi vào tổng kết sprint.
|
|
15
|
+
3. **Duyệt**: anh trả lời trên trang hoặc ngay trong chat.
|
|
16
|
+
4. **Triển khai** 🔨 → **kiểm thử** 🧪: sửa cụm nào, test lại cụm đó.
|
|
17
|
+
5. **Phát hành** ✅: chạy toàn bộ test trước khi lên production hoặc store, backup, deploy, ghi 🚀 Phát hành, viết tổng kết sprint.
|
|
18
|
+
|
|
19
|
+
## Ba chế độ
|
|
20
|
+
|
|
21
|
+
- **Duyệt trước** (mặc định): chờ anh duyệt rồi mới làm.
|
|
22
|
+
- **Duyệt nhanh**: mục không có câu hỏi thì làm luôn, mục có câu hỏi thì chờ. Anh nói "duyệt nhanh". Trang anh tự viết mặc định là chế độ này.
|
|
23
|
+
- **Làm luôn**: anh nói "làm luôn" hoặc "bận"; agent vẫn ghi lại các lựa chọn đã dùng.
|
|
24
|
+
|
|
25
|
+
## Trả lời trên thẻ
|
|
26
|
+
|
|
27
|
+
- Chọn phương án là đồng ý; muốn khác thì ghi vào "Khác". Nút **Đồng ý / Đồng ý, có sửa / Để sau / Bỏ** và ô ghi chú khi cần.
|
|
28
|
+
- Cuối trang chọn cách duyệt (tất cả / chỉ mục đã đồng ý / duyệt nhanh), rồi nhắn agent.
|
|
29
|
+
|
|
30
|
+
## Agent tự nhớ
|
|
31
|
+
|
|
32
|
+
Quyết định của anh được lưu vào bộ nhớ chung của các agent (cùng với doraemon); agent tra lại trước khi hỏi, nên không hỏi lại điều anh đã quyết.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Tóm tắt ngắn của loạt yêu cầu",
|
|
3
|
+
"mode": "review",
|
|
4
|
+
"agent": "Claude Code (Opus 5.5) trên ubuntu1",
|
|
5
|
+
"intro": "",
|
|
6
|
+
"cards": [
|
|
7
|
+
{
|
|
8
|
+
"key": "A",
|
|
9
|
+
"title": "Tên mục, ngắn",
|
|
10
|
+
"size": "M",
|
|
11
|
+
"area": "Database",
|
|
12
|
+
"quote": "lời anh, trích ngắn",
|
|
13
|
+
"current": "Hiện có: đọc code rồi mới viết. Markdown: danh sách, bảng, `code`.",
|
|
14
|
+
"proposal": "- Đề xuất cụ thể: kích thước, phím tắt, giới hạn\n- Chỗ trong giao diện",
|
|
15
|
+
"questions": [
|
|
16
|
+
{
|
|
17
|
+
"id": "q1",
|
|
18
|
+
"text": "Câu hỏi khi thật sự cần anh quyết?",
|
|
19
|
+
"kind": "single",
|
|
20
|
+
"options": [
|
|
21
|
+
{
|
|
22
|
+
"id": "a",
|
|
23
|
+
"label": "Lựa chọn agent khuyên",
|
|
24
|
+
"description": "vì sao, 1 dòng",
|
|
25
|
+
"recommended": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "b",
|
|
29
|
+
"label": "Lựa chọn khác",
|
|
30
|
+
"description": "đánh đổi"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "q2",
|
|
36
|
+
"text": "Chọn nhiều thứ cùng lúc?",
|
|
37
|
+
"kind": "multi",
|
|
38
|
+
"options": [
|
|
39
|
+
{
|
|
40
|
+
"id": "x",
|
|
41
|
+
"label": "Thứ nhất",
|
|
42
|
+
"recommended": true
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "y",
|
|
46
|
+
"label": "Thứ hai"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"key": "B",
|
|
54
|
+
"title": "Ý của agent ngoài yêu cầu",
|
|
55
|
+
"size": "S",
|
|
56
|
+
"area": "Quy trình",
|
|
57
|
+
"extra": true,
|
|
58
|
+
"proposal": "Đề xuất thêm, ghi rõ lợi ích."
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"plan": "1. Việc nào trước\n2. Chia agent theo vùng code\n3. Test chung, kiểm tra trình duyệt, bằng chứng\n4. Backup, test gate, deploy, ghi Phát hành",
|
|
62
|
+
"raw": "Toàn bộ tin nhắn của anh, nguyên văn."
|
|
63
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
**Trạng thái:** {{STATUS}}
|
|
2
|
+
|
|
3
|
+
**Chế độ:** Duyệt trước · **Gửi:** {{DATE}} · **Agent:** <model> trên <máy>
|
|
4
|
+
|
|
5
|
+
**Cách duyệt:** mỗi mục có ô *Đồng ý* và dòng *Phản hồi*. Câu hỏi anh không tick thì làm theo đề xuất. Xong thì tick ở phần cuối trang và nhắn agent "đã duyệt {{REQ}}". Muốn gửi ảnh chụp thì dán thẳng vào trang.
|
|
6
|
+
|
|
7
|
+
## Tóm tắt
|
|
8
|
+
|
|
9
|
+
| # | Hạng mục | Đề xuất ngắn | Độ lớn |
|
|
10
|
+
|---|---|---|---|
|
|
11
|
+
| A | … | … | S / M / L |
|
|
12
|
+
|
|
13
|
+
## A. <Tên mục>
|
|
14
|
+
|
|
15
|
+
> "<lời anh, trích ngắn>"
|
|
16
|
+
|
|
17
|
+
**Hiện có:** <đọc code rồi mới viết>
|
|
18
|
+
|
|
19
|
+
**Đề xuất:**
|
|
20
|
+
- <cụ thể: kích thước, phím tắt, giới hạn, chỗ trong giao diện>
|
|
21
|
+
|
|
22
|
+
**Chọn:** <câu hỏi, chỉ khi thật sự cần anh quyết>
|
|
23
|
+
- [ ] A. <lựa chọn agent khuyên> (đề xuất)
|
|
24
|
+
- [ ] B. <lựa chọn khác>
|
|
25
|
+
|
|
26
|
+
**Độ lớn:** S / M / L
|
|
27
|
+
|
|
28
|
+
- [ ] Đồng ý
|
|
29
|
+
|
|
30
|
+
**Phản hồi:**
|
|
31
|
+
|
|
32
|
+
## Đề xuất thêm
|
|
33
|
+
|
|
34
|
+
<ý của agent ngoài yêu cầu, ghi rõ là đề xuất thêm; mỗi ý có Đồng ý + Phản hồi như một mục>
|
|
35
|
+
|
|
36
|
+
## Kế hoạch triển khai (sau khi duyệt)
|
|
37
|
+
|
|
38
|
+
1. <thứ tự, việc nào trước>
|
|
39
|
+
2. <chia agent theo vùng code>
|
|
40
|
+
3. <test, kiểm tra trình duyệt, bằng chứng>
|
|
41
|
+
4. <backup, test gate, deploy, ghi Phát hành>
|
|
42
|
+
|
|
43
|
+
## Duyệt
|
|
44
|
+
|
|
45
|
+
- [ ] Duyệt tất cả theo đề xuất (câu hỏi không tick = theo đề xuất)
|
|
46
|
+
- [ ] Chỉ làm các mục đã tick Đồng ý; mục chưa tick để lại
|
|
47
|
+
- [ ] Duyệt nhanh: làm luôn mục đã tick, chờ anh ở mục có phản hồi
|
|
48
|
+
|
|
49
|
+
**Phản hồi chung:**
|
|
50
|
+
|
|
51
|
+
## Báo cáo
|
|
52
|
+
|
|
53
|
+
_Agent điền khi triển khai: việc đã làm, ảnh và video bằng chứng, kết quả test, commit, deploy._
|
|
54
|
+
|
|
55
|
+
## Nguyên văn yêu cầu
|
|
56
|
+
|
|
57
|
+
> <toàn bộ tin nhắn của anh>
|
|
@@ -1,242 +1,177 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vibe-docs
|
|
3
|
-
description: "
|
|
3
|
+
description: "Keep the agent docs in docs/ in sync with the code, so any agent (in a new session, another worktree or a parallel batch) can take the project over without missing anything: English, concise, split into folders and files with paths, 3-level routing. Triggers on feature changes, DB schema, API endpoints, frontend pages, infra, testing, security, integrations, decisions, or any task completion. Also triggers on: project status, what is next, update docs, create a plan, log this, handoff, worktree, parallel session, merge pass. Core principle: read docs/MAP.md first and never load all docs at once. Human-facing docs (architecture overview, key numbers, sprint summaries) do not go here: they go to the project's hub (skill kicho-devflow)."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Vibe Docs
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
`docs/` is written **for agents** (`.claude/rules/docs.md`). The test it must pass: an agent that knows nothing about
|
|
9
|
+
the project, working in a new session or in another worktree, can take the project over from `docs/` plus git without
|
|
10
|
+
missing anything. Docs for people are a separate set in the project's hub (skill `kicho-devflow`). Never copy one
|
|
11
|
+
set into the other.
|
|
9
12
|
|
|
10
|
-
##
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
## Writing rules
|
|
14
|
+
- English, concise, but complete: never drop a fact the next agent needs. Prefer facts, tables, lists and paths;
|
|
15
|
+
write prose only for a reason or a flow.
|
|
16
|
+
- Refer to code by path (`src/billing/invoice.ts`) instead of copying it. Write what the code cannot say: why,
|
|
17
|
+
contracts, constraints, gotchas, commands, env vars, where things run, what is unfinished.
|
|
18
|
+
- Describe the current state. Replace outdated lines instead of appending notes; git keeps the history.
|
|
19
|
+
- When you move, merge or shorten a doc, carry every still-true fact into its new place.
|
|
20
|
+
- One topic per file. Split a file when it grows past about 200 lines, and route the parts through `_summary.md`.
|
|
21
|
+
- Never write secrets, tokens or personal data.
|
|
13
22
|
|
|
23
|
+
## 3-level routing
|
|
14
24
|
```
|
|
15
|
-
Level 1
|
|
16
|
-
Level 2
|
|
17
|
-
Level 3
|
|
25
|
+
Level 1 docs/MAP.md one line per folder or file, read ALWAYS (~500 tokens)
|
|
26
|
+
Level 2 <folder>/_summary.md one table row per item (~200 tokens)
|
|
27
|
+
Level 3 <folder>/<item>.md detail, load ONLY to change or deeply understand that item
|
|
18
28
|
```
|
|
29
|
+
Most tasks need only Level 1 and Level 2. Do not load detail files just to check something; the summary table is
|
|
30
|
+
enough for most decisions. After a change, update bottom-up: detail, then `_summary.md`, then MAP.md.
|
|
19
31
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## Folder Structure
|
|
23
|
-
|
|
32
|
+
## Folders (created when there is content, never empty)
|
|
24
33
|
```
|
|
25
34
|
docs/
|
|
26
|
-
MAP.md
|
|
27
|
-
00_schedule/
|
|
28
|
-
01_requirements/
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
35
|
+
MAP.md
|
|
36
|
+
00_schedule/ roadmap, milestones
|
|
37
|
+
01_requirements/ feature specs
|
|
38
|
+
02_architecture/ components, flows, decisions.md, gotchas
|
|
39
|
+
03_database/ tables
|
|
40
|
+
04_api/ endpoints grouped by module
|
|
41
|
+
05_frontend/ routes, pages, state
|
|
42
|
+
06_infra/ deploy, dev environment, Docker, CI/CD, env vars
|
|
43
|
+
07_testing/ test groups, commands, edge cases
|
|
44
|
+
08_security/ auth flows, roles, secrets handling
|
|
45
|
+
09_integrations/ third-party services
|
|
46
|
+
99_progress/ todo.md, handoff.md, features.md, sessions/<branch>.md
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## When to update, and what the doc holds
|
|
50
|
+
| Done | Update | It holds |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| Timeline or milestone set | `00_schedule/roadmap.md` | phases, milestones, deadlines |
|
|
53
|
+
| Feature planned | `01_requirements/_summary.md` + `<feature>.md` | scope, user stories, acceptance criteria, what is out |
|
|
54
|
+
| Tech or architecture choice | `02_architecture/decisions.md` | one row: id, date, decision, why, options rejected |
|
|
55
|
+
| Trap found or limitation accepted | `02_architecture/gotchas.md` | symptom, cause, what to do instead |
|
|
56
|
+
| Tables or columns changed | `03_database/_summary.md` + `<table>.md` | columns, types, indexes, relations, migration notes |
|
|
57
|
+
| Endpoints changed | `04_api/_summary.md` + `<module>.md` | request, response, errors, auth, examples |
|
|
58
|
+
| Pages or routes changed | `05_frontend/_summary.md` + `<group>.md` | route, components, state, behaviour |
|
|
59
|
+
| Deploy, infra or env changed | `06_infra/<topic>.md` | hosts, paths, commands, env vars, how to roll back |
|
|
60
|
+
| Tests added or changed | `07_testing/<group>.md` | what each group covers, commands, edge cases |
|
|
61
|
+
| Auth, roles or keys changed | `08_security/<topic>.md` | flow, roles, permissions, where secrets live (never the values) |
|
|
62
|
+
| Third-party service added | `09_integrations/<service>.md` | config, SDK usage, webhooks, limits, costs |
|
|
63
|
+
| Feature done | `99_progress/features.md` | date, feature, status, link to its spec |
|
|
64
|
+
| Task done | `99_progress/todo.md` | doing, next, done with dates |
|
|
65
|
+
| Session ends or `/clear` | `99_progress/handoff.md` | main-line state (below) |
|
|
66
|
+
| Milestone or stop on a parallel branch | `99_progress/sessions/<branch>.md` | branch state (below) |
|
|
67
|
+
|
|
68
|
+
Each change on the main line also updates the folder's `_summary.md` (when it has one) and the MAP.md line. On a
|
|
69
|
+
parallel branch, leave those to the merge pass.
|
|
70
|
+
|
|
71
|
+
## _summary.md
|
|
72
|
+
One table with one row per item, under 50 lines, and a link to the detail files. Put related items in the same row.
|
|
73
|
+
Use columns that fit the folder:
|
|
74
|
+
- database: Table | Purpose | Relations;
|
|
75
|
+
- API: Method | Path | Description | Auth;
|
|
76
|
+
- frontend: Route | Page | Components | Description;
|
|
77
|
+
- requirements: Feature | Status | Scope.
|
|
78
|
+
|
|
79
|
+
Example:
|
|
56
80
|
```
|
|
57
81
|
# Database Tables
|
|
58
|
-
> Updated:
|
|
82
|
+
> Updated: 2026-03-03 | Tables: 3
|
|
59
83
|
|
|
60
|
-
| Table |
|
|
61
|
-
|
|
62
|
-
| users |
|
|
63
|
-
| posts |
|
|
64
|
-
| comments |
|
|
65
|
-
| categories | Post categories, hierarchical | -- |
|
|
84
|
+
| Table | Purpose | Relations |
|
|
85
|
+
|---|---|---|
|
|
86
|
+
| users | accounts, profile | -- |
|
|
87
|
+
| posts | posts, draft/publish | -> users |
|
|
88
|
+
| comments | nested comments | -> users, posts |
|
|
66
89
|
|
|
67
|
-
Detail: `03_database
|
|
90
|
+
Detail: `03_database/<table>.md`
|
|
68
91
|
```
|
|
69
92
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
> Updated: 2025-03-03 | Endpoints: 12
|
|
74
|
-
|
|
75
|
-
| Method | Path | Description | Auth |
|
|
76
|
-
|--------|------|-------------|:----:|
|
|
77
|
-
| POST | /auth/login | Email + password login | no |
|
|
78
|
-
| POST | /auth/register | Create new account | no |
|
|
79
|
-
| GET | /posts | List posts, paginated | no |
|
|
80
|
-
| POST | /posts | Create new post | yes |
|
|
81
|
-
| PUT | /posts/:id | Update post | yes |
|
|
82
|
-
| DELETE | /posts/:id | Delete post | yes |
|
|
83
|
-
| GET | /users/me | Get current user profile | yes |
|
|
84
|
-
|
|
85
|
-
Detail: `04_api/[module].md`
|
|
93
|
+
## MAP.md
|
|
94
|
+
One line per folder (pointing to its `_summary.md`) or per single file. Keep each line to about 15 words, with the key
|
|
95
|
+
nouns and counts, and end it with the date:
|
|
86
96
|
```
|
|
97
|
+
# Project Map
|
|
98
|
+
> Updated: 2026-03-03 | Docs: 9
|
|
87
99
|
|
|
88
|
-
|
|
100
|
+
## 03_database
|
|
101
|
+
- `03_database/_summary.md` -- 3 tables: users, posts, comments (2026-03-03)
|
|
89
102
|
```
|
|
90
|
-
# Frontend Pages
|
|
91
|
-
> Updated: 2025-03-03 | Pages: 6
|
|
92
|
-
|
|
93
|
-
| Route | Page | Components | Description |
|
|
94
|
-
|-------|------|------------|-------------|
|
|
95
|
-
| / | Home | PostList, Hero | Landing + recent posts |
|
|
96
|
-
| /login | Login | LoginForm | Auth page |
|
|
97
|
-
| /posts/:id | PostDetail | Post, Comments | Single post view |
|
|
98
|
-
| /dashboard | Dashboard | Stats, PostTable | User dashboard (auth) |
|
|
99
103
|
|
|
100
|
-
|
|
104
|
+
## Doc header
|
|
101
105
|
```
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
- One compact table, all items visible at a glance
|
|
105
|
-
- Max 1 line per item -- no detail here
|
|
106
|
-
- Group related items in the SAME row when possible
|
|
107
|
-
- Always link to detail files at the bottom
|
|
108
|
-
- Keep under 50 lines total
|
|
109
|
-
|
|
110
|
-
## MAP.md Format
|
|
111
|
-
|
|
112
|
-
MAP.md is Level 1 -- one line per doc/folder with keyword-rich summary:
|
|
113
|
-
|
|
106
|
+
# <Title>
|
|
107
|
+
> Updated: YYYY-MM-DD | Status: draft/active/done
|
|
114
108
|
```
|
|
115
|
-
# Project Map
|
|
116
|
-
> Updated: YYYY-MM-DD | Docs: N
|
|
117
|
-
|
|
118
|
-
## 00_schedule
|
|
119
|
-
- 00_schedule/roadmap.md -- MVP phase 1 by April, phase 2 by June (2025-03-03)
|
|
120
109
|
|
|
121
|
-
##
|
|
122
|
-
|
|
110
|
+
## Session start
|
|
111
|
+
1. `docs/MAP.md`, then `docs/99_progress/handoff.md`.
|
|
112
|
+
2. `git status`, `git log --oneline -5`, `git worktree list`.
|
|
113
|
+
3. `docs/99_progress/sessions/<your branch>.md` if it exists.
|
|
114
|
+
4. `docs/99_progress/todo.md`, the relevant `_summary.md`.
|
|
115
|
+
5. Only the detail files the task needs.
|
|
123
116
|
|
|
124
|
-
##
|
|
125
|
-
- 03_database/_summary.md -- 4 tables: users, posts, comments, categories (2025-03-03)
|
|
126
|
-
|
|
127
|
-
## 04_api
|
|
128
|
-
- 04_api/_summary.md -- 12 endpoints: auth(2), posts(5), users(3), comments(2) (2025-03-03)
|
|
117
|
+
## handoff.md (main line, updated at the end of each session and by each merge pass)
|
|
129
118
|
```
|
|
119
|
+
# Handoff
|
|
120
|
+
> Updated: YYYY-MM-DD HH:MM
|
|
130
121
|
|
|
131
|
-
|
|
132
|
-
-
|
|
133
|
-
- Always end with (YYYY-MM-DD) update date
|
|
134
|
-
- For folders with _summary.md, list the summary file (not every detail file)
|
|
135
|
-
- Group by folder number, skip empty sections
|
|
136
|
-
- Update total doc count in header
|
|
137
|
-
|
|
138
|
-
## Auto-trigger Matrix
|
|
139
|
-
|
|
140
|
-
| Action completed | Update | Doc contains | + MAP.md |
|
|
141
|
-
|--------------------------------|---------------------------------|-------------------------------------------------------|:--------:|
|
|
142
|
-
| Set timeline/milestone | 00_schedule/roadmap.md | Phases, milestones, deadlines, sprint goals | yes |
|
|
143
|
-
| Discussed/planned a feature | 01_requirements/_summary.md + [name].md | _summary: feature list table. Detail: user stories, acceptance criteria, scope | yes |
|
|
144
|
-
| Made tech/architecture choice | 02_architecture/decisions.md | ADR format: context, options considered, decision, why | yes |
|
|
145
|
-
| Designed DB tables/columns | 03_database/_summary.md + [table].md | _summary: all tables + description. Detail: columns, types, indexes, relations | yes |
|
|
146
|
-
| Added/changed API endpoints | 04_api/_summary.md + [module].md | _summary: all endpoints compact table. Detail: request/response, examples | yes |
|
|
147
|
-
| Built frontend pages/routes | 05_frontend/_summary.md + [group].md | _summary: all routes + components. Detail: state, behavior, wireframe | yes |
|
|
148
|
-
| Changed deploy/infra/env | 06_infra/[topic].md | Docker, CI/CD, env vars, cloud services config | yes |
|
|
149
|
-
| Wrote/planned tests | 07_testing/[module].md | Test cases, edge cases, coverage notes, test commands | yes |
|
|
150
|
-
| Set up auth/permissions/keys | 08_security/[topic].md | Auth flow, roles, permissions, API keys, secrets mgmt | yes |
|
|
151
|
-
| Integrated third-party service | 09_integrations/[service].md | Service config, API keys, SDK usage, webhooks, limits | yes |
|
|
152
|
-
| Completed a feature | 99_progress/features.md | Date, feature name, status, link to spec doc | yes |
|
|
153
|
-
| Completed any task | 99_progress/todo.md | Task status: doing, next, done with dates | yes |
|
|
154
|
-
| Ending session or /clear | 99_progress/handoff.md | Session summary, current state, next steps, decisions | yes |
|
|
155
|
-
|
|
156
|
-
IMPORTANT: Every doc create or update must also update _summary.md (if exists) AND MAP.md.
|
|
157
|
-
|
|
158
|
-
## Agent Reading Strategy
|
|
122
|
+
## Live
|
|
123
|
+
- What runs where (commit, host), link to 06_infra
|
|
159
124
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
3. ONLY if you need to modify or deeply understand a specific item → load its detail file
|
|
164
|
-
4. After changes → update detail file → update _summary.md → update MAP.md (bottom-up)
|
|
125
|
+
## In progress
|
|
126
|
+
- Main line: unfinished work, broken things
|
|
127
|
+
- Worktrees / sessions: branch, path, goal, `sessions/<branch>.md`
|
|
165
128
|
|
|
166
|
-
|
|
129
|
+
## Waiting for the owner
|
|
130
|
+
1. Decision or action, with where to answer
|
|
167
131
|
|
|
168
|
-
##
|
|
132
|
+
## Next
|
|
133
|
+
1. Highest priority
|
|
169
134
|
|
|
170
|
-
|
|
135
|
+
## Recent decisions
|
|
136
|
+
- Chose X over Y: reason (D-n)
|
|
171
137
|
```
|
|
172
|
-
# [Title]
|
|
173
|
-
> Updated: YYYY-MM-DD | Status: draft/active/done
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
Formatting rules:
|
|
177
|
-
- Tables over prose for structured data
|
|
178
|
-
- Group related items in the same table (e.g. all auth endpoints in one table, not separate sections)
|
|
179
|
-
- Mermaid for diagrams
|
|
180
|
-
- Code blocks for configs, schemas, commands
|
|
181
|
-
- Keep each file under 200 lines -- split if longer
|
|
182
|
-
- Use relative links between docs
|
|
183
138
|
|
|
184
|
-
##
|
|
139
|
+
## sessions/<branch>.md (one per parallel branch, deleted after its merge)
|
|
140
|
+
```
|
|
141
|
+
# <branch>
|
|
142
|
+
> Updated: YYYY-MM-DD HH:MM | Worktree: <path> | Base: <commit>
|
|
185
143
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
144
|
+
## Goal
|
|
145
|
+
## Done
|
|
146
|
+
- Change (paths)
|
|
147
|
+
## Left
|
|
148
|
+
- Step, how to test it
|
|
149
|
+
## Decisions / open questions
|
|
150
|
+
## Touched
|
|
151
|
+
- Areas, files, migrations, docs to fold in at merge
|
|
152
|
+
```
|
|
192
153
|
|
|
193
|
-
##
|
|
154
|
+
## Merge pass
|
|
155
|
+
1. Fold each merged branch's session note into the topic docs.
|
|
156
|
+
2. Update `_summary.md`, MAP.md and the handoff.
|
|
157
|
+
3. Delete the merged notes.
|
|
158
|
+
4. If two branches generated migrations or doc rows with the same number, regenerate them once on the merged code.
|
|
194
159
|
|
|
195
|
-
|
|
160
|
+
## todo.md
|
|
196
161
|
```
|
|
197
162
|
# TODO
|
|
198
163
|
> Updated: YYYY-MM-DD
|
|
199
164
|
|
|
200
165
|
## Doing
|
|
201
|
-
- [ ] Task
|
|
166
|
+
- [ ] Task -- `01_requirements/<feature>.md`
|
|
202
167
|
|
|
203
168
|
## Next
|
|
204
|
-
- [ ] Task
|
|
169
|
+
- [ ] Task
|
|
205
170
|
|
|
206
171
|
## Done
|
|
207
|
-
- [x] [
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
When user asks "what is next" -- read this file.
|
|
211
|
-
When task is done -- move to Done section with date.
|
|
212
|
-
|
|
213
|
-
## Session Handoff
|
|
214
|
-
|
|
215
|
-
Write 99_progress/handoff.md before /clear or end of session:
|
|
172
|
+
- [x] [YYYY-MM-DD] Task
|
|
216
173
|
```
|
|
217
|
-
# Handoff
|
|
218
|
-
> Updated: YYYY-MM-DD HH:MM
|
|
219
|
-
|
|
220
|
-
## Done this session
|
|
221
|
-
- Completed X (files: path/a.ts, path/b.py)
|
|
222
|
-
|
|
223
|
-
## State
|
|
224
|
-
- Working: [what functions correctly]
|
|
225
|
-
- Broken: [known issues]
|
|
226
|
-
- In progress: [incomplete work]
|
|
227
|
-
|
|
228
|
-
## Next
|
|
229
|
-
1. Highest priority task
|
|
230
|
-
2. Second priority
|
|
231
|
-
|
|
232
|
-
## Decisions
|
|
233
|
-
- Chose X over Y: reason
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## Project Init Protocol
|
|
237
174
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
3. Create docs/99_progress/handoff.md with initial state
|
|
242
|
-
4. Everything else is created on-demand when content exists
|
|
175
|
+
## New project
|
|
176
|
+
If there is no `docs/` yet, create `MAP.md` (headers only), `99_progress/todo.md` and `99_progress/handoff.md`.
|
|
177
|
+
Create everything else when there is content for it.
|
package/templates/SISYO.md
CHANGED
|
@@ -20,18 +20,20 @@
|
|
|
20
20
|
<!-- Add your team's coding conventions -->
|
|
21
21
|
- [e.g. Use TypeScript strict mode]
|
|
22
22
|
- Agents, tests and deploys: `.claude/rules/agents-and-tests.md` (sisyo-managed, auto-loaded): read the related code and write the tests first; parallel agents get one combined test pass; the whole test gate before production, not before a dev deploy
|
|
23
|
+
- Code reads like prose: names that say what things are and do, small functions, no comments except a needed note (`.claude/rules/docs.md`)
|
|
23
24
|
|
|
24
25
|
## Docs System
|
|
25
|
-
|
|
26
|
+
Two sets of docs (`.claude/rules/docs.md`, sisyo-managed):
|
|
27
|
+
- `docs/` -- for agents: English, concise but complete enough that any agent (new session, other worktree) takes over without missing anything; 3-level routing `MAP.md` → `_summary.md` → detail files.
|
|
28
|
+
- Human docs -- for people, in the project's hub (Kicho, skill `kicho-devflow`) when it has one: architecture, main techniques, key numbers, sprint summaries.
|
|
26
29
|
|
|
27
|
-
Session start --
|
|
28
|
-
1. `docs/MAP.md` --
|
|
29
|
-
2. `
|
|
30
|
-
3. `docs/99_progress/
|
|
31
|
-
4.
|
|
32
|
-
5.
|
|
30
|
+
Session start -- in order:
|
|
31
|
+
1. `docs/MAP.md`, then `docs/99_progress/handoff.md` -- scope, live state, work in progress
|
|
32
|
+
2. `git status`, `git log --oneline -5`, `git worktree list` -- where you are, parallel branches
|
|
33
|
+
3. `docs/99_progress/sessions/<your branch>.md` -- if you continue a parallel branch
|
|
34
|
+
4. `docs/99_progress/todo.md` and the relevant `_summary.md`
|
|
35
|
+
5. ONLY the detail docs needed for the task
|
|
33
36
|
|
|
34
|
-
During work -- vibe-docs
|
|
35
|
-
Every change updates bottom-up: detail → `_summary.md` → MAP.md.
|
|
37
|
+
During work -- vibe-docs keeps `docs/` in sync, bottom-up: detail → `_summary.md` → MAP.md (on a parallel branch: detail docs + your session note; the merge pass does the rest).
|
|
36
38
|
|
|
37
|
-
Before `/clear` --
|
|
39
|
+
Before `/clear` or the end of a session -- update `docs/99_progress/handoff.md` (or your session note).
|