### scripts/dev setup — steps Source: https://github.com/het8802/opennolan/blob/main/docs/plans/wiring-repo-for-agent/merged/architecture.md The setup command prepares a worktree without starting the app. It runs doctor first, creates a venv, installs dependencies, derives a stable port pair from the worktree path, writes .env.worktree, configures git hooks, and prints a human summary plus a --json result. It is idempotent and never deletes user data. ```bash scripts/dev setup ├── doctor first — python, node, npm, ffmpeg, versions │ resolve every tool from PATH. Never hardcode /opt/homebrew. ├── uv venv --seed .venv ├── .venv/bin/pip install -r requirements-dev.txt (now includes ruff) ├── npm ci --prefix web ├── npm ci --prefix desktop ├── derive a stable port pair from the worktree path │ BASE = 20000 + (crc32(pwd) % 10000) │ verify both are free — a hash is a SUGGESTION, not a reservation ├── write .env.worktree (gitignored): │ OPENNOLAN_BACKEND_PORT=… │ OPENNOLAN_FRONTEND_PORT=… │ OPENNOLAN_HOME=$PWD/.local ├── git config core.hooksPath .githooks └── print a human summary + a --json result ``` -------------------------------- ### Orca repo show command output Source: https://github.com/het8802/opennolan/blob/main/docs/plans/wiring-repo-for-agent/claude/architecture.md Example command and output showing that the setup script is empty for a new worktree, meaning no environment is configured. ```bash orca repo show --repo id: --json hookSettings.scripts.setup = "" ← a new worktree gets nothing ``` -------------------------------- ### .env provider keys (all optional) Source: https://github.com/het8802/opennolan/blob/main/README.md Example .env file with all optional provider API keys. Add only the keys you have; OpenNolan auto-discovers available providers. With zero keys you still get free stock footage, local TTS, and full FFmpeg editing. ```bash # .env — all optional FAL_KEY=your-key # FLUX images + Google Veo, Kling, MiniMax video PEXELS_API_KEY=your-key # Free stock footage and images PIXABAY_API_KEY=your-key # Free stock footage, images, and music SUNO_API_KEY=your-key # Full songs and instrumentals, any genre ELEVENLABS_API_KEY=your-key # Premium TTS, AI music, sound effects OPENAI_API_KEY=your-key # OpenAI TTS, DALL-E 3 images GOOGLE_API_KEY=your-key # Google Imagen images, Google TTS (700+ voices) RUNWAY_API_KEY=your-key # Runway Gen-4 video HEYGEN_API_KEY=your-key # VEO, Sora, Runway, Kling via single gateway ``` -------------------------------- ### Install desktop dependencies Source: https://github.com/het8802/opennolan/blob/main/desktop/README.md Installs Electron and other dependencies for the desktop shell. Run once from the repository root before starting the app. ```bash cd desktop npm install ``` -------------------------------- ### Remotion setup: install dependencies Source: https://github.com/het8802/opennolan/blob/main/docs/PROVIDERS.md Install Remotion composer dependencies. Included in make setup, or run manually. Requires Node.js 18+ and npx. ```bash # Included in make setup, or install manually: cd remotion-composer && npm install && cd .. ``` -------------------------------- ### Setup local video generation with GPU Source: https://github.com/het8802/opennolan/blob/main/docs/PROVIDERS.md Install the GPU stack and configure environment variables for local video generation. Requires NVIDIA GPU with CUDA. Choose a model based on VRAM: wan2.1-1.3b (6GB+), wan2.1-14b (24GB+), hunyuan-1.5 (12GB+), ltx2-local (8GB+), cogvideo-5b (10GB+), cogvideo-2b (6GB+). ```bash # 1. Install the GPU stack make install-gpu # Or manually: pip install diffusers transformers accelerate torch pillow requests # 2. Enable local generation in .env VIDEO_GEN_LOCAL_ENABLED=true # 3. Choose a model based on your GPU VRAM VIDEO_GEN_LOCAL_MODEL=wan2.1-1.3b # 6GB+ VRAM (entry-level) VIDEO_GEN_LOCAL_MODEL=wan2.1-14b # 24GB+ VRAM (best local quality) VIDEO_GEN_LOCAL_MODEL=hunyuan-1.5 # 12GB+ VRAM VIDEO_GEN_LOCAL_MODEL=ltx2-local # 8GB+ VRAM (fastest) VIDEO_GEN_LOCAL_MODEL=cogvideo-5b # 10GB+ VRAM VIDEO_GEN_LOCAL_MODEL=cogvideo-2b # 6GB+ VRAM (lightest) ``` -------------------------------- ### Present quick setup options grouped by effort Source: https://github.com/het8802/opennolan/blob/main/AGENT_GUIDE.md Template for presenting setup options for unavailable providers, grouped by effort (quick env-var fixes vs local options). Instructs to read install_instructions from the menu output and group by env var. ```text QUICK SETUP OPTIONS (1-minute each — set an env var in .env) Video Generation (0/13 -> unlock the biggest upgrade): Each unavailable provider lists its own install_instructions. Read them from the provider_menu output and present grouped by env var. Example: if 3 tools need FAL_KEY, group them: "FAL_KEY unlocks 3 providers" Image Generation (1/7 -> more style options): Same pattern — read install_instructions from each unavailable tool. Text-to-Speech (1/3): Same pattern. LOCAL OPTIONS (free, needs hardware): Tools with runtime=LOCAL or runtime=LOCAL_GPU — read from the menu. Already Available: List what's working. The user should feel good about what they have. ``` -------------------------------- ### Piper TTS setup: install and download voice model Source: https://github.com/het8802/opennolan/blob/main/docs/PROVIDERS.md Install Piper TTS via pip or binary, and download a voice model. First run downloads automatically. Requires no GPU. ```bash # Install via pip pip install piper-tts # Or download the binary from GitHub # https://github.com/rhasspy/piper/releases # Download a voice model (first run downloads automatically) piper --download-dir ~/.piper/models --model en_US-lessac-medium ``` -------------------------------- ### scripts/dev setup command Source: https://github.com/het8802/opennolan/blob/main/docs/plans/wiring-repo-for-agent/codex/architecture.md Idempotent setup command for agents and humans. It checks required tools, creates or updates the Python environment, installs locked Node dependencies, prepares an ignored runtime directory, assigns stable backend and frontend ports, configures environment variable access, installs repository hooks, and prints a summary plus a JSON result. Safe to run multiple times; re-running repairs missing pieces without deleting user data. ```text scripts/dev setup │ ├── check Python, Node, npm, FFmpeg, and required versions ├── create or update the local Python environment ├── install locked Node dependencies ├── prepare an ignored worktree runtime directory ├── assign a stable backend and frontend port pair ├── configure safe access to local environment variables ├── install repository hooks └── print a human summary and a JSON result ``` -------------------------------- ### Example plan document paths Source: https://github.com/het8802/opennolan/blob/main/AGENTS.md Example paths following the required plan document structure. The agent folder separates parallel proposals so they can be compared. ```text docs/plans/wiring-repo-for-agent/claude/architecture.md ``` ```text docs/plans/wiring-repo-for-agent/codex/architecture.md ``` -------------------------------- ### Orca repository setup slot (text) Source: https://github.com/het8802/opennolan/blob/main/docs/development/agent-workflow.md The content that must be placed in Orca's repository setup slot. This runs scripts/dev setup, which creates a virtual environment, installs dependencies, installs Playwright, assigns ports, routes app data, and enables Git hooks. It does not start the app. ```text scripts/dev setup ``` -------------------------------- ### Start the Electron app Source: https://github.com/het8802/opennolan/blob/main/desktop/README.md Builds the web UI via a prestart hook and launches the Electron app, which spawns the backend and opens the window at http://127.0.0.1:. ```bash npm start ``` -------------------------------- ### Run backend and frontend Source: https://github.com/het8802/opennolan/blob/main/web/README.md Start the backend and frontend development servers from the repo root. The backend runs on :8000 and the frontend on :5173, proxying /api to the backend. ```bash pip install -r requirements-ui.txt uvicorn server.app:app --reload ``` ```bash cd web npm install npm run dev ``` -------------------------------- ### Run Preflight Discovery with registry.discover() Source: https://github.com/het8802/opennolan/blob/main/skills/meta/onboarding.md Run preflight discovery to enumerate available tools, support envelope, and provider menu. Parse the output into three buckets: available tools, quick unlocks (env-var installs), and hardware unlocks (GPU/local models). ```bash python -c " from tools.tool_registry import registry import json registry.discover() envelope = registry.support_envelope() menu = registry.provider_menu() print('=== ENVELOPE ===') print(json.dumps(envelope, indent=2)) print('=== MENU ===') print(json.dumps(menu, indent=2)) " ``` -------------------------------- ### HyperFrames setup: check prerequisites Source: https://github.com/het8802/opennolan/blob/main/docs/PROVIDERS.md Verify Node.js, FFmpeg, and HyperFrames CLI are available. Requires Node.js >= 22, FFmpeg, and npx. The CLI is consumed as npx hyperframes. ```bash node --version ffmpeg -version npx --yes hyperframes doctor ``` -------------------------------- ### Good query examples Source: https://github.com/het8802/opennolan/blob/main/skills/creative/reaction-gif-finder.md Example queries that focus on the emotion or action beat rather than the literal business concept. Use these as a pattern for searching reaction GIFs. ```text facepalm reaction panic reaction confused computer reaction running chase funny reaction victory dance reaction ``` -------------------------------- ### Present capability menu to user Source: https://github.com/het8802/opennolan/blob/main/AGENT_GUIDE.md Example of how to present the provider menu summary to the user as a capability menu, showing configured/total counts and highlighting what can be done now. ```text YOUR CAPABILITIES Video Generation: 0/13 configured Image Generation: 1/7 configured Text-to-Speech: 1/3 configured Music Generation: 1/1 configured Composition: 3/3 configured (FFmpeg, video_stitch, video_trimmer) You can produce videos now with images + TTS + FFmpeg. Quick upgrades available — see below. ``` -------------------------------- ### Example Caption Source: https://github.com/het8802/opennolan/blob/main/skills/pipelines/animation-talking-head-50-50/publish-director.md Example caption following the template, demonstrating the hook, bullets, and CTA. ```plaintext I am literally fed up of people building AI agents. Frontier AI isn't building broad chatbots — they're deploying engineers INTO companies to build ONE painful workflow. OpenAI → PayPal, QuickBooks Claude for Small Business → month-end closing, invoice follow-ups The winners won't be the broadest chatbots. The narrowest workflows. Comment 'workflow' and I'll send you the checklist. ``` -------------------------------- ### Show Orca repo hook settings Source: https://github.com/het8802/opennolan/blob/main/docs/plans/wiring-repo-for-agent/merged/architecture.md Inspects Orca's per-repo setup script configuration for the OpenMontage repository. The output shows both the setup and archive hook slots are empty, indicating that worktree setup and teardown are not configured. ```shell orca repo show --repo id: --json hookSettings.scripts = { setup: "", archive: "" } ^^^^^^^^^^^^ both slots empty — see Piece 1 and Piece 9 ``` -------------------------------- ### Install xurl via shell, Homebrew, npm, or Go Source: https://github.com/het8802/opennolan/blob/main/skills/social-media/xurl/SKILL.md Install xurl using one of four methods: shell script (Linux/macOS), Homebrew (macOS), npm, or Go. Pick only one method. ```bash curl -fsSL https://raw.githubusercontent.com/xdevplatform/xurl/main/install.sh | bash ``` ```bash brew install --cask xdevplatform/tap/xurl ``` ```bash npm install -g @xdevplatform/xurl ``` ```bash go install github.com/xdevplatform/xurl@latest ``` -------------------------------- ### Discover tools and print provider menu summary Source: https://github.com/het8802/opennolan/blob/main/docs/backend-explained.html Run in the agent's preflight to ask the tool registry for a human-readable capability summary. Returns four fields: composition_runtimes, capabilities[], setup_offers[], and runtime_warnings[]. The backend caches the same result for GET /api/capabilities. ```python python -c " from tools.tool_registry import registry import json registry.discover() # import + register every tool print(json.dumps(registry.provider_menu_summary(), indent=2)) " ``` -------------------------------- ### provider_menu_summary() command and output Source: https://github.com/het8802/opennolan/blob/main/docs/backend-explained.html The agent runs this Bash command to get a compact rollup of configured tools. The output shows composition_runtimes, capabilities, setup_offers, and runtime_warnings. ```bash python -c "from tools.tool_registry import registry; import json; \ registry.discover(); print(json.dumps(registry.provider_menu_summary(), indent=2))" ``` ```json { "composition_runtimes": { "ffmpeg": true, "remotion": true, "hyperframes": true }, "capabilities": [ { "capability": "analysis", "configured": 8, "total": 11, "available_providers": ["ffmpeg","ffprobe","local","multi","whisperx"], "unavailable_providers": ["mediapipe","transformers","youtube-transcript-api"] }, ... // one entry per capability family ], "setup_offers": [ { "capability": "avatar", "tool": "talking_head", "provider": "sadtalker", "install_instructions": "Clone https://github.com/OpenTalker/SadTalker and set SADTALKER_PATH ..." }, ... // unavailable tools that are a quick fix ], "runtime_warnings": [] // e.g. "hyperframes: npm package not resolvable" } ``` -------------------------------- ### provider_catalog() example: list FFmpeg tools Source: https://github.com/het8802/opennolan/blob/main/docs/backend-explained.html Runs a Python one-liner to print the catalog of tools provided by 'ffmpeg'. The output is a JSON array of tool contracts, each trimmed to three fields. Use this to see everything a single backend powers. ```python python -c "from tools.tool_registry import registry; import json; \ registry.discover(); print(json.dumps(registry.provider_catalog()['ffmpeg'], indent=2))" ``` ```json [ { "name": "audio_energy", "capability": "analysis", "status": "available" }, { "name": "frame_sampler", "capability": "analysis", "status": "available" }, { "name": "scene_detect", "capability": "analysis", "status": "available" }, { "name": "motion_ops", "capability": "video_post", "status": "available" }, ... // every tool whose provider == "ffmpeg" ] ``` -------------------------------- ### Corporate Product Demo Prompt Example Source: https://github.com/het8802/opennolan/blob/main/skills/creative/music-gen-usage.md Example prompt for a corporate product demo: modern upbeat corporate pop at 110 BPM, positive energy building gradually. ```text Modern upbeat corporate pop, 110 BPM, G major, acoustic guitar and light drums, positive energy building gradually, underscore for product walkthrough ``` -------------------------------- ### Output Format Example Source: https://github.com/het8802/opennolan/blob/main/skills/social-media/xurl/SKILL.md All commands return JSON to stdout, mirroring the X API v2 structure. ```json { "data": { "id": "1234567890", "text": "Hello world!" } } ``` -------------------------------- ### Verify xurl installation Source: https://github.com/het8802/opennolan/blob/main/skills/social-media/xurl/SKILL.md Verify the xurl installation. If auth status shows no apps or tokens, the user must complete authentication manually. ```bash xurl --help xurl auth status ``` -------------------------------- ### GPU local video generation setup Source: https://github.com/het8802/opennolan/blob/main/README.md Enable free local video generation if you have a GPU. Run 'make install-gpu' and then add VIDEO_GEN_LOCAL_ENABLED=true and VIDEO_GEN_LOCAL_MODEL to .env. Available local models include wan2.1-1.3b, wan2.1-14b, hunyuan-1.5, ltx2-local, and cogvideo-5b. ```bash make install-gpu # Then add to .env: VIDEO_GEN_LOCAL_ENABLED=true VIDEO_GEN_LOCAL_MODEL=wan2.1-1.3b # or wan2.1-14b, hunyuan-1.5, ltx2-local, cogvideo-5b ``` -------------------------------- ### Educational Explainer Prompt Example Source: https://github.com/het8802/opennolan/blob/main/skills/creative/music-gen-usage.md Example prompt for an educational explainer video: gentle lo-fi ambient electronic at 90 BPM, calm and steady energy. ```text Gentle lo-fi ambient electronic, 90 BPM, C major, soft synth pads and light percussion, calm and steady energy, background music for narration ``` -------------------------------- ### Scaffold a blank Remotion project Source: https://github.com/het8802/opennolan/blob/main/skills/social-media/instagram-reels/SKILL.md Creates a blank Remotion project without Tailwind, then installs dependencies. ```bash npx create-video@latest --yes --blank --no-tailwind ``` ```bash npm i ``` -------------------------------- ### Overlay scene JSON example Source: https://github.com/het8802/opennolan/blob/main/skills/pipelines/talking-head/scene-director.md Example JSON structure for an overlay scene entry, showing a text card overlay with content, position, and timing. Use this as a template when building overlay scenes for the scene plan. ```json { "id": "overlay_1", "type": "overlay", "overlay_type": "text_card", "start_seconds": 22.0, "duration_seconds": 4.0, "content": { "text": "Agentic AI", "subtext": "Software that acts autonomously toward goals", "backgroundColor": "", "accentColor": "" }, "position": "lower_third" } ``` -------------------------------- ### How uv pip install can be offline Source: https://github.com/het8802/opennolan/blob/main/docs/plans/first-run-provisioning/claude/architecture.md Explains how uv pip install can work offline: it is a resolver plus unpacker, and PyPI is only the default source. With --find-links, --offline, and --no-cache, the only source left is the local directory. ```text uv pip install | |-- 1. RESOLVE: which version, and where is its file? | default source: https://pypi.org/simple (network) | --find-links : also treat this directory as a source (local) | --offline: forbid the network entirely | --no-cache: forbid ~/.cache/uv too | => with all three, the ONLY source left is | '-- 2. INSTALL: a .whl is a ZIP of the already-built package. unzip -> site-packages, write .dist-info metadata, make scripts. Nothing is compiled. Nothing is fetched. The file is complete. ``` -------------------------------- ### worktree-setup.sh script outline Source: https://github.com/het8802/opennolan/blob/main/docs/plans/wiring-repo-for-agent/claude/architecture.md Idempotent script to set up a worktree: creates a virtual environment, installs dependencies, derives stable ports from the worktree path, writes a .env.worktree file, and sets the git hooks path. Safe to re-run. ```bash worktree-setup.sh ├─ uv venv --seed .venv (uv is already installed) ├─ .venv/bin/pip install -r requirements-dev.txt ├─ npm ci --prefix web ├─ npm ci --prefix desktop ├─ derive a stable port pair from the worktree path: │ BASE = 20000 + (crc32(pwd) % 10000) │ OPENNOLAN_PORT = BASE VITE_PORT = BASE + 1 ├─ write .env.worktree (gitignored): │ OPENNOLAN_PORT=… VITE_PORT=… OPENNOLAN_HOME=$PWD/.local └─ git config core.hooksPath .githooks ``` -------------------------------- ### Asset Manifest JSON Example Source: https://github.com/het8802/opennolan/blob/main/skills/pipelines/explainer/asset-director.md Example of the asset manifest JSON structure, listing generated assets with metadata such as id, type, path, source_tool, and cost. Includes total cost and generation summary. ```json { "version": "1.0", "assets": [ { "id": "narration-s1", "type": "audio", "subtype": "narration", "path": "assets/narration/s1.mp3", "source_tool": "tts_selector", "scene_id": "scene-1", "duration_seconds": 8.2, "cost_usd": 0.003 }, { "id": "img-scene-3", "type": "image", "path": "assets/images/scene-3-diagram.png", "source_tool": "diagram_gen", "scene_id": "scene-3", "cost_usd": 0.00 }, { "id": "music-bg", "type": "audio", "subtype": "music", "path": "assets/music/background.mp3", "source_tool": "music_gen", "duration_seconds": 62, "cost_usd": 0.05 } ], "total_cost_usd": 0.053, "generation_summary": { "narration_sections": 5, "images_generated": 8, "diagrams_generated": 2, "music_tracks": 1 } } ``` -------------------------------- ### OpenNolan .env environment variable summary Source: https://github.com/het8802/opennolan/blob/main/docs/PROVIDERS.md Environment variable summary for all OpenNolan providers. Add your keys to a .env file; free providers need no key, local options require GPU and installation. ```bash # .env — add your keys here # FREE (no cost, ever) PEXELS_API_KEY= # Stock photos + videos PIXABAY_API_KEY= # Stock photos + videos # GOOGLE (one key, two tools, generous free tier) GOOGLE_API_KEY= # Google TTS + Google Imagen # VOICE + MUSIC ELEVENLABS_API_KEY= # TTS, music, sound effects (10K chars/month free) OPENAI_API_KEY= # OpenAI TTS + DALL-E 3 images XAI_API_KEY= # xAI Grok image generation/editing + Grok video generation DOUBAO_SPEECH_API_KEY= # Volcengine Doubao Speech TTS (strong Mandarin narration) DOUBAO_SPEECH_VOICE_TYPE= # Default Doubao speaker/voice type # MULTI-MODEL GATEWAY (one key, 6+ tools) FAL_KEY= # FLUX, Recraft, Kling, Veo, MiniMax video # VIDEO HEYGEN_API_KEY= # HeyGen avatar video gateway RUNWAY_API_KEY= # Runway Gen-4 video (direct) SUNO_API_KEY= # Suno music generation # LOCAL (no keys needed — just GPU + install) VIDEO_GEN_LOCAL_ENABLED= # Set to "true" for local video gen VIDEO_GEN_LOCAL_MODEL= # wan2.1-1.3b, wan2.1-14b, hunyuan-1.5, ltx2-local, cogvideo-5b ``` -------------------------------- ### support_envelope() example: query motion_ops contract Source: https://github.com/het8802/opennolan/blob/main/docs/backend-explained.html Runs a Python one-liner to print the full get_info() contract for the motion_ops tool. The output shows the complete tool metadata including dependencies, capabilities, resource profile, and side effects. Use this for debugging; the full envelope is too large for chat. ```python python -c "from tools.tool_registry import registry; import json; \ registry.discover(); print(json.dumps(registry.support_envelope()['motion_ops'], indent=2))" ``` ```json { "name": "motion_ops", "version": "0.1.0", "tier": "core", "capability": "video_post", "provider": "ffmpeg", "stability": "experimental", "status": "available", "runtime": "local", "execution_mode": "sync", "determinism": "deterministic", "module_path": "tools.video.motion_ops", "usage_location": ".../tools/video/motion_ops.py", "dependencies": ["cmd:ffmpeg"], "install_instructions": "Install FFmpeg: https://ffmpeg.org/download.html", "capabilities": ["freeze","reverse","speed","segment_volume","volume_boost","pan_zoom","clip_fx","flip"], "best_for": ["freeze-frame on a punchline ...", "punch-in zoom / Ken Burns ...", ...], "not_good_for": ["HDR sources — output is 8-bit SDR ...", ...], "resource_profile": {"cpu_cores":2,"ram_mb":1024,"vram_mb":0,"disk_mb":1024,"network_required":false}, "side_effects": ["writes a derived video file","may append to an asset_manifest"], "fallback": null, "fallback_tools": [], "agent_skills": ["ffmpeg"], "related_skills": ["ffmpeg"], "user_visible_verification": ["Play the derived clip; confirm the motion/audio change is correct"], "quality_score": null, "historical_success_rate": null, "latency_p50_seconds": null } ``` -------------------------------- ### Run provider_menu_summary() to get human-ready capability rollup Source: https://github.com/het8802/opennolan/blob/main/AGENT_GUIDE.md Mandatory preflight command. Uses the project's Python (not a system Python) to discover tools and print the summary as JSON. The summary includes composition_runtimes, capabilities, setup_offers, and runtime_warnings. ```bash python -c " from tools.tool_registry import registry import json registry.discover() print(json.dumps(registry.provider_menu_summary(), indent=2)) " ``` -------------------------------- ### Capability audit table example Source: https://github.com/het8802/opennolan/blob/main/skills/meta/video-reference-analyst.md Example capability audit table mapping reference needs to available capabilities and gaps. Shows a BLOCKED gap for video generation when no providers are configured, and marks Remotion as preferred over FFmpeg for composition. ```text REFERENCE NEEDS YOUR CAPABILITIES GAP ───────────────────── ───────────────────── ────────── Video clips (sci-fi) Video gen: 0/12 configured BLOCKED without key Narration (deep male) TTS: ElevenLabs available READY Background music Music: MusicGen available READY Composition engine Remotion: available READY (preferred) FFmpeg: available READY (fallback only) ``` -------------------------------- ### Full Prompt Example with shot_language Source: https://github.com/het8802/opennolan/blob/main/skills/creative/image-gen-usage.md Complete prompt built using the 3-part approach, incorporating shot_language fields, an adapted playbook anchor, and a specific scene description. Includes the 16:9 aspect ratio. ```text Medium close-up, golden hour warm lighting, shallow depth of field. Muted earth tones, soft shadows. Beekeeper in white protective gear lifting a frame dripping with honey, late afternoon sun catching golden droplets, lavender field blurred in the background. Film grain, warm amber tones. 16:9 aspect ratio. ``` -------------------------------- ### FFmpeg mix SFX onto clip with delay and ducking Source: https://github.com/het8802/opennolan/blob/main/assets/sfx/README.md Mixes an SFX file onto a video clip at a given start time, ducked under the main audio. Uses adelay for the start time, volume for ducking, and amix to combine. Outputs to out.mp4. ```bash ffmpeg -i clip.mp4 -i ../../assets/sfx/vine-boom.mp3 -filter_complex \ "[1:a]adelay=2400|2400,volume=0.4[sfx];[0:a][sfx]amix=inputs=2:duration=first" \ -c:v copy out.mp4 ``` -------------------------------- ### capability_catalog() example: list TTS tools Source: https://github.com/het8802/opennolan/blob/main/docs/backend-explained.html Runs a Python one-liner to print the catalog of tools for the 'tts' capability. The output is a array of tool contracts, each trimmed to four fields for brevity. Use this to see all tools that can perform a given capability. ```python python -c "from tools.tool_registry import registry; import json; \ registry.discover(); print(json.dumps(registry.capability_catalog()['tts'], indent=2))" ``` ```json [ { "name": "doubao_tts", "provider": "doubao", "status": "available", "runtime": "api" }, { "name": "elevenlabs_tts", "provider": "elevenlabs", "status": "available", "runtime": "api" }, { "name": "google_tts", "provider": "google_tts", "status": "available", "runtime": "api" }, ... // each entry is a full get_info() dict; trimmed to 4 fields here ] ``` -------------------------------- ### provider_menu() command and output Source: https://github.com/het8802/opennolan/blob/main/docs/backend-explained.html The agent runs this Bash command to get the full per-capability bucket for 'tts'. The output is trimmed to one entry. ```bash python -c "from tools.tool_registry import registry; import json; \ registry.discover(); print(json.dumps(registry.provider_menu()['tts'], indent=2))" ``` -------------------------------- ### Example output of find_fallback Source: https://github.com/het8802/opennolan/blob/main/docs/backend-explained.html Shows the expected output when a fallback is found, including the object representation and the None case when all fallbacks are unavailable. ```text # transcript_fetcher declares fallbacks: ['transcriber'] transcriber # ↳ the actual object: # ↳ if every declared fallback were UNAVAILABLE, you'd get: None ``` -------------------------------- ### Pronunciation guide JSON entries Source: https://github.com/het8802/opennolan/blob/main/skills/pipelines/explainer/script-director.md Pronunciation guide entries for technical terms. Each entry pairs a word with its phonetic spelling. The example covers FAISS, Qdrant, and cosine. ```json {"word": "FAISS", "phonetic": "FACE"}, {"word": "Qdrant", "phonetic": "kuh-DRANT"}, {"word": "cosine", "phonetic": "CO-sign"} ``` -------------------------------- ### Render zero-key demos with make and render-demo.sh Source: https://github.com/het8802/opennolan/blob/main/PROMPT_GALLERY.md Commands to render the zero-key demos. Run `make demo` to render all three demos, or use `./render-demo.sh` with a demo name to render a specific one, or with `--list` to see all available demos. ```bash make demo # Render all three demos ./render-demo.sh world-in-numbers # Render one specific demo ./render-demo.sh --list # See all available demos ``` -------------------------------- ### Run an OpenNolan tool via Bash python -c Source: https://github.com/het8802/opennolan/blob/main/docs/backend-explained.html Shows how the agent invokes an OpenNolan tool by writing Python and running it through the Bash tool. The example calls MotionOps with a pan_zoom operation and prints the ToolResult fields. ```bash python -c " from tools.video.motion_ops import MotionOps r = MotionOps().execute({'operation':'pan_zoom','input_path':'clip.mp4','preset':'punch_in'}) print(r.success, r.data) " ``` -------------------------------- ### OPENNOLAN_BACKEND_PORT and OPENNOLAN_FRONTEND_PORT Source: https://github.com/het8802/opennolan/blob/main/docs/plans/wiring-repo-for-agent/codex/architecture.md Environment-controlled defaults for backend and frontend ports. The current values 8000 and 5173 remain the defaults outside a managed worktree. A setup command assigns a stable pair based on worktree identity and verifies the ports are free before starting the app. ```text OPENNOLAN_BACKEND_PORT= OPENNOLAN_FRONTEND_PORT= ``` -------------------------------- ### Before/after provisioning diagram Source: https://github.com/het8802/opennolan/blob/main/docs/plans/first-run-provisioning/claude/architecture.md ASCII diagram contrasting the current online provisioning with the proposed offline core. Shows that pip, 64 core packages, and ffmpeg move to bundled sources, while node_modules stays lazy from npmjs.org, reducing hosts needed to reach the editor from 2 to 0. ```text BEFORE AFTER ────── ───── pip -> pypi.org pip -> bundled (ensurepip) 64 core packages -> pypi.org 64 core packages -> bundled (wheels/) ffmpeg -> one host ffmpeg -> host, sha-checked node_modules -> npmjs.org node_modules -> npmjs.org (lazy) hosts needed to reach the editor: 2 -> 0 ``` -------------------------------- ### Orca review loop: run-create, task-create, worker-start, check, worker_done Source: https://github.com/het8802/opennolan/blob/main/docs/plans/wiring-repo-for-agent/claude/architecture.md Orchestrates the full review loop on Orca's orchestration layer: create a run and tasks, start a writer worker with --setup run, send worker_done, wait for events, then start a reviewer worker in the writer's worktree. The reviewer runs scripts/gate.sh full, scripts/smoke.sh, and git diff; on failure it re-dispatches to the writer (max 2 rounds, then escalate), on success it runs scripts/gate.sh merge, creates a PR, and sends merge_ready. Review verdicts are advisory only; fixes go back to the writer. ```shell orca orchestration run-create --objective "" orca orchestration task-create --spec "" → task_a orca orchestration task-create --spec "review task_a" --deps '["task_a"]' orca orchestration worker-start --task task_a \ --worktree new-child --name crop-fix --agent claude --setup run │ │ --setup run executes Piece 1 ▼ writer works, commits (Piece 4 gate runs), then: orca orchestration send --type worker_done \ --task-id task_a --dispatch-id --outcome succeeded \ --files-modified "server/render_proxies.py,tests/…" \ --body "" ▼ coordinator: orca orchestration check --wait \ --types worker_done,escalation,question --timeout-ms 900000 ▼ ★ CROSS-ASSIGN: reviewer agent ≠ writer agent ▼ orca orchestration worker-start --task \ --worktree --agent codex reviewer runs, in the writer's checkout so it can actually reproduce: scripts/gate.sh full scripts/smoke.sh git diff $(git merge-base HEAD origin/) ▼ ┌───────────────────┴────────────────────┐ FAIL PASS ▼ ▼ re-dispatch to the WRITER scripts/gate.sh merge with findings ▼ (max 2 rounds, then gh pr create --base escalate to the human) orca orchestration send --type merge_ready ▼ YOU review the PR. CODEOWNERS blocks merge without you. ``` -------------------------------- ### Get clip metadata with get Source: https://github.com/het8802/opennolan/blob/main/skills/pipelines/documentary-montage/asset-director.md Use when the edit director wants to confirm the provider/URL before locking the cut. Executes the 'get' operation for a specific clip ID. ```python clip_search.execute({ "operation": "get", "corpus_dir": "projects//corpus", "clip_id": "archive_org_Prelinger_HomeMovies_0042", }) ``` -------------------------------- ### Inspect registry capability and provider catalogs Source: https://github.com/het8802/opennolan/blob/main/AGENT_GUIDE.md Use these commands to list all tools grouped by capability and by provider. Run registry.discover() first to load tools, then print the catalogs as JSON. ```bash python -c "from tools.tool_registry import registry; import json; registry.discover(); print(json.dumps(registry.capability_catalog(), indent=2))" python -c "from tools.tool_registry import registry; import json; registry.discover(); print(json.dumps(registry.provider_catalog(), indent=2))" ``` -------------------------------- ### Agent startup skill menu diagram Source: https://github.com/het8802/opennolan/blob/main/docs/plans/opn-41-packaged-agent-skills/claude/simplified.md Illustrates what the agent holds in its head at startup: a menu of skill names and one-line descriptions, not the full files. The full file is only opened when the agent decides it needs that skill. ```text ┌─ handed to the agent at startup ──────────────────────────┐ │ ffmpeg — "trim, join, and re-encode video" │ │ remotion — "build a video out of React components" │ │ music — "generate a backing track" │ │ … 78 lines like this │ └──────────────────────────┬────────────────────────────────┘ │ name + one line each. │ 78 skills = ~1,000 words of budget. ▼ agent decides "I need ffmpeg" │ ▼ ── only NOW is the full file opened ── ``` -------------------------------- ### Run registry.discover() at preflight Source: https://github.com/het8802/opennolan/blob/main/FFMPEG_TOOLS.md The agent runs this at preflight to load the tool registry and discover all available tools. It imports the registry singleton and calls discover(). ```python from tools.tool_registry import registry registry.discover() ``` -------------------------------- ### Technical Deep-Dive Prompt Example Source: https://github.com/het8802/opennolan/blob/main/skills/creative/music-gen-usage.md Example prompt for a technical deep-dive: minimal ambient electronic at 80 BPM, contemplative and focused. ```text Minimal ambient electronic, 80 BPM, A minor, soft Rhodes piano and subtle bass, contemplative and focused, background music for technical explanation ``` -------------------------------- ### Bad query example Source: https://github.com/het8802/opennolan/blob/main/skills/creative/reaction-gif-finder.md Example of a poor query that searches for the literal business concept instead of the emotional beat. Avoid this style when searching for reaction GIFs. ```text AI chatbot invoice approval workflow SaaS ``` -------------------------------- ### Python fallback install ID on FileExistsError (server/settings.py:124-126) Source: https://github.com/het8802/opennolan/blob/main/docs/plans/analytics-event-coverage/claude/plan.md Used in server settings to handle concurrent install ID file creation. On FileExistsError, reads the file and falls back to the existing ID if non-empty, otherwise returns the newly minted ID. This race condition can cause different install IDs for one launch. ```python except FileExistsError: # server/settings.py:124-126 return path.read_text().strip() or did # ← `or did` ``` -------------------------------- ### Run direct_clip_search with queries and filters Source: https://github.com/het8802/opennolan/blob/main/skills/pipelines/documentary-montage/asset-director.md Executes direct_clip_search with a set of queries, sources, and filters. clips_per_query=3 is recommended. Omit sources to search all providers. skip_existing=true is default to avoid re-downloading. ```python direct_clip_search.execute({ "output_dir": "projects//assets/video/raw_act2", "queries": [ {"query": "cesium atomic clock laboratory", "slot_id": "slot_01"}, {"query": "laser beam laboratory optics", "slot_id": "slot_02"}, {"query": "satellite dish night sky", "slot_id": "slot_03"}, # ... one per slot ], "sources": ["pexels", "pixabay_video", "coverr", "mixkit", "archive_org"], # or omit for all available "clips_per_query": 3, "filters": { "min_duration": 3, "max_duration": 40, "orientation": "landscape", "min_width": 1280, }, }) ``` -------------------------------- ### Local Mac Test Install Path Source: https://github.com/het8802/opennolan/blob/main/skills/social-media/content-os-tools/SKILL.md On a local Mac test install, the content-os tools directory may be located under Downloads. Use this path when the default is not present. ```bash $HOME/Downloads/content-os ``` -------------------------------- ### Preflight capability audit with tool_registry Source: https://github.com/het8802/opennolan/blob/main/skills/meta/video-reference-analyst.md Run the standard preflight capability audit. Each command discovers the tool registry and prints a different JSON envelope: support_envelope(), provider_menu(), or capability_catalog(). Use these to map reference video requirements against available capabilities and to read install_instructions for unavailable tools. ```bash python -c "from tools.tool_registry import registry; import json; registry.discover(); print(json.dumps(registry.support_envelope(), indent=2))" ``` ```bash python -c "from tools.tool_registry import registry; import json; registry.discover(); print(json.dumps(registry.provider_menu(), indent=2))" ``` ```bash python -c "from tools.tool_registry import registry; import json; registry.discover(); print(json.dumps(registry.capability_catalog(), indent=2))" ``` -------------------------------- ### Cinematic pacing rhythm example Source: https://github.com/het8802/opennolan/blob/main/skills/creative/cinematic.md Example of a breathing rhythm for shot lengths in cinematic pacing. Vary shot length deliberately and never use the same length three times in a row to avoid monotony. ```text Long (8s) → Medium (5s) → Short (3s) → Short (2s) → LONG (10s) → Medium (6s) ``` -------------------------------- ### Verify asset kit with find, unzip, and ffprobe Source: https://github.com/het8802/opennolan/blob/main/skills/social-media/editorial-ai-product-design-system/references/greg-style-kit-assets.md Verification commands to list all files, test the zip archive, and probe each WAV file's duration and size. Run these before delivering the zip and preview image. ```bash find /greg-style-kit -type f | sort unzip -t /greg-style-kit.zip for f in /greg-style-kit/sfx/*.wav; do ffprobe -v error -show_entries format=duration,size -of default=nw=1 "$f"; done ``` -------------------------------- ### Folder restructure and configuration changes Source: https://github.com/het8802/opennolan/blob/main/docs/plans/opn-41-packaged-agent-skills/claude/simplified.md Shows the steps to move skills, add a plugin.json marker, and change startup settings in server/agent_runner.py:649. The plugin.json file is the marker that makes the folder a bundle. ```text MOVE THE VIDEO SKILLS DOWN ONE LEVEL .agents/skills/* ──► .agents/app/skills/* a rename, no file edits. Why: see §6 — it also stops Codex from seeing them. ADD ONE FILE .agents/app/.claude-plugin/plugin.json { "name": "opennolan", "description": "OpenNolan video skills" } ^ the marker that makes .agents/app/ a bundle the agent can be handed whole. CHANGE THE STARTUP SETTINGS server/agent_runner.py:649 BEFORE AFTER where to look the start folder /.agents/app turn skills on (not set) yes, all of them read project files yes no │ ▼ your machine and the shipped app now behave identically ``` -------------------------------- ### Initial project path Source: https://github.com/het8802/opennolan/blob/main/skills/social-media/marketing-ops-automation/references/production-pipeline-project-scaffold.md The initial project path for the scaffold. ```bash ~/ai-video-pipeline ``` -------------------------------- ### requirements-audio.txt: Optional audio dependencies Source: https://github.com/het8802/opennolan/blob/main/requirements-audio.txt Optional audio-analysis dependencies for beat-synced editing with tools/video/beat_cutter.py. Install with pip install -r requirements-audio.txt. Keeps heavy transitive stack (numba, llvmlite, scipy) out of base requirements.txt. ```text -r requirements.txt librosa>=0.10 ``` -------------------------------- ### Caption chunk HTML example Source: https://github.com/het8802/opennolan/blob/main/skills/pipelines/animation-talking-head-50-50/asset-director.md Shows two example caption chunk divs with different layout classes. The first is for a split scene, the second for a hero/card scene. Each div uses the cap-chunk class and a layout-specific class. ```html
your apps
please hire me
``` -------------------------------- ### Before/after directory layout for packaged agent skills Source: https://github.com/het8802/opennolan/blob/main/docs/plans/opn-41-packaged-agent-skills/claude/architecture.md Directory tree showing the before/after layout for the packaged-agent-skills design. The BEFORE side shows the current repo with .claude/skills (copy, not shipped) and .agents/skills (shipped, prose-only) containing the same files, plus an unchanged Layer 2 skills/ directory. The AFTER side introduces .agents/app as the plugin root with a new .claude-plugin/plugin.json, moves app skills (~71) there, and adds .claude/skills symlinks pointing to ../../.agents/skills/* for Claude Code native discovery. ```text BEFORE AFTER repo/ repo/ ├── .claude/skills/ 56 ─┐ ├── .agents/ │ (copy, not shipped) │ same │ ├── skills/ ~7 DEV only ├── .agents/skills/ 78 ─┘ files │ │ ^ Codex native (see §3b) │ (shipped, prose-only) │ └── app/ PLUGIN ROOT └── skills/ Layer 2 │ ├── .claude-plugin/plugin.json NEW (unchanged) │ └── skills/ ~71 APP only │ ^ app agent via --plugin-dir ├── .claude/skills/ │ symlinks -> ../../.agents/skills/* │ ^ Claude Code native (see §3b) └── skills/ Layer 2, unchanged ``` -------------------------------- ### Pipeline manifest YAML example Source: https://github.com/het8802/opennolan/blob/main/docs/ARCHITECTURE.md Example YAML manifest for a pipeline definition. It shows the pipeline name, version, category, orchestration settings, compatible playbooks, and a list of stages with their properties. The comment indicates that stages continue through publish. ```yaml name: animated-explainer version: "2.0" category: generated # talking_head | generated | hybrid | screen_recording | animation | cinematic | custom default_checkpoint_policy: guided orchestration: mode: executive-producer skill: pipelines/explainer/executive-producer budget_default_usd: 2.00 max_revisions_per_stage: 3 compatible_playbooks: - clean-professional - flat-motion-graphics stages: - name: research skill: pipelines/explainer/research-director produces: [research_brief] tools_available: [] checkpoint_required: false human_approval_default: false review_focus: [...] success_criteria: [...] # ... through publish ``` -------------------------------- ### Run full tests and smoke before review Source: https://github.com/het8802/opennolan/blob/main/docs/development/agent-workflow.md Runs the full test suite and smoke tests before review. All test tiers use a scratch application home and remove paid-provider credentials. ```bash scripts/dev test full scripts/dev smoke ```