ai-automation-workflows
AI workflow design. Chaining skills, batch processing, error handling in multi-step pipelines.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
AI workflow design. Chaining skills, batch processing, error handling in multi-step pipelines.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create multi-speaker dialogue audio. Use for: podcasts, conversations, audiobook scenes
Translate and dub audio/video to another language. Use for: localization, multilingual
Generate music from text description. Use for: background music, jingles, soundtracks
Generate sound effects from description. Use for: SFX, game audio, video soundscape
Transcribe audio to text, speech recognition. Use for: transcription, subtitles, dictation
Convert text to speech, narrate, voiceover. 32 languages, 22+ voices. Use for: TTS, audio
| name | ai-automation-workflows |
| description | AI workflow design. Chaining skills, batch processing, error handling in multi-step pipelines. |
| allowed-tools | [] |
| disable-model-invocation | false |
This guide covers how to chain multiple Pocket-Knife skills together into reliable multi-step pipelines.
1. Each skill produces a file or structured output — the output of one skill becomes the input of the next.
2. Use absolute paths throughout — skills that write files need absolute paths; skills that read images need public URLs (upload intermediate files to a public host when required).
3. Fail fast at each step — verify each output before passing it to the next skill. An empty or corrupt file passed forward causes confusing errors later.
4. Name outputs descriptively — use timestamps or meaningful names to avoid overwriting files during batch runs.
Use case: Turn a product photo or portrait into a short video clip.
Step 1: /pocket-knife:background-removal
Input: IMAGE_URL = public URL of source image
Output: ~/Downloads/bg_removed_[timestamp].png
Step 2: Upload the PNG to a public host → get new public URL
Step 3: /pocket-knife:image-to-video
Input: IMAGE_URL = public URL from step 2
PROMPT = motion description
Output: ~/Downloads/i2v_[timestamp].mp4
Verify at each step: Check that the PNG is not empty before uploading; check the MP4 exists and has nonzero size before considering the pipeline complete.
Use case: Produce a narrated audio piece with background music.
Step 1: /pocket-knife:elevenlabs-tts
Input: TEXT = narration script
VOICE = george
Output: ~/Downloads/tts_narration.mp3
Step 2: /pocket-knife:elevenlabs-music
Input: PROMPT = background music description
DURATION = same duration as narration + 5 seconds
Output: ~/Downloads/music_background.mp3
Step 3: Layer in audio editor (Audacity, DaVinci Resolve)
- Import both MP3 files
- Lower music volume to -18dB under voice
- Export as final mix
Use case: Generate e-commerce product images at scale.
Step 1: /pocket-knife:ai-image-generation
Input: PROMPT = product description + background
Output: ~/Downloads/product_raw_[timestamp].png
Step 2: /pocket-knife:background-removal
Input: IMAGE_URL = public URL of generated image
Output: ~/Downloads/product_nobg_[timestamp].png
Step 3: /pocket-knife:ai-image-generation (composite prompt)
Input: PROMPT = product + new studio background description
Output: ~/Downloads/product_final_[timestamp].png
Use case: Transcribe an existing recording and re-produce it with different voices.
Step 1: /pocket-knife:elevenlabs-stt
Input: AUDIO_FILE = ~/recordings/interview.mp3
DIARIZE = true
Output: Transcript with speaker labels
Step 2: Edit transcript (remove fillers, assign voice names to speaker labels)
Step 3: /pocket-knife:elevenlabs-dialogue
Input: SEGMENTS = formatted dialogue lines
Output: ~/Downloads/dialogue_revoiced.mp3
To process multiple files with the same skill, loop and vary the output filenames:
# Example: transcribe all MP3s in a folder
for FILE in ~/recordings/*.mp3; do
BASENAME=$(basename "$FILE" .mp3)
# Run /pocket-knife:elevenlabs-stt with AUDIO_FILE=$FILE
# Save transcript to ~/transcripts/${BASENAME}.txt
done
Batch tips:
| Error scenario | Detection method | Recovery |
|---|---|---|
| Empty output file | [ ! -s "$OUTPUT_FILE" ] | Stop pipeline; log the step that failed |
| Missing API key | Check $? after skill run | Run /pocket-knife:setup and restart |
| Public URL expired | HTTP 403/404 on image-to-video | Re-upload to a fresh public URL |
| API rate limit | HTTP 429 response | Wait 30–60 seconds; retry once |
| Corrupt output | File size far below expected | Delete file; re-run that step only |
Before running a multi-step pipeline:
ELEVENLABS_API_KEY, FAL_KEY, GOOGLE_API_KEY)product_bg_removed_20260327.png is easier to debug than output2.png