@luz-ds/ai 0.0.0-stage → 0.1.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.
Files changed (49) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +151 -2
  3. package/dist/skills/luz/LICENSE +21 -0
  4. package/dist/skills/luz/SKILL.md +116 -0
  5. package/dist/skills/luz/agents/openai.yaml +7 -0
  6. package/dist/skills/luz/assets/agents/luz-agent-accessibility.md +64 -0
  7. package/dist/skills/luz/assets/agents/luz-agent-legal.md +60 -0
  8. package/dist/skills/luz/assets/agents/luz-agent-optimiza.md +59 -0
  9. package/dist/skills/luz/assets/agents/luz-agent-seogeo.md +63 -0
  10. package/dist/skills/luz/assets/agents/luz-agent-ux.md +55 -0
  11. package/dist/skills/luz/assets/facts.json +53 -0
  12. package/dist/skills/luz/assets/fields.json +104 -0
  13. package/dist/skills/luz/assets/skills/luz-license/SKILL.md +54 -0
  14. package/dist/skills/luz/assets/skills/luz-license/references/notices.md +68 -0
  15. package/dist/skills/luz/assets/skills/luz-license/references/reading.md +24 -0
  16. package/dist/skills/luz/assets/skills/luz-meta/SKILL.md +57 -0
  17. package/dist/skills/luz/assets/skills/luz-meta/references/files.md +37 -0
  18. package/dist/skills/luz/assets/skills/luz-meta/references/head.md +36 -0
  19. package/dist/skills/luz/assets/skills/luz-migrate/SKILL.md +58 -0
  20. package/dist/skills/luz/assets/skills/luz-migrate/references/costs.md +11 -0
  21. package/dist/skills/luz/assets/skills/luz-migrate/references/steps.md +45 -0
  22. package/dist/skills/luz/assets/skills/luz-readme/SKILL.md +88 -0
  23. package/dist/skills/luz/assets/skills/luz-readme/references/ai-tells.md +82 -0
  24. package/dist/skills/luz/assets/skills/luz-readme/references/anatomy.md +211 -0
  25. package/dist/skills/luz/assets/skills/luz-readme/references/audit.md +51 -0
  26. package/dist/skills/luz/assets/skills/luz-readme/references/creative-toolkit.md +71 -0
  27. package/dist/skills/luz/assets/skills/luz-readme/references/structure-by-type.md +66 -0
  28. package/dist/skills/luz/assets/skills/luz-theme/SKILL.md +56 -0
  29. package/dist/skills/luz/assets/skills/luz-theme/references/checks.md +20 -0
  30. package/dist/skills/luz/assets/skills/luz-theme/references/tokens.md +32 -0
  31. package/dist/skills/luz/assets/skills/luz-translate/SKILL.md +53 -0
  32. package/dist/skills/luz/assets/skills/luz-translate/references/glossary.md +29 -0
  33. package/dist/skills/luz/assets/skills/luz-translate/references/rules.md +37 -0
  34. package/dist/skills/luz/assets/templates/app.html.tpl +69 -0
  35. package/dist/skills/luz/assets/templates/blog.html.tpl +54 -0
  36. package/dist/skills/luz/assets/templates/docs.html.tpl +49 -0
  37. package/dist/skills/luz/assets/templates/landing.html.tpl +56 -0
  38. package/dist/skills/luz/assets/tool-map.json +16 -0
  39. package/dist/skills/luz/references/agents.md +21 -0
  40. package/dist/skills/luz/references/kinds/app.md +12 -0
  41. package/dist/skills/luz/references/kinds/blog.md +14 -0
  42. package/dist/skills/luz/references/kinds/docs.md +13 -0
  43. package/dist/skills/luz/references/kinds/landing.md +15 -0
  44. package/dist/skills/luz/references/levels.md +23 -0
  45. package/dist/skills/luz/references/reviewers.md +35 -0
  46. package/dist/skills/luz/references/skills.md +23 -0
  47. package/dist/skills/luz/references/stacks.md +8 -0
  48. package/dist/skills/luz/scripts/luz.mjs +1284 -0
  49. package/package.json +42 -3
@@ -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.