Skill v1.0.1
Automated scan100/1002 files
version: "1.0.1" name: llm description: Call LLM via CLI for transcription, vision, speech/image generation, piping prompts, sub-agents, ...
llm --helpllm '2 + 2 = ?'cat prompt.txt | llmllm --fragment a.txt --fragment https://example.org/ --fragment "User prompt fragment" --system-fragment system-prompt.txtllm --system 'Speak German' 'Hi'llm models listllm --model gpt-5-nano 'Hi'llm --query 5-nano 'Hi' # pick first model matching queryllm --attachment audio.opus --model gemini-3-flash-preview 'Transcribe audio'llm -a a.png -a b.png -s "OCR images"llm --schema "{... JSON schema ...}" '...' # use JSON schemallm --usage 'Hi' # show token usagecat image.jpg | llm 'describe' --attachment - # describe imagellm --option reasoning_effort minimal 'Hi'llm --extract 'List files by size' # extract first code blockllm cmd 'List files by size' # extract and run first code blockllm embed -c 'Hi' -m 3-small -f base64 # get embedding as base64 (or json) using text-embedding-3-small
Docs: https://llm.datasette.io/en/stable/usage.html
Preferred models:
gpt-5.4-mini: default gpt-5.4-nano: cheapest gemini-2.5-flash: cheap transcription gemini-3.7-flash: best for transcription
Generate speech:
curl https://api.openai.com/v1/audio/speech -H "Authorization: Bearer $OPENAI_API_KEY" -H "Content-Type: application/json" \-d '{"model": "tts-1", "input": "Hello", "voice": "alloy", "response_format": "mp3"}' --output hello.mp3
voice: alloy, ash, ballad, coral, echo, fable, onyx, nova, sage, shimmer, and verse response_format: mp3, opus, wav Add "instructions": with style / tone
Generate images:
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-image-preview:generateContent?key=$GEMINI_API_KEY" \-H "Content-Type: application/json" \-d '{"contents": [{"parts": [{"text": "Cat"}]}], "generationConfig": {"responseModalities": ["IMAGE"], "imageConfig": {"aspectRatio": "16:9"}}}' \| jq -r '.candidates[0].content.parts[0].inlineData.data' | base64 -d > cat.png
aspectRatio: "1:1", "4:3", "16:9", "3:4", "9:16", "3:2", "2:3", "5:4", "4:5", "21:9" Specify style, layout, font, scene, lighting, ... clearly
Edit images / provide reference images:
IMG=$(base64 -w0 cat.png)echo '{"contents": [{"parts": [{"text": "Edit image: add bold caption `CAT`"}, {"inlineData": {"mime_type": "image/png", "data": "'"$IMG"'"}}]}], "generationConfig": {"responseModalities": ["IMAGE"]}}' > payload.jsoncurl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-image-preview:generateContent?key=$GEMINI_API_KEY" \-H "Content-Type: application/json" -d @payload.json \| jq -r '.candidates[0].content.parts[0].inlineData.data' | base64 -d > captioned.png
To write/run tasks as a sub-agent (e.g., code review, code generation), use either Codex or Claude Code:
codex exec 'Review uncommitted changes for errors and style'codex exec --image screenshot.png 'Compare code with UI and suggest improvements'npx -y @anthropic-ai/claude-code -p 'Write a web app ...'