@tidyfactor/design 1.5.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 (136) hide show
  1. package/.tidyfactor +52 -0
  2. package/AGENTS.md +75 -0
  3. package/CHANGELOG.md +210 -0
  4. package/LICENSE +17 -0
  5. package/README.ar.md +398 -0
  6. package/README.de.md +44 -0
  7. package/README.es.md +44 -0
  8. package/README.fa.md +44 -0
  9. package/README.fr.md +44 -0
  10. package/README.md +418 -0
  11. package/README.pt.md +44 -0
  12. package/README.zh.md +44 -0
  13. package/SKILL-REGISTRY.md +69 -0
  14. package/SKILL.md +46 -0
  15. package/VISION.md +43 -0
  16. package/assets/blog.png +0 -0
  17. package/assets/content_layout.png +0 -0
  18. package/assets/content_output.png +0 -0
  19. package/assets/dark.png +0 -0
  20. package/assets/dashboard_layout.png +0 -0
  21. package/assets/dashboard_output.png +0 -0
  22. package/assets/ecommerce_layout.png +0 -0
  23. package/assets/ecommerce_output.png +0 -0
  24. package/assets/github-social-preview-2.png +0 -0
  25. package/assets/github-social-preview.png +0 -0
  26. package/assets/hero-banner.png +0 -0
  27. package/assets/light.png +0 -0
  28. package/assets/media_layout.png +0 -0
  29. package/assets/media_output.png +0 -0
  30. package/assets/og-default.png +0 -0
  31. package/assets/video.png +0 -0
  32. package/bin/add-skill.js +31 -0
  33. package/bin/create-kit.js +372 -0
  34. package/bin/remove-skill.js +137 -0
  35. package/brand.json +279 -0
  36. package/memory/01-design-schools.md +85 -0
  37. package/memory/02-design-tokens.md +41 -0
  38. package/memory/03-narrative-conversion.md +47 -0
  39. package/memory/04-motion-principles.md +44 -0
  40. package/memory/05-component-anatomy.md +34 -0
  41. package/memory/06-quality-bar.md +83 -0
  42. package/memory/07-consistency-contract.md +33 -0
  43. package/memory/08-arabic-bilingual.md +54 -0
  44. package/memory/09-prototype-flow.md +36 -0
  45. package/memory/10-python-tooling.md +64 -0
  46. package/memory/11-brand-json-v2.md +86 -0
  47. package/memory/12-typography-matrix.md +31 -0
  48. package/memory/13-layout-archetypes.md +30 -0
  49. package/memory/14-nav-footer-catalog.md +26 -0
  50. package/memory/15-performance-budget.md +18 -0
  51. package/memory/16-design-movements-guide.md +1084 -0
  52. package/memory/17-storytelling-industries-ux.md +143 -0
  53. package/memory/18-design-decision-engine.md +81 -0
  54. package/package.json +64 -0
  55. package/references/commands/_template.md +27 -0
  56. package/references/commands/assets.md +35 -0
  57. package/references/commands/audit.md +15 -0
  58. package/references/commands/brand.md +85 -0
  59. package/references/commands/brief.md +107 -0
  60. package/references/commands/clone.md +26 -0
  61. package/references/commands/components.md +46 -0
  62. package/references/commands/dashboard.md +45 -0
  63. package/references/commands/deploy.md +45 -0
  64. package/references/commands/flow.md +44 -0
  65. package/references/commands/handoff.md +53 -0
  66. package/references/commands/i18n.md +64 -0
  67. package/references/commands/init.md +30 -0
  68. package/references/commands/layout.md +81 -0
  69. package/references/commands/motion.md +62 -0
  70. package/references/commands/nav-footer.md +54 -0
  71. package/references/commands/page.md +45 -0
  72. package/references/commands/palette.md +35 -0
  73. package/references/commands/perf.md +57 -0
  74. package/references/commands/retrofit.md +15 -0
  75. package/references/commands/school.md +41 -0
  76. package/references/commands/states.md +48 -0
  77. package/references/commands/study.md +98 -0
  78. package/references/commands/tokens.md +45 -0
  79. package/references/commands/typography.md +87 -0
  80. package/references/foundations/daisyui.md +44 -0
  81. package/references/foundations/hybrid.md +32 -0
  82. package/references/foundations/native.md +31 -0
  83. package/references/foundations/tailwind-utility.md +43 -0
  84. package/references/memory/01-design-schools.md +85 -0
  85. package/references/memory/02-design-tokens.md +41 -0
  86. package/references/memory/03-narrative-conversion.md +47 -0
  87. package/references/memory/04-motion-principles.md +44 -0
  88. package/references/memory/05-component-anatomy.md +34 -0
  89. package/references/memory/06-quality-bar.md +83 -0
  90. package/references/memory/07-consistency-contract.md +33 -0
  91. package/references/memory/08-arabic-bilingual.md +54 -0
  92. package/references/memory/09-prototype-flow.md +36 -0
  93. package/references/memory/10-python-tooling.md +64 -0
  94. package/references/memory/11-brand-json-v2.md +86 -0
  95. package/references/memory/12-typography-matrix.md +31 -0
  96. package/references/memory/13-layout-archetypes.md +30 -0
  97. package/references/memory/14-nav-footer-catalog.md +26 -0
  98. package/references/memory/15-performance-budget.md +18 -0
  99. package/references/memory/16-design-movements-guide.md +1084 -0
  100. package/references/memory/17-storytelling-industries-ux.md +143 -0
  101. package/references/memory/18-design-decision-engine.md +81 -0
  102. package/references/memory/architecture.md +39 -0
  103. package/references/memory/decision-points.md +50 -0
  104. package/references/memory/foundations.md +15 -0
  105. package/references/memory/quality-bar.md +20 -0
  106. package/references/tidyfactor-vision.md +66 -0
  107. package/references/workflow.md +49 -0
  108. package/references/workflows/audit-prototype.md +26 -0
  109. package/references/workflows/brief.md +30 -0
  110. package/references/workflows/clone-prototype.md +27 -0
  111. package/references/workflows/init-prototype.md +28 -0
  112. package/references/workflows/retrofit-prototype.md +25 -0
  113. package/scripts/__pycache__/_utils.cpython-312.pyc +0 -0
  114. package/scripts/_utils.py +60 -0
  115. package/scripts/build.py +194 -0
  116. package/scripts/check_alpha.py +52 -0
  117. package/scripts/extract_palette.py +139 -0
  118. package/scripts/generate_transitions.py +105 -0
  119. package/scripts/inspect_images.py +48 -0
  120. package/scripts/minify_assets.py +140 -0
  121. package/scripts/optimize_assets.py +91 -0
  122. package/scripts/optimize_images.py +176 -0
  123. package/scripts/prepare_images.py +67 -0
  124. package/scripts/remove_backgrounds.py +61 -0
  125. package/scripts/test_build.py +228 -0
  126. package/templates/design-system/base.css +75 -0
  127. package/templates/design-system/components.css +229 -0
  128. package/templates/design-system/interactions.js +31 -0
  129. package/templates/design-system/motion.js +42 -0
  130. package/templates/design-system/tokens.css +81 -0
  131. package/templates/design-system/utilities.css +47 -0
  132. package/templates/index.html +84 -0
  133. package/templates/proto-nav.js +56 -0
  134. package/tools/build-skill.js +126 -0
  135. package/tools/validate-skill.js +144 -0
  136. package/tools/validate_skill.py +121 -0
package/.tidyfactor ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "ecosystem": "tidyfactor",
3
+ "track": "design",
4
+ "name": "tidyfactor-design",
5
+ "version": "1.5.0",
6
+ "npmPackage": "@alwkala/tidyfactor-design",
7
+ "github": "https://github.com/TidyFactor/Design",
8
+ "skillFile": "../tidyfactor-design-v1.4.0.skill",
9
+ "category": "design-system",
10
+ "type": "interactive-prototyping",
11
+ "outputs": [
12
+ "design-system/",
13
+ "pages/"
14
+ ],
15
+ "foundations": [
16
+ "native",
17
+ "tailwind",
18
+ "daisyui",
19
+ "hybrid"
20
+ ],
21
+ "commands": [
22
+ "brief",
23
+ "init",
24
+ "school",
25
+ "tokens",
26
+ "palette",
27
+ "assets",
28
+ "components",
29
+ "page",
30
+ "dashboard",
31
+ "motion",
32
+ "states",
33
+ "flow",
34
+ "i18n",
35
+ "audit",
36
+ "clone",
37
+ "retrofit",
38
+ "deploy"
39
+ ],
40
+ "visionRef": "../TidyFactor-VISION.md",
41
+ "sibling": [
42
+ "tidyfactor-html",
43
+ "tidyfactor-php",
44
+ "tidyfactor-js",
45
+ "tidyfactor-htmx",
46
+ "tidyfactor-cinematic"
47
+ ],
48
+ "commercialPartner": "alwkala",
49
+ "website": "https://tidyfactor.com",
50
+ "docs": "https://tidyfactor.com/documentation",
51
+ "license": "Apache-2.0"
52
+ }
package/AGENTS.md ADDED
@@ -0,0 +1,75 @@
1
+ # AGENTS.md — TidyFactor Design System & Full UI Design Lifecycle Engine
2
+
3
+ Build **interactive, code-native HTML/CSS/JS design prototypes** (Figma alternative) with strict structural visual consistency across all pages. Zero per-page CSS/JS, zero inline `<style>` or `<script>` tags, zero build step. Every visual and interaction decision is made once and lives in `design-system/`.
4
+
5
+ ---
6
+
7
+ ## 🛠️ CLI Execution Modes (Human Terminal Wizard vs AI Agent Non-Interactive)
8
+
9
+ - **Human Terminal Interactive Mode** (`npx @tidyfactor/cli-design`): Launches step-by-step interactive CLI wizard (`readline`) prompting human developers in terminal for target directory, CSS foundation, visual school, and optional brand image color extraction.
10
+ - **AI Agent Non-Interactive Mode** (`npx @tidyfactor/cli-design -y` or `--foundation=... --school=...`): AI Agents bypass interactive terminal prompts by passing non-interactive flags (`-y` / `--yes`) or setting `AGENT_MODE=1` or `CI=1`.
11
+
12
+ ---
13
+
14
+ ## ⚡ Skill & 24 Modular Slash Commands (7 Lifecycle Stages)
15
+
16
+ This project exposes an Agentic Skill under `.agents/skills/tidyfactor-design/SKILL.md` (and `.claude-skill/SKILL.md`). The following 24 slash commands covering all 7 stages of the UI Design Lifecycle are supported:
17
+
18
+ | Stage | Command | Purpose | Reference Spec |
19
+ |---|---|---|---|
20
+ | **1. Discovery** | `study` | Extract Design DNA (colors, typography, macrostructure) from reference URL/image | `.agents/skills/tidyfactor-design/references/commands/study.md` |
21
+ | **1. Discovery** | `brief` | Establish 3-Question Design Context Brief & Fit Test | `.agents/skills/tidyfactor-design/references/commands/brief.md` |
22
+ | **2. Foundation** | `init` | **Primary deliverable** — scaffold design system, tokens, foundation, base components & initial page | `.agents/skills/tidyfactor-design/references/commands/init.md` |
23
+ | **2. Foundation** | `brand` | Scaffold, extract, or migrate `brand.json` v2 schema | `.agents/skills/tidyfactor-design/references/commands/brand.md` |
24
+ | **2. Foundation** | `typography` | Select mood-routed font pairing (7 Arabic + Latin routes) | `.agents/skills/tidyfactor-design/references/commands/typography.md` |
25
+ | **2. Foundation** | `school` | Select and document design-movement direction (Minimalist, Brutalism, Glassmorphism, Neumorphism, Swiss, Luxury) | `.agents/skills/tidyfactor-design/references/commands/school.md` |
26
+ | **2. Foundation** | `tokens` | Read/scaffold `design-system/tokens.css` & `brand.json` single source of truth | `.agents/skills/tidyfactor-design/references/commands/tokens.md` |
27
+ | **2. Foundation** | `palette` | Extract color palette & WCAG 2.1 AA contrast scores via `extract_palette.py` | `.agents/skills/tidyfactor-design/references/commands/palette.md` |
28
+ | **2. Foundation** | `assets` | Asset hygiene, web compression & Python image tools | `.agents/skills/tidyfactor-design/references/commands/assets.md` |
29
+ | **3. Architecture** | `layout` | Select surface layout archetype (`fullbleed`, `editorial`, `spatial`, `interface`, `minimal`, `product`, `store`, `auto`) | `.agents/skills/tidyfactor-design/references/commands/layout.md` |
30
+ | **3. Architecture** | `nav-footer` | Choose Navigation (N1-N9) and Footer (Ft1-Ft8) archetypes | `.agents/skills/tidyfactor-design/references/commands/nav-footer.md` |
31
+ | **3. Architecture** | `page` | Add a new marketing or content page (markup-only, zero page-specific CSS/JS) | `.agents/skills/tidyfactor-design/references/commands/page.md` |
32
+ | **3. Architecture** | `dashboard` | Add a new app or dashboard screen with data surfaces and shell layouts | `.agents/skills/tidyfactor-design/references/commands/dashboard.md` |
33
+ | **4. Components** | `components` | Build reusable component library in `design-system/components.css` with 8-state wrappers | `.agents/skills/tidyfactor-design/references/commands/components.md` |
34
+ | **4. Components** | `states` | Define component interactive states (hover, active, focus, disabled, loading, empty, error, success) | `.agents/skills/tidyfactor-design/references/commands/states.md` |
35
+ | **5. Motion** | `motion` | Motion tokens, micro-interactions, ambient layers, scroll-film & z-stack layers in `motion.js` | `.agents/skills/tidyfactor-design/references/commands/motion.md` |
36
+ | **5. Motion** | `flow` | Wire clickable prototype navigation toolbar (`proto-nav.js`) between screens | `.agents/skills/tidyfactor-design/references/commands/flow.md` |
37
+ | **5. Motion** | `i18n` | Arabic/English RTL support, modesty rules & identity typography (El Messiri/Tajawal, never Amiri above 24px) | `.agents/skills/tidyfactor-design/references/commands/i18n.md` |
38
+ | **6. Quality** | `perf` | Verify numeric asset performance budgets (hero ≤ 400KB, logo ≤ 40KB, fonts ≤ 3 families / 4 weights) | `.agents/skills/tidyfactor-design/references/commands/perf.md` |
39
+ | **6. Quality** | `audit` | Comprehensive quality-bar & design consistency audit report | `.agents/skills/tidyfactor-design/references/commands/audit.md` |
40
+ | **6. Quality** | `clone` | Convert mode — extract design tokens & computed styles from reference site | `.agents/skills/tidyfactor-design/references/commands/clone.md` |
41
+ | **6. Quality** | `retrofit` | Improve mode — unify a drifted multi-page prototype into a single design system | `.agents/skills/tidyfactor-design/references/commands/retrofit.md` |
42
+ | **7. Delivery** | `handoff` | Export developer handoff specs, token map, and component state matrix | `.agents/skills/tidyfactor-design/references/commands/handoff.md` |
43
+ | **7. Delivery** | `deploy` | Preview server, static asset packaging & prototype presentation export | `.agents/skills/tidyfactor-design/references/commands/deploy.md` |
44
+
45
+ ---
46
+
47
+ ## Critical Architecture (Non-Negotiable)
48
+
49
+ 1. **Zero Per-Page Styles/Scripts**:
50
+ - `pages/<page-name>.html` contains HTML markup ONLY.
51
+ - **NEVER** write `<style>` blocks, page-specific `.css` files, or page-specific inline `<script>` logic.
52
+ 2. **Centralized `design-system/` Directory**:
53
+ ```
54
+ design-system/
55
+ tokens.css ← Color, typography, spacing, border-radius, shadows, motion tokens
56
+ base.css ← CSS reset, element defaults, typography rules
57
+ components.css ← Universal component styles (buttons, cards, badges, navbars, modals)
58
+ utilities.css ← Foundation-dependent layout & utility classes
59
+ motion.js ← Shared animations, scroll triggers & transition choreography
60
+ interactions.js ← Shared component behaviors (dropdowns, tabs, accordions, modals)
61
+ brand.json ← Identity tokens and brand defaults (v2 schema)
62
+ ```
63
+ 3. **Pluggable CSS Foundations** (chosen once per project):
64
+ - **Native**: Pure CSS custom properties & semantic component classes (zero dependencies).
65
+ - **Tailwind Utility**: Utility-first CSS via CDN.
66
+ - **daisyUI**: Tailwind CDN + daisyUI component library themed via tokens.
67
+ - **Hybrid**: daisyUI for composite app widgets + Native CSS for signature brand elements.
68
+ - **shadcn/ui**: Tailwind v4 + Radix UI accessible primitive tokens & components.
69
+ - **Pico CSS v2**: Semantic classless/lightweight CSS foundation.
70
+ - **Bootstrap 5.3**: Enterprise-ready CSS custom properties & native dark mode themes.
71
+ - **Alpine + Tailwind**: Alpine.js micro-interactions + Tailwind v4 utility engine.
72
+ 4. **Bilingual & Luxury Typography**:
73
+ - Arabic: **El Messiri** (headings) + **Tajawal** (body). **Never Amiri** above 24px.
74
+ - Latin: Cormorant Garamond, Oswald, Inter, Fraunces, or Outfit.
75
+ - RTL native: Always support `dir="rtl"` and logical padding/margins (`margin-inline-start`, etc.).
package/CHANGELOG.md ADDED
@@ -0,0 +1,210 @@
1
+ # Changelog - TidyFactor Design
2
+
3
+ All notable changes to the **[@tidyfactor/design](https://www.npmjs.com/package/@tidyfactor/design)** package will be documented in this file.
4
+
5
+ ## [1.5.0] - 2026-08-29
6
+
7
+ ### Added - Global Multi-Tier & Multi-Language Documentation Architecture
8
+ - **Rule 13 Implementation**: Two-tier documentation separation between Canonical Technical Documentation (`README.md` SSOT) and First-Class Market Localizations.
9
+ - **Universal Multi-Language Switcher**: Standardized 8-language switcher navigation bar across all documentation files (`EN`, `AR`, `FA`, `ES`, `PT`, `ZH`, `DE`, `FR`).
10
+ - **First-Class Localized Developer Adoption Guides**: `README.es.md`, `README.pt.md`, `README.fa.md`, `README.zh.md`, `README.de.md`, `README.fr.md`.
11
+ - **Automated Validation & Packaging**: Updated `tools/build-skill.js` and `tools/validate_skill.py`.
12
+
13
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
14
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
15
+
16
+ ## [1.4.0] - 2026-08-25
17
+
18
+ ### Added
19
+ - **Contextual Decision Layer (CDL v1.0)**: Added `references/memory/decision-points.md` with thin arbitration protocol (D1–D5: CSS Foundation Layer, Design System School, Arabic Typography Pairing, Layout Archetype, Output Scope).
20
+ - **Brief Command (`/brief`)**: Added `references/commands/brief.md` and `references/workflows/brief.md` for pre-flight design system discovery.
21
+ - **7-Axis UI Quality Gate (`P/H/E/S/R/V/D`)**: Added `references/memory/quality-bar.md` enforcing 8-state model, zero per-page CSS/JS, and anti-slop rules.
22
+ - **Structured References & Workflows Architecture**: Migrated memory into `references/memory/`, created `references/workflows/` (init-prototype, clone-prototype, retrofit-prototype, audit-prototype, brief), and organized memory catalogs (`architecture.md`, `foundations.md`).
23
+ - **Validation & CLI Suite**: Added `bin/add-skill.js`, updated `package.json` `"bin"` map, created `tools/validate_skill.py`, and synchronized `brand.json` version.
24
+
25
+ ---
26
+
27
+ ## [1.3.9] - 2026-08-23
28
+
29
+ ### 📜 License & Ecosystem Parity Synchronization
30
+ - **Apache-2.0 License Standardization**: Synchronized license badge in `README.md` and `README.ar.md` to `Apache-2.0`, aligning with `package.json`, `.tidyfactor`, and `LICENSE`.
31
+ - **Ecosystem Architecture Alignment**: Synchronized metadata and versioning across `.tidyfactor`, `brand.json`, and NPM packaging pipelines.
32
+
33
+ ---
34
+
35
+ ## [1.3.8] - 2026-08-01
36
+
37
+ ### 🛡️ Agency & Impeccable Skill Learnings Integration
38
+ - **11 Codex & AI-Slop Defect Bans (`memory/06-quality-bar.md`)**: Enriched TidyFactor Quality Bar with 11 explicit defect bans (Ghost Cards prohibition, Over-Rounding limits 32px+, Grid overlays ban, Side-Stripe borders, Warm cream/sand neutral defaults, Numbered sequence eyebrows, Sketchy SVG fallbacks).
39
+ - **Neobrutalism Signature Components (`templates/design-system/components.css`)**: Added `.sticker-badge`, `.card-neobrutal`, `.github-social-card`, and `.metric-strip` helper classes.
40
+ - **Agency Compatibility Audit**: Verified 100% fit and readiness for agency/B2B products (Alwkala Agency stack compatibility).
41
+
42
+ ## [1.3.7] - 2026-08-01
43
+
44
+ ### 🗑️ New CLI Subcommand: `remove-skill` / `remove-design-skill`
45
+ - **Skill Uninstaller Script (`bin/remove-skill.js`)**:
46
+ - Added dedicated uninstaller script allowing developers to cleanly remove injected agent skills and design system rules.
47
+ - Subcommands supported: `npx @tidyfactor/cli-design remove-skill`, `remove-design-skill`, `uninstall-skill`, `clean-skill`.
48
+ - Registered `"remove-design-skill": "bin/remove-skill.js"` in `package.json` `bin` map.
49
+ - Safely removes `.agents/skills/tidyfactor-design/`, `.claude-skill/`, `memory/`, and generated `AGENTS.md` rules with clear terminal feedback.
50
+
51
+ ## [1.3.6] - 2026-08-01
52
+
53
+ ### 📦 Automated Versioned `.skill` Archive Build Pipeline
54
+ - **Claude Code Skill Manager Parity**: Added `version: 1.3.6` to `SKILL.md` YAML frontmatter for native compatibility with Claude Code skill managers and Agentic IDEs.
55
+ - **Automated Version-Tagged `.skill` Builds (`tools/build-skill.js`)**:
56
+ - Rebuilding the skill automatically generates both `tidyfactor-design.skill` (latest release) AND `tidyfactor-design-v1.3.6.skill` (version-tagged release artifact).
57
+ - Automatically syncs both versioned and unversioned `.skill` archives to `dist/` and `Skills-LAB/` root directory.
58
+
59
+ ## [1.3.5] - 2026-08-01
60
+
61
+ ### 💎 CLI UX Audit & Wizard Logic Polish (`tidyfactor-skill-architect`)
62
+ - **Graceful Cancellation (`SIGINT`)**: Registered a `rl.on('SIGINT', ...)` trap in `bin/create-kit.js` to handle `Ctrl+C` cleanly with an exit message (`✖ Operation cancelled.`).
63
+ - **Input Validation Loop**: Added validation loops to prompt steps so out-of-range numerical choices (e.g. `99`) display a clear warning instead of silent fallbacks.
64
+ - **Visual Breadcrumbs**: Added progress indicators `[1/4]` through `[4/4]` and formatted checkmarks (`✓ Target Directory`, `✓ Foundation Selected`, `✓ Design School Selected`, `✓ Palette Image Locked`).
65
+ - **Expanded Movement Menu**: Included all major visual design movements (`minimalist`, `brutalism`, `glassmorphism`, `neumorphism`, `swiss`, `luxury`, `bauhaus`, `industrial`, `bento`, `aurora`, `cyberpunk`, `claymorphism`) in the interactive CLI picker.
66
+ - **RTL & Bilingual Badge**: Highlighted `🌐 RTL & Bilingual Ready (El Messiri / Tajawal)` in CLI header banner.
67
+
68
+ ## [1.3.4] - 2026-08-01
69
+
70
+ ### 🧙 Upgrade: Dual-Mode Interactive CLI Wizard & Agent Detection
71
+ - **Added Human Terminal Interactive Wizard (`bin/create-kit.js`)**:
72
+ - Automatically triggers an interactive `readline` terminal wizard when running `npx @tidyfactor/cli-design` in a live human TTY terminal.
73
+ - Interactively prompts for: Target Directory, CSS Foundation (8 options), Visual Design School (12 options), and optional Brand Image Color Extraction path.
74
+ - **Added Non-Interactive Agent & CI Detection (`isInteractiveTerminal()`)**:
75
+ - Bypasses terminal prompts instantly when AI Agent mode (`AGENT_MODE=1`), CI pipelines (`CI=1`), non-interactive TTY, or CLI flags (`--foundation=...`, `--school=...`, `-y`, `--yes`) are detected.
76
+ - **Updated `AGENTS.md` Guidelines**: Documented dual-mode CLI execution guidelines.
77
+
78
+ ## [1.3.3] - 2026-08-01
79
+
80
+ ### 🛠️ Critical CLI & Template Scaffolding Upgrade
81
+ - **Fixed CLI Template Auto-Cleanup Bug**: Replaced stub `.template.` files with a production starter suite in `templates/` to prevent scaffolding from leaving an empty directory.
82
+ - **Created Production Template Suite (`templates/`)**:
83
+ - `design-system/tokens.css`: Dual-theme CSS custom properties (colors, typography, spacing, radius, shadows).
84
+ - `design-system/base.css`: Reset, typography inheritance, logical properties, smooth scrolling.
85
+ - `design-system/components.css`: Button suite, cards, bento grids, badges, navbar pills, hero sections.
86
+ - `design-system/utilities.css`: Spatial layout helpers and accessibility utilities.
87
+ - `design-system/motion.js`: Scroll reveals, entrance choreography, reduced-motion fallbacks.
88
+ - `design-system/interactions.js`: Theme toggle (light/dark) and direction toggle (RTL/LTR).
89
+ - `index.html`: Responsive, accessible starter prototype landing page.
90
+ - `proto-nav.js`: Dev-only floating prototype toolbar with `🎨 TF Design` badge.
91
+ - **Auto-Injection in `create-kit.js`**: Scaffolding a new project via `npx @tidyfactor/cli-design` now automatically injects `.agents/`, `.claude-skill/`, `memory/`, and `AGENTS.md` in a single pass.
92
+ - **Fixed CLI Argument Parsing**: Improved positional argument handling so space-separated target paths (e.g., `npx @tidyfactor/cli-design "TidyFactor Website"`) scaffold directly into the target directory.
93
+ - **Windows Console Encoding Fix**: Fixed `sys.stdout` UTF-8 re-encoding in `scripts/extract_palette.py` for Windows consoles.
94
+
95
+ ## [1.3.2] - 2026-08-01
96
+
97
+ ### 🧠 Major Upgrade: Design Decision Engine Architecture
98
+ - **Added 9 Structural Decision Layers**: Transformed `tidyfactor-design` into a deterministic Design Decision Engine.
99
+ - **Added `memory/18-design-decision-engine.md`**:
100
+ - **The 9-Step Decision Tree Protocol**: `Project Scope → Industry Register → Audience Mode → Brand Personality → Storytelling → UX Philosophy → Visual School → Tokens → Components`.
101
+ - **Enforced Anti-"Design Soup" Constraint Rule**: Hard limit capping mixing to 1 Primary School, 1 Compatible Secondary Influence, 1 Motion Language, 1 Storytelling Style, and 1 UX Philosophy Accent.
102
+ - **Executable Signature Element Specification**: Mandatory implementation of concrete HTML/CSS signature code for every movement.
103
+ - **Structured All 20 Visual Movements (`memory/16-design-movements-guide.md`)**:
104
+ - Added YAML `confidence` ratings across 6 surface targets.
105
+ - Added `compatibility` lists (`compatible` vs `avoid`).
106
+ - Added `brandPersonality` tone keywords.
107
+ - Added 8-axis `visualDNA` vectors (`Grid`, `Typography`, `Geometry`, `Illustration`, `Motion`, `Texture`, `Photography`, `Depth`).
108
+ - Added concrete `componentBehaviour` specifications (`Buttons`, `Cards`, `Forms`, `Navigation`, `Search`).
109
+ - Added `motionLanguage` parameters (`Duration`, `Curve`, `Energy`, `Scroll`, `Hover`).
110
+ - Added `executableSignature` snippets.
111
+ - **Added `memory/17-storytelling-industries-ux.md`**: Detailed guide for 4 Storytelling Archetypes, 8 Industry Registers, and 8 UX Philosophies.
112
+ - **Updated Command Specs**: Integrated 9-step decision protocol into `references/commands/brief.md` and `references/commands/school.md`.
113
+ - **Rebuilt Distribution Archive**: Updated `dist/tidyfactor-design.skill` (115.7 KB with 18 memory files).
114
+
115
+ ## [1.3.1] - 2026-07-31
116
+
117
+ ### 🧠 Evolution: Transformed into a Production Design Decision Engine
118
+ - **Added Structured Metadata to All 20 Visual Movements (`memory/16-design-movements-guide.md`)**:
119
+ - `Confidence Matrix`: Surface suitability rating (`production`, `marketing`, `dashboard`, `landing`, `mobile`, `accessibility`).
120
+ - `Compatibility Matrix`: Explicit synergy lists (`compatible` vs `avoid`).
121
+ - `Brand Personality`: 4-6 tone keywords governing copy tone, media choices, and hover states.
122
+ - `Visual DNA Vector`: 8-point radar scale (`Grid`, `Typography`, `Geometry`, `Illustration`, `Motion`, `Texture`, `Photography`, `Depth`).
123
+ - `Component Behaviour`: Concrete shape/form specs for `Buttons`, `Cards`, `Forms`, `Navigation`, and `Search`.
124
+ - `Motion Language`: Concrete specs for `Duration`, `Curve`, `Energy`, `Scroll`, and `Hover`.
125
+ - `Executable Signature Element`: Concrete HTML/CSS implementation snippet for the school's signature tell.
126
+ - **Added 9-Step Design Decision Tree Protocol (`memory/18-design-decision-engine.md`)**: Sequential decision flow: `Project → Industry → Audience → Brand Personality → Storytelling → UX Philosophy → Visual School → Tokens → Components`.
127
+ - **Enforced Anti-"Design Soup" Constraint**: Hard limit capping mixing to 1 Primary School, 1 Compatible Secondary Influence, 1 Motion Language, 1 Storytelling Style, and 1 UX Philosophy Accent.
128
+ - **Fixed `brand.json` IDE Schema Warning**: Replaced `$schema` URL pointer with `"schemaVersion": "brand-core-v2"`.
129
+ - **Refactored `scripts/extract_palette.py`**: Added safe read-and-merge logic so `--json brand.json` updates color tokens (`colors.light` & `colors.dark`) without overwriting or wiping other sections.
130
+ - **License Standardization**: Standardized `LICENSE` file text to MIT License across all metadata.
131
+ - **Documentation Overhaul**:
132
+ - Completely overhauled `README.md` and `README.ar.md` with visual surface screenshot embeds (`assets/light.png`, `assets/dark.png`, `dashboard_output.png`, `ecommerce_output.png`, `blog.png`, `media_output.png`).
133
+ - Added dedicated section explaining **TidyFactor Skill Methodology & 8/8 Governance Architecture** in both English and Arabic.
134
+ - Formatted 24 slash commands table across 7 UI Design Lifecycle stages.
135
+ - **Rebuilt Distribution Archive**: Updated `dist/tidyfactor-design.skill` (115.7 KB).
136
+
137
+ ## [1.3.0] - 2026-07-31
138
+
139
+ ### 🚀 Major Architectural Evolution: Full UI Design Lifecycle Skill
140
+ - **Evolved from Prototyping Engine to Full UI Design Lifecycle Engine**: Extended `tidyfactor-design` across all 7 design lifecycle stages (Discovery, Foundation, Architecture, Components, Motion, Quality, Delivery).
141
+ - **Expanded Command Palette (16 → 24 Commands)**:
142
+ - **Discovery**: Added `study` (extract design DNA from URL/screenshot) and `brief` (3-question design context gate: Audience, Surface, Tone).
143
+ - **Foundation**: Added `brand` (scaffold/extract `brand.json` v2) and `typography` (7 mood-routed font pairings matrix).
144
+ - **Architecture**: Added `layout` (8 specialized surface layout archetypes) and `nav-footer` (N1–N9 nav catalog & Ft1–Ft8 footer catalog).
145
+ - **Quality**: Added `perf` (numeric asset performance budgets table).
146
+ - **Delivery**: Added `handoff` (developer design system spec export & component state matrix).
147
+ - **Upgraded `brand.json` Schema (v2)**: Dual-mode `colors.light/dark` (16 semantic tokens each), `shadows.focusRing` with `color-mix()`, `motion` tokens, `iconography` rules, `components` token references, `localization.mirrorOnRtl`, and `accessibility` floor.
148
+ - **Added 5 New Memory Reference Files**:
149
+ - `memory/11-brand-json-v2.md`
150
+ - `memory/12-typography-matrix.md`
151
+ - `memory/13-layout-archetypes.md`
152
+ - `memory/14-nav-footer-catalog.md`
153
+ - `memory/15-performance-budget.md`
154
+ - **Quality Bar Additions**: Added anti-`mix-blend-mode` compositing rule (transparent PNG cutouts for animated hero assets) and strict numeric performance budget checks.
155
+
156
+ ## [1.2.0] - 2026-07-31
157
+
158
+ ### Added & Enhanced
159
+ - **Context-Engineered Architecture Refactor**:
160
+ - Re-architected `SKILL.md` into a ~37-line dispatcher table (~350 tokens initial load) complying 100% with `tidyfactor-skill-architect` rules.
161
+ - Modularized commands into `references/commands/`, single-outcome workflows into `references/workflows/`, operational rules into `references/memory/` and `memory/`, and human-facing manifesto into `references/memory/philosophy.md`.
162
+ - **Anti-Slop & Pre-Emit Self-Critique Control (Rule 8)**:
163
+ - Added **Pre-Emit Self-Critique Scoring (1–5 on 6 Axes)**: *Philosophy (P)*, *Hierarchy (H)*, *Execution (E)*, *Specificity (S)*, *Restraint (R)*, *Variety (V)*. Scores < 3 trigger an automatic revision pass. Output is stamped: `/* Pre-emit critique: P5 H4 E5 S4 R5 V5 */`.
164
+ - Added **16 Named AI Anti-Pattern Tells** to `memory/06-quality-bar.md` (Purple-gradient hero, Inter-everywhere, 3-column feature grid, Card-in-card, Gradient headline, Side-stripe card, Full-viewport centered hero, Pure black/white, Default-attractor sameness, Specimen fall-through, AI nav, AI footer, Aurora-blob background, Floating-orb decoration, Italic headers, Lazy-loaded LCP).
165
+ - Added Gate 46 (No Invented Metrics) and Gate 47 (No Re-Drawn Fake Chrome).
166
+ - **Three-Dial System & Brand Voice Schema**:
167
+ - Added dynamic 1–10 configuration dials (`designVariance`, `motionIntensity`, `visualDensity`) and 4-context voice definitions (`voice.professional`, `voice.casual`, `voice.error`, `voice.success`) to `brand.json` schema.
168
+ - **Advanced Reverse-Engineering Pipeline**:
169
+ - Upgraded `references/workflows/clone-prototype.md` & `references/commands/clone.md` with Interaction Model declarations (`scroll-driven`, `click-driven`, `hover-driven`), Multi-State computed CSS diffing, 150-line complexity budget rule, and persistent component specs (`docs/research/components/*.md`).
170
+ - **5-Layer AI Photography Prompt Construction**:
171
+ - Upgraded `references/commands/assets.md` with 5-layer photography prompt matrix (Subject, Environment, Lighting, Technical Photography, Post-Processing/Film Stock).
172
+ - **4-Tier Whimsy & 8-State Demo Wrapper**:
173
+ - Added 4-tier Whimsy Taxonomy (`Subtle`, `Interactive`, `Discovery`, `Contextual`) to `references/commands/motion.md`.
174
+ - Added mandatory 8-State Demo Wrapper generation (`<Component>.preview.html` rendering `default`, `hover`, `focus`, `active`, `disabled`, `loading`, `error`, `success`) to `references/commands/components.md`.
175
+
176
+ ## [1.1.0] - 2026-07-28
177
+
178
+ ### Added & Enhanced
179
+ - **Python Power Tools Workflow Integration**:
180
+ - `palette`: Integrated `scripts/extract_palette.py` with WCAG 2.1 AA relative luminance & contrast ratio validation against light (`#fff`) and dark (`#0f172a`) surfaces.
181
+ - `assets`: Integrated background removal (`scripts/remove_backgrounds.py`), WebP batch optimization (`scripts/optimize_images.py`), and asset size validation (`scripts/inspect_images.py`).
182
+ - `audit`: Integrated PNG alpha channel transparency testing (`scripts/check_alpha.py`) and prototype integrity checks (`scripts/test_build.py`).
183
+ - `deploy`: Integrated asset minification (`scripts/minify_assets.py`) and distribution bundle packaging (`scripts/build.py`).
184
+ - **Automatic Template Cleanup**:
185
+ - Scaffolding via `bin/create-kit.js` automatically cleans up lingering `.template.*` files post-instantiation.
186
+ - **Structured Component Section Maps**:
187
+ - Standardized section header comment blocks in `templates/` and `components.css` (`01. NAV`, `02. CARDS`, `03. FORMS`, `04. MODALS`) for fast AI agent token lookup.
188
+ - **Visual Showcase Assets**:
189
+ - Added real-world prototype screenshots to `assets/` (`dark.png`, `light.png`, `blog.png`, `video.png`) and updated README showcase gallery.
190
+ - **Automated Release Pipeline**:
191
+ - Added `.github/workflows/release.yml` for automated GitHub Releases and NPM publishing.
192
+
193
+ ## [1.0.0] - 2026-07-28
194
+
195
+ ### Initial Release
196
+ - **Code-Native Interactive Prototyping Engine (Figma Alternative)**:
197
+ - Professional interactive HTML/CSS/JS prototyping system with structural visual consistency across all pages.
198
+ - Zero per-page CSS/JS rule — every page carries HTML markup ONLY, consuming shared `design-system/` resources.
199
+ - **4 Pluggable CSS Foundations**:
200
+ - `native`: Custom CSS variables and semantic component classes (zero dependencies).
201
+ - `tailwind`: Utility-first CSS via Tailwind CDN.
202
+ - `daisyui`: Tailwind CDN + daisyUI component library themed via tokens.
203
+ - `hybrid`: daisyUI composite widgets + Native CSS signature brand styling.
204
+ - **15 Universal Agent Slash Commands**:
205
+ - `init`, `school`, `tokens`, `palette`, `components`, `page`, `dashboard`, `motion`, `states`, `flow`, `i18n`, `audit`, `clone`, `retrofit`, `deploy`.
206
+ - **Bilingual & RTL Native**:
207
+ - Arabic font pairing: El Messiri (headings) + Tajawal (body).
208
+ - Native CSS logical properties (`margin-inline-start`, `padding-inline`, etc.).
209
+ - **Interactive Prototype Toolbar (`proto-nav.js`)**:
210
+ - Floating dev-only navigation bar to jump between prototype screens and state variations.
package/LICENSE ADDED
@@ -0,0 +1,17 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ Copyright 2026 TidyFactor Ecosystem & Alwkala Digital Agency (https://alwkala.com)
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.