Skip to content

AlexAnsart/demo-studio / skills/demo-setup

demo-setup

Verified

One-time setup that analyzes the current project and configures it to use the film-demo / narrate / sync-narration / produce-video skills — detects the dev server and framework, asks only when necessary, generates demo.config.json and .env entries, vendors the recording engine and project helpers, and scaffolds a first demo from reference patterns. Use when the user asks to set up, configure, or install demo-studio / video-recording skills for this project, or before running produce-video for the first time in a new codebase.

scripts/check-setup.mjs

View on GitHub
#!/usr/bin/env node
/**
 * Environment sanity check for the demo-studio skills — run once during setup
 * and any time a video pipeline fails mysteriously. No dependency on the
 * other skills' code, so this works even before the engine is vendored.
 */
import { spawnSync } from 'child_process'
import { existsSync } from 'fs'

function check(label, fn) {
  try {
    const result = fn()
    console.log(`[ok]   ${label}${result ? ` — ${result}` : ''}`)
    return true
  } catch (err) {
    console.log(`[FAIL] ${label} — ${err.message}`)
    return false
  }
}

function version(cmd, args = ['--version']) {
  const r = spawnSync(cmd, args, { encoding: 'utf8' })
  if (r.status !== 0 && r.error) throw new Error(r.error.message)
  if (r.status !== 0) throw new Error(`exit code ${r.status}`)
  return r.stdout.trim().split('\n')[0]
}

let allOk = true
allOk = check('node', () => process.version) && allOk
allOk = check('ffmpeg on PATH', () => version('ffmpeg')) && allOk
allOk = check('ffprobe on PATH', () => version('ffprobe')) && allOk
allOk =
  check('python3 on PATH (needed for narrate / sync-narration)', () => {
    try {
      return version('python3')
    } catch {
      return version('python')
    }
  }) && allOk
allOk = check('demo.config.json present', () => {
  if (!existsSync('demo.config.json')) throw new Error('not found in cwd — run demo-setup')
  return 'found'
}) && allOk

console.log('')
console.log(allOk ? 'All checks passed.' : 'Fix the FAILs above before recording.')
process.exit(allOk ? 0 : 1)
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: 471kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall