Skip to content

Extract shared Runway context and reduce skill repetition#9

Open
robinandeer wants to merge 1 commit intomainfrom
robin/shared-runway-context
Open

Extract shared Runway context and reduce skill repetition#9
robinandeer wants to merge 1 commit intomainfrom
robin/shared-runway-context

Conversation

@robinandeer
Copy link
Copy Markdown
Collaborator

Problem

Durable Runway API rules — auth, output URL expiry, task polling, credits, moderation — are repeated across many skill docs. Updating one fact (e.g. API version) means touching multiple files and hoping none get missed.

Currently duplicated across skills:

  • Server-side auth + RUNWAYML_API_SECRET: 12 skills
  • Output URL expiry (24-48h): 6 skills
  • API version header: 6 skills
  • Task polling / waitForTaskOutput(): 7 skills

Solution

Add runway.md as a single shared context document for cross-cutting platform rules. Trim the most repetitive sections from recipe-full-setup, integrate-video, integrate-image, and integrate-audio to reference the shared doc instead. Also point the README's API Reference section to runway.md.

Borrowed from vercel/vercel-plugin which uses a repo-wide context document (vercel.md) to capture durable ecosystem guidance once, rather than restating it in every skill.

How to test

  1. Review runway.md for accuracy and completeness
  2. Check that the trimmed skills (integrate-video, integrate-image, integrate-audio, recipe-full-setup) still make sense when read standalone — model-specific tips are preserved, only generic platform rules were extracted

Made with Cursor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant