sisyo 1.0.0 → 1.2.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 +35 -14
- package/package.json +1 -1
- package/templates/.claude/rules/docs.md +7 -3
- package/templates/.claude/skills/vibe-docs/SKILL.md +129 -43
- package/templates/CLAUDE.md +17 -18
- package/templates/docs/MAP.md +6 -0
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# sisyo
|
|
2
2
|
|
|
3
3
|
Smart documentation system for vibe coding with Claude Code.
|
|
4
|
-
Docs auto-update as you build. Token-efficient
|
|
4
|
+
Docs auto-update as you build. Token-efficient 3-level routing pattern.
|
|
5
5
|
|
|
6
6
|
## Install
|
|
7
7
|
|
|
@@ -17,10 +17,10 @@ Run it in your project root.
|
|
|
17
17
|
your-project/
|
|
18
18
|
CLAUDE.md # Project rules (auto-loaded)
|
|
19
19
|
.claude/
|
|
20
|
-
rules/docs.md # Doc rules (auto-loaded
|
|
20
|
+
rules/docs.md # Doc rules (auto-loaded)
|
|
21
21
|
skills/vibe-docs/SKILL.md # Brain (loaded on trigger)
|
|
22
22
|
docs/
|
|
23
|
-
MAP.md #
|
|
23
|
+
MAP.md # Level 1: routing table
|
|
24
24
|
99_progress/todo.md # Task backlog
|
|
25
25
|
99_progress/handoff.md # Session recovery
|
|
26
26
|
```
|
|
@@ -29,31 +29,48 @@ your-project/
|
|
|
29
29
|
|
|
30
30
|
**Problem:** Loading all docs into context = 20K+ tokens = runs out fast.
|
|
31
31
|
|
|
32
|
-
**Solution:**
|
|
33
|
-
Claude reads MAP.md first, then loads only the specific file it needs.
|
|
32
|
+
**Solution:** 3-level routing -- load only what you need, when you need it.
|
|
34
33
|
|
|
35
34
|
```
|
|
36
|
-
|
|
35
|
+
Level 1: MAP.md (~500 tokens) Read ALWAYS
|
|
36
|
+
|
|
|
37
|
+
Level 2: folder/_summary.md (~200 tokens) Compact table of all items
|
|
38
|
+
|
|
|
39
|
+
Level 3: folder/[detail].md Full detail, ONLY when needed
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Most tasks only need Level 1 + Level 2. Detail files load only when actively modifying.
|
|
43
|
+
|
|
44
|
+
### Example flow
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
MAP.md
|
|
48
|
+
"03_database -- 4 tables: users, posts, comments, categories"
|
|
37
49
|
|
|
|
38
50
|
v
|
|
39
|
-
|
|
51
|
+
03_database/_summary.md
|
|
52
|
+
| Table | Description | Key relations |
|
|
53
|
+
| users | Accounts, auth, profile | -- |
|
|
54
|
+
| posts | Blog posts, draft/publish| -> users |
|
|
40
55
|
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
56
|
+
v (only if modifying users table)
|
|
57
|
+
03_database/users.md
|
|
58
|
+
Full column definitions, indexes, constraints
|
|
44
59
|
```
|
|
45
60
|
|
|
46
61
|
### Auto-triggers
|
|
47
62
|
|
|
48
63
|
The vibe-docs skill triggers automatically when you:
|
|
49
|
-
- Design database tables ->
|
|
50
|
-
- Add API endpoints ->
|
|
51
|
-
- Plan features ->
|
|
64
|
+
- Design database tables -> updates `03_database/_summary.md` + detail file
|
|
65
|
+
- Add API endpoints -> updates `04_api/_summary.md` + detail file
|
|
66
|
+
- Plan features -> updates `01_requirements/_summary.md` + detail file
|
|
52
67
|
- Make architecture decisions -> updates `02_architecture/decisions.md`
|
|
68
|
+
- Set up auth/security -> creates `08_security/[topic].md`
|
|
69
|
+
- Integrate third-party service -> creates `09_integrations/[service].md`
|
|
53
70
|
- Complete any task -> updates `99_progress/todo.md`
|
|
54
71
|
- End a session -> writes `99_progress/handoff.md`
|
|
55
72
|
|
|
56
|
-
Every
|
|
73
|
+
Every change updates bottom-up: detail → `_summary.md` → MAP.md
|
|
57
74
|
|
|
58
75
|
### Session recovery
|
|
59
76
|
|
|
@@ -74,8 +91,12 @@ Claude reads MAP.md + handoff.md + todo.md (~3K tokens) and picks up where you l
|
|
|
74
91
|
| `04_api/` | API endpoint specs by module |
|
|
75
92
|
| `05_frontend/` | Pages, components, routing |
|
|
76
93
|
| `06_infra/` | Deploy, Docker, CI/CD, env vars |
|
|
94
|
+
| `07_testing/` | Test plans, test cases, edge cases |
|
|
95
|
+
| `08_security/` | Auth flows, permissions, API keys |
|
|
96
|
+
| `09_integrations/` | Third-party services config & usage |
|
|
77
97
|
| `99_progress/` | TODO, changelog, session handoff |
|
|
78
98
|
|
|
99
|
+
Each folder with multiple items has a `_summary.md` (compact table) + detail files.
|
|
79
100
|
Folders are created on-demand. No empty placeholders.
|
|
80
101
|
|
|
81
102
|
## After install
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
# Doc Management Rule
|
|
2
2
|
|
|
3
|
+
3-level routing: MAP.md → _summary.md → detail files.
|
|
4
|
+
|
|
3
5
|
When changing code that affects project structure or behavior:
|
|
4
|
-
1. Read docs/MAP.md to find
|
|
5
|
-
2.
|
|
6
|
-
3. Update
|
|
6
|
+
1. Read docs/MAP.md to find relevant folder
|
|
7
|
+
2. Read _summary.md of that folder (if exists)
|
|
8
|
+
3. Update detail file (or create if new)
|
|
9
|
+
4. Update _summary.md table
|
|
10
|
+
5. Update MAP.md summary line
|
|
7
11
|
|
|
8
12
|
Before ending session or when context gets large:
|
|
9
13
|
- Write docs/99_progress/handoff.md
|
|
@@ -1,47 +1,115 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vibe-docs
|
|
3
|
-
description:
|
|
4
|
-
Auto-manage project documentation during vibe coding. MUST trigger when:
|
|
5
|
-
creating/modifying features, database schema, API endpoints, frontend pages,
|
|
6
|
-
infrastructure, or completing any task that changes the project.
|
|
7
|
-
Also trigger when user asks about project status, says "what is next",
|
|
8
|
-
"update docs", "create a plan", "log this", or references any design doc.
|
|
9
|
-
Core principle: always read docs/MAP.md first to find relevant docs,
|
|
10
|
-
never load all docs at once.
|
|
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."
|
|
11
4
|
---
|
|
12
5
|
|
|
13
6
|
# Vibe Docs
|
|
14
7
|
|
|
15
8
|
Keep project docs in sync with code -- automatically, without wasting tokens.
|
|
16
9
|
|
|
17
|
-
## Golden Rule:
|
|
10
|
+
## Golden Rule: 3-Level Routing
|
|
18
11
|
|
|
19
|
-
|
|
20
|
-
ALWAYS read MAP.md before loading any other doc file.
|
|
21
|
-
Only load the specific doc you actually need for the current task.
|
|
12
|
+
Never load all docs at once. Use 3 levels to find what you need:
|
|
22
13
|
|
|
23
|
-
|
|
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.
|
|
24
21
|
|
|
25
22
|
## Folder Structure
|
|
26
23
|
|
|
27
24
|
```
|
|
28
25
|
docs/
|
|
29
|
-
MAP.md
|
|
30
|
-
00_schedule/
|
|
31
|
-
01_requirements/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
|
38
47
|
```
|
|
39
48
|
|
|
40
|
-
Folders are created on-demand. Never create empty folders or placeholder files.
|
|
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
|
|
41
109
|
|
|
42
110
|
## MAP.md Format
|
|
43
111
|
|
|
44
|
-
|
|
112
|
+
MAP.md is Level 1 -- one line per doc/folder with keyword-rich summary:
|
|
45
113
|
|
|
46
114
|
```
|
|
47
115
|
# Project Map
|
|
@@ -51,34 +119,50 @@ Every doc = exactly 1 line with keyword-rich summary + date:
|
|
|
51
119
|
- 00_schedule/roadmap.md -- MVP phase 1 by April, phase 2 by June (2025-03-03)
|
|
52
120
|
|
|
53
121
|
## 01_requirements
|
|
54
|
-
- 01_requirements/
|
|
55
|
-
- 01_requirements/posts.md -- Blog CRUD: create, edit, publish, draft (2025-03-02)
|
|
122
|
+
- 01_requirements/_summary.md -- 3 features: auth, posts, comments (2025-03-03)
|
|
56
123
|
|
|
57
124
|
## 03_database
|
|
58
|
-
- 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)
|
|
59
129
|
```
|
|
60
130
|
|
|
61
131
|
Rules for MAP.md entries:
|
|
62
|
-
- Max ~15 words per summary -- include key nouns
|
|
132
|
+
- Max ~15 words per summary -- include key nouns and counts
|
|
63
133
|
- Always end with (YYYY-MM-DD) update date
|
|
134
|
+
- For folders with _summary.md, list the summary file (not every detail file)
|
|
64
135
|
- Group by folder number, skip empty sections
|
|
65
136
|
- Update total doc count in header
|
|
66
137
|
|
|
67
138
|
## Auto-trigger Matrix
|
|
68
139
|
|
|
69
|
-
| Action completed |
|
|
70
|
-
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
81
|
-
|
|
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 any task | 99_progress/todo.md | Task status: doing, next, done with dates | yes |
|
|
153
|
+
| Ending session or /clear | 99_progress/handoff.md | Session summary, current state, next steps, decisions | yes |
|
|
154
|
+
|
|
155
|
+
IMPORTANT: Every doc create or update must also update _summary.md (if exists) AND MAP.md.
|
|
156
|
+
|
|
157
|
+
## Agent Reading Strategy
|
|
158
|
+
|
|
159
|
+
When working on a task:
|
|
160
|
+
1. Read MAP.md -- find relevant folder
|
|
161
|
+
2. Read _summary.md of that folder -- understand scope at a glance
|
|
162
|
+
3. ONLY if you need to modify or deeply understand a specific item → load its detail file
|
|
163
|
+
4. After changes → update detail file → update _summary.md → update MAP.md (bottom-up)
|
|
164
|
+
|
|
165
|
+
Do NOT load detail files just to "check" -- the summary table has enough info for most decisions.
|
|
82
166
|
|
|
83
167
|
## Doc Format Standard
|
|
84
168
|
|
|
@@ -90,7 +174,8 @@ Every doc starts with:
|
|
|
90
174
|
|
|
91
175
|
Formatting rules:
|
|
92
176
|
- Tables over prose for structured data
|
|
93
|
-
-
|
|
177
|
+
- Group related items in the same table (e.g. all auth endpoints in one table, not separate sections)
|
|
178
|
+
- Mermaid for diagrams
|
|
94
179
|
- Code blocks for configs, schemas, commands
|
|
95
180
|
- Keep each file under 200 lines -- split if longer
|
|
96
181
|
- Use relative links between docs
|
|
@@ -101,7 +186,8 @@ After /clear or starting new session -- 4 steps, ~2-3K tokens total:
|
|
|
101
186
|
1. Read docs/MAP.md -- understand full project scope
|
|
102
187
|
2. Read docs/99_progress/handoff.md -- what happened last session
|
|
103
188
|
3. Read docs/99_progress/todo.md -- what to do next
|
|
104
|
-
4.
|
|
189
|
+
4. Read _summary.md of the relevant folder -- understand scope
|
|
190
|
+
5. Load ONLY the detail docs needed for current task
|
|
105
191
|
|
|
106
192
|
## Task Tracking
|
|
107
193
|
|
package/templates/CLAUDE.md
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
# [Project Name]
|
|
2
2
|
|
|
3
3
|
## Stack
|
|
4
|
-
|
|
5
|
-
-
|
|
6
|
-
-
|
|
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]
|
|
7
8
|
|
|
8
9
|
## Structure
|
|
9
|
-
|
|
10
|
-
- `
|
|
10
|
+
<!-- Replace with your actual project folders -->
|
|
11
|
+
- `src/` -- Source code
|
|
11
12
|
- `docs/` -- Project docs (auto-managed by vibe-docs skill)
|
|
12
13
|
|
|
13
14
|
## Commands
|
|
14
|
-
|
|
15
|
-
- `
|
|
16
|
-
- `
|
|
17
|
-
- `cd backend && pytest` -- Run backend tests
|
|
18
|
-
- `cd backend && alembic upgrade head` -- Run DB migrations
|
|
15
|
+
<!-- Replace with your actual commands -->
|
|
16
|
+
- `npm run dev` -- Start dev server
|
|
17
|
+
- `npm test` -- Run tests
|
|
19
18
|
|
|
20
19
|
## Code Rules
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
- Run lint + typecheck before commit
|
|
20
|
+
<!-- Add your team's coding conventions -->
|
|
21
|
+
- [e.g. Use TypeScript strict mode]
|
|
22
|
+
- [e.g. Write tests for new features]
|
|
25
23
|
|
|
26
24
|
## Docs System
|
|
27
|
-
`
|
|
25
|
+
3-level routing: `MAP.md` → `_summary.md` → detail files.
|
|
28
26
|
|
|
29
27
|
Session start -- read in order:
|
|
30
|
-
1. `docs/MAP.md` -- full project scope
|
|
28
|
+
1. `docs/MAP.md` -- full project scope (~500 tokens)
|
|
31
29
|
2. `docs/99_progress/handoff.md` -- last session context
|
|
32
30
|
3. `docs/99_progress/todo.md` -- active tasks
|
|
33
|
-
4.
|
|
31
|
+
4. Read `_summary.md` of relevant folder -- scope at a glance
|
|
32
|
+
5. Load ONLY the detail docs needed for current task
|
|
34
33
|
|
|
35
34
|
During work -- vibe-docs skill auto-updates docs on code changes.
|
|
36
|
-
Every
|
|
35
|
+
Every change updates bottom-up: detail → `_summary.md` → MAP.md.
|
|
37
36
|
|
|
38
37
|
Before `/clear` -- always write `docs/99_progress/handoff.md` first.
|
package/templates/docs/MAP.md
CHANGED
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
## 06_infra
|
|
17
17
|
|
|
18
|
+
## 07_testing
|
|
19
|
+
|
|
20
|
+
## 08_security
|
|
21
|
+
|
|
22
|
+
## 09_integrations
|
|
23
|
+
|
|
18
24
|
## 99_progress
|
|
19
25
|
- `99_progress/todo.md` -- Initial backlog, project just started (YYYY-MM-DD)
|
|
20
26
|
- `99_progress/handoff.md` -- Project initialized, ready to build (YYYY-MM-DD)
|