@luz-ds/ai 0.0.0-stage → 0.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/LICENSE +21 -0
- package/README.md +153 -2
- package/dist/skills/luz/LICENSE +21 -0
- package/dist/skills/luz/SKILL.md +120 -0
- package/dist/skills/luz/agents/openai.yaml +7 -0
- package/dist/skills/luz/assets/agents/luz-agent-accessibility.md +64 -0
- package/dist/skills/luz/assets/agents/luz-agent-legal.md +60 -0
- package/dist/skills/luz/assets/agents/luz-agent-optimiza.md +59 -0
- package/dist/skills/luz/assets/agents/luz-agent-seogeo.md +63 -0
- package/dist/skills/luz/assets/agents/luz-agent-ux.md +55 -0
- package/dist/skills/luz/assets/examples/landing-service/app.js +51 -0
- package/dist/skills/luz/assets/examples/landing-service/index.html.tpl +83 -0
- package/dist/skills/luz/assets/facts.json +53 -0
- package/dist/skills/luz/assets/fields.json +104 -0
- package/dist/skills/luz/assets/skills/luz-license/SKILL.md +54 -0
- package/dist/skills/luz/assets/skills/luz-license/references/notices.md +68 -0
- package/dist/skills/luz/assets/skills/luz-license/references/reading.md +24 -0
- package/dist/skills/luz/assets/skills/luz-meta/SKILL.md +57 -0
- package/dist/skills/luz/assets/skills/luz-meta/references/files.md +37 -0
- package/dist/skills/luz/assets/skills/luz-meta/references/head.md +36 -0
- package/dist/skills/luz/assets/skills/luz-migrate/SKILL.md +58 -0
- package/dist/skills/luz/assets/skills/luz-migrate/references/costs.md +11 -0
- package/dist/skills/luz/assets/skills/luz-migrate/references/steps.md +45 -0
- package/dist/skills/luz/assets/skills/luz-readme/SKILL.md +88 -0
- package/dist/skills/luz/assets/skills/luz-readme/references/ai-tells.md +82 -0
- package/dist/skills/luz/assets/skills/luz-readme/references/anatomy.md +211 -0
- package/dist/skills/luz/assets/skills/luz-readme/references/audit.md +51 -0
- package/dist/skills/luz/assets/skills/luz-readme/references/creative-toolkit.md +71 -0
- package/dist/skills/luz/assets/skills/luz-readme/references/structure-by-type.md +66 -0
- package/dist/skills/luz/assets/skills/luz-theme/SKILL.md +56 -0
- package/dist/skills/luz/assets/skills/luz-theme/references/checks.md +20 -0
- package/dist/skills/luz/assets/skills/luz-theme/references/tokens.md +32 -0
- package/dist/skills/luz/assets/skills/luz-translate/SKILL.md +53 -0
- package/dist/skills/luz/assets/skills/luz-translate/references/glossary.md +29 -0
- package/dist/skills/luz/assets/skills/luz-translate/references/rules.md +37 -0
- package/dist/skills/luz/assets/templates/app.html.tpl +72 -0
- package/dist/skills/luz/assets/templates/blog.html.tpl +54 -0
- package/dist/skills/luz/assets/templates/docs.html.tpl +49 -0
- package/dist/skills/luz/assets/templates/landing.html.tpl +56 -0
- package/dist/skills/luz/assets/tool-map.json +16 -0
- package/dist/skills/luz/references/agents.md +21 -0
- package/dist/skills/luz/references/components/accordion.md +16 -0
- package/dist/skills/luz/references/components/alert.md +13 -0
- package/dist/skills/luz/references/components/app-bar.md +34 -0
- package/dist/skills/luz/references/components/badge.md +7 -0
- package/dist/skills/luz/references/components/bar-list.md +18 -0
- package/dist/skills/luz/references/components/breadcrumb.md +13 -0
- package/dist/skills/luz/references/components/button-link.md +7 -0
- package/dist/skills/luz/references/components/button.md +7 -0
- package/dist/skills/luz/references/components/card.md +10 -0
- package/dist/skills/luz/references/components/checkbox.md +10 -0
- package/dist/skills/luz/references/components/code-block.md +9 -0
- package/dist/skills/luz/references/components/copy.md +8 -0
- package/dist/skills/luz/references/components/dashboard.md +27 -0
- package/dist/skills/luz/references/components/date.md +11 -0
- package/dist/skills/luz/references/components/dropdown.md +17 -0
- package/dist/skills/luz/references/components/email.md +11 -0
- package/dist/skills/luz/references/components/faq.md +38 -0
- package/dist/skills/luz/references/components/fieldset.md +17 -0
- package/dist/skills/luz/references/components/figure.md +12 -0
- package/dist/skills/luz/references/components/hero.md +24 -0
- package/dist/skills/luz/references/components/meter.md +8 -0
- package/dist/skills/luz/references/components/modal.md +26 -0
- package/dist/skills/luz/references/components/navbar.md +23 -0
- package/dist/skills/luz/references/components/number.md +11 -0
- package/dist/skills/luz/references/components/objects-actions.md +20 -0
- package/dist/skills/luz/references/components/objects-grid.md +15 -0
- package/dist/skills/luz/references/components/objects-list.md +10 -0
- package/dist/skills/luz/references/components/objects-media.md +12 -0
- package/dist/skills/luz/references/components/objects-page.md +18 -0
- package/dist/skills/luz/references/components/objects-shell.md +15 -0
- package/dist/skills/luz/references/components/page-header.md +12 -0
- package/dist/skills/luz/references/components/pagination.md +15 -0
- package/dist/skills/luz/references/components/progress.md +8 -0
- package/dist/skills/luz/references/components/prose.md +19 -0
- package/dist/skills/luz/references/components/radio.md +13 -0
- package/dist/skills/luz/references/components/range.md +10 -0
- package/dist/skills/luz/references/components/section.md +26 -0
- package/dist/skills/luz/references/components/select.md +14 -0
- package/dist/skills/luz/references/components/sidebar.md +23 -0
- package/dist/skills/luz/references/components/site-footer.md +17 -0
- package/dist/skills/luz/references/components/site-header.md +26 -0
- package/dist/skills/luz/references/components/skip-link.md +11 -0
- package/dist/skills/luz/references/components/stat.md +17 -0
- package/dist/skills/luz/references/components/switch.md +11 -0
- package/dist/skills/luz/references/components/table-sort.md +23 -0
- package/dist/skills/luz/references/components/table.md +17 -0
- package/dist/skills/luz/references/components/tabs.md +12 -0
- package/dist/skills/luz/references/components/tag.md +7 -0
- package/dist/skills/luz/references/components/text.md +11 -0
- package/dist/skills/luz/references/components/textarea.md +11 -0
- package/dist/skills/luz/references/components/toast.md +15 -0
- package/dist/skills/luz/references/components/tool.md +38 -0
- package/dist/skills/luz/references/components.md +101 -0
- package/dist/skills/luz/references/design.md +204 -0
- package/dist/skills/luz/references/done.md +45 -0
- package/dist/skills/luz/references/kinds/app.md +19 -0
- package/dist/skills/luz/references/kinds/blog.md +14 -0
- package/dist/skills/luz/references/kinds/docs.md +13 -0
- package/dist/skills/luz/references/kinds/landing.md +15 -0
- package/dist/skills/luz/references/levels.md +23 -0
- package/dist/skills/luz/references/magic.md +84 -0
- package/dist/skills/luz/references/reviewers.md +45 -0
- package/dist/skills/luz/references/skills.md +23 -0
- package/dist/skills/luz/references/stacks.md +8 -0
- package/dist/skills/luz/scripts/luz.mjs +1551 -0
- package/package.json +42 -3
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
## The kind of site: a blog
|
|
2
|
+
|
|
3
|
+
A blog is a site of articles. Ask:
|
|
4
|
+
|
|
5
|
+
1. The CMS or generator, and its templates folder: ask before changing one.
|
|
6
|
+
2. The templates: home, post list, article, page, search, 404.
|
|
7
|
+
3. The header: one row with sections and a search, or a masthead.
|
|
8
|
+
4. The article: contents, author, related posts, comments.
|
|
9
|
+
|
|
10
|
+
Start from this skeleton: a list or an article in one `main`. One-row header: `luz-site-header luz-site-header--publication`. `luz-nav-toggle` needs `components/sidebar.css`.
|
|
11
|
+
|
|
12
|
+
`<luz-search>`: `a[data-luz-search-fallback]`, `button.luz-search__trigger[data-luz-search-open][hidden]` and `dialog.luz-modal.luz-search[data-luz-search-src]` (the JSON index) holding `input`, `[role=status]`, `[data-luz-search-results]`.
|
|
13
|
+
|
|
14
|
+
The skeleton of the page is `assets/templates/blog.html.tpl`: `site new --kind blog` writes it, and you fill it in.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
## The kind of site: documentation
|
|
2
|
+
|
|
3
|
+
Documentation is a site of pages. Ask:
|
|
4
|
+
|
|
5
|
+
1. The generator, if any (Starlight, Eleventy…), and its layouts folder.
|
|
6
|
+
2. The areas and first pages, by name, and what each has (head, "On this page", previous and next).
|
|
7
|
+
3. The search needs a JSON index from the build: can it write one?
|
|
8
|
+
|
|
9
|
+
Start from this skeleton. `luz-nav-toggle` needs `components/sidebar.css`.
|
|
10
|
+
|
|
11
|
+
`<luz-search>`: `a[data-luz-search-fallback]`, `button.luz-search__trigger[data-luz-search-open][hidden]` and `dialog.luz-modal.luz-search[data-luz-search-src]` (the JSON index) holding `input`, `[role=status]`, `[data-luz-search-results]`.
|
|
12
|
+
|
|
13
|
+
The skeleton of the page is `assets/templates/docs.html.tpl`: `site new --kind docs` writes it, and you fill it in.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
## The kind of site: a landing page
|
|
2
|
+
|
|
3
|
+
A landing page presents one thing (a product, an event, a person) and leads the visitor to one action. Ask:
|
|
4
|
+
|
|
5
|
+
1. The type, which decides the hero. A landing with an integrated service starts from the sample page that works, `assets/examples/landing-service/` (its `index.html.tpl`, written as `index.html`, and `app.js`): copy both into the site and change every word. A standard landing leads to a step that happens later (buy, book, request a quote, sign up): the hero is a headline, the benefit and one button. A landing with an integrated service is the product used in the page (a converter, a calculator): the hero is the tool, and the button says its verb. If the person cannot say, ask: can a visitor get the real result on this page, in under a minute, with no account and no payment? Yes is an integrated service.
|
|
6
|
+
2. The sections, in reading order. Offer: hero, features, stats, programme, speakers, pricing, testimonials, call to action, sign-up form, footer; the hero and the footer are recommended.
|
|
7
|
+
3. The one main action: what the button says and where it goes.
|
|
8
|
+
4. The header: the name only, or the name with links and the colour mode switcher.
|
|
9
|
+
5. Any form, and where its data goes. LUZ styles the form; it does not send it.
|
|
10
|
+
|
|
11
|
+
Write nothing the person did not give you: no review, rating, client logo, usage counter, price or privacy claim. Where a landing page would show social proof, show facts the page can prove: figures about the product itself, its limits, and what it does with the visitor's data, said first ("When there is no social proof" in `references/design.md`). A mock-up may carry sample content only when it is marked as sample. What must be found or cited (the title, the headline, the offer) is text in the HTML, never painted by a script.
|
|
12
|
+
|
|
13
|
+
Start from this skeleton. `luz-nav-toggle` needs `components/sidebar.css`.
|
|
14
|
+
|
|
15
|
+
The skeleton of the page is `assets/templates/landing.html.tpl`: `site new --kind landing` writes it, and you fill it in.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Which parts of LUZ a site uses
|
|
2
|
+
|
|
3
|
+
The person does not choose this; you do, from the answers of the first round.
|
|
4
|
+
|
|
5
|
+
LUZ has three packages, each needing the one before it:
|
|
6
|
+
|
|
7
|
+
- **Tokens** (`@luz-ds/tokens`): the values only, as CSS variables: colours, spacing, type, radii. No class, no element style.
|
|
8
|
+
- **Core** (`@luz-ds/core`): what every page needs. The bare HTML elements styled with no class, the layout objects (`o-*`), the components every page may use, and the small scripts that enhance them.
|
|
9
|
+
- **Catalog** (`@luz-ds/catalog`): what a page links on its own, one stylesheet per piece, when it uses it: the navigation, the charts and data views, the patterns of a kind of site, the pieces with a script of their own.
|
|
10
|
+
|
|
11
|
+
## The rule
|
|
12
|
+
|
|
13
|
+
| The person has | Use |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| A site of their own whose CSS stays, and wants LUZ's values | Tokens only |
|
|
16
|
+
| A new site, or a refactor onto LUZ | Tokens, core, and the catalog stylesheets of the kind of site |
|
|
17
|
+
| An existing project that gets some LUZ pieces | Tokens and core first, then the catalog pieces they name, page by page |
|
|
18
|
+
|
|
19
|
+
For a new site the starter page links the stylesheets that fit its kind, so that a section added later already has its styles: `site new` wrote them. When the page is finished, remove the ones the page does not use. Link them after core, in the order the starter page has.
|
|
20
|
+
|
|
21
|
+
## Refactoring a site onto LUZ
|
|
22
|
+
|
|
23
|
+
Do it page by page and say what changed and what is left. Keep the old CSS under a lower layer so it cannot win by order, and list every `!important`: those still win. Search the scripts and templates for a class before removing it. Never delete the old framework or its files without the person's yes for that step.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Magic, step by step
|
|
2
|
+
|
|
3
|
+
`/luz magic <description>` builds a prototype from one description, with no question. The rules of the Magic section of SKILL.md hold at every step; this is the order to work in, and an example.
|
|
4
|
+
|
|
5
|
+
## 1. Decide
|
|
6
|
+
|
|
7
|
+
Decide each answer from the description, and write it down:
|
|
8
|
+
|
|
9
|
+
- **The kind**, by what the visitor does on the page:
|
|
10
|
+
|
|
11
|
+
| The page | Kind |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| Presents a thing and leads to a step that happens later (buy, book, sign up) | landing |
|
|
14
|
+
| Presents one tool to visitors, who use it right there, with the text that explains it around it | landing, with an integrated service: the hero is the tool |
|
|
15
|
+
| Is the tool itself, used again and again: settings and a result, a dashboard, a back office | app |
|
|
16
|
+
| Is posts or articles | blog |
|
|
17
|
+
| Is the documentation of something | docs |
|
|
18
|
+
|
|
19
|
+
If none fits, take landing, the simplest, and say so in the report.
|
|
20
|
+
- **The stack**: plain HTML, unless the description names Astro.
|
|
21
|
+
- **The name**: the one it gives, or a short one that fits.
|
|
22
|
+
- **The language**: the one the description is written in; one only.
|
|
23
|
+
- **The look**: LUZ's default.
|
|
24
|
+
- **For an app**, what `references/kinds/app.md` would have asked: no navigation under four views; one view to start with; the data made in the browser, or sample data marked as sample; and the words of the empty, loading and error states.
|
|
25
|
+
|
|
26
|
+
## 2. Write a short spec
|
|
27
|
+
|
|
28
|
+
Five lines, in the message of your decisions, before you write any file, and a sixth with the direction of `references/design.md` (composition, voice of the type, density). Say first which reading of the description you took when it could be read two ways. It is not a question: it makes you decide before you write.
|
|
29
|
+
|
|
30
|
+
1. The main action, and the verb on its button.
|
|
31
|
+
2. What the person gets from it, and where it shows.
|
|
32
|
+
3. The views (one, for a prototype, unless the description needs more).
|
|
33
|
+
4. The empty, loading and error states, in words.
|
|
34
|
+
5. What is left out of this prototype.
|
|
35
|
+
|
|
36
|
+
## 3. Keep it small
|
|
37
|
+
|
|
38
|
+
Build the least that shows the description: one view, one main action, the fields that change the result most, defaults that give a result at once. Add only after every point of `references/done.md` passes. A prototype has one script, `app.js`, and a second only past about 300 lines; never more than five files of JavaScript. Leave the rest for the list of what is left out.
|
|
39
|
+
|
|
40
|
+
## 4. Write the page
|
|
41
|
+
|
|
42
|
+
Show the page full: an app or a tool gets a few rows of sample data, with a line on the page that says "Sample data" (in the page's language), so the person sees what it looks like in use; write its empty state too. No sample price, review, address or real name.
|
|
43
|
+
|
|
44
|
+
Work in small steps: one block of the page, `shot`, a line on what you see, fix it, then the next block. A landing with an integrated service starts from `assets/examples/landing-service/`: copy its two files over the starter page (`index.html.tpl` as `index.html`), then change every word. Run `magic` with the flags you decided. Then read `references/design.md`, take the recipe of the page, and fill the starter with the blocks of `references/components.md`: remove what the recipe does not use (a sidebar under four views, sample cards, an account menu with no accounts). For an app with a script, follow "JavaScript" in `references/kinds/app.md`.
|
|
45
|
+
|
|
46
|
+
## 5. Check
|
|
47
|
+
|
|
48
|
+
Run the check after each step that writes HTML or CSS, and fix every finding (R6).
|
|
49
|
+
|
|
50
|
+
## 6. Look
|
|
51
|
+
|
|
52
|
+
Run `shot --target <folder>`. Give it --target and nothing else: its pictures go to a new temporary folder. Open them if you can see images, and go through `references/done.md`: its criteria and its score. When `shot` says the first primary action is below the first screen at 1440 px, Layout is 0: move the result up (a shorter lead, the tool recipe, two fields a row). Fix every point at 0, then run the check and `shot` again.
|
|
53
|
+
|
|
54
|
+
## 7. Review
|
|
55
|
+
|
|
56
|
+
If your assistant lists a helper called `luz-agent-ux` (the agent of luz-ai, which only reads), give it the page and the file list, and apply what it marks high priority, within R5 and R9. If it lists none, go through the design list of `references/reviewers.md` yourself. Then the other lists of `references/reviewers.md`.
|
|
57
|
+
|
|
58
|
+
## 8. Report
|
|
59
|
+
|
|
60
|
+
What you decided, the spec, the files, what the check found, the score of `references/done.md`, what you left out, and what neither you nor the check could verify. It is a prototype: say what the person should do to make it theirs.
|
|
61
|
+
|
|
62
|
+
## Example
|
|
63
|
+
|
|
64
|
+
The description: "a responsive web page to generate fake QA data by country and category, in batches, with export, for GitHub Pages".
|
|
65
|
+
|
|
66
|
+
The message of decisions:
|
|
67
|
+
|
|
68
|
+
> Kind: app, a tool of one view (settings and a result), so no sidebar. Stack: plain HTML. Name: Fake data. Language: English. Folder: ./fake-data. The check runs with npx, which downloads the checker once.
|
|
69
|
+
>
|
|
70
|
+
> 1. Main action: the data is made as the settings change, so there is no button; "Download CSV" is the primary action.
|
|
71
|
+
> 2. The person gets a table of rows, on the right on a wide screen and first on a phone.
|
|
72
|
+
> 3. One view.
|
|
73
|
+
> 4. Empty: "Choose at least one field." Error: "The batch is too large: 1,000 rows at most."
|
|
74
|
+
> 5. Left out: more than three countries, formats other than CSV and JSON, saving settings.
|
|
75
|
+
|
|
76
|
+
The files:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
fake-data/
|
|
80
|
+
index.html the tool recipe: settings (country, category, rows; more in a details) and the result table
|
|
81
|
+
app.js makes the rows from the settings, fills the table, copies and downloads
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The report gives the decisions, the files, "the check found nothing", what `shot` measured (no sideways scroll, the download button in the first screen at 1440 px), the score (for example 16 of 18: the phone at 1, three buttons in a row; type at 1, the lead is two lines too long), with the reason of each 1, what was left out, and that nobody tried it with a screen reader.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# What to review, and who does it
|
|
2
|
+
|
|
3
|
+
Go through each list on the page the check cannot see. If you have a helper for a review, give it the list and the files; if you have none, do it yourself, in this order. The check never replaces a list: it reads source files, not names, labels or the language of a page.
|
|
4
|
+
|
|
5
|
+
## Structure and accessibility
|
|
6
|
+
|
|
7
|
+
- Every page has `lang`, one `h1`, landmarks (`header`, `main`, `footer`, and `nav` when there is navigation) and a skip link that reaches `main`.
|
|
8
|
+
- Native elements do the job (`button`, `a`, `dialog`, `details`, `form`, `table`). ARIA only where no element does it.
|
|
9
|
+
- Every image has `alt` text that says what it shows, or `alt=""` when it is decoration.
|
|
10
|
+
- Every control has a visible label. The current page has `aria-current="page"` in the navigation.
|
|
11
|
+
- The page works without JavaScript. A tool that cannot (it computes in the browser) keeps its heading, text and form readable without it, and says in a `<noscript>` what does not work and why. A state class such as `is-active` is set by LUZ's scripts and never typed.
|
|
12
|
+
|
|
13
|
+
## Design
|
|
14
|
+
|
|
15
|
+
The points of `references/done.md`, with the page in front of you or its HTML:
|
|
16
|
+
|
|
17
|
+
- The result or the product is the first thing the eye finds, and the setup comes second.
|
|
18
|
+
- One primary action per view, named by its verb; the other actions are secondary, outline or ghost.
|
|
19
|
+
- Labels of one to three words; more than seven controls are grouped or folded; the defaults give a result.
|
|
20
|
+
- No sidebar under four destinations; no sideways scroll at 390 px; the result one tap away on a phone.
|
|
21
|
+
- Every action answers where the person acted; empty, loading and error states have words.
|
|
22
|
+
|
|
23
|
+
## Style
|
|
24
|
+
|
|
25
|
+
- Colours, spacing, type and radii come from tokens (`var(--luz-…)`), never from literal values. No `style` attribute.
|
|
26
|
+
- The project's own CSS goes in the layer `site`, after LUZ's links, and starts the layers with `@layer luz, site;`.
|
|
27
|
+
- No other CSS framework.
|
|
28
|
+
|
|
29
|
+
## Content
|
|
30
|
+
|
|
31
|
+
- No "…" is left in the page: `site new` printed how many there were.
|
|
32
|
+
- The title, the description and the names are the person's, not placeholders.
|
|
33
|
+
|
|
34
|
+
- The starter page loads LUZ from a CDN. Tell the person that this sends their visitors' IP addresses to it, and that installing from npm and serving the files themselves avoids it.
|
|
35
|
+
|
|
36
|
+
## Legal pages (the person decides, a lawyer confirms)
|
|
37
|
+
|
|
38
|
+
- Who publishes the site: a name, an address and a way to contact them, in the footer or a page linked from it. Some countries require it for a business: ask the person to check.
|
|
39
|
+
- A form or any data you collect: who is responsible, what for and who receives it, next to the form. Ask the person to check what the law of their country requires.
|
|
40
|
+
- Anything the page stores in the browser or loads from another origin: say what it is, and ask the person whether it needs a notice or consent. Do not write a cookie banner, a privacy policy or a legal notice on your own.
|
|
41
|
+
- Say that none of this is legal advice and that you did not check it.
|
|
42
|
+
|
|
43
|
+
## What nobody here can verify
|
|
44
|
+
|
|
45
|
+
Say it to the person: whether the labels and the alt text are right, the contrast of their own colours, and how a screen reader reads the page.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# The skills of luz-ai
|
|
2
|
+
|
|
3
|
+
Small skills of one task each, apart from the agents, which review. Offer the one that fits what the person says matters to them. Never offer one they do not need. A skill has no field.
|
|
4
|
+
|
|
5
|
+
## By what matters to the person
|
|
6
|
+
|
|
7
|
+
- A README in plain, specific language, with true facts: `luz-readme`.
|
|
8
|
+
- The colours, fonts and corners of their own brand on LUZ, in light, dark and high contrast: `luz-theme`.
|
|
9
|
+
- A site that already exists, moved to LUZ one page at a time: `luz-migrate`.
|
|
10
|
+
- Pages or catalogs of strings in another language, with a glossary and a translation a person still has to review: `luz-translate`.
|
|
11
|
+
- The head of the pages and the files around it (description, social cards, structured data, robots.txt, sitemap) written correctly: `luz-meta`.
|
|
12
|
+
- The MIT licence and the notices of third-party work next to what the project publishes: `luz-license`.
|
|
13
|
+
|
|
14
|
+
## Skills
|
|
15
|
+
|
|
16
|
+
`skill add <name>` (or `add <name>`) writes the skill folder in `.agents/skills` and in `.claude/skills`. Once added, the person asks the assistant for it by name.
|
|
17
|
+
|
|
18
|
+
- `luz-license`: Puts the MIT licence and the notices of third-party work next to what a project publishes: it first asks once whether the person holds the rights to publish under MIT (and writes nothing if the answer is no or not sure), then the holder's name and the year, and writes a LICENSE only when none exists, keeps the notice of a third-party MIT work next to it, and reports to the person any dual licence, OFL or Creative Commons asset instead of accepting it. It reads the licences of the dependencies from the project's own files, never from the network. Use it when someone wants to license a project or find out what licence its files carry. It is not legal advice.
|
|
19
|
+
- `luz-meta`: Reviews and writes the head of a page and the files around it: title, meta description, canonical, language, Open Graph, Twitter card, JSON-LD built only from data already on the page, robots.txt, sitemap.xml, llms.txt and the web manifest. It starts with a list of findings and the proposed changes, writes after the person says go, promises no ranking and no citation by an AI, and leaves the stance on AI crawlers to the person. Use it when someone wants their site to share, index or describe itself well. Not for the content of the page.
|
|
20
|
+
- `luz-migrate`: Moves a project that has its own CSS (Bootstrap, Tailwind, a hand-written stylesheet) to LUZ one page at a time, without breaking the pages that have not moved: an inventory first, the old CSS in a layer before LUZ, one small region by hand, then page by page with a check for each and a commit that the person makes, and the old CSS removed only at the end. Use it when someone wants to move an existing site to LUZ. Not for starting a new site (that is /luz).
|
|
21
|
+
- `luz-readme`: Writes or rewrites a project README in plain, specific language, without the stock phrases of machine-written text, and ends it with a line saying an AI drafted it. Works for any kind of repository. Every README gets a strong title and subtitle, a cover, links to its sections, the repo's GitHub data, and fixed sections: what it is, usage, installation, credits and license. Use it when the user asks to create, rewrite or improve a README, or to take the stock phrases out of one.
|
|
22
|
+
- `luz-theme`: Makes the theme of a brand for a site that uses LUZ: a CSS file of semantic tokens for light, dark and high contrast, started from the template that @luz-ds/core ships, with the contrast of every pair measured by the checker of LUZ. Use it when someone wants LUZ in their own colours, fonts or corners, or says that LUZ does not look like their brand. Not for changing a component of LUZ itself.
|
|
23
|
+
- `luz-translate`: Translates the pages and the string catalogs of a site (English, Spanish, Arabic or another language the person names) with a small glossary the person approves: it keeps every code, id, class, attribute name, link target and heading level as it is, translates the visible text and the text attributes, keeps every figure, marks its own work as pending review and never marks it as reviewed. Use it when someone wants a page or a catalog of strings in another language. Not for legal text, and not for the strings of LUZ's own scripts (those are JSON files of core).
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Where each stack loads LUZ
|
|
2
|
+
|
|
3
|
+
- Plain HTML (`vanilla`): the `<link>` and `<script>` tags of the starter page, in every page.
|
|
4
|
+
- Astro (`astro`): the `<head>` of the base layout. Check it with `--ext .astro`.
|
|
5
|
+
- React (Vite, Next.js) (`react`): `import "@luz-ds/tokens/css"`, then core and catalog, in the root layout (`className` for `class`). Check it with `--ext .jsx,.tsx`.
|
|
6
|
+
- Vue (Vite, Nuxt) (`vue`): the imports of `main.js` (Nuxt: `css` in `nuxt.config`). Check it with `--ext .vue`.
|
|
7
|
+
- Angular (`angular`): `styles` in `angular.json`.
|
|
8
|
+
- Other (`other`): the global stylesheets.
|