The skill published in 78deea2 has drifted from the code. It lists six
tools (recut_clip landed since), documents output_format as "1080p" when
it is an aspect enum, promises 3-15 clips when the model usually returns
2-6, and tells agents to poll every 10s against the MCP server's own
30-60s guidance.
Adds what an agent needs and cannot infer from the endpoints:
needs_confirmation arrives with HTTP 200, so an agent that does not know
it believes a job started when none did; the 402 and 429 shapes; when
each layout is wrong rather than only what it is; and the clip-length
and target_clips bounds.
reference.md carries the exact payloads and error shapes, README.md the
per-platform install.
57 lines
2.2 KiB
Markdown
57 lines
2.2 KiB
Markdown
# OpenShorts as an Agent Skill
|
|
|
|
`SKILL.md` plus `reference.md` are an
|
|
[Agent Skill](https://github.com/agentskills/agentskills): an open standard
|
|
adopted by 26+ agent products, so this one folder installs in Claude Code,
|
|
OpenClaw, Hermes, Codex, Gemini CLI, Cursor and VS Code without changes.
|
|
|
|
It teaches an agent to turn a long video into vertical 9:16 clips through the
|
|
OpenShorts API: which options actually produce good clips, which responses look
|
|
like errors but are not, and when to stop and ask the user.
|
|
|
|
## Setup
|
|
|
|
Create an API key (`osk_...`) in your account page at
|
|
[openshorts.app](https://www.openshorts.app/) and give it to the agent the way
|
|
that host stores credentials (`OPENSHORTS_API_KEY` where an env var is the
|
|
convention). The hosted free tier includes 20 minutes of source video per month
|
|
with a watermark; paid plans start at $12/month without one. OpenShorts is also
|
|
MIT-licensed and self-hostable, which needs a GPU machine, your own Google
|
|
Gemini key, and your own [Upload-Post](https://www.upload-post.com/) account for
|
|
the publishing steps.
|
|
|
|
If the host speaks MCP, add the server too so the agent gets typed tools instead
|
|
of raw HTTP:
|
|
|
|
```bash
|
|
claude mcp add --transport http openshorts https://mcp.openshorts.app/mcp \
|
|
--header "Authorization: Bearer osk_..."
|
|
```
|
|
|
|
The skill works either way: with MCP it calls the tools, without it it calls the
|
|
REST API documented in `reference.md`.
|
|
|
|
## Install
|
|
|
|
**Claude Code.** Copy the folder into `~/.claude/skills/` for every project, or
|
|
a project's `.claude/skills/` for one:
|
|
|
|
```bash
|
|
cp -r skills/openshorts ~/.claude/skills/
|
|
```
|
|
|
|
**OpenClaw.** Copy it into your OpenClaw `skills/` directory, or install from
|
|
git with `openclaw add <owner>/<repo>`.
|
|
|
|
**Hermes.** Skills live in `~/.hermes/skills/`; installing from the marketplace
|
|
runs a security scan first.
|
|
|
|
**Anything else.** Drop the folder wherever that agent reads skills from.
|
|
|
|
## Related
|
|
|
|
- `cli/` is the same API as a zero-dependency CLI: `uvx openshorts process <url> --wait`.
|
|
- `examples/n8n/` has the same pipeline as importable n8n workflows, including a
|
|
daily channel autopilot with Telegram approval.
|
|
- [openshorts.app/mcp](https://www.openshorts.app/mcp) documents the MCP server,
|
|
and [api.openshorts.app/docs](https://api.openshorts.app/docs) the full API.
|