Skip to content

deepankar-sah/OmniFlowStudio-Skills

omniflow-studio

Verified

Autonomous AI media generation, cinematic multi-shot film production, and Google Flow automation bridge. Enables AI agents to queue text-to-video, text-to-image, character consistency, and autonomous self-healing workflows with zero API costs.

scripts/submit-shot.js

View on GitHub
#!/usr/bin/env node

/**
 * OmniFlow Quick Shot Submitter
 * Usage:
 *   node scripts/submit-shot.js --prompt "Cinematic dusk shot" --mode video --aspectRatio 16:9
 */

const BRIDGE_URL = process.env.OMNIFLOW_BRIDGE_URL || 'http://127.0.0.1:8792';

function parseArgs() {
  const args = process.argv.slice(2);
  const params = {
    prompt: '',
    mode: 'flow-text-to-video',
    aspectRatio: '16:9',
    duration: '6s',
    subfolder: 'OmniFlow_Agent_Output',
  };

  for (let i = 0; i < args.length; i++) {
    if (args[i] === '--prompt' && args[i + 1]) params.prompt = args[++i];
    else if (args[i] === '--mode' && args[i + 1]) {
      const m = args[++i].toLowerCase();
      params.mode = m === 'image' ? 'flow-text-to-image' : 'flow-text-to-video';
    } else if (args[i] === '--aspectRatio' && args[i + 1]) params.aspectRatio = args[++i];
    else if (args[i] === '--duration' && args[i + 1]) params.duration = args[++i];
    else if (args[i] === '--subfolder' && args[i + 1]) params.subfolder = args[++i];
  }

  return params;
}

async function main() {
  const params = parseArgs();
  if (!params.prompt) {
    console.error('❌ Missing required flag: --prompt "Your visual prompt"');
    process.exit(1);
  }

  try {
    const res = await fetch(`${BRIDGE_URL}/jobs`, {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({
        mode: params.mode,
        prompt: params.prompt,
        params: {
          aspectRatio: params.aspectRatio,
          duration: params.duration,
          downloadSubfolder: params.subfolder,
        },
      }),
    });

    const data = await res.json();
    if (!res.ok) {
      console.error(`❌ Job rejected: ${data.error || res.statusText}`);
      process.exit(1);
    }

    console.log(`✅ Shot Queued Successfully!`);
    console.log(`   • Job ID:  ${data.jobId}`);
    console.log(`   • Status:  ${data.status}`);
    console.log(`   • Prompt:  "${params.prompt}"`);
  } catch (err) {
    console.error(`❌ Failed to connect to OmniFlow bridge: ${err.message}`);
    process.exit(1);
  }
}

main();
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: 472kUpdated 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