Make use-runway-api self-contained and more helpful#14
Open
robinandeer wants to merge 1 commit intomainfrom
Open
Make use-runway-api self-contained and more helpful#14robinandeer wants to merge 1 commit intomainfrom
robinandeer wants to merge 1 commit intomainfrom
Conversation
- Co-locate runway-api.mjs with the skill (moved from scripts/ at repo root) so it installs cleanly via npx skills, Claude plugins, and Cursor plugins - Document concrete skill-dir path resolution with ordered fallbacks; add RUNWAY_SKILLS_DIR as a hint - Add opinionated "Presenting Generation Output" rules: lead with model + cost, embed images as Markdown, proactively offer local download, avoid raw signed URLs - Add Request Body Reference to rw-api-reference covering every generation POST endpoint (text_to_image, etc.) plus avatars, documents, realtime_sessions - Fix AUTH.md env var names to match the runtime (RUNWAY_SKILLS_API_SECRET, _STAGE, _BASE_URL) - Bump plugins to 2.1.0
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.
Goal
Acting on user feedback where the agent spent ~90s searching for
runway-api.mjsbefore giving up. The script shipped at repo root (outside the skill folder), whichnpx skills addand similar installers don't copy. Also improving output presentation and adding missing request-body examples torw-api-reference.Changes
scripts/runway-api.mjs→skills/use-runway-api/scripts/runway-api.mjs— follows the Anthropic skill convention of co-locating bundled resources withSKILL.md.<skill-dir>with an ordered fallback list (plugin caches,~/.claude/skills/,~/.agents/skills/, source checkout,$RUNWAY_SKILLS_DIR).rw-api-referencewith minimal JSON bodies for every generation POST endpoint plusavatars/documents/realtime_sessions.RUNWAY_SKILLS_API_SECRET,_STAGE,_BASE_URL).Known follow-up (not in this PR)
The
rw-generate-*skills from #13 use barescripts/generate_*.pyrelative paths, which will hit the same installation issuerunway-api.mjshad. Happy to follow up.