clipwright/skills/openshorts/README.md
pedro-bento 4e82d60cbc fix: harden Postiz integration and align docs/CLI/n8n after review
- Postiz URL is now required (no built-in host); a key can never be sent to a default instance
- /api/postiz/scheduled normalizes scheduled_date and widens the default window
- Disabled channels are refused for posting; frontend excludes them from connected platforms
- 4xx instead of 500 on missing clip URL / bad schedule date; Postiz error bodies truncated
- Add tests/test_postiz.py (24 tests); fix remaining cloud-removal test drift
- CLI defaults to localhost:8000; n8n workflows fixed against the real routes
- Remove dead media-token auth code, stale copy (download_url/402) and doc drift
2026-10-04 17:25:17 +01:00

42 lines
1.6 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
Run OpenShorts yourself with Docker and point the agent at the instance
(`OPENSHORTS_API_URL`, default `http://localhost:8000`). No API key is required
on a self-hosted instance, but you do need a Google Gemini key in the server's
environment for the AI stages. The skill calls the REST API documented in
`reference.md`; publishing goes through your self-hosted
[Postiz](https://postiz.com/) instance.
## 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
- `examples/n8n/` has the same pipeline as importable n8n workflows, watched
channel in and scheduled clips out through Postiz.
- The generated API docs are served at `/docs` (OpenAPI) on any instance.