wizz-method 2.21.0 → 2.22.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 (80) hide show
  1. package/THIRD-PARTY-NOTICES.md +18 -0
  2. package/package.json +4 -2
  3. package/skills-registry.yaml +41 -0
  4. package/src/bmm-skills/1-analysis/wizz-set-feature/SKILL.md +1 -1
  5. package/src/bmm-skills/4-implementation/wizz-code-review/SKILL.md +1 -1
  6. package/src/bmm-skills/4-implementation/wizz-create-story/SKILL.md +1 -1
  7. package/src/bmm-skills/4-implementation/wizz-dev-story/SKILL.md +8 -1
  8. package/src/bmm-skills/4-implementation/wizz-quick-dev/SKILL.md +2 -2
  9. package/src/bmm-skills/4-implementation/wizz-quick-dev/step-03-implement.md +2 -0
  10. package/src/bmm-skills/4-implementation/wizz-sprint-status/SKILL.md +1 -1
  11. package/src/core-skills/wizz-party-mode/customize.toml +3 -3
  12. package/src/modules/lowticket/skills/wizz-lowticket-trafego/references/reguas.md +2 -0
  13. package/src/modules/wizz/_shared/cerebro.md +1 -1
  14. package/src/modules/wizz/_shared/organizacao.md +2 -2
  15. package/src/modules/wizz/agents/wizz-copy/SKILL.md +1 -0
  16. package/src/modules/wizz/agents/wizz-copy/customize.toml +5 -0
  17. package/src/modules/wizz/agents/wizz-copy/knowledge/playbook.md +2 -1
  18. package/src/modules/wizz/agents/wizz-social/knowledge/blueprint-roteiro-viral.md +14 -0
  19. package/src/modules/wizz/agents/wizz-social/knowledge/legenda-instagram.md +12 -0
  20. package/src/skills-lib/wizz-cerebro/SKILL.md +18 -5
  21. package/src/skills-lib/wizz-design-needs/SKILL.md +7 -0
  22. package/src/skills-lib/wizz-design-needs/references/design-state.md +34 -2
  23. package/src/skills-lib/wizz-design-needs/references/gap-analysis.md +1 -1
  24. package/src/skills-lib/wizz-design-needs/scripts/design_state.py +305 -0
  25. package/src/skills-lib/wizz-design-needs/scripts/tests/test_design_state.py +143 -0
  26. package/src/skills-lib/wizz-impeccable/references/design-rules.md +18 -0
  27. package/src/skills-lib/wizz-motion-3d-director/references/motion-paths.md +2 -0
  28. package/src/skills-lib/wizz-paid-ads/SKILL.md +2 -1
  29. package/src/skills-lib/wizz-premium-landing-ui-researcher/SKILL.md +6 -2
  30. package/src/skills-lib/wizz-premium-landing-ui-researcher/references/audit-protocol.md +7 -34
  31. package/src/skills-lib/wizz-premium-landing-ui-researcher/references/component-sources.md +2 -0
  32. package/src/skills-lib/wizz-premium-landing-ui-researcher/references/design-sources.yaml +252 -0
  33. package/src/skills-lib/wizz-premium-landing-ui-researcher/references/mandatory-process.md +1 -1
  34. package/src/skills-lib/wizz-premium-landing-ui-researcher/references/mining-rubric.md +123 -0
  35. package/src/skills-lib/wizz-premium-landing-ui-researcher/references/source-first-protocol.md +10 -4
  36. package/src/skills-lib/wizz-premium-landing-ui-researcher/references/web-access-and-evidence.md +1 -1
  37. package/src/skills-lib/wizz-premium-landing-ui-researcher/scripts/design_sources.py +221 -0
  38. package/src/skills-lib/wizz-premium-landing-ui-researcher/scripts/tests/test_design_sources.py +130 -0
  39. package/src/skills-lib/wizz-router/references/routing-table-flat.md +2 -0
  40. package/src/skills-lib/wizz-taste-skill/references/anti-slop-tells.md +8 -0
  41. package/src/skills-lib/wizz-ui-component-curator/SKILL.md +8 -7
  42. package/src/skills-lib/wizz-video-effects/LICENSE-motionmaxxing.txt +202 -0
  43. package/src/skills-lib/wizz-video-effects/SKILL.md +5 -2
  44. package/src/skills-lib/wizz-video-effects/assets/chrome/collect_layout.js +113 -0
  45. package/src/skills-lib/wizz-video-effects/assets/effects.config.template.json +35 -0
  46. package/src/skills-lib/wizz-video-effects/references/data-contract.md +30 -1
  47. package/src/skills-lib/wizz-video-effects/references/gates.md +3 -1
  48. package/src/skills-lib/wizz-video-effects/scripts/check_chrome.py +376 -0
  49. package/src/skills-lib/wizz-video-effects/scripts/check_dead_frames.py +193 -0
  50. package/src/skills-lib/wizz-video-effects/scripts/config.py +13 -0
  51. package/src/skills-lib/wizz-video-effects/scripts/test_chrome.py +181 -0
  52. package/src/skills-lib/wizz-video-effects/scripts/test_dead_frames.py +171 -0
  53. package/src/skills-lib/wizz-video-styles/SKILL.md +6 -2
  54. package/src/skills-lib/wizz-video-styles/references/motion-laws.md +62 -0
  55. package/src/skills-lib/wizz-video-styles/references/styles/desafio-numero.md +1 -0
  56. package/src/skills-lib/wizz-video-styles/scripts/blind_review.py +159 -0
  57. package/src/skills-lib/wizz-video-styles/scripts/taste.mjs +110 -0
  58. package/src/skills-lib/wizz-video-styles/scripts/test_blind_review.py +82 -0
  59. package/src/skills-lib/wizz-vsl/LICENSE +49 -0
  60. package/src/skills-lib/wizz-vsl/SKILL.md +122 -0
  61. package/src/skills-lib/wizz-vsl/references/assembly-qa.md +123 -0
  62. package/src/skills-lib/wizz-vsl/references/blocks-and-leads.md +149 -0
  63. package/src/skills-lib/wizz-vsl/references/diagnosis.md +95 -0
  64. package/src/skills-lib/wizz-vsl/references/intake.md +200 -0
  65. package/src/skills-lib/wizz-vsl/references/mechanisms.md +138 -0
  66. package/src/skills-lib/wizz-vsl/references/niches.md +40 -0
  67. package/src/skills-lib/wizz-vsl/references/offer.md +91 -0
  68. package/src/skills-lib/wizz-vsl/references/production.md +75 -0
  69. package/tools/hooks/README.md +10 -9
  70. package/tools/hooks/wizz-arrumar.js +1 -0
  71. package/tools/hooks/wizz-artifact-guard.js +31 -5
  72. package/tools/hooks/wizz-cerebro-lib.js +36 -13
  73. package/tools/hooks/wizz-feature-lib.js +4 -1
  74. package/tools/hooks/wizz-feature.js +66 -76
  75. package/tools/hooks/wizz-sprint-archive-lib.js +311 -0
  76. package/tools/installer/core/hooks-settings.js +1 -0
  77. package/tools/installer/core/installer.js +6 -0
  78. package/tools/installer/modules/core-seed.js +72 -0
  79. package/tools/installer/modules/mcp-config.js +3 -0
  80. package/tools/installer/ui.js +16 -26
@@ -0,0 +1,130 @@
1
+ # /// script
2
+ # requires-python = ">=3.10"
3
+ # dependencies = ["pytest>=8.0", "ruamel.yaml>=0.18"]
4
+ # ///
5
+ """Tests for design_sources.py: list by need tag, cache freshness, refresh."""
6
+
7
+ import datetime as dt
8
+ import importlib.util
9
+ import json
10
+ import os
11
+ import subprocess
12
+ from pathlib import Path
13
+
14
+ import pytest
15
+
16
+ SCRIPT = Path(__file__).resolve().parents[1] / "design_sources.py"
17
+ REAL_CATALOGUE = Path(__file__).resolve().parents[2] / "references" / "design-sources.yaml"
18
+
19
+ spec = importlib.util.spec_from_file_location("design_sources", SCRIPT)
20
+ mod = importlib.util.module_from_spec(spec)
21
+ spec.loader.exec_module(mod)
22
+
23
+ GIT_ENV = {
24
+ **os.environ,
25
+ "GIT_AUTHOR_NAME": "t",
26
+ "GIT_AUTHOR_EMAIL": "t@t",
27
+ "GIT_COMMITTER_NAME": "t",
28
+ "GIT_COMMITTER_EMAIL": "t@t",
29
+ }
30
+
31
+
32
+ def run_main(capsys, *argv):
33
+ with pytest.raises(SystemExit) as exit_info:
34
+ mod.main(list(argv))
35
+ return exit_info.value.code, json.loads(capsys.readouterr().out)
36
+
37
+
38
+ def git(cwd, *args):
39
+ subprocess.run(["git", "-C", str(cwd), *args], check=True, capture_output=True, env=GIT_ENV)
40
+
41
+
42
+ def make_clone(tmp_path, name):
43
+ upstream = tmp_path / f"{name}-upstream"
44
+ upstream.mkdir()
45
+ git(upstream, "init", "-q", "-b", "main")
46
+ (upstream / "a.txt").write_text("1", encoding="utf-8")
47
+ git(upstream, "add", "a.txt")
48
+ git(upstream, "commit", "-q", "-m", "one")
49
+ root = tmp_path / "cache"
50
+ root.mkdir(exist_ok=True)
51
+ subprocess.run(["git", "clone", "-q", str(upstream), str(root / name)], check=True, capture_output=True, env=GIT_ENV)
52
+ return upstream, root
53
+
54
+
55
+ def write_catalogue(tmp_path, cache_name):
56
+ path = tmp_path / "sources.yaml"
57
+ path.write_text(
58
+ "version: 1\nmax_cache_age_days: 30\nsources:\n"
59
+ f" - {{ id: demo, kind: registry, access: free, cache: {cache_name}, need_tags: [hover] }}\n"
60
+ " - { id: paid, kind: code, access: paid, need_tags: [hover, card] }\n"
61
+ " - { id: study, kind: visual, access: free, study_only: true, need_tags: [shader] }\n",
62
+ encoding="utf-8",
63
+ )
64
+ return path
65
+
66
+
67
+ def test_real_catalogue_parses_and_every_source_has_tags(capsys):
68
+ code, out = run_main(capsys, "--catalogue", str(REAL_CATALOGUE), "list")
69
+ assert code == 0
70
+ assert out["count"] > 20
71
+ data = mod.load_catalogue(REAL_CATALOGUE)
72
+ for source in data["sources"]:
73
+ assert source.get("need_tags"), source["id"]
74
+ assert source.get("kind") in {"code", "registry", "engine", "visual", "taste", "extractor"}, source["id"]
75
+
76
+
77
+ def test_real_catalogue_keeps_the_no_license_source_study_only():
78
+ data = mod.load_catalogue(REAL_CATALOGUE)
79
+ ali = next(source for source in data["sources"] if source["id"] == "ali-imam")
80
+ assert ali["study_only"] is True and ali["kind"] == "visual" and ali["license"] is None
81
+
82
+
83
+ def test_list_filters_by_need_and_ranks_free_first(tmp_path, capsys):
84
+ catalogue = write_catalogue(tmp_path, "demo")
85
+ code, out = run_main(capsys, "--catalogue", str(catalogue), "list", "--need", "hover")
86
+ assert code == 0
87
+ assert [row["id"] for row in out["sources"]] == ["demo", "paid"]
88
+ _, shader = run_main(capsys, "--catalogue", str(catalogue), "list", "--need", "shader")
89
+ assert shader["sources"][0]["study_only"] is True
90
+
91
+
92
+ def test_freshness_marks_old_sync_as_stale(tmp_path, capsys):
93
+ _, root = make_clone(tmp_path, "demo")
94
+ catalogue = write_catalogue(tmp_path, "demo")
95
+ future = (dt.date.today() + dt.timedelta(days=45)).isoformat()
96
+ code, out = run_main(capsys, "--catalogue", str(catalogue), "--cache-root", str(root), "freshness", "--today", future)
97
+ assert code == 0
98
+ assert out["stale"] == ["demo"]
99
+ row = out["caches"][0]
100
+ assert row["present"] is True and row["local_changes"] is False and row["age_days"] >= 45
101
+
102
+
103
+ def test_freshness_today_is_fresh_and_absent_cache_is_reported(tmp_path, capsys):
104
+ _, root = make_clone(tmp_path, "demo")
105
+ catalogue = write_catalogue(tmp_path, "demo")
106
+ _, out = run_main(capsys, "--catalogue", str(catalogue), "--cache-root", str(root), "freshness")
107
+ assert out["stale"] == []
108
+ missing = write_catalogue(tmp_path, "nowhere")
109
+ _, absent = run_main(capsys, "--catalogue", str(missing), "--cache-root", str(root), "freshness")
110
+ assert absent["caches"][0]["present"] is False
111
+
112
+
113
+ def test_refresh_fast_forwards_clean_clone_and_skips_dirty_one(tmp_path, capsys):
114
+ upstream, root = make_clone(tmp_path, "demo")
115
+ (upstream / "a.txt").write_text("2", encoding="utf-8")
116
+ git(upstream, "commit", "-q", "-am", "two")
117
+ catalogue = write_catalogue(tmp_path, "demo")
118
+ _, out = run_main(capsys, "--catalogue", str(catalogue), "--cache-root", str(root), "refresh")
119
+ assert out["caches"][0]["result"] == "updated"
120
+ (root / "demo" / "a.txt").write_text("local edit", encoding="utf-8")
121
+ _, dirty = run_main(capsys, "--catalogue", str(catalogue), "--cache-root", str(root), "refresh")
122
+ assert dirty["caches"][0]["result"] == "skipped: local changes"
123
+ assert (root / "demo" / "a.txt").read_text(encoding="utf-8") == "local edit"
124
+
125
+
126
+ def test_bad_catalogue_is_a_json_error(tmp_path, capsys):
127
+ bad = tmp_path / "bad.yaml"
128
+ bad.write_text("nothing: here\n", encoding="utf-8")
129
+ code, out = run_main(capsys, "--catalogue", str(bad), "list")
130
+ assert code == 1 and "sources" in out["error"]
@@ -19,6 +19,7 @@ Use this table to map skills/CLIs/MCPs directly **outside a Wizz project** (no `
19
19
  | **Autonomous, offensive** pentest that actually runs the app and proves each finding with a real PoC | CLI `strix` (qa registry). CONDITIONAL, never the default: only on an app the user owns/is authorized to test, and only when they ask for validated exploitation rather than a review. Start from `wizz-security-audit-pentest` | 2 |
20
20
  | Error monitoring, crash/exception triage, releases and source maps in Sentry | CLI `sentry-cli` (architect registry). CONDITIONAL: only if the project ALREADY uses Sentry (`SENTRY_DSN` in env, `sentry.properties`, or `@sentry/` in package.json) and it's at production stage — never propose adopting Sentry from this row | 2 |
21
21
  | Launch-readiness audit, "is it ready to launch?", broad release checklist (technical, security, SEO, analytics, content, legal, infra), "what's missing before going to production" | `wizz-launch-readiness` | 1 |
22
+ | Understand how a feature of a THIRD-PARTY app, Electron app, APK, binary or HAR capture works, without its source, to build a similar one | MCP `rea` (dev registry, optional: recommended, never configured by default; own code is `wizz-investigate`) | 2 |
22
23
  | Desktop, Electron, contextIsolation, code signing | `wizz-desktop-security` | 2 |
23
24
 
24
25
  ## Technical Area — Code and Quality
@@ -88,6 +89,7 @@ Use this table to map skills/CLIs/MCPs directly **outside a Wizz project** (no `
88
89
  | Tear down ONE viral Instagram post (Reel, carousel, caption) from its link: why it worked, which hook, a mould to do one like it | `wizz-hook-extractor` (social registry; reads the post itself) | 2 |
89
90
  | Audit and rewrite an Instagram PROFILE: bio, search NAME, link, highlights, pinned posts | `wizz-ig-profile-optimizer` (social registry) | 2 |
90
91
  | Actually PUBLISH/schedule to social networks (Instagram, TikTok, YouTube, LinkedIn and more), not write it | CLI `buffer` (social registry; needs `BUFFER_API_KEY`; media must be a public HTTPS URL). Separates "generate" (Wizz skills above) from "publish" | 2 |
92
+ | VSL (video sales letter) script: expert interview, problem and solution mechanism, spoken offer, leads to test, production beat sheet | `wizz-vsl` (copy registry; the page around the player stays with `wizz-copywriting`) | 2 |
91
93
  | Cold email, B2B outbound, prospecting | `wizz-cold-email` | 2 |
92
94
  | Referral, referrals, affiliate program | `wizz-referral-program` | 2 |
93
95
  | Sales material, pitch, deck, proposal | `wizz-sales-enablement` | 2 |
@@ -91,6 +91,14 @@ These patterns came out of real LLM-generated landing-page tests. They are the s
91
91
  * **Scroll cues are banned.** `Scroll`, `↓ scroll`, `Scroll to explore`, `Scroll to walk through it`, animated mouse-wheel icons. If the user has not scrolled yet, they are looking at the hero. They know what scroll is. The bottom of the viewport does not need a label.
92
92
  * **ZERO decorative status dots by default.** A coloured dot before nav items, before list rows, before badges, before status labels is a Tell. Only acceptable when conveying real semantic state (a live indicator on actual server status, a live availability flag) and limited to one per page section.
93
93
 
94
+ ### 9.H Landing-page tells (Wizz addition, moved here from the landing Audit Protocol)
95
+ * **NO identity-free hero formula.** Big headline + subtitle + two side-by-side CTAs, with nothing that could only belong to this brand.
96
+ * **NO `rounded-3xl` on everything.** Radius is a scale with a reason per level, not one oversized value.
97
+ * **NO card stacks on the default `shadow-xl`.** See Section 4.4 for tinted, purposeful elevation.
98
+ * **NO generic testimonial card.** Round avatar + name + title + quoted sentence, repeated in a row. See Section 4.10 for quote formats.
99
+ * **NO centered gradient "Most Popular" badge** on pricing cards.
100
+ * **NO decorative emoji** anywhere other than status microcopy (policy in Section 3.D).
101
+
94
102
  ### 9.G EM-DASH BAN (the single most-violated Tell)
95
103
 
96
104
  **Em-dash (`—`) is COMPLETELY banned.** It is the LLM's signature stylistic crutch and it is the #1 visual Tell in production tests. There is no "limited use" allowance, no "natural language frequency" allowance, no "in body copy is fine" allowance. None.
@@ -40,7 +40,7 @@ Do not ask the user to describe the style unless the project has no inspectable
40
40
 
41
41
  ## 2. Search and inspect public sources
42
42
 
43
- Start with existing project components. Then search the public sources. The full authorized list (React Bits, Cult UI, Watermelon, StyleUI, Skiper UI, Bklit UI, Componentry, shadcn/ui, Ali Imam for study only, plus the reference galleries) lives in one place: [component-sources](../wizz-premium-landing-ui-researcher/references/component-sources.md). Read it instead of relying on memory. Check which registries are healthy today in the live index (`https://ui.shadcn.com/r/registries.json`, see [source-first-protocol](../wizz-premium-landing-ui-researcher/references/source-first-protocol.md) Phase 3). Compare at least two suitable sources per need.
43
+ Start with existing project components. Then search the public sources. The full authorized list (React Bits, Cult UI, Watermelon, StyleUI, Skiper UI, Bklit UI, Componentry, shadcn/ui, Ali Imam for study only, plus the reference galleries) lives in one place, as data: [design-sources.yaml](../wizz-premium-landing-ui-researcher/references/design-sources.yaml). Query it with `uv run --no-cache ../wizz-premium-landing-ui-researcher/scripts/design_sources.py list --need <tag>` instead of relying on memory; [component-sources](../wizz-premium-landing-ui-researcher/references/component-sources.md) holds the policy behind each row. Check which registries are healthy today in the live index (`https://ui.shadcn.com/r/registries.json`, see [source-first-protocol](../wizz-premium-landing-ui-researcher/references/source-first-protocol.md) Phase 3). Compare at least two suitable sources per need.
44
44
 
45
45
  Before the first query, open the access as described in [web-access-and-evidence](../wizz-premium-landing-ui-researcher/references/web-access-and-evidence.md): load the web tools (on Claude Code, WebSearch and WebFetch are deferred and need `ToolSearch`), then fall back to `curl`, `agent-browser` and the local source cache. Search with whatever that step opened: web search (Exa when configured, WebSearch otherwise), WebFetch, scrapling, and `agent-browser` to watch hover and motion live. A tool that errors or hangs is not the end of the research: record the failure, move to the next tool, and never stop without reporting what was and was not checked. With no web and no cache, return BLOCKED instead of recommending from memory.
46
46
 
@@ -53,20 +53,21 @@ Use the inferred style DNA as the search filter. Prefer:
53
53
  - components that can be integrated with minimal stylistic friction
54
54
  - effects that enhance the current direction rather than replace it
55
55
 
56
- ## 3. Curate: show 1–3 candidates max
56
+ ## 3. Judge, select, stop
57
57
 
58
- Do not present unranked lists. Shortlist internally, then surface only the strongest matches.
58
+ Judge every candidate with [mining-rubric](../wizz-premium-landing-ui-researcher/references/mining-rubric.md), in its order: evidence gate, dedup against what the project already selected, entry conditions, the 0-10 score with the cut at 6, the verdict. Select by its selection rule and close the need on its stop conditions (a 9 or more, the source budget, or 2 dry sources in a row). With a `design-state.yaml`, every candidate goes back as a discovery, rejected ones with their reason, so the next round does not open them again. Then run `uv run --no-cache ../wizz-design-needs/scripts/design_state.py validate {output_folder}/design-state.yaml` and fix its findings before handing off.
59
59
 
60
60
  Only candidates that pass the evidence gate in [web-access-and-evidence](../wizz-premium-landing-ui-researcher/references/web-access-and-evidence.md) can be shown here. The rest are UNVERIFIED and go to the evidence section.
61
61
 
62
- For each candidate, say briefly:
63
- - why it fits
62
+ Show the selected one and at most two runners-up. For each, say briefly:
63
+ - verdict and score
64
+ - why it fits (the rubric's `por_que`)
64
65
  - what role it plays
65
66
  - any tradeoff
66
67
 
67
68
  ## 4. Plan before editing
68
69
 
69
- Provide a compact plan: what changes, which files, any dependency or styling adaptation needed.
70
+ Write the adaptation in the rubric's order (pattern, why it works, invariant, variable, reimplementation), then a compact plan: what changes, which files, any dependency or styling adaptation needed. A visual reference gives structure and principle, never CSS.
70
71
 
71
72
  ## 5. Present evidence and proceed within scope
72
73
 
@@ -124,7 +125,7 @@ If the project is stylistically mixed: anchor to the direction already establish
124
125
  Short summary of inferred design language (3–5 lines max).
125
126
 
126
127
  ## Best fit
127
- Top recommendation + why it fits + role it plays.
128
+ Top recommendation + verdict and score + why it fits + role it plays + which stop condition closed the need.
128
129
 
129
130
  ## Alternatives
130
131
  Up to 2 backup options only if genuinely different and useful.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -39,6 +39,7 @@ Requires Python 3 (stdlib only) and ffmpeg/ffprobe.
39
39
 
40
40
  ## Per piece
41
41
 
42
+ 0. **Taste.** Read `_wizz-output/video-styles/gosto.md` if it exists: what this user rejected is refused like an unknown event. After their review, append with `taste.mjs add` (`wizz-video-styles`).
42
43
  1. **Timeline.** Write the piece's timeline JSON ([references/data-contract.md](references/data-contract.md)): `words[]` from wizz-ctc-align, `scenes[]`, `elements[]`, and the safe-zone profile (`ad` or `organic`).
43
44
  2. **Events to sounds.** List what happens in the narration as semantic events with their times, from the words: a price appears, a verdict lands, a message arrives. Map them with `res = sound.map_requests([(5.4, "verdict"), (7.1, "element_in")], cfg)` from `scripts/sound.py`; it returns the shots (file and `vol` from the config) plus the refusals, with the reason. Write the accepted shots into `sfx[]` with their `event`. Events that trigger an effect (a `verdict` triggers `shake`): pass `sound.effect_candidates(res)` through `budget.select(...)` from `scripts/budget.py` and write the accepted ones into `shakes[]`; no other step writes them.
44
45
  3. **Effects on breaths.** `python3 scripts/fill_breaths.py TIMELINE --narration NARRATION.mp3 --visual LAYOUT_RENDER.mp4 --write` anchors punches and flashes on real speech breaths, runs every candidate through the budget, and sets scene transitions and cut sounds by speech pace. Without `--write` it only reports.
@@ -46,9 +47,9 @@ Requires Python 3 (stdlib only) and ffmpeg/ffprobe.
46
47
  - `--visual` must be a silent render **in the piece's final layout**. It decides punch vs flash by how close content sits to the safe-zone edge; measured on full-screen footage, every breath turns into a flash. Content inside a clipped card can take a punch.
47
48
  - Cut sounds are added here, after step 2: if the report lists sounds that would no longer be accepted together, map everything again. `check_excess.py` checks all sounds together and blocks on collisions.
48
49
  4. **Ducking.** `python3 scripts/sound.py duck TIMELINE --write` writes `ducking[]`; the Remotion volume callback is in the data contract.
49
- 5. **Before rendering.** `python3 scripts/check_excess.py TIMELINE` (blocks) and `python3 scripts/check_rhythm.py TIMELINE` (warns).
50
+ 5. **Before rendering.** `python3 scripts/check_excess.py TIMELINE` (blocks), `python3 scripts/check_rhythm.py TIMELINE` (warns) and `python3 scripts/check_chrome.py --timeline TIMELINE` (blocks the slide look; for HyperFrames screens use `--snapshot` from `assets/chrome/collect_layout.js`).
50
51
  6. **Render** in Remotion from the timeline: SFX at their `vol`, narration with the ducking callback. `assets/remotion/` holds a reference `EffectsLayer.tsx` that consumes the timeline (copy it into the project). For the Remotion API itself, invoke `wizz-remotion-best-practices`.
51
- 7. **Gate the final MP4.** Footage (an actor take, b-roll) edge to edge fails the safe zone by construction: the gate measures contrast, not text. Put footage in a frame inside the zone over a plain or darkened background. `check_safe_zone.py FINAL.mp4 --timeline TIMELINE` (the piece's profile; run with `--profile` for the other one if the piece also runs there), `measure_density.py FINAL.mp4 --timeline TIMELINE`, `check_loudness.py FINAL.mp4` (prints the ffmpeg command that fixes it when it fails, and warns when that fix will compress; a quiet narration is better raised before the render).
52
+ 7. **Gate the final MP4.** Footage (an actor take, b-roll) edge to edge fails the safe zone by construction: the gate measures contrast, not text. Put footage in a frame inside the zone over a plain or darkened background. `check_safe_zone.py FINAL.mp4 --timeline TIMELINE` (the piece's profile; run with `--profile` for the other one if the piece also runs there), `measure_density.py FINAL.mp4 --timeline TIMELINE`, `check_dead_frames.py FINAL.mp4`, `check_loudness.py FINAL.mp4` (prints the ffmpeg command that fixes it when it fails, and warns when that fix will compress; a quiet narration is better raised before the render).
52
53
  8. **Look.** Extract frames of the final file, including one of the CTA block, and read them.
53
54
 
54
55
  Every script takes `--config PATH`; without it, `VIDEO_EFFECTS_CONFIG`, then `./effects.config.json`.
@@ -60,7 +61,9 @@ Every script takes `--config PATH`; without it, `VIDEO_EFFECTS_CONFIG`, then `./
60
61
  | `check_excess.py` | yes (unless `--warn`) | an effect that always happens stops marking anything |
61
62
  | `check_safe_zone.py` | yes | text under the platform UI is text nobody reads |
62
63
  | `measure_density.py` | yes | an empty frame loses the scroll |
64
+ | `check_dead_frames.py` | yes on blank runs, warns on frozen picture | a blank gap reads as a broken video |
63
65
  | `check_loudness.py` | yes | platforms normalise to about -14 LUFS; louder only distorts |
66
+ | `check_chrome.py` | yes | a corner label or a counter makes an ad read as a slide |
64
67
  | `check_rhythm.py` | **warns only** | its numbers come from weak sources |
65
68
 
66
69
  Full table, what each gate cannot see, and escape hatches: [references/gates.md](references/gates.md).
@@ -0,0 +1,113 @@
1
+ // collect_layout.js: layout snapshot of an HTML composition for check_chrome.py.
2
+ //
3
+ // Paste the whole file as the expression of a browser eval on the opened
4
+ // composition (HyperFrames preview, a plain HTML film, or Remotion Studio on
5
+ // the composition), e.g. with agent-browser:
6
+ // agent-browser open file:///.../index.html
7
+ // agent-browser eval "$(cat collect_layout.js)" > layout.json
8
+ // It seeks each sample time, waits two frames, and returns
9
+ // {width, height, samples: [{t, blocks, shapes}]} as JSON text.
10
+ //
11
+ // Times: window.__chromeTimes if set (array of seconds), else 12 evenly
12
+ // spaced plus each one again 0.1 s later (the pair tells a parked label from
13
+ // one flying through). Seek: window.__seek(t), else the paused GSAP
14
+ // timelines in window.__timelines (HyperFrames), else gsap.globalTimeline.
15
+ // Remotion Studio has none of these: set window.__seek yourself, or take one
16
+ // snapshot per frame with ?frame=N and merge.
17
+ //
18
+ // Roles: an element (or ancestor) with data-role="caption|legal|ui" is
19
+ // written with that role, so the lint skips it. Text in <canvas>, <img>,
20
+ // <video> or WebGL is invisible here.
21
+ //
22
+ // Rules ported from motionmaxxing (Apache-2.0); see THIRD-PARTY-NOTICES.md.
23
+ (async () => {
24
+ const root = document.querySelector('[data-composition-id="main"]') || document.body;
25
+ const rect = root.getBoundingClientRect();
26
+ const W = Number(root.dataset?.width) || rect.width || window.innerWidth;
27
+ const H = Number(root.dataset?.height) || rect.height || window.innerHeight;
28
+ const sx = W / (rect.width || W);
29
+ const sy = H / (rect.height || H);
30
+ const tls = window.__timelines && typeof window.__timelines === 'object' ? Object.values(window.__timelines) : [];
31
+ const duration =
32
+ Number(root.dataset?.duration) ||
33
+ (tls[0] && typeof tls[0].duration === 'function' ? tls[0].duration() : 0) ||
34
+ (window.gsap ? window.gsap.globalTimeline.duration() : 0);
35
+
36
+ const seek = async (t) => {
37
+ if (typeof window.__seek === 'function') await window.__seek(t);
38
+ else if (tls.length > 0) for (const tl of tls) tl.seek(t, false);
39
+ else if (window.gsap) window.gsap.globalTimeline.seek(t, false);
40
+ await new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r)));
41
+ };
42
+
43
+ const box = (r) => [
44
+ Math.round((r.left - rect.left) * sx),
45
+ Math.round((r.top - rect.top) * sy),
46
+ Math.round((r.right - rect.left) * sx),
47
+ Math.round((r.bottom - rect.top) * sy),
48
+ ];
49
+ const opacity = (el) => {
50
+ let o = 1;
51
+ for (let e = el; e && e !== document.documentElement; e = e.parentElement) o *= Number(getComputedStyle(e).opacity);
52
+ return o;
53
+ };
54
+ const roleOf = (el) => el.closest('[data-role]')?.dataset.role || '';
55
+ const visible = (el, r) => r.width >= 1 && r.height >= 1 && getComputedStyle(el).visibility !== 'hidden' && opacity(el) >= 0.05;
56
+
57
+ const textBlocks = () => {
58
+ const out = [];
59
+ for (const el of root.querySelectorAll('*')) {
60
+ const own = [...el.childNodes].filter((n) => n.nodeType === 3 && n.textContent.trim());
61
+ if (own.length === 0) continue;
62
+ const range = document.createRange();
63
+ range.selectNodeContents(el);
64
+ const r = range.getBoundingClientRect();
65
+ if (!visible(el, r)) continue;
66
+ const cs = getComputedStyle(el);
67
+ const fontPx = Number.parseFloat(cs.fontSize) * sy;
68
+ const spacing = cs.letterSpacing === 'normal' ? 0 : Number.parseFloat(cs.letterSpacing) / Number.parseFloat(cs.fontSize);
69
+ const lineH = Number.parseFloat(cs.lineHeight) || Number.parseFloat(cs.fontSize) * 1.2;
70
+ out.push({
71
+ text: el.textContent.trim().replaceAll(/\s+/g, ' ').slice(0, 120),
72
+ box: box(r),
73
+ font_px: Math.round(fontPx),
74
+ caps: cs.textTransform === 'uppercase',
75
+ tracking_em: Math.round(spacing * 100) / 100,
76
+ align: cs.textAlign,
77
+ lines: Math.max(1, Math.round(r.height / lineH)),
78
+ role: roleOf(el),
79
+ });
80
+ }
81
+ return out;
82
+ };
83
+
84
+ const shapes = () => {
85
+ const out = [];
86
+ let i = 0;
87
+ for (const el of root.querySelectorAll('*')) {
88
+ i += 1;
89
+ const r = el.getBoundingClientRect();
90
+ if (!visible(el, r)) continue;
91
+ const tag = el.tagName.toLowerCase();
92
+ const cs = getComputedStyle(el);
93
+ const media = /^(img|video|canvas|svg|picture)$/.test(tag) || /url\(/.test(cs.backgroundImage);
94
+ const filled = !/rgba\(0, 0, 0, 0\)|transparent/.test(cs.backgroundColor);
95
+ const border = Number.parseFloat(cs.borderTopWidth) >= 1 || Number.parseFloat(cs.borderBottomWidth) >= 1;
96
+ if (!media && !filled && !border) continue;
97
+ const kind = media ? 'media' : roleOf(el) === 'ui' ? 'surface' : 'bar';
98
+ out.push({ id: el.id || `${tag}-${i}`, kind, box: box(r) });
99
+ }
100
+ return out;
101
+ };
102
+
103
+ const base = Array.isArray(window.__chromeTimes)
104
+ ? window.__chromeTimes
105
+ : Array.from({ length: 12 }, (_, k) => (duration * (k + 0.5)) / 12);
106
+ const times = Array.isArray(window.__chromeTimes) ? base : base.flatMap((t) => [t, t + 0.1]);
107
+ const samples = [];
108
+ for (const t of times) {
109
+ await seek(t);
110
+ samples.push({ t: Math.round(t * 1000) / 1000, blocks: textBlocks(), shapes: shapes() });
111
+ }
112
+ return JSON.stringify({ width: W, height: H, duration, samples });
113
+ })();
@@ -57,6 +57,41 @@
57
57
  "_source": "min_filled 3 of 7 is a house rule of the source project, not an external benchmark."
58
58
  },
59
59
 
60
+ "dead_frames": {
61
+ "analysis_width": 54,
62
+ "analysis_height": 96,
63
+ "flat_std": 1.5,
64
+ "flat_range": 8,
65
+ "flat_max_frames": 3,
66
+ "frozen_diff": 0.35,
67
+ "frozen_warn_s": 1.5,
68
+ "motion_band_reference": [4.4, 6.8, 9.8],
69
+ "_note": "check_dead_frames.py on the FINAL MP4. A flat frame is one uniform field (luma std-dev under flat_std AND range under flat_range on the analysis frame); a run of more than flat_max_frames blocks. A frozen frame differs from the previous one by less than frozen_diff (mean absolute luma, 0-255); a frozen run longer than frozen_warn_s only warns.",
70
+ "_source": "flat_std, flat_range and flat_max_frames are gate G2 of motionmaxxing (Apache-2.0, github.com/Tejashmakwana/motionmaxxing), measured on horizontal pro launch films at 96x54; the analysis frame here keeps the same pixel count in 9:16. frozen_diff is their hold epsilon; frozen_warn_s is the top of their 'designed breath' (0.6-1.5 s). motion_band_reference is their Q1, median and Q3 of mean frame-to-frame luma change over human-made horizontal brand films: printed as a question, never a gate, and never measured on vertical Reels."
71
+ },
72
+
73
+ "chrome_lint": {
74
+ "small_text": 0.04,
75
+ "corner_x": 0.2,
76
+ "corner_y": 0.14,
77
+ "edge_band": 0.07,
78
+ "caps_tracking_em": 0.05,
79
+ "caps_max_size": 0.045,
80
+ "counter_max_size": 0.06,
81
+ "headline_min_size": 0.05,
82
+ "kicker_ratio": 2.0,
83
+ "kicker_gap": 0.06,
84
+ "deck_left_x": 0.2,
85
+ "bar_min_width": 0.6,
86
+ "bar_max_height": 0.14,
87
+ "bar_band": 0.12,
88
+ "progress_min_growth": 0.08,
89
+ "held_s": 0.3,
90
+ "exempt_roles": ["caption", "legal", "ui"],
91
+ "_note": "check_chrome.py. Positions are fractions of the frame (0-1). Text sizes (font size) are fractions of the SHORT side of the frame (1080 px in 9:16), so they keep the pixel size of the horizontal source. held_s: a timeline text layer shorter than this is in flight, not a held label.",
92
+ "_source": "Rules C1-C4, C6, C7, D1 and P1 of motionmaxxing's lint.mjs (gate G5, Apache-2.0, github.com/Tejashmakwana/motionmaxxing), built from one user's verdicts on horizontal launch films. exempt_roles is a house decision: captions, legally required ad text and product UI are not chrome."
93
+ },
94
+
60
95
  "budget": {
61
96
  "_readme": "The anti-excess engine. An effect only enters if its curve section still has budget, it respects the minimum distance and it does not repeat too much. When two candidates collide, the higher narrative strength wins.",
62
97
  "gap_min_global": 2.0,