lookbkdev/lookbk-skills / skills/pixel-quest-promo
pixel-quest-promo
VerifiedMake a 20-second 1080p retro 8-bit promo video (MP4) for a product, app, game or side project - a title screen with a blinking "PRESS START", three short platformer stages where a pixel hero collects coins and knocks a power-up out of a block (one stage per feature, with its name and a line of text), a running score and coin counter, and an ending with the headline and link. Everything lands on a 120 BPM beat grid, and the skill writes a cue sheet for adding chiptune music. Use when someone wants a pixel-art, 8-bit, retro game or arcade-style promo, launch teaser or feature reel.
| File | Kind | Size |
|---|---|---|
| NOTICE.md | markdown | 1.1 KB |
| SKILL.md | skill md | 13.5 KB |
| TESTED.json | config | 356 B |
| examples/hopscotch/brief.json | config | 589 B |
| examples/inkwell-launch/brief.json | config | 565 B |
| scripts/apply-brief.mjs | script | 4.0 KB |
| scripts/cues.mjs | script | 2.8 KB |
| scripts/load-project.mjs | script | 1.1 KB |
| scripts/preflight.mjs | script | 2.9 KB |
| template/hyperframes.json | config | 318 B |
| template/index.html | other | 6.5 KB |
| template/package.json | manifest | 302 B |
| template/quest-art.js | script | 18.6 KB |
| template/quest.js | script | 24.8 KB |
scripts/preflight.mjs
View on GitHub#!/usr/bin/env node
// Checks a Pixel Quest project after apply-brief.mjs and before rendering.
// The film draws its own pixel font into SVG, so HyperFrames' text checks
// can't see it; this does those checks instead, from the same art module:
//
// - every character can be drawn by the 5×7 font
// - every line fits its place at the size it will be drawn
// - text and accent colours read on every scene's sky and in the dialog box
//
// node scripts/preflight.mjs <project-dir>
//
// Lists every problem at once and exits 1 if there are any.
import { loadProject } from './load-project.mjs'
let project
try {
project = loadProject(process.argv[2])
} catch (e) {
console.error(`preflight: ${e.message}`)
process.exit(1)
}
const { values: v, Q } = project
// [field, pixels per font pixel (the smallest the film will shrink it to),
// width it must fit in, bold]
const LINES = [
['product', 12, 1400, true],
['subtitle', 8, 1760],
['cta', 8, 1760],
['level1Name', 12, 1760],
['level2Name', 12, 1760],
['level3Name', 12, 1760],
['level1Text', 6, 1760],
['level2Text', 6, 1760],
['level3Text', 6, 1760],
['headline', 12, 1400, true],
['subline', 6, 1600],
['url', 6, 1760],
]
const problems = []
const notes = []
for (const [id, px, width, bold] of LINES) {
const s = v[id]
if (s == null || s === '') continue
const bad = Q.unsupported(s)
if (bad.length)
problems.push(
`${id} "${s}" has characters the pixel font can't draw: ${bad.map((c) => JSON.stringify(c)).join(' ')} (it has A-Z, 0-9, space and . , ! ? - : / ' " & + % # @ ( ) $ * > < = × ·)`,
)
const w = Q.textWidth(s, bold) * px + (bold ? 16 : 2 * px)
if (w > width)
problems.push(`${id} "${s}" is ${w} px wide at its smallest size; the space is ${width} px. Shorten it.`)
}
if (v.level1Text === '' || v.level2Text === '' || v.level3Text === '')
notes.push('a stage has no feature line: its dialog box will not appear')
const items = [v.level1Item, v.level2Item, v.level3Item]
if (new Set(items).size < 3)
notes.push(`two stages use the same power-up (${items.join(', ')}); one each reads better`)
for (const [what, fg, bg, min] of Q.contrastPairs(v)) {
const c = Q.contrast(fg, bg)
if (c < min)
problems.push(
`${what}: ${fg} on ${bg} is ${c.toFixed(2)}:1, needs ${min}:1. Pick a ${Q.contrast('#000000', bg) > Q.contrast('#ffffff', bg) ? 'darker' : 'lighter'} ${what.startsWith('ground') ? 'ground or sky' : what.startsWith('accent') ? 'accent' : 'text colour'}.`,
)
}
const theme = Q.palette(v).dark ? 'night (dark sky: stars and a moon)' : 'daylight (light sky: dusk and sunset stages)'
if (problems.length) {
console.error(`preflight: fix the brief first:\n - ${problems.join('\n - ')}`)
for (const n of notes) console.error(` note: ${n}`)
process.exit(1)
}
console.log(`preflight: ok. ${LINES.length} lines fit and draw, ${Q.contrastPairs(v).length} colour pairs read. Theme: ${theme}.`)
for (const n of notes) console.log(` note: ${n}`)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |