Skip to content

Commit 5a12e38

Browse files
committed
fix(skills): densify changelog caption checks
1 parent e9bc6b1 commit 5a12e38

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.agents/skills/changelog-video/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ scaffold.
145145

146146
### 6 · Gates (all green before presenting)
147147

148-
1. `bun run --cwd packages/cli hyperframes check --caption-zone "x0=0;y0=.90;x1=1;y1=1;severity=error;seek=.05,.15,.25,.35,.45,.55,.65,.75,.85,.95"` (or the installed
148+
1. `bun run --cwd packages/cli hyperframes check --caption-zone "x0=0;y0=.90;x1=1;y1=1;severity=error;seek=.02,.06,.10,.14,.18,.22,.26,.30,.34,.38,.42,.46,.50,.54,.58,.62,.66,.70,.74,.78,.82,.86,.90,.94,.98"` (or the installed
149149
`hyperframes` CLI from the repo-local `skills/hyperframes-cli/` skill) —
150150
0 errors (contrast: dim text ≥ .66 alpha; scene content stays above the
151151
caption rail). Do NOT reach for

.claude/skills/changelog-video/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ scaffold.
145145

146146
### 6 · Gates (all green before presenting)
147147

148-
1. `bun run --cwd packages/cli hyperframes check --caption-zone "x0=0;y0=.90;x1=1;y1=1;severity=error;seek=.05,.15,.25,.35,.45,.55,.65,.75,.85,.95"` (or the installed
148+
1. `bun run --cwd packages/cli hyperframes check --caption-zone "x0=0;y0=.90;x1=1;y1=1;severity=error;seek=.02,.06,.10,.14,.18,.22,.26,.30,.34,.38,.42,.46,.50,.54,.58,.62,.66,.70,.74,.78,.82,.86,.90,.94,.98"` (or the installed
149149
`hyperframes` CLI from the repo-local `skills/hyperframes-cli/` skill) —
150150
0 errors (contrast: dim text ≥ .66 alpha; scene content stays above the
151151
caption rail). Do NOT reach for

packages/cli/src/commands/changelogSkillContent.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ describe("changelog-video layout contract", () => {
1919
});
2020

2121
it("checks scene content against the caption rail while exempting the rail itself", () => {
22-
expect(skill).toContain(
23-
'--caption-zone "x0=0;y0=.90;x1=1;y1=1;severity=error;seek=.05,.15,.25,.35,.45,.55,.65,.75,.85,.95"',
24-
);
22+
const seekList = /--caption-zone "[^"]*seek=([.\d,]+)"/.exec(skill)?.[1];
23+
const seeks = seekList?.split(",").map(Number) ?? [];
24+
expect(seeks).toHaveLength(25);
25+
expect(
26+
Math.max(...seeks.slice(1).map((seek, index) => seek - seeks[index])) * 60,
27+
).toBeLessThanOrEqual(2.401);
2528
expect(skeleton).toMatch(/id="cap-line"[^>]*data-layout-allow-caption-zone/);
2629
});
2730
});

0 commit comments

Comments
 (0)