feat: add flows-diagram skill - #2
Merged
Merged
Conversation
Migrate the animated backend flow-diagram pipeline into the skills repo as a first-class, installable skill. - scripts/: make.mjs (square MP4 + looping GIF + branded reel), gen-vo.mjs, vo-align.mjs, caption-render.mjs, plus a shared paths.mjs resolver - assets/: brand logo mark + wordmarks, and the scene template (animations.jsx + example-scene.jsx) copied per diagram - references/: pipeline contract, scene contract, voiceover/caption docs Portability changes over the original local project: - no hardcoded /Users paths; the logo mark is bundled in assets/ - Chrome is auto-detected (macOS + Linux), CHROME_PATH overrides - React + Babel are fetched into .cache/ on first render instead of vendored - diagrams are authored in a workspace outside the skill (FLOWS_DIR, then config workspaceDir, then ~/flows, then ~/amigoscode-skills/flows), so updating the skill never touches user work - ELEVEN_LABS resolves from env, the skill .env, or ~/.env; voice and voice settings come from config.default.json Registered in README, VERSIONS.md, plugin.json, and marketplace.json. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KoB1R6ZCYGe5PGG3SHx98r
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrates the animated backend flow-diagram pipeline (previously a local-only project in
~/flows) into this repo as a first-class, installable skill.What landed
One scene renders to a 1440x1440 square MP4, a 960x960 looping GIF, and a 1080x1920 branded reel, then optionally an ElevenLabs voiceover with word-by-word captions,
caption.txt, andtitle.txt.Portability changes over the original local project
/Userspaths. The purple brand mark used to load from~/Documents/amigoscode 2.0/logo.svg; it is now bundled atassets/logo-mark.svg.CHROME_PATHto override (was a hardcoded macOS app path in two scripts)..cache/on first render (pinned react 18.3.1,@babel/standalone@^7) instead of relying on 3 MB of vendored files.FLOWS_DIR→workspaceDirin~/amigoscode-skills/flows-diagram-config.json→~/flows(the original location, so existing work keeps rendering) →~/amigoscode-skills/flows.ELEVEN_LABSresolves from the environment, the skill.env, then~/.env(was~/.envonly, and it crashed if that file did not exist). Voice id, model, and voice settings now come fromconfig.default.json.$FLOWS/.work/<outBase>rather than inside the skill folder.Not migrated (deliberately)
The 26 finished diagrams (~100 MB of generated MP4/GIF/MP3) stay out of git. Their tuned
CROP_TOP/CROP_BOTTOMrender matrix is preserved inreferences/pipeline.md, andreplication-flowships as the scene template.Verification
bash validate-skills.sh→ 8/8 skills validnode .github/scripts/sync-skills.js→ README table regeneratedMODE=checkframe renders with correct branding, then a full render producedsmoke.mp4(536 KB),smoke.gif(4.1 MB), andsmoke-reel.mp4(454 KB), with scratch auto-cleanedpaths.mjs(no API call, no key printed)The voiceover and caption composite steps are unchanged code and were not exercised against the ElevenLabs API in this PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01KoB1R6ZCYGe5PGG3SHx98r