/muahib-skills:gemini-webapifrom muahib-skills
Use Google Gemini (via the local tools/gemini toolkit) to generate ad scripts, voiceover scripts, documents, marketing copy, AI images for ads/storyboards, short video clips, and audio/music beds. Trigger when the user wants to "use Gemini" to write, narrate, generate images, generate video, generate documents, or draft ad copy/scripts inside the video-ad workspace (any project under C:\Users\user\Desktop\video-ad).
Ships in muahib-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A local CLI wrapper around the unofficial gemini_webapi library
(github.com/HanaokaYuzu/Gemini-API) that drives gemini.google.com via the user's
Google cookies (not an official API key). Installed at:
C:\Users\user\Desktop\video-ad\tools\gemini\
Full docs: C:\Users\user\Desktop\video-ad\tools\gemini\README.md.
Upstream source/examples: ...\tools\gemini\repo\ (README.md, cli.py, src/).
C:\Users\user\Desktop\video-ad\tools\gemini\venv\Scripts\python.exe
Image gen runs on the chat model. --model gemini-3-pro → Nano Banana Pro
(best, hero shots); --model gemini-3-flash → Nano Banana 2 (fast, default
for image). The account default (3.1 Flash-Lite) has a tight image cap — the
image/video commands already avoid it. Images carry a Gemini watermark.
@ai844579 — pass --avatar @ai844579 (or put it in the prompt).pull, do not keep re-generating (that just burns the daily video cap):
PY gemini.py video "..." --avatar @ai844579 → submit (may end in a stream error, fine)PY gemini.py pull --match video -o <dir> → downloads finished videos from historyPY gemini.py list → see recent chats; pull --cid c_xxxx targets one.pull.pull still
works to download already-made videos.tools\ffmpeg.exe.AI clips (Gemini Omni etc.) have morphing/warping, weak first/last beats, garbled
on-screen text/logos, and per-clip audio that clashes when joined. Act like a
video editor with a timeline, not a concat script. Workflow (uses tools\ffmpeg.exe):
ffmpeg -i clip.mp4 -ss 0 -t 5 -vf "fps=4,scale=440:-1,tile=5x4" -frames:v 1 w0.png
ffmpeg -i clip.mp4 -ss 5 -t 5 -vf "fps=4,scale=440:-1,tile=5x4" -frames:v 1 w5.png
READ every window. Frames are 0.25s apart, left→right, top→bottom, so you can name
the exact second an artifact starts. Watch for: morphing faces, warped/garbled
on-screen TEXT or fake LOGOS (a real example: one clip rendered a bogus "Ucire to
HFT" logo at 8.5–9.75s — cut before it), empty/wide/tiny shots, ugly first/last
frames. It's normal to keep only 2–4s of a 10s clip. (drawtext timestamps need a
fontfile on Windows — skip it, use frame position instead.)ffmpeg -i clip.mp4 -filter_complex "showwavespic=s=1000x140" -frames:v 1 wave.png
ffmpeg -i clip.mp4 -af volumedetect -f null - and silencedetect=noise=-38dB:d=0.3.
Flag silent stretches and dead-air. Video-good-but-audio-bad and vice versa are common.-c copy
at arbitrary times).
3b. SEQUENCE — this is half the edit, not an afterthought. Cutting out bad frames
is only step one. Then lay ALL the clean pieces on the board and decide the ORDER
like a creative director, because AI clips come out scattered. Ask: what is the
end goal of this video, and of each shot? Then order for story, not for the order
the clips happened to generate in:
afade in/out. If a clip's audio is
"just a sound," replace/overlay a better track (generate via gemini.py media,
or HeyGen search_audio_sounds / a music bed). Align audio hits to visual cuts.A worked example lives at tools\gemini\out\videos\build_edit.sh (curated segment
list + silent montage + unified faded bed + mux). Reuse/adapt its structure.
Don't do a multi-clip edit serially in one context. Fan the work out with the Agent tool (or a Workflow) so the slow parts run concurrently and each agent stays focused:
When you must keep a beat for timing/VO but its footage is ugly (morphy, empty, dull): blur/darken it and put graphics on top to carry it — a real editor's move:
-vf "gblur=sigma=20,eq=brightness=-0.1"drawtext (needs a fontfile on Windows, e.g.
fontfile=C\:/Windows/Fonts/arialbd.ttf), or render a transparent PNG and overlay.overlay=x:y (optionally animated via expressions).The COOKIE web app (gemini.py) cannot do TTS — it only makes music + Omni-video native VO. For a standalone spoken voiceover FILE there are two routes:
tts.py (needs a free API KEY, separate
from cookies). Accent/style is set by the PROMPT, so a Nigerian accent works:
PY tts.py "Meet Series 11..." --accent "Nigerian English" --voice Charon -o vo.wav
PY tts.py --list (list TTS models + prebuilt voices)
Key setup (once): free key at https://aistudio.google.com/apikey →
tools\gemini\gemini_api_key.txt (git-ignored) or env GEMINI_API_KEY.
These 2.5 TTS models are API-only; they never appear in the web app's model list.create_speech (needs a starfish-engine voice — designed voices
aren't starfish, so pick a starfish voice or clone_voice the user's own voice for
a true Nigerian accent), or the avatar @ai844579's own voice via an Omni video.Write the script first with doc (≤~22–24 words per 10s of picture), then TTS it.
Run from tools\gemini. PY = the venv python above.
| Goal | Command |
|---|---|
| Verify auth + list models | PY gemini.py check |
| Ad copy / taglines / Q&A | PY gemini.py ask "..." |
| Ad/VO script → markdown file | PY gemini.py doc "Write a 30s VO script for ..." -o <path>.md |
| Analyse an image/pdf (vision) | PY gemini.py ask "..." --file <path> |
| Generate images | PY gemini.py image "sleek smartwatch, 9:16, studio" -o <dir> -n watch -c 3 |
| Generate video | PY gemini.py video "5s clip: ..." -o <dir> |
| Generate music bed | PY gemini.py media "upbeat 15s tech bed" --type audio -o <dir> |
Model choice: --model gemini-3-pro | gemini-3-flash | gemini-3-flash-thinking
(default = account default). Images: the CLI auto-prepends "Generate" so you get
AI images, not web images.
tools\gemini\cookies.json with __Secure-1PSID (+ optional
__Secure-1PSIDTS) copied from gemini.google.com DevTools → Cookies.[browser] extra auto-imports cookies.cookies.json
per README.md §2. Cookies expire regularly.Write a short async script against the venv using gemini_webapi.GeminiClient.
The pattern and full API are in README.md §4 and repo\README.md.
doc → generate the ad script + voiceover script (markdown).image → generate hero shots / storyboard frames into the project's folder.create_speech → turn the VO script into spoken audio.media → music bed; video → motion clips.tools\ffmpeg.exe (see project memories / existing workflow).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub abdul977/muahib-skills --plugin muahib-skills10 skills in this plugin
/design-to-pixelRebuild a website (or a single section) from a reference design image so it matches measurably, not approximately — by measuring the reference to derive a numeric spec (viewport, container width, section heights, font sizes, colours, corner radii, gaps), building section by section, then measuring the built DOM and diffing it against the reference until every delta is within a few pixels. Use this skill whenever someone supplies a screenshot, mockup, Figma export, theme demo, or competitor page and wants it "rebuilt", "cloned", "matched", "recreated", "converted to HTML/CSS", or asks for it to look "exactly like", "1:1", "pixel perfect", or "100% the same" — and also when they hand over a design image section by section, or ask you to check whether a build matches a reference. Reach for it even when they just say "make it look like this image", because the measuring loop is what separates a real match from a rough approximation.
/kinetic-motion-adBuild premium white-background, single-green-accent kinetic-typography motion ads (9:16) with real footage layered behind HTML type — the divyansh.fx_ style. Use when the user wants a "motion graphics ad", "kinetic typography video", "text animation ad", or to turn a voiceover script into a faceless/objects-driven social ad in the workspace under C:\Users\user\Desktop\video-ad. Composites keyed or framed footage (green-screen OR their own Veo clips) with animated HTML/SVG objects, one green accent, italic-serif emphasis, depth/parallax, and a brand end card.Other plugins' skills for the same job