sisyo 1.6.8 → 1.8.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/LICENSE +16 -16
- package/README.md +167 -162
- package/bin/known-hashes.json +100 -7
- package/package.json +1 -1
- package/templates/.claude/rules/agents-and-tests.md +32 -0
- package/templates/.claude/rules/docs.md +19 -19
- package/templates/.claude/skills/fastapi-best-practices/ASYNC-PATTERNS.md +121 -121
- package/templates/.claude/skills/fastapi-best-practices/DATABASE.md +153 -153
- package/templates/.claude/skills/fastapi-best-practices/DEPENDENCIES.md +140 -140
- package/templates/.claude/skills/fastapi-best-practices/PROJECT-STRUCTURE.md +90 -90
- package/templates/.claude/skills/fastapi-best-practices/PYDANTIC-GUIDE.md +155 -155
- package/templates/.claude/skills/fastapi-best-practices/SKILL.md +123 -123
- package/templates/.claude/skills/g6-style/SKILL.md +125 -0
- package/templates/.claude/skills/g6-style/references/checks.md +58 -0
- package/templates/.claude/skills/g6-style/references/imagery.md +103 -0
- package/templates/.claude/skills/g6-style/references/motion.md +121 -0
- package/templates/.claude/skills/g6-style/references/sections.md +263 -0
- package/templates/.claude/skills/g6-style/references/tokens.md +197 -0
- package/templates/.claude/skills/hindsight/SKILL.md +175 -172
- package/templates/.claude/skills/hoang-auth/SKILL.md +188 -0
- package/templates/.claude/skills/html-docs/SKILL.md +207 -207
- package/templates/.claude/skills/i18n-multilang/SKILL.md +153 -0
- package/templates/.claude/skills/i18n-multilang/assets/languages.json +47 -0
- package/templates/.claude/skills/i18n-multilang/assets/plural-vectors.json +46 -0
- package/templates/.claude/skills/i18n-multilang/assets/project/README.md +17 -0
- package/templates/.claude/skills/i18n-multilang/assets/project/gitattributes.txt +6 -0
- package/templates/.claude/skills/i18n-multilang/assets/project/gitignore.txt +4 -0
- package/templates/.claude/skills/i18n-multilang/assets/project/glossary.json +6 -0
- package/templates/.claude/skills/i18n-multilang/assets/project/i18n.config.json +22 -0
- package/templates/.claude/skills/i18n-multilang/assets/project/locales/__source__/common.json +10 -0
- package/templates/.claude/skills/i18n-multilang/assets/project/notes/common.json +5 -0
- package/templates/.claude/skills/i18n-multilang/assets/project/style.md +20 -0
- package/templates/.claude/skills/i18n-multilang/references/format.md +100 -0
- package/templates/.claude/skills/i18n-multilang/references/languages.md +97 -0
- package/templates/.claude/skills/i18n-multilang/references/layout-and-versioning.md +256 -0
- package/templates/.claude/skills/i18n-multilang/references/numbers.md +161 -0
- package/templates/.claude/skills/i18n-multilang/references/platform-unity.md +142 -0
- package/templates/.claude/skills/i18n-multilang/references/platform-web.md +107 -0
- package/templates/.claude/skills/i18n-multilang/references/translation.md +143 -0
- package/templates/.claude/skills/i18n-multilang/references/voice.md +271 -0
- package/templates/.claude/skills/i18n-multilang/scripts/i18n.py +1041 -0
- package/templates/.claude/skills/i18n-multilang/scripts/numwords.py +1013 -0
- package/templates/.claude/skills/i18n-multilang/scripts/voice.py +478 -0
- package/templates/.claude/skills/react-page-oriented/SKILL.md +407 -407
- package/templates/.claude/skills/react-page-oriented/triggers.md +12 -12
- package/templates/.claude/skills/terraform-best-practices/SKILL.md +341 -341
- package/templates/.claude/skills/typesafe-jev/SKILL.md +148 -148
- package/templates/.claude/skills/vibe-docs/SKILL.md +242 -242
- package/templates/SISYO.md +37 -37
- package/templates/docs/99_progress/features.md +7 -7
- package/templates/docs/99_progress/handoff.md +19 -19
- package/templates/docs/99_progress/todo.md +15 -15
- package/templates/docs/MAP.md +26 -26
|
@@ -1,242 +1,242 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: vibe-docs
|
|
3
|
-
description: "Auto-manage project documentation during vibe coding. Triggers on feature changes, DB schema, API endpoints, frontend pages, infra, testing, security, integrations, or any task completion. Also triggers on: project status, what is next, update docs, create a plan, log this. Core principle: read docs/MAP.md first, never load all docs at once."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Vibe Docs
|
|
7
|
-
|
|
8
|
-
Keep project docs in sync with code -- automatically, without wasting tokens.
|
|
9
|
-
|
|
10
|
-
## Golden Rule: 3-Level Routing
|
|
11
|
-
|
|
12
|
-
Never load all docs at once. Use 3 levels to find what you need:
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
Level 1: MAP.md (~500 tokens) -- 1-line per folder, read ALWAYS
|
|
16
|
-
Level 2: folder/_summary.md (~200 tokens) -- compact table of all items in folder
|
|
17
|
-
Level 3: folder/[detail].md -- full detail, load ONLY when needed
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Most tasks only need Level 1 + Level 2. Load Level 3 only when actively modifying that specific item.
|
|
21
|
-
|
|
22
|
-
## Folder Structure
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
docs/
|
|
26
|
-
MAP.md # Level 1: routing table -- read FIRST, always
|
|
27
|
-
00_schedule/ # Roadmap, milestones, sprint plans
|
|
28
|
-
01_requirements/ # Feature specs, user stories
|
|
29
|
-
_summary.md # List of all features (compact table)
|
|
30
|
-
auth.md # Detail: auth feature spec
|
|
31
|
-
posts.md # Detail: posts feature spec
|
|
32
|
-
02_architecture/ # System design, tech stack, decisions
|
|
33
|
-
03_database/ # Schema, ERD, migration log
|
|
34
|
-
_summary.md # List of all tables + 1-line description
|
|
35
|
-
users.md # Detail: users table columns, indexes, relations
|
|
36
|
-
posts.md # Detail: posts table columns, indexes, relations
|
|
37
|
-
04_api/ # Endpoint specs grouped by module
|
|
38
|
-
_summary.md # All endpoints in compact table (method, path, description)
|
|
39
|
-
auth.md # Detail: auth endpoints (grouped, not 1 per endpoint)
|
|
40
|
-
posts.md # Detail: posts endpoints (grouped)
|
|
41
|
-
05_frontend/ # Pages, components, routing map
|
|
42
|
-
06_infra/ # Deploy, Docker, CI/CD, env vars
|
|
43
|
-
07_testing/ # Test plans, test cases, edge cases
|
|
44
|
-
08_security/ # Auth flows, permissions, API keys
|
|
45
|
-
09_integrations/ # Third-party services config & usage
|
|
46
|
-
99_progress/ # TODO, changelog, session handoff
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Folders and files are created on-demand. Never create empty folders or placeholder files.
|
|
50
|
-
|
|
51
|
-
## _summary.md Pattern
|
|
52
|
-
|
|
53
|
-
Every folder with multiple items MUST have a `_summary.md`. This is a compact table that lets the agent understand the folder WITHOUT loading detail files.
|
|
54
|
-
|
|
55
|
-
### Example: 03_database/_summary.md
|
|
56
|
-
```
|
|
57
|
-
# Database Tables
|
|
58
|
-
> Updated: 2025-03-03 | Tables: 4
|
|
59
|
-
|
|
60
|
-
| Table | Description | Key relations |
|
|
61
|
-
|-------|-------------|---------------|
|
|
62
|
-
| users | User accounts, auth, profile | -- |
|
|
63
|
-
| posts | Blog posts with draft/publish | -> users |
|
|
64
|
-
| comments | Post comments, nested | -> users, posts |
|
|
65
|
-
| categories | Post categories, hierarchical | -- |
|
|
66
|
-
|
|
67
|
-
Detail: `03_database/[table].md`
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Example: 04_api/_summary.md
|
|
71
|
-
```
|
|
72
|
-
# API Endpoints
|
|
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`
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Example: 05_frontend/_summary.md
|
|
89
|
-
```
|
|
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
|
-
|
|
100
|
-
Detail: `05_frontend/[page-group].md`
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
Rules for _summary.md:
|
|
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
|
-
|
|
114
|
-
```
|
|
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
|
-
|
|
121
|
-
## 01_requirements
|
|
122
|
-
- 01_requirements/_summary.md -- 3 features: auth, posts, comments (2025-03-03)
|
|
123
|
-
|
|
124
|
-
## 03_database
|
|
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)
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
Rules for MAP.md entries:
|
|
132
|
-
- Max ~15 words per summary -- include key nouns and counts
|
|
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
|
|
159
|
-
|
|
160
|
-
When working on a task:
|
|
161
|
-
1. Read MAP.md -- find relevant folder
|
|
162
|
-
2. Read _summary.md of that folder -- understand scope at a glance
|
|
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)
|
|
165
|
-
|
|
166
|
-
Do NOT load detail files just to "check" -- the summary table has enough info for most decisions.
|
|
167
|
-
|
|
168
|
-
## Doc Format Standard
|
|
169
|
-
|
|
170
|
-
Every doc starts with:
|
|
171
|
-
```
|
|
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
|
-
|
|
184
|
-
## Context Recovery Protocol
|
|
185
|
-
|
|
186
|
-
After /clear or starting new session -- 4 steps, ~2-3K tokens total:
|
|
187
|
-
1. Read docs/MAP.md -- understand full project scope
|
|
188
|
-
2. Read docs/99_progress/handoff.md -- what happened last session
|
|
189
|
-
3. Read docs/99_progress/todo.md -- what to do next
|
|
190
|
-
4. Read _summary.md of the relevant folder -- understand scope
|
|
191
|
-
5. Load ONLY the detail docs needed for current task
|
|
192
|
-
|
|
193
|
-
## Task Tracking
|
|
194
|
-
|
|
195
|
-
99_progress/todo.md format:
|
|
196
|
-
```
|
|
197
|
-
# TODO
|
|
198
|
-
> Updated: YYYY-MM-DD
|
|
199
|
-
|
|
200
|
-
## Doing
|
|
201
|
-
- [ ] Task description -- see 01_requirements/feature.md
|
|
202
|
-
|
|
203
|
-
## Next
|
|
204
|
-
- [ ] Task description
|
|
205
|
-
|
|
206
|
-
## Done
|
|
207
|
-
- [x] [2025-03-03] Task description
|
|
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:
|
|
216
|
-
```
|
|
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
|
-
|
|
238
|
-
When docs/ directory does not exist yet:
|
|
239
|
-
1. Create docs/MAP.md with section headers (no entries)
|
|
240
|
-
2. Create docs/99_progress/todo.md with initial tasks from conversation
|
|
241
|
-
3. Create docs/99_progress/handoff.md with initial state
|
|
242
|
-
4. Everything else is created on-demand when content exists
|
|
1
|
+
---
|
|
2
|
+
name: vibe-docs
|
|
3
|
+
description: "Auto-manage project documentation during vibe coding. Triggers on feature changes, DB schema, API endpoints, frontend pages, infra, testing, security, integrations, or any task completion. Also triggers on: project status, what is next, update docs, create a plan, log this. Core principle: read docs/MAP.md first, never load all docs at once."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Vibe Docs
|
|
7
|
+
|
|
8
|
+
Keep project docs in sync with code -- automatically, without wasting tokens.
|
|
9
|
+
|
|
10
|
+
## Golden Rule: 3-Level Routing
|
|
11
|
+
|
|
12
|
+
Never load all docs at once. Use 3 levels to find what you need:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
Level 1: MAP.md (~500 tokens) -- 1-line per folder, read ALWAYS
|
|
16
|
+
Level 2: folder/_summary.md (~200 tokens) -- compact table of all items in folder
|
|
17
|
+
Level 3: folder/[detail].md -- full detail, load ONLY when needed
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Most tasks only need Level 1 + Level 2. Load Level 3 only when actively modifying that specific item.
|
|
21
|
+
|
|
22
|
+
## Folder Structure
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
docs/
|
|
26
|
+
MAP.md # Level 1: routing table -- read FIRST, always
|
|
27
|
+
00_schedule/ # Roadmap, milestones, sprint plans
|
|
28
|
+
01_requirements/ # Feature specs, user stories
|
|
29
|
+
_summary.md # List of all features (compact table)
|
|
30
|
+
auth.md # Detail: auth feature spec
|
|
31
|
+
posts.md # Detail: posts feature spec
|
|
32
|
+
02_architecture/ # System design, tech stack, decisions
|
|
33
|
+
03_database/ # Schema, ERD, migration log
|
|
34
|
+
_summary.md # List of all tables + 1-line description
|
|
35
|
+
users.md # Detail: users table columns, indexes, relations
|
|
36
|
+
posts.md # Detail: posts table columns, indexes, relations
|
|
37
|
+
04_api/ # Endpoint specs grouped by module
|
|
38
|
+
_summary.md # All endpoints in compact table (method, path, description)
|
|
39
|
+
auth.md # Detail: auth endpoints (grouped, not 1 per endpoint)
|
|
40
|
+
posts.md # Detail: posts endpoints (grouped)
|
|
41
|
+
05_frontend/ # Pages, components, routing map
|
|
42
|
+
06_infra/ # Deploy, Docker, CI/CD, env vars
|
|
43
|
+
07_testing/ # Test plans, test cases, edge cases
|
|
44
|
+
08_security/ # Auth flows, permissions, API keys
|
|
45
|
+
09_integrations/ # Third-party services config & usage
|
|
46
|
+
99_progress/ # TODO, changelog, session handoff
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Folders and files are created on-demand. Never create empty folders or placeholder files.
|
|
50
|
+
|
|
51
|
+
## _summary.md Pattern
|
|
52
|
+
|
|
53
|
+
Every folder with multiple items MUST have a `_summary.md`. This is a compact table that lets the agent understand the folder WITHOUT loading detail files.
|
|
54
|
+
|
|
55
|
+
### Example: 03_database/_summary.md
|
|
56
|
+
```
|
|
57
|
+
# Database Tables
|
|
58
|
+
> Updated: 2025-03-03 | Tables: 4
|
|
59
|
+
|
|
60
|
+
| Table | Description | Key relations |
|
|
61
|
+
|-------|-------------|---------------|
|
|
62
|
+
| users | User accounts, auth, profile | -- |
|
|
63
|
+
| posts | Blog posts with draft/publish | -> users |
|
|
64
|
+
| comments | Post comments, nested | -> users, posts |
|
|
65
|
+
| categories | Post categories, hierarchical | -- |
|
|
66
|
+
|
|
67
|
+
Detail: `03_database/[table].md`
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Example: 04_api/_summary.md
|
|
71
|
+
```
|
|
72
|
+
# API Endpoints
|
|
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`
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Example: 05_frontend/_summary.md
|
|
89
|
+
```
|
|
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
|
+
|
|
100
|
+
Detail: `05_frontend/[page-group].md`
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Rules for _summary.md:
|
|
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
|
+
|
|
114
|
+
```
|
|
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
|
+
|
|
121
|
+
## 01_requirements
|
|
122
|
+
- 01_requirements/_summary.md -- 3 features: auth, posts, comments (2025-03-03)
|
|
123
|
+
|
|
124
|
+
## 03_database
|
|
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)
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Rules for MAP.md entries:
|
|
132
|
+
- Max ~15 words per summary -- include key nouns and counts
|
|
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
|
|
159
|
+
|
|
160
|
+
When working on a task:
|
|
161
|
+
1. Read MAP.md -- find relevant folder
|
|
162
|
+
2. Read _summary.md of that folder -- understand scope at a glance
|
|
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)
|
|
165
|
+
|
|
166
|
+
Do NOT load detail files just to "check" -- the summary table has enough info for most decisions.
|
|
167
|
+
|
|
168
|
+
## Doc Format Standard
|
|
169
|
+
|
|
170
|
+
Every doc starts with:
|
|
171
|
+
```
|
|
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
|
+
|
|
184
|
+
## Context Recovery Protocol
|
|
185
|
+
|
|
186
|
+
After /clear or starting new session -- 4 steps, ~2-3K tokens total:
|
|
187
|
+
1. Read docs/MAP.md -- understand full project scope
|
|
188
|
+
2. Read docs/99_progress/handoff.md -- what happened last session
|
|
189
|
+
3. Read docs/99_progress/todo.md -- what to do next
|
|
190
|
+
4. Read _summary.md of the relevant folder -- understand scope
|
|
191
|
+
5. Load ONLY the detail docs needed for current task
|
|
192
|
+
|
|
193
|
+
## Task Tracking
|
|
194
|
+
|
|
195
|
+
99_progress/todo.md format:
|
|
196
|
+
```
|
|
197
|
+
# TODO
|
|
198
|
+
> Updated: YYYY-MM-DD
|
|
199
|
+
|
|
200
|
+
## Doing
|
|
201
|
+
- [ ] Task description -- see 01_requirements/feature.md
|
|
202
|
+
|
|
203
|
+
## Next
|
|
204
|
+
- [ ] Task description
|
|
205
|
+
|
|
206
|
+
## Done
|
|
207
|
+
- [x] [2025-03-03] Task description
|
|
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:
|
|
216
|
+
```
|
|
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
|
+
|
|
238
|
+
When docs/ directory does not exist yet:
|
|
239
|
+
1. Create docs/MAP.md with section headers (no entries)
|
|
240
|
+
2. Create docs/99_progress/todo.md with initial tasks from conversation
|
|
241
|
+
3. Create docs/99_progress/handoff.md with initial state
|
|
242
|
+
4. Everything else is created on-demand when content exists
|
package/templates/SISYO.md
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
# [Project Name]
|
|
2
|
-
|
|
3
|
-
## Stack
|
|
4
|
-
<!-- Replace with your actual tech stack -->
|
|
5
|
-
- Frontend: [e.g. React, Vue, Next.js]
|
|
6
|
-
- Backend: [e.g. Node.js, Python, Go]
|
|
7
|
-
- Database: [e.g. PostgreSQL, MongoDB]
|
|
8
|
-
|
|
9
|
-
## Structure
|
|
10
|
-
<!-- Replace with your actual project folders -->
|
|
11
|
-
- `src/` -- Source code
|
|
12
|
-
- `docs/` -- Project docs (auto-managed by vibe-docs skill)
|
|
13
|
-
|
|
14
|
-
## Commands
|
|
15
|
-
<!-- Replace with your actual commands -->
|
|
16
|
-
- `npm run dev` -- Start dev server
|
|
17
|
-
- `npm test` -- Run tests
|
|
18
|
-
|
|
19
|
-
## Code Rules
|
|
20
|
-
<!-- Add your team's coding conventions -->
|
|
21
|
-
- [e.g. Use TypeScript strict mode]
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
## Docs System
|
|
25
|
-
3-level routing: `MAP.md` → `_summary.md` → detail files.
|
|
26
|
-
|
|
27
|
-
Session start -- read in order:
|
|
28
|
-
1. `docs/MAP.md` -- full project scope (~500 tokens)
|
|
29
|
-
2. `docs/99_progress/handoff.md` -- last session context
|
|
30
|
-
3. `docs/99_progress/todo.md` -- active tasks
|
|
31
|
-
4. Read `_summary.md` of relevant folder -- scope at a glance
|
|
32
|
-
5. Load ONLY the detail docs needed for current task
|
|
33
|
-
|
|
34
|
-
During work -- vibe-docs skill auto-updates docs on code changes.
|
|
35
|
-
Every change updates bottom-up: detail → `_summary.md` → MAP.md.
|
|
36
|
-
|
|
37
|
-
Before `/clear` -- always write `docs/99_progress/handoff.md` first.
|
|
1
|
+
# [Project Name]
|
|
2
|
+
|
|
3
|
+
## Stack
|
|
4
|
+
<!-- Replace with your actual tech stack -->
|
|
5
|
+
- Frontend: [e.g. React, Vue, Next.js]
|
|
6
|
+
- Backend: [e.g. Node.js, Python, Go]
|
|
7
|
+
- Database: [e.g. PostgreSQL, MongoDB]
|
|
8
|
+
|
|
9
|
+
## Structure
|
|
10
|
+
<!-- Replace with your actual project folders -->
|
|
11
|
+
- `src/` -- Source code
|
|
12
|
+
- `docs/` -- Project docs (auto-managed by vibe-docs skill)
|
|
13
|
+
|
|
14
|
+
## Commands
|
|
15
|
+
<!-- Replace with your actual commands -->
|
|
16
|
+
- `npm run dev` -- Start dev server
|
|
17
|
+
- `npm test` -- Run tests
|
|
18
|
+
|
|
19
|
+
## Code Rules
|
|
20
|
+
<!-- Add your team's coding conventions -->
|
|
21
|
+
- [e.g. Use TypeScript strict mode]
|
|
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
|
+
|
|
24
|
+
## Docs System
|
|
25
|
+
3-level routing: `MAP.md` → `_summary.md` → detail files.
|
|
26
|
+
|
|
27
|
+
Session start -- read in order:
|
|
28
|
+
1. `docs/MAP.md` -- full project scope (~500 tokens)
|
|
29
|
+
2. `docs/99_progress/handoff.md` -- last session context
|
|
30
|
+
3. `docs/99_progress/todo.md` -- active tasks
|
|
31
|
+
4. Read `_summary.md` of relevant folder -- scope at a glance
|
|
32
|
+
5. Load ONLY the detail docs needed for current task
|
|
33
|
+
|
|
34
|
+
During work -- vibe-docs skill auto-updates docs on code changes.
|
|
35
|
+
Every change updates bottom-up: detail → `_summary.md` → MAP.md.
|
|
36
|
+
|
|
37
|
+
Before `/clear` -- always write `docs/99_progress/handoff.md` first.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
# Feature Log
|
|
2
|
-
> Updated: YYYY-MM-DD | Features: 0
|
|
3
|
-
|
|
4
|
-
| Date | Feature | Status | Docs |
|
|
5
|
-
|------|---------|:------:|------|
|
|
6
|
-
|
|
7
|
-
<!-- Status: planned / in-progress / done -->
|
|
1
|
+
# Feature Log
|
|
2
|
+
> Updated: YYYY-MM-DD | Features: 0
|
|
3
|
+
|
|
4
|
+
| Date | Feature | Status | Docs |
|
|
5
|
+
|------|---------|:------:|------|
|
|
6
|
+
|
|
7
|
+
<!-- Status: planned / in-progress / done -->
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
# Handoff
|
|
2
|
-
> Updated: YYYY-MM-DD
|
|
3
|
-
|
|
4
|
-
## Done this session
|
|
5
|
-
- Initialized vibe-docs documentation system
|
|
6
|
-
- Created CLAUDE.md, MAP.md, skill, and rules
|
|
7
|
-
|
|
8
|
-
## State
|
|
9
|
-
- Working: Documentation structure is ready
|
|
10
|
-
- In progress: Nothing yet, project is fresh
|
|
11
|
-
|
|
12
|
-
## Next
|
|
13
|
-
1. Define what this project does (edit CLAUDE.md and docs/MAP.md)
|
|
14
|
-
2. Design the database schema
|
|
15
|
-
3. Set up dev environment (Docker, env vars)
|
|
16
|
-
|
|
17
|
-
## Decisions
|
|
18
|
-
- Using MAP.md routing pattern: load summaries first, full docs on-demand
|
|
19
|
-
- Numbered folders (00-99) for consistent ordering
|
|
1
|
+
# Handoff
|
|
2
|
+
> Updated: YYYY-MM-DD
|
|
3
|
+
|
|
4
|
+
## Done this session
|
|
5
|
+
- Initialized vibe-docs documentation system
|
|
6
|
+
- Created CLAUDE.md, MAP.md, skill, and rules
|
|
7
|
+
|
|
8
|
+
## State
|
|
9
|
+
- Working: Documentation structure is ready
|
|
10
|
+
- In progress: Nothing yet, project is fresh
|
|
11
|
+
|
|
12
|
+
## Next
|
|
13
|
+
1. Define what this project does (edit CLAUDE.md and docs/MAP.md)
|
|
14
|
+
2. Design the database schema
|
|
15
|
+
3. Set up dev environment (Docker, env vars)
|
|
16
|
+
|
|
17
|
+
## Decisions
|
|
18
|
+
- Using MAP.md routing pattern: load summaries first, full docs on-demand
|
|
19
|
+
- Numbered folders (00-99) for consistent ordering
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# TODO
|
|
2
|
-
> Updated: YYYY-MM-DD
|
|
3
|
-
|
|
4
|
-
## Doing
|
|
5
|
-
|
|
6
|
-
## Next
|
|
7
|
-
- [ ] Define project scope and features
|
|
8
|
-
- [ ] Design database schema
|
|
9
|
-
- [ ] Set up development environment
|
|
10
|
-
- [ ] Create API skeleton
|
|
11
|
-
- [ ] Create frontend page structure
|
|
12
|
-
- [ ] Implement authentication
|
|
13
|
-
|
|
14
|
-
## Done
|
|
15
|
-
- [x] [YYYY-MM-DD] Initialize project documentation
|
|
1
|
+
# TODO
|
|
2
|
+
> Updated: YYYY-MM-DD
|
|
3
|
+
|
|
4
|
+
## Doing
|
|
5
|
+
|
|
6
|
+
## Next
|
|
7
|
+
- [ ] Define project scope and features
|
|
8
|
+
- [ ] Design database schema
|
|
9
|
+
- [ ] Set up development environment
|
|
10
|
+
- [ ] Create API skeleton
|
|
11
|
+
- [ ] Create frontend page structure
|
|
12
|
+
- [ ] Implement authentication
|
|
13
|
+
|
|
14
|
+
## Done
|
|
15
|
+
- [x] [YYYY-MM-DD] Initialize project documentation
|