How to code with Ai: Ai Coding Tips

 An AI coding prompt is a clear set of instructions that tells an AI what to build, which tools to use, and how the process should flow.


It works by:


Breaking the task into parts, for example: (story, visuals, audio, animation, output).

Specifying the exact tools for each part so the AI doesn’t guess.

Defining the workflow order so outputs from one step become inputs for the next.

Setting rules and constraints, e.g., (style, duration, format, automation behavior).


This clarity lets the AI focus on execution rather than interpretation.




Here is a refined AI code-ready master prompt. broken into parts, written as strict rules the AI must follow.

Short, direct, and ready for automation:


---


AI MASTER PROMPT (CODE-READY — PARTED + RULES)


PROJECT: Automated YouTube content generation system.

VIDEO TYPE: 15–30 min, 30fps, cartoon-style filmmaking using SDXL + TTS + MusicGen.


---


1. STORY GENERATION RULES


* Use OpenAI API to generate complete movie storylines.

* Structure output as: `Title → Characters → Acts → Scenes → Narration → Dialogue`.

* Tone: cinematic, coherent, family-friendly unless told otherwise.


---


2. CHARACTER GENERATION RULES


* Use SDXL to generate all characters.

* Style: consistent cartoon 3D look.

* Generate:


  * Front pose

  * Side pose

  * Expression variants

* Save each character once and re-use in all scenes.

* Keep appearance identical across frames.


---


3. BACKGROUND & SCENE FRAME RULES


* Use Stable Diffusion / SDXL for all background frames.

* Match scene mood (dark, bright, magical, etc.).

* Render frames at 1080p, 30fps.

* Maintain consistent style across entire movie.


---


4. AUDIO & VOICE RULES


* Use Coqui TTS for all character voices.

* Assign a unique voice to each character.

* Generate narration voice separately.

* Use MusicGen for background music per scene.

* Ensure volume balance: Dialogue > Narration > Music.


---


5. ANIMATION RULES


* Use Blender to:


  * Animate characters in simple keyframe motion.

  * Apply lip-sync directly from Coqui audio.

  * Composite SDXL frames into scenes.

* Output all shots as 30fps PNG frames.


---


6. FINAL VIDEO RULES


* Use FFmpeg to:


  * Combine Blender frames + TTS audio + MusicGen tracks.

  * Add transitions, color grading, and scene pacing.

  * Export final movie at 1080p, 30fps, MP4.


---


7. YOUTUBE AUTOMATION RULES


* Use YouTube Data API to:


  * Upload final video.

  * Add auto-generated title + description.

  * Insert relevant hashtags.

  * Schedule uploads every 3 days.


---


8. RESOURCE USAGE RULES


* GPU use priority:


  1. SDXL character generation

  2. SDXL backgrounds

  3. Blender (only if GPU still available)

* If GPU throttles → auto-switch to CPU.

* Keep everything lightweight and fast.

Post a Comment

Copyright © Daily insights . Designed by OddThemes