-
Notifications
You must be signed in to change notification settings - Fork 0
feat: route Sume agent skills for SUM-619 #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| --- | ||
| name: sume-auth | ||
| description: Set up and verify Sume CLI authentication safely, including browser login, API-key readiness, doctor checks, and headless-terminal caveats without exposing secrets. | ||
| --- | ||
|
|
||
| # Sume Auth | ||
|
|
||
| Use this skill for local CLI readiness, login, and API-key configuration. | ||
|
|
||
| ## Discover | ||
|
|
||
| ```bash | ||
| sume --version | ||
| sume auth status --json | ||
| sume doctor --agent --json | ||
| ``` | ||
|
|
||
| ## Local Browser Login | ||
|
|
||
| Use browser login only when the browser is on the same machine as the CLI | ||
| process: | ||
|
|
||
| ```bash | ||
| sume login | ||
| sume auth status --json | ||
| ``` | ||
|
|
||
| ## Headless Or Remote Terminals | ||
|
|
||
| In remote/headless terminals, avoid long foreground login waiters because | ||
| approval URLs/codes can be hidden until timeout or retained in logs. Use the | ||
| short-lived process-log pattern in `sume/references/safety.md`, surface the | ||
| approval URL/code only to the requesting user, and delete logs after approval. | ||
|
|
||
| ## API Keys | ||
|
|
||
| Prefer approved local config or environment variables. Do not ask the user to | ||
| paste API keys into chat unless they explicitly choose manual key setup. | ||
|
|
||
| ## Not For | ||
|
|
||
| Do not run paid generation, uploads, downloads, MCP setup, or production | ||
| infrastructure work from this skill. Do not print auth URLs/codes, API keys, or | ||
| local config contents in final reports, issues, PRs, or persistent logs. |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| --- | ||
| name: sume-media-qa | ||
| description: Inspect and compare Sume media outputs locally with no provider calls, using duration/codec checks, still sheets, side-by-side comparisons, and artifact notes. | ||
| --- | ||
|
|
||
| # Sume Media QA | ||
|
|
||
| Use this skill to inspect existing Sume outputs without submitting new paid | ||
| generation jobs. | ||
|
|
||
| ## Get Files Only When Needed | ||
|
|
||
| ```bash | ||
| sume jobs result <job_id> --agent --json | ||
| sume jobs download <job_id> --output-dir ./sume-outputs --json | ||
| ``` | ||
|
|
||
| Use explicit output directories. Final reports should mention local filenames, | ||
| counts, dimensions, duration, and issues, not full media URLs. | ||
|
|
||
| ## Local Checks | ||
|
|
||
| Use local tools when available: | ||
|
|
||
| ```bash | ||
| ffprobe -v error -show_format -show_streams ./sume-outputs/video.mp4 | ||
| ``` | ||
|
|
||
| Check: | ||
|
|
||
| - duration and aspect ratio; | ||
| - codec/container compatibility; | ||
| - audio presence and sync; | ||
| - obvious visual artifacts; | ||
| - product/identity continuity; | ||
| - whether a side-by-side comparison or still sheet is needed. | ||
|
|
||
| ## Report | ||
|
|
||
| Return a compact QA note with files inspected, pass/fail observations, and | ||
| recommended next action. Keep provider internals and full URLs out of the | ||
| report. | ||
|
|
||
| ## Not For | ||
|
|
||
| Do not create Avatar or Avatar Video jobs from this skill. Use | ||
| `sume-avatar-video`, `sume-min-latency`, `sume-quality-experiment`, or | ||
| `sume-spend-capped-dogfood` when paid generation is needed. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| --- | ||
| name: sume-min-latency | ||
| description: Run the fastest safe Sume Avatar/Avatar Video iteration loop using async submits, batch state files, parallel polling, deferred downloads, and explicit quality/cost tradeoffs. | ||
| --- | ||
|
|
||
| # Sume Minimum Latency | ||
|
|
||
| Use this skill when the user wants the fastest useful Sume result while still | ||
| respecting paid gates and avoiding duplicate jobs. | ||
|
|
||
| ## Rules | ||
|
|
||
| 1. Run readiness only if local state is unknown: | ||
|
|
||
| ```bash | ||
| sume doctor --agent --json | ||
| ``` | ||
|
|
||
| 2. Use schema discovery only for the write you are about to make: | ||
|
|
||
| ```bash | ||
| sume tools schema avatars.create --json | ||
| sume tools schema avatar-videos.create --json | ||
| ``` | ||
|
|
||
| 3. Prefer async submit plus watch/result over blocking waits. | ||
| 4. For multiple independent candidates, draft a manifest and use batch | ||
| plan/create/watch/result with a persistent state file. | ||
| 5. Use stable idempotency keys. Reruns must skip already-created jobs. | ||
| 6. Do not download media unless local comparison is required or the user asks. | ||
| 7. If the user prioritizes speed/cost, explicitly choose `quality=standard`; | ||
| otherwise preserve the platform default quality. | ||
|
|
||
| ## Fast Avatar Video Loop | ||
|
|
||
| ```bash | ||
| sume avatar-videos create \ | ||
| --avatar-handle <ready_avatar_handle> \ | ||
| --script "Short reviewed script." \ | ||
| --quality standard \ | ||
| --confirm-paid \ | ||
| --agent \ | ||
| --json | ||
|
|
||
| sume jobs watch <job_id> --agent --json | ||
| sume jobs result <job_id> --agent --json | ||
| ``` | ||
|
|
||
| ## Report | ||
|
|
||
| Report job id, resource id, requested quality, wall-clock time if measured, | ||
| queue/run state, captured/refunded cost when available, and sanitized result | ||
| availability. Do not paste full media URLs. | ||
|
|
||
| ## Not For | ||
|
|
||
| Do not use this skill for broad quality exploration or side-by-side evaluation; | ||
| use `sume-quality-experiment`. Do not use it to bypass spend caps, paid | ||
| approval, idempotency, or state files. | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| --- | ||
| name: sume-quality-experiment | ||
| description: Design and run controlled Sume quality experiments with one-variable variants, reusable manifests, side-by-side artifact comparison, and rubric-based sanitized reports. | ||
| --- | ||
|
|
||
| # Sume Quality Experiment | ||
|
|
||
| Use this skill for controlled Avatar or Avatar Video comparisons. | ||
|
|
||
| ## Experiment Rules | ||
|
|
||
| 1. Write a short local manifest before paid calls. | ||
| 2. Change one variable per variant: quality tier, scene prompt, product image, | ||
| avatar handle, script, duration, or aspect ratio. | ||
| 3. Keep shared anchors identical across variants. | ||
| 4. Run no-cost checks first: schema discovery, manifest validation, and local | ||
| media inspection when outputs already exist. | ||
| 5. Ask for explicit paid approval and a spend cap before paid generation. | ||
| 6. Use idempotency keys and state files so reruns do not duplicate jobs. | ||
|
|
||
| ## Commands | ||
|
|
||
| ```bash | ||
| sume tools schema avatar-videos.create --json | ||
| sume avatar-videos batch plan ./experiment.videos.json --output-file ./experiment.plan.json --json | ||
| sume avatar-videos batch create ./experiment.videos.json --state-file ./experiment.state.json --confirm-paid --json | ||
| sume avatar-videos batch watch ./experiment.videos.json --state-file ./experiment.state.json --json | ||
| sume avatar-videos batch result ./experiment.videos.json --state-file ./experiment.state.json --json | ||
| ``` | ||
|
|
||
| Use `sume-media-qa` after results exist if the user needs local files, still | ||
| sheets, codec checks, or side-by-side comparison. | ||
|
|
||
| ## Rubric | ||
|
|
||
| Score or summarize: | ||
|
|
||
| - identity preservation; | ||
| - product fidelity; | ||
| - script/audio fit; | ||
| - scene continuity; | ||
| - artifact severity; | ||
| - metadata/readback usefulness; | ||
| - cost and elapsed time. | ||
|
|
||
| ## Not For | ||
|
|
||
| Do not use this skill for unrestricted exploration, raw provider endpoint | ||
| tests, or one-off fastest iteration. Use `sume-min-latency` for speed and | ||
| `sume-spend-capped-dogfood` for paid QA with a strict budget. |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the single-job minimum-latency path, this paid
avatar-videos createexample omits--idempotency-key, so following it after a timeout or retry can submit a second paid job despite rule 5 above requiring stable keys. I checked the CLI contract insrc/commands/avatar-videos.ts, where--idempotency-keyis an explicit option, andidempotencyHeaders()only forwardsoptions.idempotencyKey, so this command does not add a stable key automatically.Useful? React with 👍 / 👎.