sisyo 1.3.0 → 1.4.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 HoangThang (hoang.jp)
3
+ Copyright (c) 2025 HoangThang (blog.thangchiba.com)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files, to deal in the Software
package/README.md CHANGED
@@ -15,7 +15,8 @@ Run it in your project root.
15
15
 
16
16
  ```
17
17
  your-project/
18
- CLAUDE.md # Project rules (auto-loaded)
18
+ SISYO.md # Project rules (imported by CLAUDE.md)
19
+ CLAUDE.md # Auto-created or updated with @SISYO.md
19
20
  .claude/
20
21
  rules/docs.md # Doc rules (auto-loaded)
21
22
  skills/vibe-docs/SKILL.md # Brain (loaded on trigger)
@@ -23,8 +24,11 @@ your-project/
23
24
  MAP.md # Level 1: routing table
24
25
  99_progress/todo.md # Task backlog
25
26
  99_progress/handoff.md # Session recovery
27
+ 99_progress/features.md # Feature log
26
28
  ```
27
29
 
30
+ `SISYO.md` holds the project config. `CLAUDE.md` is untouched if it already exists — sisyo just appends `@SISYO.md` to it.
31
+
28
32
  ## How it works
29
33
 
30
34
  **Problem:** Loading all docs into context = 20K+ tokens = runs out fast.
@@ -61,6 +65,7 @@ MAP.md
61
65
  ### Auto-triggers
62
66
 
63
67
  The vibe-docs skill triggers automatically when you:
68
+ - Complete a feature -> logs to `99_progress/features.md`
64
69
  - Design database tables -> updates `03_database/_summary.md` + detail file
65
70
  - Add API endpoints -> updates `04_api/_summary.md` + detail file
66
71
  - Plan features -> updates `01_requirements/_summary.md` + detail file
@@ -80,6 +85,14 @@ Read handoff and continue
80
85
  ```
81
86
  Claude reads MAP.md + handoff.md + todo.md (~3K tokens) and picks up where you left off.
82
87
 
88
+ ## Update
89
+
90
+ ```bash
91
+ npx sisyo --update
92
+ ```
93
+
94
+ Updates system files (`SISYO.md`, `.claude/rules/docs.md`, `vibe-docs/SKILL.md`) without touching your docs.
95
+
83
96
  ## Doc folders
84
97
 
85
98
  | Folder | Purpose |
@@ -94,20 +107,31 @@ Claude reads MAP.md + handoff.md + todo.md (~3K tokens) and picks up where you l
94
107
  | `07_testing/` | Test plans, test cases, edge cases |
95
108
  | `08_security/` | Auth flows, permissions, API keys |
96
109
  | `09_integrations/` | Third-party services config & usage |
97
- | `99_progress/` | TODO, changelog, session handoff |
110
+ | `99_progress/` | Feature log, TODO, session handoff |
98
111
 
99
112
  Each folder with multiple items has a `_summary.md` (compact table) + detail files.
100
113
  Folders are created on-demand. No empty placeholders.
101
114
 
115
+ ## Skills
116
+
117
+ Optional best-practice guides that Claude loads on demand:
118
+
119
+ | Skill | Triggers on |
120
+ |---|---|
121
+ | `vibe-docs` | Doc updates, feature changes, session end |
122
+ | `html-docs` | Generate polished HTML docs (Tailwind, colorful, rounded modern) for devs/users |
123
+ | `fastapi-best-practices` | FastAPI backends, REST APIs, Python web services |
124
+ | `react-page-oriented` | React/Next.js pages, component structure |
125
+
102
126
  ## After install
103
127
 
104
- 1. Edit `CLAUDE.md` - replace `[Project Name]` with yours
128
+ 1. Edit `SISYO.md` — replace `[Project Name]` with yours
105
129
  2. Open Claude Code and start building
106
130
  3. Docs update automatically as you work
107
131
 
108
132
  ## Author
109
133
 
110
- HoangThang - [hoang.jp](https://hoang.jp)
134
+ HoangThang - [blog.thangchiba.com](https://blog.thangchiba.com)
111
135
 
112
136
  ## License
113
137
 
package/bin/sisyo.js CHANGED
@@ -122,6 +122,15 @@ function main() {
122
122
  fs.writeFileSync(todoPath, content);
123
123
  }
124
124
  }
125
+
126
+ const featuresPath = path.join(target, "docs", "99_progress", "features.md");
127
+ if (fs.existsSync(featuresPath)) {
128
+ let content = fs.readFileSync(featuresPath, "utf8");
129
+ if (content.includes("YYYY-MM-DD")) {
130
+ content = content.replace(/YYYY-MM-DD/g, today);
131
+ fs.writeFileSync(featuresPath, content);
132
+ }
133
+ }
125
134
  }
126
135
 
127
136
  // Add to .gitignore if exists
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sisyo",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Smart documentation system for vibe coding with Claude Code. Token-efficient MAP.md routing.",
5
5
  "bin": {
6
6
  "sisyo": "./bin/sisyo.js"
@@ -17,10 +17,10 @@
17
17
  "developer-tools",
18
18
  "sisyo"
19
19
  ],
20
- "author": "HoangThang <hoang.jp>",
21
- "homepage": "https://hoang.jp",
20
+ "author": "HoangThang <blog.thangchiba.com>",
21
+ "homepage": "https://blog.thangchiba.com",
22
22
  "license": "MIT",
23
23
  "engines": {
24
24
  "node": ">=16"
25
25
  }
26
- }
26
+ }
@@ -9,6 +9,9 @@ When changing code that affects project structure or behavior:
9
9
  4. Update _summary.md table
10
10
  5. Update MAP.md summary line
11
11
 
12
+ When a feature is completed or added:
13
+ - Log it in docs/99_progress/features.md (date, name, status, link to spec)
14
+
12
15
  Before ending session or when context gets large:
13
16
  - Write docs/99_progress/handoff.md
14
17
 
@@ -0,0 +1,160 @@
1
+ ---
2
+ name: html-docs
3
+ description: "Generate standalone, beautiful HTML documents styled with Tailwind CSS for developers or end-users to read. Use whenever the user asks for a document, report, guide, handbook, release note, onboarding, README-as-HTML, API reference, design spec, or any deliverable that should look polished in a browser. Output is a single self-contained .html file with colorful modern design, rounded corners, gradient accents and great typography."
4
+ license: MIT
5
+ metadata:
6
+ author: HoangThang
7
+ version: '1.0.0'
8
+ ---
9
+
10
+ # HTML Docs
11
+
12
+ Single-file HTML doc, Tailwind via CDN, no build step. Audience: humans (devs, PM, clients, users).
13
+
14
+ ## When to trigger
15
+
16
+ User asks for: HTML doc/report/handbook/guide/release-note/changelog, API reference page, onboarding page, "export to HTML", "render as webpage", any reader-facing deliverable where visual polish matters.
17
+
18
+ Do NOT use for: internal markdown in `docs/` (that's `vibe-docs`), READMEs, raw `.md` notes.
19
+
20
+ ## Hard rules
21
+
22
+ - One `.html` file. No external CSS/JS files.
23
+ - Tailwind CDN: `<script src="https://cdn.tailwindcss.com"></script>`.
24
+ - Optional Inter font via Google Fonts `<link>`.
25
+ - Responsive, mobile-first. Reading width `max-w-4xl` or `max-w-5xl`.
26
+ - Vietnamese `<html lang="vi">` by default unless content is English.
27
+ - No emoji unless requested — use inline SVG (Heroicons) or shape divs.
28
+ - Save to `docs/html/[kebab-name].html` by default.
29
+
30
+ ## Defaults (use these classes unless reason to change)
31
+
32
+ - **Radius**: `rounded-2xl` for cards/sections, `rounded-3xl` for hero/big callouts, `rounded-xl` for code blocks, `rounded-full` for pills/badges.
33
+ - **Padding**: `p-6 md:p-8` inside cards, `py-12 md:py-20` for sections, `px-6` for page gutter.
34
+ - **Border**: `border border-slate-200` for definition on white cards.
35
+ - **Shadow**: `shadow-sm` (subtle) or `shadow-lg shadow-indigo-500/10` (colored soft).
36
+ - **Body text**: `text-slate-700 leading-relaxed`.
37
+ - **Headings**: `font-bold tracking-tight text-slate-900`, `text-4xl md:text-5xl` h1, `text-2xl md:text-3xl` h2, `text-xl` h3.
38
+ - **Background**: `bg-slate-50` (or `bg-stone-50` for warm themes).
39
+ - **Smooth scroll** for TOC: `html { scroll-behavior: smooth; }`.
40
+
41
+ ## Color palettes (pick one per doc — bg / primary / accent)
42
+
43
+ | Theme | Hero gradient | Primary | Accent |
44
+ |---|---|---|---|
45
+ | Indigo/Violet/Pink | `from-indigo-600 via-purple-600 to-pink-500` | `indigo-600` | `violet-500` |
46
+ | Emerald/Teal | `from-emerald-500 via-teal-500 to-cyan-500` | `emerald-600` | `teal-500` |
47
+ | Rose/Amber | `from-rose-500 via-orange-500 to-amber-500` | `rose-600` | `amber-500` |
48
+ | Sky/Cyan | `from-sky-500 via-cyan-500 to-teal-400` | `sky-600` | `cyan-500` |
49
+ | Fuchsia/Pink | `from-fuchsia-600 via-pink-500 to-rose-500` | `fuchsia-600` | `pink-500` |
50
+
51
+ One palette per document. Use the hero gradient on the top banner; use primary for links/buttons; use accent sparingly.
52
+
53
+ ## Component vocabulary
54
+
55
+ Default to these — agent already knows Tailwind, just compose:
56
+
57
+ - **Hero**: full-bleed gradient bg, white text, eyebrow pill (`bg-white/15 backdrop-blur`), big h1, subtitle, optional blurred decoration circles.
58
+ - **TOC**: `lg:sticky lg:top-8`, anchor links, uppercase eyebrow.
59
+ - **Section card**: white bg, `rounded-2xl border shadow-sm`, padded.
60
+ - **Callout** (tip/warn/info): tinted bg + left border — `bg-amber-50 border-l-4 border-amber-400` (warn), `bg-sky-50 border-sky-400` (info), `bg-emerald-50 border-emerald-400` (tip), `bg-rose-50 border-rose-400` (danger).
61
+ - **Code block**: `bg-slate-900 text-slate-100 rounded-xl p-4 text-sm overflow-x-auto`.
62
+ - **Badge/pill**: `inline-flex px-3 py-1 rounded-full text-xs font-medium`, tinted bg.
63
+ - **Method pill** (API): GET→emerald, POST→indigo, PUT→amber, DELETE→rose, PATCH→violet.
64
+ - **Stat card**: large number `text-4xl font-extrabold`, label below, gradient or solid bg.
65
+ - **Step list**: gradient circle index + content alongside.
66
+ - **Table**: `rounded-xl overflow-hidden`, `even:bg-slate-50`, wrap in `overflow-x-auto`.
67
+ - **Footer**: `border-t py-8 text-center text-sm text-slate-500`.
68
+
69
+ ## Special bits worth showing
70
+
71
+ ### Gradient text utility
72
+
73
+ ```css
74
+ .gradient-text {
75
+ background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
76
+ -webkit-background-clip: text;
77
+ background-clip: text;
78
+ color: transparent;
79
+ }
80
+ ```
81
+
82
+ ### Hero with decoration blobs
83
+
84
+ ```html
85
+ <header class="relative overflow-hidden bg-gradient-to-br from-indigo-600 via-purple-600 to-pink-500 text-white">
86
+ <div class="max-w-5xl mx-auto px-6 py-20 md:py-28">...</div>
87
+ <div class="absolute -bottom-24 -right-24 w-72 h-72 rounded-full bg-white/10 blur-3xl"></div>
88
+ <div class="absolute -top-24 -left-24 w-72 h-72 rounded-full bg-pink-300/30 blur-3xl"></div>
89
+ </header>
90
+ ```
91
+
92
+ ### Page layout grid (sticky TOC + content)
93
+
94
+ `grid lg:grid-cols-[220px_1fr] gap-10` inside `max-w-5xl mx-auto px-6 py-12`.
95
+
96
+ ### Minimum boilerplate
97
+
98
+ ```html
99
+ <!doctype html>
100
+ <html lang="vi">
101
+ <head>
102
+ <meta charset="utf-8" />
103
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
104
+ <title>[Title]</title>
105
+ <script src="https://cdn.tailwindcss.com"></script>
106
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
107
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
108
+ <style>html { font-family: 'Inter', system-ui, sans-serif; scroll-behavior: smooth; }</style>
109
+ </head>
110
+ <body class="bg-slate-50 text-slate-700 antialiased">
111
+ <!-- hero / main / footer -->
112
+ </body>
113
+ </html>
114
+ ```
115
+
116
+ ## Content patterns by doc type
117
+
118
+ - **Release notes**: hero with version pill, version cards stacked vertically, change-type pills (`new`=emerald, `improved`=sky, `fixed`=amber, `breaking`=rose).
119
+ - **API reference**: sticky TOC by resource, endpoint cards with method pill, request/response in `<details>` for no-JS toggle.
120
+ - **Onboarding / handbook**: hero + CTA, numbered step cards with gradient circle index, closing "next steps" card.
121
+ - **Report / dashboard**: stat grid up top, SVG charts inline, alternating-row tables.
122
+ - **Feature spec / design doc**: status badge (draft/approved/shipped), sections — Problem / Goals / Non-goals / Approach / Open questions / Risks (callouts).
123
+
124
+ ## Anti-patterns
125
+
126
+ - Sharp corners (`rounded-none`) — always at least `rounded-xl`.
127
+ - Pure white with no accent — feels unfinished.
128
+ - Walls of paragraph text — break with cards/callouts/lists.
129
+ - Inline `style="…"` when a Tailwind class exists.
130
+ - Multiple files, build step, heavy JS framework.
131
+ - External images without fallback — prefer SVG/gradient placeholder.
132
+ - `<table>` used for layout — use grid/flex.
133
+
134
+ ## Quality checklist
135
+
136
+ - [ ] Opens via `file://` with no console errors
137
+ - [ ] Responsive at 375px
138
+ - [ ] TOC anchors all resolve
139
+ - [ ] Code blocks scroll horizontally
140
+ - [ ] Tables wrap in `overflow-x-auto`
141
+ - [ ] Reading width capped
142
+ - [ ] One palette, used consistently
143
+ - [ ] Title + date + author/source visible
144
+
145
+ ## Output convention
146
+
147
+ 1. Path: `docs/html/[kebab-name].html` (confirm if unclear).
148
+ 2. After writing: log to `docs/99_progress/features.md` if it's a deliverable; add one-line entry to `docs/MAP.md`.
149
+ 3. Tell user the file path — opens directly, no server needed (`open docs/html/foo.html` on macOS).
150
+
151
+ ## Relation to vibe-docs
152
+
153
+ | | vibe-docs | html-docs |
154
+ |---|---|---|
155
+ | Audience | Claude + devs | Humans (devs, PM, clients, users) |
156
+ | Format | Compact `.md`, token-efficient | Polished HTML, visual |
157
+ | Location | `docs/MAP.md`, `_summary.md`, detail `.md` | `docs/html/*.html` |
158
+ | Trigger | Code/feature changes | Explicit "make this readable / shareable" |
159
+
160
+ Typical flow: `vibe-docs` keeps `docs/01_requirements/[feature].md` up to date; when user asks "make this into an HTML page for the team", `html-docs` reads that spec and renders the polished version.
@@ -149,6 +149,7 @@ Rules for MAP.md entries:
149
149
  | Wrote/planned tests | 07_testing/[module].md | Test cases, edge cases, coverage notes, test commands | yes |
150
150
  | Set up auth/permissions/keys | 08_security/[topic].md | Auth flow, roles, permissions, API keys, secrets mgmt | yes |
151
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 |
152
153
  | Completed any task | 99_progress/todo.md | Task status: doing, next, done with dates | yes |
153
154
  | Ending session or /clear | 99_progress/handoff.md | Session summary, current state, next steps, decisions | yes |
154
155
 
@@ -0,0 +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 -->