sisyo 1.5.0 → 1.6.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 +161 -139
- package/bin/sisyo.js +186 -78
- package/package.json +1 -1
- package/templates/.claude/rules/docs.md +19 -19
- package/templates/.claude/skills/gemini-integration/GENERATE.md +111 -0
- package/templates/.claude/skills/gemini-integration/LIVE-VOICE.md +156 -0
- package/templates/.claude/skills/gemini-integration/RAG-EMBEDDING.md +83 -0
- package/templates/.claude/skills/gemini-integration/SKILL.md +149 -0
- package/templates/.claude/skills/gemini-integration/TEXT-CHAT.md +133 -0
- package/templates/.claude/skills/gemini-integration/TROUBLESHOOTING.md +53 -0
- package/templates/.claude/skills/html-docs/SKILL.md +207 -160
- package/templates/.claude/skills/terraform-best-practices/SKILL.md +341 -341
- 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
package/LICENSE
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 HoangThang (blog.thangchiba.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files, to deal in the Software
|
|
7
|
-
without restriction, including without limitation the rights to use, copy,
|
|
8
|
-
modify, merge, publish, distribute, sublicense, and/or sell copies of the
|
|
9
|
-
Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 HoangThang (blog.thangchiba.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files, to deal in the Software
|
|
7
|
+
without restriction, including without limitation the rights to use, copy,
|
|
8
|
+
modify, merge, publish, distribute, sublicense, and/or sell copies of the
|
|
9
|
+
Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED.
|
package/README.md
CHANGED
|
@@ -1,139 +1,161 @@
|
|
|
1
|
-
# sisyo
|
|
2
|
-
|
|
3
|
-
Smart documentation system for vibe coding with Claude Code.
|
|
4
|
-
Docs auto-update as you build. Token-efficient 3-level routing pattern.
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
npx sisyo
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
Run it in your project root.
|
|
13
|
-
|
|
14
|
-
## What it creates
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
your-project/
|
|
18
|
-
SISYO.md # Project rules (imported by CLAUDE.md)
|
|
19
|
-
CLAUDE.md # Auto-created or updated with @SISYO.md
|
|
20
|
-
.claude/
|
|
21
|
-
rules/docs.md # Doc rules (auto-loaded)
|
|
22
|
-
skills/vibe-docs/SKILL.md # Brain (loaded on trigger)
|
|
23
|
-
docs/
|
|
24
|
-
MAP.md # Level 1: routing table
|
|
25
|
-
99_progress/todo.md # Task backlog
|
|
26
|
-
99_progress/handoff.md # Session recovery
|
|
27
|
-
99_progress/features.md # Feature log
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
`SISYO.md` holds the project config. `CLAUDE.md` is untouched if it already exists — sisyo just appends `@SISYO.md` to it.
|
|
31
|
-
|
|
32
|
-
## How it works
|
|
33
|
-
|
|
34
|
-
**Problem:** Loading all docs into context = 20K+ tokens = runs out fast.
|
|
35
|
-
|
|
36
|
-
**Solution:** 3-level routing -- load only what you need, when you need it.
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
Level 1: MAP.md (~500 tokens) Read ALWAYS
|
|
40
|
-
|
|
|
41
|
-
Level 2: folder/_summary.md (~200 tokens) Compact table of all items
|
|
42
|
-
|
|
|
43
|
-
Level 3: folder/[detail].md Full detail, ONLY when needed
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Most tasks only need Level 1 + Level 2. Detail files load only when actively modifying.
|
|
47
|
-
|
|
48
|
-
### Example flow
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
MAP.md
|
|
52
|
-
"03_database -- 4 tables: users, posts, comments, categories"
|
|
53
|
-
|
|
|
54
|
-
v
|
|
55
|
-
03_database/_summary.md
|
|
56
|
-
| Table | Description | Key relations |
|
|
57
|
-
| users | Accounts, auth, profile | -- |
|
|
58
|
-
| posts | Blog posts, draft/publish| -> users |
|
|
59
|
-
|
|
|
60
|
-
v (only if modifying users table)
|
|
61
|
-
03_database/users.md
|
|
62
|
-
Full column definitions, indexes, constraints
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Auto-triggers
|
|
66
|
-
|
|
67
|
-
The vibe-docs skill triggers automatically when you:
|
|
68
|
-
- Complete a feature -> logs to `99_progress/features.md`
|
|
69
|
-
- Design database tables -> updates `03_database/_summary.md` + detail file
|
|
70
|
-
- Add API endpoints -> updates `04_api/_summary.md` + detail file
|
|
71
|
-
- Plan features -> updates `01_requirements/_summary.md` + detail file
|
|
72
|
-
- Make architecture decisions -> updates `02_architecture/decisions.md`
|
|
73
|
-
- Set up auth/security -> creates `08_security/[topic].md`
|
|
74
|
-
- Integrate third-party service -> creates `09_integrations/[service].md`
|
|
75
|
-
- Complete any task -> updates `99_progress/todo.md`
|
|
76
|
-
- End a session -> writes `99_progress/handoff.md`
|
|
77
|
-
|
|
78
|
-
Every change updates bottom-up: detail → `_summary.md` → MAP.md
|
|
79
|
-
|
|
80
|
-
### Session recovery
|
|
81
|
-
|
|
82
|
-
After `/clear` or starting fresh:
|
|
83
|
-
```
|
|
84
|
-
Read handoff and continue
|
|
85
|
-
```
|
|
86
|
-
Claude reads MAP.md + handoff.md + todo.md (~3K tokens) and picks up where you left off.
|
|
87
|
-
|
|
88
|
-
## Update
|
|
89
|
-
|
|
90
|
-
```bash
|
|
91
|
-
npx sisyo --update
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
|
99
|
-
|
|
100
|
-
|
|
|
101
|
-
| `
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
|
120
|
-
|---|---|
|
|
121
|
-
| `
|
|
122
|
-
| `
|
|
123
|
-
| `
|
|
124
|
-
| `
|
|
125
|
-
| `
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
1
|
+
# sisyo
|
|
2
|
+
|
|
3
|
+
Smart documentation system for vibe coding with Claude Code.
|
|
4
|
+
Docs auto-update as you build. Token-efficient 3-level routing pattern.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npx sisyo
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Run it in your project root.
|
|
13
|
+
|
|
14
|
+
## What it creates
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
your-project/
|
|
18
|
+
SISYO.md # Project rules (imported by CLAUDE.md)
|
|
19
|
+
CLAUDE.md # Auto-created or updated with @SISYO.md
|
|
20
|
+
.claude/
|
|
21
|
+
rules/docs.md # Doc rules (auto-loaded)
|
|
22
|
+
skills/vibe-docs/SKILL.md # Brain (loaded on trigger)
|
|
23
|
+
docs/
|
|
24
|
+
MAP.md # Level 1: routing table
|
|
25
|
+
99_progress/todo.md # Task backlog
|
|
26
|
+
99_progress/handoff.md # Session recovery
|
|
27
|
+
99_progress/features.md # Feature log
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
`SISYO.md` holds the project config. `CLAUDE.md` is untouched if it already exists — sisyo just appends `@SISYO.md` to it.
|
|
31
|
+
|
|
32
|
+
## How it works
|
|
33
|
+
|
|
34
|
+
**Problem:** Loading all docs into context = 20K+ tokens = runs out fast.
|
|
35
|
+
|
|
36
|
+
**Solution:** 3-level routing -- load only what you need, when you need it.
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
Level 1: MAP.md (~500 tokens) Read ALWAYS
|
|
40
|
+
|
|
|
41
|
+
Level 2: folder/_summary.md (~200 tokens) Compact table of all items
|
|
42
|
+
|
|
|
43
|
+
Level 3: folder/[detail].md Full detail, ONLY when needed
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Most tasks only need Level 1 + Level 2. Detail files load only when actively modifying.
|
|
47
|
+
|
|
48
|
+
### Example flow
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
MAP.md
|
|
52
|
+
"03_database -- 4 tables: users, posts, comments, categories"
|
|
53
|
+
|
|
|
54
|
+
v
|
|
55
|
+
03_database/_summary.md
|
|
56
|
+
| Table | Description | Key relations |
|
|
57
|
+
| users | Accounts, auth, profile | -- |
|
|
58
|
+
| posts | Blog posts, draft/publish| -> users |
|
|
59
|
+
|
|
|
60
|
+
v (only if modifying users table)
|
|
61
|
+
03_database/users.md
|
|
62
|
+
Full column definitions, indexes, constraints
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Auto-triggers
|
|
66
|
+
|
|
67
|
+
The vibe-docs skill triggers automatically when you:
|
|
68
|
+
- Complete a feature -> logs to `99_progress/features.md`
|
|
69
|
+
- Design database tables -> updates `03_database/_summary.md` + detail file
|
|
70
|
+
- Add API endpoints -> updates `04_api/_summary.md` + detail file
|
|
71
|
+
- Plan features -> updates `01_requirements/_summary.md` + detail file
|
|
72
|
+
- Make architecture decisions -> updates `02_architecture/decisions.md`
|
|
73
|
+
- Set up auth/security -> creates `08_security/[topic].md`
|
|
74
|
+
- Integrate third-party service -> creates `09_integrations/[service].md`
|
|
75
|
+
- Complete any task -> updates `99_progress/todo.md`
|
|
76
|
+
- End a session -> writes `99_progress/handoff.md`
|
|
77
|
+
|
|
78
|
+
Every change updates bottom-up: detail → `_summary.md` → MAP.md
|
|
79
|
+
|
|
80
|
+
### Session recovery
|
|
81
|
+
|
|
82
|
+
After `/clear` or starting fresh:
|
|
83
|
+
```
|
|
84
|
+
Read handoff and continue
|
|
85
|
+
```
|
|
86
|
+
Claude reads MAP.md + handoff.md + todo.md (~3K tokens) and picks up where you left off.
|
|
87
|
+
|
|
88
|
+
## Update
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
npx sisyo --update # update managed files, keep everything you edited
|
|
92
|
+
npx sisyo --update --dry-run # show what would change, write nothing
|
|
93
|
+
npx sisyo --update --force # also overwrite managed files you edited locally
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
sisyo splits files into two groups so frequent updates never clobber your work:
|
|
97
|
+
|
|
98
|
+
| Group | Files | On `--update` |
|
|
99
|
+
|---|---|---|
|
|
100
|
+
| **Managed** (sisyo-owned) | `.claude/rules/docs.md`, `.claude/skills/*` | Replaced **only if** your copy is byte-identical to what sisyo last installed. New skills are added. Skills sisyo dropped are removed only if untouched. |
|
|
101
|
+
| **Yours** | `SISYO.md`, `CLAUDE.md`, `docs/**` | Never touched. Missing files are created once. |
|
|
102
|
+
|
|
103
|
+
Hashes of every managed file are recorded in `.claude/sisyo.json` (commit it). If you edited a
|
|
104
|
+
managed file, `--update` keeps your version and writes the new one next to it as
|
|
105
|
+
`<file>.sisyo-new` (gitignored) so you can diff and decide:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
git diff --no-index .claude/skills/vibe-docs/SKILL.md .claude/skills/vibe-docs/SKILL.md.sisyo-new
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Move the `.sisyo-new` file over the original to accept, delete it to keep yours, or rerun with
|
|
112
|
+
`--force` to accept all.
|
|
113
|
+
|
|
114
|
+
**Tip:** put project-specific rules in `SISYO.md` or your own `.claude/rules/<topic>.md`
|
|
115
|
+
rather than editing a shipped skill — those files are yours and update-proof.
|
|
116
|
+
|
|
117
|
+
## Doc folders
|
|
118
|
+
|
|
119
|
+
| Folder | Purpose |
|
|
120
|
+
|---|---|
|
|
121
|
+
| `00_schedule/` | Roadmap, milestones, sprint plans |
|
|
122
|
+
| `01_requirements/` | Feature specs, user stories |
|
|
123
|
+
| `02_architecture/` | System design, tech decisions (ADR) |
|
|
124
|
+
| `03_database/` | Schema, ERD, migration log |
|
|
125
|
+
| `04_api/` | API endpoint specs by module |
|
|
126
|
+
| `05_frontend/` | Pages, components, routing |
|
|
127
|
+
| `06_infra/` | Deploy, Docker, CI/CD, env vars |
|
|
128
|
+
| `07_testing/` | Test plans, test cases, edge cases |
|
|
129
|
+
| `08_security/` | Auth flows, permissions, API keys |
|
|
130
|
+
| `09_integrations/` | Third-party services config & usage |
|
|
131
|
+
| `99_progress/` | Feature log, TODO, session handoff |
|
|
132
|
+
|
|
133
|
+
Each folder with multiple items has a `_summary.md` (compact table) + detail files.
|
|
134
|
+
Folders are created on-demand. No empty placeholders.
|
|
135
|
+
|
|
136
|
+
## Skills
|
|
137
|
+
|
|
138
|
+
Optional best-practice guides that Claude loads on demand:
|
|
139
|
+
|
|
140
|
+
| Skill | Triggers on |
|
|
141
|
+
|---|---|
|
|
142
|
+
| `vibe-docs` | Doc updates, feature changes, session end |
|
|
143
|
+
| `html-docs` | Generate polished HTML docs (Tailwind, colorful, rounded modern) for devs/users |
|
|
144
|
+
| `terraform-best-practices` | Terraform/AWS: never auto-apply, cost confirm, plan summary, module layout, IAM/SGR/secrets rules |
|
|
145
|
+
| `fastapi-best-practices` | FastAPI backends, REST APIs, Python web services |
|
|
146
|
+
| `react-page-oriented` | React/Next.js pages, component structure |
|
|
147
|
+
| `gemini-integration` | Google Gemini API: model roles via config keys, 3.x request rules, streaming chat + tools, Live voice (ephemeral token, sync tool calls), embeddings/rerank, JSON mode, grounding, PDF, TTS, troubleshooting |
|
|
148
|
+
|
|
149
|
+
## After install
|
|
150
|
+
|
|
151
|
+
1. Edit `SISYO.md` — replace `[Project Name]` with yours
|
|
152
|
+
2. Open Claude Code and start building
|
|
153
|
+
3. Docs update automatically as you work
|
|
154
|
+
|
|
155
|
+
## Author
|
|
156
|
+
|
|
157
|
+
HoangThang - [blog.thangchiba.com](https://blog.thangchiba.com)
|
|
158
|
+
|
|
159
|
+
## License
|
|
160
|
+
|
|
161
|
+
MIT
|