Metadata-Version: 2.4
Name: short-video-studio
Version: 0.2.3
Summary: Tools for producing Reels, Shorts and TikToks from real footage: HDR to SDR, sharpest frames, safe zones, text cards, covers, rep counter, stats log.
Author: ilteriskeskin
License-Expression: MIT
Project-URL: Homepage, https://github.com/ilteriskeskin/short-video-studio
Project-URL: Issues, https://github.com/ilteriskeskin/short-video-studio/issues
Keywords: reels,shorts,tiktok,ffmpeg,video,claude,content-creation
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Video
Classifier: Environment :: Console
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.21
Requires-Dist: Pillow>=9.2
Dynamic: license-file

# Short Video Studio

<p align="center"><img src="https://raw.githubusercontent.com/ilteriskeskin/short-video-studio/main/docs/demo.gif" width="300" alt="Demo: iPhone HDR fix, sharpest cover frame, safe zones and text cards on real footage"></p>

**A Claude skill that works like a short-form video producer, not a caption generator.**
It plans, briefs, edits and reviews Instagram Reels, YouTube Shorts and TikTok videos
*on your real footage*, and it keeps a rulebook that learns from your corrections.

[Türkçe README](README.tr.md)

Most "social media" skills write scripts and stop there. This one was distilled from
~6 months of real production on [@joryu.art](https://www.instagram.com/joryu.art/)
(martial arts, Turkish-language, ~230K monthly views) and ships the tools that production actually needed:

| Problem | Tool |
|---|---|
| iPhone HDR clips look washed out or blown out after editing | `to_sdr.py`: HLG/PQ → SDR BT.709, full resolution |
| Blurry cover / teaser frames from action footage | `sharpest_frames.py`: ranks frames by sharpness, exports the best |
| Text hidden under the app UI or cut off on the profile grid | `safe_zone_check.py`: draws UI zones and the 3:4 profile crop |
| On-screen counters with the wrong number | `rep_counter.py`: draft count from audio/motion + counter overlay |
| Text cards with missing Turkish/Japanese glyphs | `burn_cards.py`: timed cards, accent words, CJK-safe |
| Covers that don't say what the video is | `make_cover.py`: 1080x1920 cover / teaser, text kept inside the 3:4 crop |
| "Lots of views, no followers" | `stats_log.py`: skip rate, watch ratio, visit→follow vs your own baseline |

And the knowledge: which openings worked (with numbers), pacing and length rules,
platform-specific copy, cover and teaser rules, how to read stats, and honesty rules
that protect a creator's credibility. See
[the case study](plugins/short-video-studio/skills/short-video-studio/references/case-study.md).

## How it works

```
plan → shoot brief → ingest (probe, HDR fix) → OPENING FIRST → edit (cards, speed, counter)
     → cover + teaser → platform copy → you publish → read stats → write the lesson
```

The skill keeps a few plain files in your content folder:

- `CREATOR.md`: your voice, niche, schedule, boundaries (people who must never appear, etc.)
- `LEARNINGS.md`: numbered rules learned from your corrections; read before every task
- `STOCK.md`: every video's status and the calendar
- `stats.csv`: checkpoint stats per video

You stay in control: **Claude never publishes, schedules, buys or deletes your raw footage.**

## Install

### Claude Code (recommended: the tools need ffmpeg and file access)

```bash
/plugin install short-video-studio --marketplace ilteriskeskin/short-video-studio      # English
/plugin install short-video-studio-tr --marketplace ilteriskeskin/short-video-studio   # Türkçe
```
On older Claude Code versions: `/plugin marketplace add ilteriskeskin/short-video-studio`, then
`/plugin install short-video-studio@short-video-studio`.
Install one edition, not both (they would both trigger).

Or copy a skill folder manually:
```bash
cp -r plugins/short-video-studio/skills/short-video-studio ~/.claude/skills/
```

### Claude.ai / Claude Desktop
Download `short-video-studio.zip` (or `kisa-video-studyosu.zip`) from Releases and upload
it under **Settings → Capabilities → Skills** (code execution must be on). The writing,
planning and stats parts work everywhere; video tools need an environment with ffmpeg
and access to your files, so Claude Code or Cowork on your own computer is the best fit.

### Requirements for the tools
- ffmpeg + ffprobe (`brew install ffmpeg` / `apt install ffmpeg` / `winget install ffmpeg`)
- Python 3.9+ with `numpy` and `Pillow` (`python3 -m pip install numpy Pillow`)
- Check everything: `python3 scripts/preflight.py`

## Commands

After installing the plugin, these slash commands are available in Claude Code:

| Command | Does |
|---|---|
| `/short-video-studio:setup` | Creates `CREATOR.md`, `LEARNINGS.md`, `STOCK.md` in your content folder, checks tools, asks a few questions |
| `/short-video-studio:new-video <clip or idea>` | Full pipeline, stops for you to pick the opening |
| `/short-video-studio:cover <video>` | Sharpest frame → cover (and teaser) |
| `/short-video-studio:stats <video> <numbers or screenshots>` | Logs stats and diagnoses against your own baseline |
| `/short-video-studio:lesson <correction>` | Turns your correction into a permanent rule |
| `/short-video-studio:review <video>` | Pre-publish check: format, colour, cards, safe zones, numbers |

## Automation (hooks)

- **Session start:** when you open Claude Code in a content folder, `CREATOR.md` and
  `LEARNINGS.md` are loaded automatically, so your rules are never forgotten. Silent in
  any other folder.
- **After rendering:** when cards or a cover are rendered, a safe-zone preview is drawn
  automatically and Claude is told to check it before showing you the result.

## Use the tools without Claude: `svs`

The same tools ship as a normal command-line program:

```bash
pipx install git+https://github.com/ilteriskeskin/short-video-studio
svs init my-content --lang en      # workspace files
svs preflight
svs probe clip.MOV
svs to-sdr clip.MOV clip_sdr.mp4
svs sharpest clip_sdr.mp4 --top 6
svs cards clip_sdr.mp4 cards.json final.mp4
svs cover still.jpg cover.jpg --lines "A SWORD HAS ONE EDGE" "THE STAFF HAS *TWO*"
svs count final.mp4 --counter-start 205 --counter-out counter.json
svs stats add --video 07 --hours 6 --views 1379 --avg-watch 8 --length 52 --skip-rate 37.7
```
## Try it

> "Here is this morning's training clip (`stock/07_kicks/IMG_1234.MOV`). What should the
> opening be? Then make the cover."

> "Yesterday's reel: 1,343 views, 6 s average on 19.5 s, 49% skip rate, 16 profile
> visits, 1 follow. What went wrong?"

> "Count the strikes in this clip, my total before today was 205, and add a counter."

## Repository layout

```
.claude-plugin/marketplace.json        two plugins: English and Turkish editions
plugins/short-video-studio/            English plugin (commands/, hooks/, skills/)
  skills/short-video-studio/
    SKILL.md                           the workflow and hard rules
    references/                        hooks, editing, ffmpeg, covers, copy, planning, stats, honesty, case study
    scripts/                           the tools (source of truth)
    templates/                         CREATOR, LEARNINGS, STOCK, copy, cards example
    niches/                            domain packs (martial-arts is the reference pack)
    evals/                             trigger and behaviour checks
plugins/short-video-studio-tr/         Turkish plugin (same structure, kisa-video-studyosu)
tools/                                 selftest, script sync, zip builder
pyproject.toml                         the `svs` CLI package (built from the English skill's scripts/)
```

## Development

```bash
tools/selftest.sh          # runs every script on synthetic footage
tools/sync_scripts.sh      # copy scripts and hooks from the English plugin to the Turkish one
tools/build_zips.sh        # dist/*.zip for claude.ai upload
claude plugin validate .   # validate the marketplace and plugins
```

## Contributing

Niche packs are the easiest and most valuable contribution: what works and fails for
fitness, cooking, dance, climbing, crafts... See [CONTRIBUTING.md](CONTRIBUTING.md).

## Author

Built by **[@joryu.art](https://www.instagram.com/joryu.art/)**, an aikido and jo creator who
produces Reels, Shorts and TikToks with this exact workflow. The numbers in the case study
come from that account, so you can see the videos they describe.

## License

MIT
