sisyo 1.9.0 → 1.12.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 CHANGED
@@ -7,7 +7,7 @@ Docs auto-update as you build. Token-efficient 3-level routing pattern.
7
7
 
8
8
  | Set | Readers | Where | Style |
9
9
  |---|---|---|---|
10
- | Agent docs | AI agents | `docs/` in the repo | English, as short as possible, one topic per file, paths to code, 3-level routing |
10
+ | Agent docs | AI agents | `docs/` in the repo | English, concise but complete: any agent (new session, another worktree) takes over without missing anything; one topic per file, paths to code, 3-level routing; a session note per parallel branch |
11
11
  | Human docs | the owner, the team | the project's hub (for example a Kicho page tree) | short and plain: architecture, main techniques, key numbers, sprint summaries |
12
12
 
13
13
  The code is the third source: names that read like a sentence, small functions, and no comments except a note the
@@ -30,12 +30,15 @@ your-project/
30
30
  .claude/
31
31
  rules/docs.md # Docs + code rules (auto-loaded)
32
32
  rules/agents-and-tests.md # Models, tests, sessions and deploys (auto-loaded)
33
- skills/vibe-docs/SKILL.md # Brain (loaded on trigger)
33
+ rules/decision-memory.md # Remember the owner's decisions, ask only what matters (auto-loaded)
34
+ skills/vibe-docs/SKILL.md # Agent docs in docs/ (loaded on trigger)
35
+ skills/kicho-devflow/ # Dev requests through a Kicho hub: sprints, request cards, sprint summary, 4 system pages (kdev.mjs)
34
36
  docs/
35
37
  MAP.md # Level 1: routing table
36
38
  99_progress/todo.md # Task backlog
37
39
  99_progress/handoff.md # Session recovery
38
40
  99_progress/features.md # Feature log
41
+ 99_progress/sessions/<branch>.md # One note per parallel branch / worktree (created when needed)
39
42
  ```
40
43
 
41
44
  `SISYO.md` holds the project config. `CLAUDE.md` is untouched if it already exists — sisyo just appends `@SISYO.md` to it.
@@ -108,7 +111,7 @@ sisyo splits files into two groups so frequent updates never clobber your work:
108
111
 
109
112
  | Group | Files | On `--update` |
110
113
  |---|---|---|
111
- | **Managed** (sisyo-owned) | `.claude/rules/docs.md`, `.claude/rules/agents-and-tests.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. |
114
+ | **Managed** (sisyo-owned) | `.claude/rules/*.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. |
112
115
  | **Yours** | `SISYO.md`, `CLAUDE.md`, `docs/**` | Never touched. Missing files are created once. |
113
116
 
114
117
  Hashes of every managed file are recorded in `.claude/sisyo.json` (commit it). If you edited a
@@ -151,13 +154,14 @@ Optional best-practice guides that Claude loads on demand:
151
154
  | Skill | Triggers on |
152
155
  |---|---|
153
156
  | `vibe-docs` | Agent docs in `docs/`: doc updates, feature changes, session end |
157
+ | `kicho-devflow` | Human side of a project in a Kicho hub: requests as decision cards inside sprint pages, one short sprint summary per release, four system pages (architecture, database, clusters & tests, metrics), evidence uploaded from disk, decisions remembered (`kdev.mjs`, Node 18+). Page ids, bank id and keys stay in the project's `.kicho-devflow.json` and `~/.config/kicho/` |
154
158
  | `html-docs` | Generate polished HTML docs (Tailwind, colorful, rounded modern) for devs/users |
155
159
  | `terraform-best-practices` | Terraform/AWS: never auto-apply, cost confirm, plan summary, module layout, IAM/SGR/secrets rules |
156
160
  | `fastapi-best-practices` | FastAPI backends, REST APIs, Python web services |
157
161
  | `react-page-oriented` | React/Next.js pages, component structure |
158
162
  | `gemini-integration` | Google Gemini API: model roles via config keys, 3.x request rules, streaming chat + tools, Live voice (ephemeral token, gemini-3.8-live async tools / 3.1 sync), structured tool results, embeddings/rerank, JSON mode, grounding, PDF, TTS, troubleshooting |
159
163
  | `hindsight` | Long-term memory from a shared Hindsight server on your LAN: banks, retain/recall/reflect, MCP for coding agents, operating the server. Addresses are written as `<hindsight-host>`; use your own server's |
160
- | `g6-style` | Premium homepage / landing page in champagne-gold "light LED" (light + dark, after a lit Ginza atrium), guidance only: Tailwind v4 tokens and keyframes, CSS-first motion, 3D phone hero with real screens, animated how-it-works tiles meeting at one card, click-to-play product tour, black-and-gold plan, products row, photo closing CTA; codex image prompts, fitting a real screen into a generated photo, a button-overflow audit method |
164
+ | `g6-style` | The Hokidon look for a whole product in champagne-gold "light LED" (light + dark, after a lit Ginza atrium), guidance only: Tailwind v4 tokens with one meaning per tone, keycap buttons, fields, sheet, InfoTip, app shell, duotone icons, QR with a logo; app screens (editor + live phone preview, settings, billing and locked paid features, chat, OCR card scan, team console with KPI tiles and charts, tables vs cards, shop and cart, public profile in the user's colour, always-light admin, A4 print); the homepage with CSS-first motion (3D phone hero, animated how-it-works tiles, scroll decks on phones, click-to-play tour, products row) and a B2B landing; codex image prompts, flat illustrations, checks (button-overflow audit, JS / LCP budgets, print) |
161
165
  | `neon-game-ui-ux-skill` | Neon, game-like UI/UX design system (React + Tailwind + motion), guidance only: tokens, component anatomy, HUD (level, XP, streak, daily goal), bottom bar with a centre progress dial + radial menu, gamification patterns (XP, quests, daily path, rewards), duotone icons on an open-source base, motion and accessibility rules |
162
166
  | `hoang-auth` | Sign-in for every Hoang app with Hoang Auth (Keycloak at auth.hoang.jp): the buttons an app's screen shows (Google, Apple, LINE, Hoang Account, Create account), the authorize request (PKCE, kc_idp_hint, login_hint, prompt=create, ui_locales), the account screen through kc_action (password, passkey, two-factor, recovery codes, linking), token checks, sign-out, what never to build (password fields, password grant, own sign-up), a test checklist |
163
167
  | `i18n-multilang` | Multi-language text for games, apps and sites: i18next-format JSON in `i18n/`, a translate → validate → pack loop for 40 default languages, versioned language packs (bundled in the app and/or on a CDN), language picker and default-language rules, Unity and web runtime contracts. Optional voice sets with their own version next to the text version, and numbers written out for TTS in 10 languages. Ships Python 3.8+ tools (`i18n.py`, `voice.py`, `numwords.py`). Private addresses are placeholders (`cdn.<your-domain>`, `<voice-host>`); real ones belong in your `SISYO.md` |
@@ -3,10 +3,14 @@
3
3
  "766b26e495fd9a849e88c1eff9c1e65e544a10adfc3b21081d590976cdd8bccd",
4
4
  "ac4d317ae7e7323c18b1f3896e363b76845ad2455cfa1865bc1d7f27ed93de3a"
5
5
  ],
6
+ ".claude/rules/decision-memory.md": [
7
+ "cb1b7a224e94ac7ed5ee70deb0aef2b932169ba73b2088183076932befc8b151"
8
+ ],
6
9
  ".claude/rules/docs.md": [
7
10
  "136ac103522a5c852a077c130b91eadf39427b4a211634536af13a4c65996bdf",
8
11
  "1fc7e7ee81314cc57313919e3dcbd61c1c9abf271cb2728987a4650626c55cf2",
9
12
  "2b89b91bdcee96353280b6f505be6c0909975d0aab8f5f4726a504b3c1fcbc05",
13
+ "8b43d1904138b791db2f186b5865a6d47d39b031e4bda87e3dda7ceefb59aba2",
10
14
  "e71d422d61809dbd3e1e9c1ed4b700bc145928265538d94974e8536fe99fa5dc"
11
15
  ],
12
16
  ".claude/skills/fastapi-best-practices/ASYNC-PATTERNS.md": [
@@ -28,22 +32,34 @@
28
32
  "6d0424f4c7c8782cac6a1ffeed47d7187f92469e6c92fa76a499f275f571dfb9"
29
33
  ],
30
34
  ".claude/skills/g6-style/SKILL.md": [
31
- "988595f545decf9a6921d06389981be1ee2bf273dffcb48e56f6f96b620081ee"
35
+ "988595f545decf9a6921d06389981be1ee2bf273dffcb48e56f6f96b620081ee",
36
+ "d4864d1844a1938e2c605f6d14074d211c2d3bf5b6d3d7f75ea86bd17acdbda9"
37
+ ],
38
+ ".claude/skills/g6-style/references/app-screens.md": [
39
+ "a988e1edcd79034548fa35e260d39fe0230246d5d3a681d4e4a6d42cc456c771"
32
40
  ],
33
41
  ".claude/skills/g6-style/references/checks.md": [
42
+ "92c31d7ae4b5491e2b0490f1677aa63de156e5f58f15f271db9d78b5d3c5c956",
34
43
  "9cb0824e4d04ae678f60b381731e2a3f6cd8653efe44b380d385c73f0a9a64a0"
35
44
  ],
45
+ ".claude/skills/g6-style/references/components.md": [
46
+ "b0e68b814de3b6796a4f8604affc51b49157be60e4c87601d397632f7953ded5"
47
+ ],
36
48
  ".claude/skills/g6-style/references/imagery.md": [
37
- "9b4df59e13f258297e6aa1dbe94b647f4653ecd212ab4063c0af7f03b43884d2"
49
+ "9b4df59e13f258297e6aa1dbe94b647f4653ecd212ab4063c0af7f03b43884d2",
50
+ "add937aba1c09bf42fc4bf06cb761cb5d17a0f6dc5bb0ae3ce611260dc780964"
38
51
  ],
39
52
  ".claude/skills/g6-style/references/motion.md": [
53
+ "5fc0b4512890d49874406dea6d3922bdf9c3e8924b2fb0be79ebffc4ca05958f",
40
54
  "f961d0bb264d3e26acfdf1f67ca046b3d5d2e74c3b1360f029736f6c9fb0890d"
41
55
  ],
42
56
  ".claude/skills/g6-style/references/sections.md": [
57
+ "e26385449062d1e116cb9a5f2ad06701a0d4602658e6ec1d33f1a130e754db99",
43
58
  "ed4a477aa0f0e43ff24a17a05355fd7dfe9a59502278d91d21772c4b3045c3f6"
44
59
  ],
45
60
  ".claude/skills/g6-style/references/tokens.md": [
46
- "2e236057c4bed3acff31640176fa6ad1467ad5ce4f12054101bec643eaa4cee9"
61
+ "2e236057c4bed3acff31640176fa6ad1467ad5ce4f12054101bec643eaa4cee9",
62
+ "62ac282f4bf7ca5f91e997819bbc8197eab8080fdf1e5dfc7d06b395437dfc23"
47
63
  ],
48
64
  ".claude/skills/gemini-integration/GENERATE.md": [
49
65
  "422c523decaec584f7059f8b31e288b358dfde268da427afeeeb265b8a2e8050"
@@ -153,6 +169,27 @@
153
169
  ".claude/skills/i18n-multilang/scripts/voice.py": [
154
170
  "07e67686b0a75d7cf74b67aae0f816590d15a199c2c3a3eea99bb13025ccb841"
155
171
  ],
172
+ ".claude/skills/kicho-devflow/SKILL.md": [
173
+ "649f2e3b075f030ca2069765a282c65510c247ac4d7e9ee9c92efa9eadc0c901",
174
+ "dd9ef40d8a3023bbbca853025ff425b3c47ab19bdf810a3cd3cddfc363c87491",
175
+ "eef4546dc70d1a5fe2bd5d1649f745f5c49bb982532bc0fcbedf7eb7f4185466"
176
+ ],
177
+ ".claude/skills/kicho-devflow/kdev.mjs": [
178
+ "691d25f21a167a8bbb7119e9209f3d22c15177c998514810750ffc85b3fca4a0",
179
+ "9d0a909741f28d66c0e96c10ce1a2aa3d590b4a105aec16032bdb012a76aa194",
180
+ "d582e0f443d0eced47fe73487a8931450189cfdb62bd0962c01ad3e7bab75f12"
181
+ ],
182
+ ".claude/skills/kicho-devflow/templates/handbook.md": [
183
+ "1ac0b49cbf7646a16848b96ea6df02feaeb8d2fb1af55ebc4c70667093c40667",
184
+ "23549e79063b74e5b517ec6a9c704ea11a0d53084ffee8f3a294dbadc89901a0"
185
+ ],
186
+ ".claude/skills/kicho-devflow/templates/request.json": [
187
+ "7cd77db9a14862491c0cc9c8fba62612feb955f542c1db32b381f3b5a87b1974",
188
+ "df4edc645b483717e5ded44c0b9d5b59c16b62a2a518bddc5f94ceea5012cc17"
189
+ ],
190
+ ".claude/skills/kicho-devflow/templates/request.md": [
191
+ "789bccb7844f575a3a42c731e980cd6649e7f8c32ec87be19f3aa4fe68fbf23c"
192
+ ],
156
193
  ".claude/skills/neon-game-ui-ux-skill/COMPONENTS.md": [
157
194
  "d9dd9fb57e0044988628bab166b48f797c7445bef90f72f5d9fd99c21720090c"
158
195
  ],
@@ -188,6 +225,7 @@
188
225
  "db5d6f3416ef9468f00dc2b55bd2a76d7ac6f6514ffc22eb27455f7b007d7241"
189
226
  ],
190
227
  ".claude/skills/vibe-docs/SKILL.md": [
228
+ "46a877235c6654961de382dfcd9fc127def5972fb8ddec478f971d1a8b6424f3",
191
229
  "5bf3ef21df2315575479a610a15f935010673e74de3523c888e74a6c3f78b105",
192
230
  "b0178f848760701ac3aadf48b001fa360dd1ba23e08fc5aff7b85bacfb314339",
193
231
  "ba3f7176b4ae7088b0ebbfa08bfe8b06729bab6acaddb9b489a8a46233f62fc6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sisyo",
3
- "version": "1.9.0",
3
+ "version": "1.12.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"
@@ -0,0 +1,40 @@
1
+ # Decision Memory and Questions Rule
2
+
3
+ The owner's rules (2026-11-25) for every project. The owner decides only what matters; agents do not ask him the
4
+ same thing twice. A project's `SISYO.md` may be stricter, never looser.
5
+
6
+ ## Remember the owner's decisions
7
+ - His decisions, rules, preferences, thresholds and chosen options (with what was rejected) go into long-term memory
8
+ on the shared Hindsight server (skill `hindsight`): **one company bank for every agent he decides for**, the same
9
+ bank his agent board (Paperclip) uses.
10
+ - The bank id lives in the project's local config (`.kicho-devflow.json` "memory_bank"), never in a public repo.
11
+ - Each record carries exactly one project tag: `project:<project>`, or `project:cong-ty` for a rule that applies to
12
+ every project.
13
+ - Recall reads only this project's tag and `project:cong-ty`, so other projects' memories (clients under NDA)
14
+ never come in.
15
+ - Never change the bank's missions, configuration or mental models: the board's plugin owns them.
16
+ - With the Kicho dev flow: `kdev remember "<one sentence>" --kind owner-decision|owner-rule|tech-decision --source REQ-…`
17
+ (skill `kicho-devflow`).
18
+ - Otherwise: the `hindsight` MCP server of the repo, or the HTTP API.
19
+ - Store **his words**, one sentence each, in his language. Settled technical decisions can be stored too (D-xxx).
20
+ - **Never store**: agent logs, progress, commands, file paths, other people's private data, secrets (tokens, keys,
21
+ passwords). Redact before storing.
22
+
23
+ ## Before asking him anything
24
+ 1. Recall first (`kdev recall "<the question>"` or the MCP recall).
25
+ - If a past decision covers the case, apply it, and say so: "theo quyết định ngày … (REQ-… / D-…)".
26
+ - Memory is evidence, not orders: the current request wins, and a newer decision replaces an older one.
27
+ 2. Ask only when it matters:
28
+ - product direction;
29
+ - an experience he cares about;
30
+ - money or running cost;
31
+ - security or permissions;
32
+ - data that is hard to restore;
33
+ - anything public or sent outside;
34
+ - a real trade-off with no precedent.
35
+ 3. Everything else: decide with your recommendation and write it visibly ("Agent tự quyết: …"), so he can override it.
36
+ 4. Recall fails open: no memory or an error means decide as usual, never stop the work.
37
+
38
+ ## Why
39
+ The owner is the bottleneck of every batch. Repeated or easy questions cost his time; remembered decisions let agents
40
+ move on their own, and the record stays readable and correctable (Hindsight UI).
@@ -1,19 +1,52 @@
1
1
  # Docs and Code Rule
2
2
 
3
- The owner's rules (2026-11-30) for every project: two sets of docs for two kinds of readers, and code that explains
4
- itself. A project's `SISYO.md` may be stricter, never looser.
3
+ The owner's rules (2026-11-30) for every project. There are two sets of docs, for two kinds of readers, and code
4
+ that explains itself. A project's `SISYO.md` may be stricter, never looser.
5
5
 
6
6
  ## Agent docs: `docs/` in the repo
7
- Readers: agents. Goal: find, load and fix one fact quickly, with few tokens.
8
- - English, as short as possible: facts, tables, lists, paths. No prose, no history, no repeating what the code says.
9
- - 3-level routing: `docs/MAP.md` → `<folder>/_summary.md` → detail file. One topic per file, under about 100 lines.
10
- - Refer to code by path (`src/auth/service.ts`) and do not copy it. Write what the code cannot say: why, contracts,
11
- constraints, gotchas, commands.
12
- - Describe what is true now. Replace outdated lines; do not append. Git keeps the history.
13
- - After a change: update the detail file, then `_summary.md`, then the MAP.md line (skill `vibe-docs`).
14
- - Session start: read MAP.md, then `99_progress/handoff.md`. Before the session ends, write the handoff (≤ 30 lines).
7
+ Readers: agents. **Test:** an agent that knows nothing about the project, working in a new session or in another
8
+ worktree, can take the project over from `docs/` plus git without missing anything and without asking. Be concise,
9
+ but never drop a fact that the next agent needs.
10
+ - English. Prefer facts, tables, lists and paths; write prose only for a reason or a flow that needs it. Skip
11
+ greetings, padding and retellings of the code.
12
+ - 3-level routing: `docs/MAP.md` → `<folder>/_summary.md` → detail file. One topic per file. Split a file when it
13
+ grows past about 200 lines.
14
+ - Refer to code by path (`src/auth/service.ts`) instead of copying it. Write what the code cannot say: why,
15
+ contracts, constraints, gotchas, commands, env vars, where things run, what is unfinished.
16
+ - Describe the current state. Replace outdated lines instead of appending notes; git keeps the history.
17
+ - When you move or shorten a doc, carry every still-true fact into its new place. Never delete a fact just to make a
18
+ file shorter.
19
+ - After a change, update the detail file, then `_summary.md`, then the MAP.md line (skill `vibe-docs`).
15
20
  - When a feature is done, add one line to `99_progress/features.md`.
16
21
 
22
+ ## Sessions, worktrees, handoff
23
+ - `99_progress/handoff.md` holds the state of the main line:
24
+ - what is live and where;
25
+ - what is in progress, including active worktrees and sessions (branch, path, goal, link to their note);
26
+ - what waits for the owner;
27
+ - what comes next.
28
+ It is as long as it needs to be.
29
+ - **Parallel work** (a worktree, a parallel session or an agent batch on its own branch): keep a note in
30
+ `99_progress/sessions/<branch>.md`. It records:
31
+ - goal, branch, worktree path, base commit;
32
+ - status: done, left to do, how to test;
33
+ - decisions taken and open questions;
34
+ - the areas and files touched.
35
+ Update it at each milestone and before you stop, so another agent can continue the branch.
36
+ - On a parallel branch, edit only the detail docs and your session note. Leave MAP.md, `_summary.md` and
37
+ `handoff.md` to the merge pass, so branches do not conflict on them.
38
+ - The merge pass does four things:
39
+ 1. folds each session note into the topic docs;
40
+ 2. updates `_summary.md` and MAP.md;
41
+ 3. updates the handoff;
42
+ 4. deletes the notes of merged branches.
43
+ - Session start:
44
+ 1. read MAP.md and the handoff;
45
+ 2. run `git status`, `git log --oneline -5` and `git worktree list`;
46
+ 3. read `99_progress/sessions/<your branch>.md` if it exists;
47
+ 4. read `todo.md` and the relevant `_summary.md`.
48
+ - Before a session ends, or before `/clear`, update the handoff (or your session note on a parallel branch).
49
+
17
50
  ## Human docs: the project's hub
18
51
  Readers: the owner and other people. Goal: understand the system in a few minutes.
19
52
  - Location: the project's Kicho hub when it has one (`.kicho-devflow.json`, skill `kicho-devflow`), written in the
@@ -1,28 +1,29 @@
1
1
  ---
2
2
  name: g6-style
3
3
  description: >-
4
- The "G6" homepage style: champagne / metallic gold "light LED" on warm ivory (light mode) and warm black (dark
5
- mode), after the lit atrium of a Ginza department store, with its motion system: CSS-first entrances, a triangle
6
- lattice of light behind the page, LED strips, a 3D phone stack hero with real screens, animated "how it works"
7
- tiles (QR scan, NFC tap, wallet pass, URL typing) whose lines of light meet at one card, a click-to-play product
8
- tour, a black-and-gold plan, a products row, a photo closing CTA. Guidance only, no source files: exact token
9
- values (light + dark), keyframes, section anatomy for React + Tailwind v4 + framer-motion, codex exec image
10
- prompts, how to fit a real screen into a generated photo, a button-overflow audit method. Use this skill whenever
11
- the user wants a homepage, landing page, product page or marketing site that looks premium, luxurious, gold,
12
- "sang trọng", "pro, animation hơn", like Ginza Six / G6 / the Hokidon homepage, or asks to restyle an existing
13
- site into gold light-and-dark with motion, even if they only say "make the homepage more professional and
14
- animated".
4
+ The "G6" style of the Hokidon web app: champagne / metallic gold "light LED" on warm ivory (light) and warm black
5
+ (dark), after a lit Ginza atrium, for a whole product. Guidance only, no source files: exact tokens (tones with one
6
+ meaning each), keycap buttons, fields, sheet, InfoTip, app shell, duotone icons, QR with a logo; app screens
7
+ (editor beside a live phone preview, settings, billing, locked paid features, chat, OCR card scan, team console
8
+ with KPI tiles and charts, tables, shop and cart, public profile in the user's colour, always-light admin, A4
9
+ print); the homepage with motion (3D phone hero, animated how-it-works tiles, scroll decks, click-to-play tour) and
10
+ a B2B landing; image prompts, checks. Use whenever the user wants a homepage, landing page, web app, dashboard or
11
+ admin that looks premium, gold, "sang trọng", "pro, animation hơn", "giao diện giống
12
+ Hokidon", like Ginza Six / G6, or asks to restyle a site or app into gold light-and-dark, even if they only say
13
+ "make it look more professional".
15
14
  license: MIT
16
15
  metadata:
17
16
  author: HoangThang
18
- version: '1.0.0'
17
+ version: '2.0.0'
19
18
  ---
20
19
 
21
20
  # g6-style
22
21
 
23
- A premium product homepage: quiet ivory (or warm black) surfaces, gold used like light rather than like paint, and
24
- motion that explains the product instead of decorating it. It was built for the Hokidon digital-business-card site
25
- (Next.js 15 static export, Tailwind CSS v4, framer-motion) and reads well for any app with a phone UI to show.
22
+ A premium product: quiet ivory (or warm black) surfaces, gold used like light rather than like paint, and motion that
23
+ explains the product instead of decorating it. It was built for Hokidon, a digital business card service (Next.js
24
+ static export, Tailwind CSS v4, framer-motion): the homepage, the signed-in app (profile editor, settings, billing,
25
+ card scan, chat), the team console, the shop, the public profile pages, the admin and the printed letters all share
26
+ one token set and one component kit. It reads well for any product with a phone UI to show.
26
27
 
27
28
  This skill is **guidance only**. It contains no source files: the project writes its own tokens, components and
28
29
  scripts from the values, anatomy and methods in the reference files. The numbers there are the system (contrast was
@@ -30,7 +31,11 @@ checked on exactly these values); use them as written, do not approximate them.
30
31
 
31
32
  What makes it look expensive, so keep these when adapting:
32
33
  - **Few colours, one meaning each.** Gold = action / selected / done, champagne = links and focus, bronze = identity,
33
- rose = rare highlight. Everything else is warm neutrals. Glow marks only the one thing that matters on screen.
34
+ rose = new / themes; in the app, small status colours: amber = in progress / orders, coin = paid, coral = danger.
35
+ Everything else is warm neutrals. Glow marks only the one thing that matters on screen.
36
+ - **Calm app screens.** One gold key per view; settings as cards of rows; explanations behind a circled i (InfoTip)
37
+ instead of paragraphs, while warnings, prices and limits stay visible; the user's live page always in view beside
38
+ the editor; every state (empty, loading, locked, error, saved) designed, not left to chance.
34
39
  - **Light, not paint.** Gold appears as LED strips (`.led-line`), a lattice of light behind the page, a skylight at
35
40
  the top of the hero, a ring of light turning around the one card a section points at (`.g6-sweep`), metallic
36
41
  gradients with a light band travelling through them (the hero CTA, the headline's second line).
@@ -43,11 +48,13 @@ What makes it look expensive, so keep these when adapting:
43
48
 
44
49
  | File | Read it when |
45
50
  |---|---|
46
- | `references/tokens.md` | Always: colour tokens (light + dark), the theme mechanism, the Tailwind v4 mapping, gradients, the backdrop, LED line, card, sweep and tone scopes. |
47
- | `references/motion.md` | Any animation: easings, the animation tokens, every keyframe (entrance, ambient loops, the story loops of the tiles, form fill), reduced motion, JavaScript loops. |
48
- | `references/sections.md` | Planning or building any section: page order, section shell, hero, strip, animated tiles, "more than X", product tour, plans, products row, closing CTA, phone frame, buttons, switch, a form filled by an API. |
49
- | `references/imagery.md` | Making pictures: codex exec photo prompts, fitting a real screen into a generated photo, video encoding and click-to-play, QR codes in images, image sizes. |
50
- | `references/checks.md` | Before shipping: screenshots, reduced motion, horizontal scroll, the button-overflow audit, languages, network. |
51
+ | `references/tokens.md` | Always: colour tokens (light + dark), tones and their meanings, the theme mechanism, the Tailwind v4 mapping, glows, fonts, gradients, base layer, backdrop, LED line, card, sweep, tone scopes, tables, article text, a user's brand colour. |
52
+ | `references/components.md` | Building any UI: keycap buttons, card / badge / chip, fields and password field, switch, stepper, InfoTip, sheet, app shell (header, nav pills, header slot, footer), app headings, logo, duotone icons, QR with a logo, phone frames, Reveal. |
53
+ | `references/app-screens.md` | Any screen of the product behind the homepage: page shells, editor + live preview, save bar, settings rows, empty / loading / error / locked states, plan and billing card, publish dialog, wallet buttons, chat, photo upload + OCR fill, team console (KPI tiles, charts, members, tables vs cards), shop and cart, public profile, admin, print. |
54
+ | `references/motion.md` | Any animation: easings, the animation tokens, every keyframe (entrance, ambient loops, the story loops of the tiles, page scroll, form fill), reduced motion, JavaScript loops. |
55
+ | `references/sections.md` | Planning or building a marketing page: page order, scroll decks on phones, section shell, hero, strip, animated tiles, "more than X", old way + one thing, product tour, plans, products row, for teams, latest posts, closing CTA, phone frame, video dialog, the business (B2B) landing. |
56
+ | `references/imagery.md` | Making pictures: codex exec photo prompts, flat illustrations from one style anchor, medallion badges, cutting out a logo, fitting a real screen into a generated photo, video encoding and click-to-play, QR codes in images, image sizes. |
57
+ | `references/checks.md` | Before shipping: screenshots, app states, sheets and focus, JS and LCP budgets, print, reduced motion, horizontal scroll, the button-overflow audit, languages, network. |
51
58
 
52
59
  ## Workflow
53
60
 
@@ -55,21 +62,26 @@ What makes it look expensive, so keep these when adapting:
55
62
  builds and deploys, its checks. Keep its conventions (file layout, copy rules, analytics hooks, test ids); this
56
63
  skill brings the look and the motion, not a new architecture. If the project already has a palette with tone
57
64
  names, map the G6 values onto those names (the Hokidon site did: lime → gold, aqua → champagne, iris → bronze,
58
- flare → rose) instead of renaming every class.
65
+ flare → rose, its paid "gold" → coin; `neon-card` → `.g6-card`, `on-neon` → `on-gold`) instead of renaming every
66
+ class.
59
67
  2. **Write the tokens.** Put the values of `references/tokens.md` and the keyframes of `references/motion.md` into the
60
68
  global CSS (after `@import "tailwindcss";` on Tailwind v4, or into the project's own variables), render one
61
69
  fixed `.g6-backdrop` (`aria-hidden`) in the page shell, and give the header a translucent ivory / black glass
62
70
  (`bg-surface-base/75 backdrop-blur-xl`).
63
- 3. **Plan the page with the user's content.** Use the order in `references/sections.md` as the default and keep only
64
- the sections the product needs. Facts in the copy must be true today (no feature that is not live, prices from
65
- the product catalogue, never typed twice). Ask the user for anything that is a business decision (prices on the
66
- page or not, which video goes where).
67
- 4. **Build top-down**, one section at a time, from its anatomy. After each section, screenshot it at 390 px and
68
- 1440 px in light AND dark (headless Chrome with `prefers-color-scheme` emulated) and look at the pictures; fix
69
- before moving on.
70
- 5. **Media.** Real screens first (capture the actual app), generated photos where a human moment helps
71
+ 3. **Build the kit before the screens** (`references/components.md`): buttons, fields, switch, sheet, InfoTip, shell,
72
+ icons. A design gallery page (dev only) that shows every token, component and icon in light and dark side by side
73
+ pays for itself: every later screen is checked against it.
74
+ 4. **Plan with the user's content.** Marketing pages: the order in `references/sections.md`, keeping only the
75
+ sections the product needs. App screens: the patterns in `references/app-screens.md`. Facts in the copy must be
76
+ true today (no feature that is not live, prices and limits from the product catalogue, never typed twice). Ask
77
+ the user for anything that is a business decision (prices on the page or not, which video goes where, what a free
78
+ account may do).
79
+ 5. **Build top-down**, one section or screen at a time, from its anatomy. After each, screenshot it at 390 px and
80
+ 1440 px in light AND dark (headless Chrome with `prefers-color-scheme` emulated), app screens also in their empty
81
+ and locked states, and look at the pictures; fix before moving on.
82
+ 6. **Media.** Real screens first (capture the actual app), generated photos where a human moment helps
71
83
  (`references/imagery.md`). Encode videos small; every video waits for a click.
72
- 6. **Verify** (`references/checks.md`), then ship through the project's normal gate (PR, CI).
84
+ 7. **Verify** (`references/checks.md`), then ship through the project's normal gate (PR, CI).
73
85
 
74
86
  ## Motion rules (why the page feels smooth and stays fast)
75
87
 
@@ -89,6 +101,9 @@ What makes it look expensive, so keep these when adapting:
89
101
  reduced motion.
90
102
  - **Videos never autoplay.** A dialog with `preload="none"` for intros; a tour that starts on ▶ or a step and runs one
91
103
  pass. Autoplay costs every visitor data and battery for something most do not watch.
104
+ - **App screens barely move.** No framer-motion there: `animate-pop-in` for a panel or a success mark, `animate-rise`
105
+ for a chat bubble, spinners and skeletons while waiting, nothing that loops for decoration. Even the celebratory
106
+ publish dialog is a still picture (the owner found the animated one too heavy).
92
107
 
93
108
  ## Colour rules that are easy to get wrong
94
109
 
@@ -100,7 +115,12 @@ What makes it look expensive, so keep these when adapting:
100
115
  - **Per-theme values live in `--c-*` variables**, read with `bg-(image:--c-…)` or `var()`. The `theme-dark` custom
101
116
  variant is for `:root` only; on an element it misses a theme picked with a toggle.
102
117
  - **A dark card inside the light page** (the premium plan): `data-theme="dark"` on it so the dark tokens apply inside.
103
- Likewise `data-theme="light"` on a drawn phone screen, which stays light in both themes like a real one.
118
+ Likewise `data-theme="light"` on a drawn phone screen and on the cream panel behind flat illustrations, which stay
119
+ light in both themes. An admin is always light.
120
+ - **Data is not gold.** Charts use their own blue / orange palette per theme (`app-screens.md` §13): gold already
121
+ means "action, selected".
122
+ - **Print has no theme.** Print CSS uses fixed hex colours and `print-color-adjust: exact` where the gold must stay;
123
+ documents meant to be read (a manual) print black on white.
104
124
 
105
125
  ## Layout rules
106
126
 
@@ -111,7 +131,11 @@ What makes it look expensive, so keep these when adapting:
111
131
  (`@container` + `@md:grid-cols-5`), not screen breakpoints: the screen can be wide while the column is narrow.
112
132
  - Japanese text: headings in phrase blocks (each part up to 、/。 an inline-block); body text in narrow columns with
113
133
  `[word-break:auto-phrase]` + `text-pretty`.
114
- - Phones 320–414 px: no horizontal scroll, chips that would cover the phone move under it.
134
+ - Phones 320–414 px: no horizontal scroll, chips that would cover the phone move under it, nothing between the header
135
+ and the page (a second row under the header eats the screen).
136
+ - Everything fixed to the bottom pads for the safe area: `pb-[max(0.75rem,env(safe-area-inset-bottom))]`.
137
+ - One z-index scale for the whole app (`app-screens.md` §20), and sticky offsets tied to the 56 px header (`top-14`,
138
+ asides `top-20`).
115
139
 
116
140
  ## Pitfalls met while building it
117
141
 
@@ -123,3 +147,10 @@ What makes it look expensive, so keep these when adapting:
123
147
  status, not only the body.
124
148
  - Generated images: ask for blank screens and blank cards, then put the real product on them; never ship generated
125
149
  text or logos.
150
+ - A chat box that sends on Enter breaks Japanese input (the Enter that confirms a conversion sends the message):
151
+ Enter = new line, Ctrl / ⌘ + Enter = send.
152
+ - A shared component used by the root layout or the not-found page drags its libraries into every page: a public page
153
+ with a JS budget grew by the landing's framer-motion this way. Keep heavy imports out of shared shells and measure
154
+ the budget from the build output.
155
+ - A new input added by a tap must be focused inside the same tap (render it synchronously, then focus), or a phone
156
+ will not open its keyboard.