promptforge-video 0.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. promptforge_video-0.9.1/LICENSE +21 -0
  2. promptforge_video-0.9.1/PKG-INFO +267 -0
  3. promptforge_video-0.9.1/README.md +237 -0
  4. promptforge_video-0.9.1/pyproject.toml +44 -0
  5. promptforge_video-0.9.1/setup.cfg +4 -0
  6. promptforge_video-0.9.1/src/promptforge/__init__.py +4 -0
  7. promptforge_video-0.9.1/src/promptforge/batch.py +246 -0
  8. promptforge_video-0.9.1/src/promptforge/character.py +43 -0
  9. promptforge_video-0.9.1/src/promptforge/cinematic.py +112 -0
  10. promptforge_video-0.9.1/src/promptforge/cli.py +264 -0
  11. promptforge_video-0.9.1/src/promptforge/compare.py +50 -0
  12. promptforge_video-0.9.1/src/promptforge/core.py +244 -0
  13. promptforge_video-0.9.1/src/promptforge/data/__init__.py +0 -0
  14. promptforge_video-0.9.1/src/promptforge/data/dialects/__init__.py +0 -0
  15. promptforge_video-0.9.1/src/promptforge/data/dialects/kling.md +49 -0
  16. promptforge_video-0.9.1/src/promptforge/data/dialects/seedance.md +60 -0
  17. promptforge_video-0.9.1/src/promptforge/data/dialects/sora.md +46 -0
  18. promptforge_video-0.9.1/src/promptforge/data/dialects/veo.md +44 -0
  19. promptforge_video-0.9.1/src/promptforge/data/genres/comedy.md +11 -0
  20. promptforge_video-0.9.1/src/promptforge/data/genres/cyberpunk.md +11 -0
  21. promptforge_video-0.9.1/src/promptforge/data/genres/documentary.md +11 -0
  22. promptforge_video-0.9.1/src/promptforge/data/genres/education.md +11 -0
  23. promptforge_video-0.9.1/src/promptforge/data/genres/epic.md +11 -0
  24. promptforge_video-0.9.1/src/promptforge/data/genres/food.md +11 -0
  25. promptforge_video-0.9.1/src/promptforge/data/genres/healing.md +11 -0
  26. promptforge_video-0.9.1/src/promptforge/data/genres/horror.md +11 -0
  27. promptforge_video-0.9.1/src/promptforge/data/genres/index.json +64 -0
  28. promptforge_video-0.9.1/src/promptforge/data/genres/kids.md +11 -0
  29. promptforge_video-0.9.1/src/promptforge/data/genres/noir.md +11 -0
  30. promptforge_video-0.9.1/src/promptforge/data/genres/product.md +11 -0
  31. promptforge_video-0.9.1/src/promptforge/data/genres/romance.md +11 -0
  32. promptforge_video-0.9.1/src/promptforge/data/genres/sports.md +11 -0
  33. promptforge_video-0.9.1/src/promptforge/data/genres/tech.md +11 -0
  34. promptforge_video-0.9.1/src/promptforge/data/genres/travel.md +11 -0
  35. promptforge_video-0.9.1/src/promptforge/dialects.py +203 -0
  36. promptforge_video-0.9.1/src/promptforge/evals.py +184 -0
  37. promptforge_video-0.9.1/src/promptforge/exporters.py +29 -0
  38. promptforge_video-0.9.1/src/promptforge/fixprompt.py +54 -0
  39. promptforge_video-0.9.1/src/promptforge/grok.py +62 -0
  40. promptforge_video-0.9.1/src/promptforge/mcp_server.py +182 -0
  41. promptforge_video-0.9.1/src/promptforge/preview.py +102 -0
  42. promptforge_video-0.9.1/src/promptforge/providers.py +518 -0
  43. promptforge_video-0.9.1/src/promptforge/skillcheck.py +107 -0
  44. promptforge_video-0.9.1/src/promptforge_video.egg-info/PKG-INFO +267 -0
  45. promptforge_video-0.9.1/src/promptforge_video.egg-info/SOURCES.txt +63 -0
  46. promptforge_video-0.9.1/src/promptforge_video.egg-info/dependency_links.txt +1 -0
  47. promptforge_video-0.9.1/src/promptforge_video.egg-info/entry_points.txt +2 -0
  48. promptforge_video-0.9.1/src/promptforge_video.egg-info/top_level.txt +1 -0
  49. promptforge_video-0.9.1/tests/test_batch.py +112 -0
  50. promptforge_video-0.9.1/tests/test_character.py +17 -0
  51. promptforge_video-0.9.1/tests/test_cinematic.py +52 -0
  52. promptforge_video-0.9.1/tests/test_compare.py +31 -0
  53. promptforge_video-0.9.1/tests/test_core.py +28 -0
  54. promptforge_video-0.9.1/tests/test_dialects.py +103 -0
  55. promptforge_video-0.9.1/tests/test_dialects_v2.py +79 -0
  56. promptforge_video-0.9.1/tests/test_evals.py +85 -0
  57. promptforge_video-0.9.1/tests/test_exporters.py +40 -0
  58. promptforge_video-0.9.1/tests/test_failure_cases.py +46 -0
  59. promptforge_video-0.9.1/tests/test_fixprompt.py +83 -0
  60. promptforge_video-0.9.1/tests/test_genre_assets.py +45 -0
  61. promptforge_video-0.9.1/tests/test_grok.py +149 -0
  62. promptforge_video-0.9.1/tests/test_preview.py +80 -0
  63. promptforge_video-0.9.1/tests/test_providers.py +372 -0
  64. promptforge_video-0.9.1/tests/test_skill_pack.py +77 -0
  65. promptforge_video-0.9.1/tests/test_skillcheck.py +71 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 PromptForge Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,267 @@
1
+ Metadata-Version: 2.4
2
+ Name: promptforge-video
3
+ Version: 0.9.1
4
+ Summary: Local-first AI video storyboard generator with optional multi-provider LLM enhancement (Grok, OpenAI, Claude, Gemini, DeepSeek, OpenRouter, custom OpenAI-compatible endpoints), batch project-file mode, self-contained HTML storyboard previews, a cinematic prompt builder with lint + auto-fix, character consistency sheets, Agent Skill safety checker with scoring + SARIF, and an MCP server. No API key required.
5
+ Author: PromptForge Contributors
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/lis022892-dot/promptforge-ai
8
+ Project-URL: Repository, https://github.com/lis022892-dot/promptforge-ai
9
+ Project-URL: Issues, https://github.com/lis022892-dot/promptforge-ai/issues
10
+ Project-URL: Changelog, https://github.com/lis022892-dot/promptforge-ai/blob/main/CHANGELOG.md
11
+ Project-URL: Documentation, https://github.com/lis022892-dot/promptforge-ai/blob/main/docs/USAGE.md
12
+ Keywords: ai,agent-skills,mcp,storyboard,prompt-engineering,short-video,ai-video,cinematic-prompts,veo,sora,seedance,kling,text-to-video
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: End Users/Desktop
17
+ Classifier: License :: OSI Approved :: MIT License
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python :: 3
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Topic :: Multimedia :: Video
24
+ Classifier: Topic :: Software Development :: Libraries
25
+ Classifier: Topic :: Text Processing :: Linguistic
26
+ Requires-Python: >=3.10
27
+ Description-Content-Type: text/markdown
28
+ License-File: LICENSE
29
+ Dynamic: license-file
30
+
31
+ # PromptForge AI 🔨
32
+
33
+ **Local-first AI video toolkit: storyboard generator, character consistency sheets, Agent Skill safety checker, and an MCP server — now with optional multi-provider LLM enhancement (Grok, OpenAI, Claude, Gemini, DeepSeek, OpenRouter, or your own OpenAI-compatible endpoint).**
34
+ Works fully offline with no API key; add any provider's API key and the same storyboards get enhanced by that provider's model. Pure Python standard library, zero dependencies either way.
35
+
36
+ 把一句话想法,变成能直接喂给 AI 视频工具的分镜表;把角色定妆锁死不串样;顺手还能给 Agent Skill 做带评分的安全体检。
37
+
38
+ ![CI](https://github.com/lis022892-dot/promptforge-ai/actions/workflows/ci.yml/badge.svg)
39
+
40
+ ## Demo
41
+
42
+ **[▶ Watch the demo video (52s, 1280×720)](https://github.com/lis022892-dot/promptforge-ai/blob/main/docs/demo/promptforge-demo.mp4)** — a real run of the actual CLI, fully offline, no API key, no mocks. Every line of output in the video is what the tool printed on a real run:
43
+
44
+ | Time | What happens |
45
+ |---|---|
46
+ | 0:04 | `promptforge storyboard "a lone swordsman in the rain at night…"` → a 5-shot storyboard with beats, camera moves, per-shot prompts and voiceover lines |
47
+ | 0:17 | `promptforge cinematic … --genre epic --camera imax --self-check` → a 5-stage film-grade prompt (IMAX + Panavision anchor, imperfections, breath-like handheld, quiet ending), self-check **10/10** |
48
+ | 0:30 | `promptforge lint-prompt` → the naive prompt `"epic cinematic 4K video of a swordsman"` scores **0/10**; the generated cinematic prompt scores **10/10** |
49
+ | 0:42 | `promptforge storyboard … --provider auto` → no key set, so it falls back to local generation with a clear notice; set any provider key (Step 4 lists them) to enhance instead |
50
+
51
+ The video file also lives in this repo at [`docs/demo/promptforge-demo.mp4`](docs/demo/promptforge-demo.mp4).
52
+
53
+ ## Building with Grok
54
+
55
+ PromptForge is built to work **with Grok**: the local generator produces a deterministic storyboard skeleton (beats, camera moves, timestamps, platform presets), and the optional **Grok provider** sends that skeleton to a Grok model on the [xAI API](https://docs.x.ai) to rewrite every shot's visual prompt and English voiceover line — richer, more specific prompts, same structure.
56
+
57
+ - **API**: xAI's OpenAI-compatible API, base URL `https://api.x.ai/v1`, endpoint `/chat/completions`, called with nothing but `urllib` from the standard library.
58
+ - **Model**: `grok-4.7` by default (the flagship Grok model in the official xAI docs). Override with `--model` or the `PROMPTFORGE_GROK_MODEL` environment variable.
59
+ - **Key handling**: the key is read *only* from the `XAI_API_KEY` environment variable. It is never hard-coded, never written to a file, and never printed.
60
+ - **Offline fallback**: no key, or any API error → you get the local offline storyboard plus a clear notice on stderr. Nothing breaks.
61
+
62
+ ```bash
63
+ # 1) Get a key at https://console.x.ai and export it (never commit it)
64
+ export XAI_API_KEY="xai-..." # PowerShell: $env:XAI_API_KEY = "xai-..."
65
+
66
+ # 2) Enhance a storyboard with Grok
67
+ promptforge storyboard "a funny cat chef" --provider grok
68
+ promptforge storyboard "一只小羊在海边看日落的治愈日常" --provider grok --model grok-4.7 --format json
69
+
70
+ # 3) No key set? It still works — local generation, with a fallback notice
71
+ promptforge storyboard "a funny cat chef" --provider grok
72
+ ```
73
+
74
+ The MCP tools accept the same options: pass `"provider": "grok"` (and optionally `"model"`) to `make_storyboard` or `storyboard_srt`, with `XAI_API_KEY` set in the MCP server's environment.
75
+
76
+ ## Multi-provider support
77
+
78
+ Grok is the headline provider (see above), but the same enhancement layer speaks to six more providers — each implemented against that vendor's official docs, still with nothing but `urllib`:
79
+
80
+ | Provider (`--provider`) | API key env var | Default model | Wire format | Get a key |
81
+ |---|---|---|---|---|
82
+ | `grok` | `XAI_API_KEY` | `grok-4.7` | xAI, OpenAI-compatible (`https://api.x.ai/v1`) | [console.x.ai](https://console.x.ai) |
83
+ | `openai` | `OPENAI_API_KEY` | `gpt-6.2-astra` | OpenAI Chat Completions | [platform.openai.com/api-keys](https://platform.openai.com/api-keys) |
84
+ | `claude` | `ANTHROPIC_API_KEY` | `claude-opus-5-5` | Anthropic Messages API (native format) | [console.anthropic.com](https://console.anthropic.com/settings/keys) |
85
+ | `gemini` | `GEMINI_API_KEY` (or `GOOGLE_API_KEY`) | `gemini-4-carbon` | Gemini `generateContent` (native format) | [aistudio.google.com/apikey](https://aistudio.google.com/apikey) |
86
+ | `deepseek` | `DEEPSEEK_API_KEY` | `deepseek-chat` | OpenAI-compatible | [platform.deepseek.com](https://platform.deepseek.com/api_keys) |
87
+ | `openrouter` | `OPENROUTER_API_KEY` | `openai/gpt-4o` | OpenAI-compatible (many models, one key) | [openrouter.ai/keys](https://openrouter.ai/keys) |
88
+ | `custom` | `PROMPTFORGE_CUSTOM_API_KEY` | — (set one, see below) | Any OpenAI-compatible endpoint | your own endpoint |
89
+
90
+ ```bash
91
+ # Use whichever key you have
92
+ export ANTHROPIC_API_KEY="sk-ant-..."
93
+ promptforge storyboard "a funny cat chef" --provider claude
94
+
95
+ # Or let PromptForge pick: first key found wins, in this fixed priority:
96
+ # grok → openai → claude → gemini → deepseek → openrouter → custom
97
+ promptforge storyboard "a funny cat chef" --provider auto
98
+
99
+ # Any OpenAI-compatible endpoint (local server, gateway, another vendor):
100
+ export PROMPTFORGE_CUSTOM_BASE_URL="https://llm.example.com/v1"
101
+ export PROMPTFORGE_CUSTOM_API_KEY="..." # optional if your endpoint needs none
102
+ export PROMPTFORGE_CUSTOM_MODEL="my-model" # or pass --model
103
+ promptforge storyboard "a funny cat chef" --provider custom
104
+ ```
105
+
106
+ Rules that hold for **every** provider:
107
+
108
+ - **Model choice**: `--model` wins, then `PROMPTFORGE_<PROVIDER>_MODEL` (e.g. `PROMPTFORGE_OPENAI_MODEL`), then the default in the table.
109
+ - **Keys are env-only**: never hard-coded, never written to a file, never printed — error messages are even scrubbed of the key before they reach you.
110
+ - **Fallback**: no key, an HTTP/network error, or an unusable reply → the local offline storyboard plus a clear notice on stderr. The local skeleton (beats, camera, timestamps) is never changed by a provider; the model only rewrites the prompts, voiceover lines and music direction.
111
+ - **MCP**: the same `provider` / `model` arguments work on `make_storyboard` and `storyboard_srt`, including `"auto"`.
112
+
113
+ > Honest note: the provider clients are covered by mocked-network unit tests (request construction, native-format parsing for Claude/Gemini, fallbacks, key-leak assertions). No live paid API call is made by the test suite.
114
+
115
+ ## Why this, why now (Dec 2026)
116
+
117
+ GitHub Trending in December 2026 is dominated by three things:
118
+
119
+ 1. **Agent Skills** — reusable `SKILL.md` packs are the new extension format for coding agents.
120
+ 2. **MCP servers** — one protocol so Claude Code, Cursor, Gemini CLI and Copilot can all call the same tools.
121
+ 3. **AI short-video tooling** — local-first video creation tools are breakout hits.
122
+
123
+ PromptForge sits exactly at that intersection — and unlike most of them, it runs **fully offline with zero dependencies**, so you can read every line before you trust it.
124
+
125
+ ## Features
126
+
127
+ - 🎬 **Storyboard generator** — one-line idea → shot list with visual prompt, negative prompt, camera move, timestamps, music direction and an English voiceover line per shot.
128
+ - **15 genres**, bilingual detection (EN / 中文): healing 治愈 · comedy 搞笑 · epic 史诗 · romance 爱情 · product 产品广告 · education 教程科普 · travel 旅行 · horror 恐怖 · kids 儿童 · tech 科技 · noir 黑色电影 · cyberpunk 赛博朋克 · documentary 纪录片 · food 美食 · sports 运动
129
+ - **Platform presets**: `short` / `douyin` / `tiktok` (9:16), `youtube` / `bilibili` (16:9), `square` (1:1), each with production notes
130
+ - **10 story beats**: Hook → Setup → Build → Turn → Escalation → Detail → Reaction → Payoff → Callback → Button
131
+ - **Exports**: Markdown, JSON, **SRT subtitles**, **CSV shot list**
132
+ - 🧍 **Character consistency sheets** — the #1 AI-video pain is a character drifting between shots. Generate a lock prompt once, plus 6 turnaround and 6 expression prompts, and paste it into every shot.
133
+ - 🛡️ **Agent Skill checker** — validates `SKILL.md` frontmatter and scans for hard-coded keys (OpenAI / GitHub / AWS / Google / Slack / JWT / private keys), destructive commands, pipe-to-shell installs, dynamic code execution and prompt-injection phrases. Returns a **0–100 safety score with an A–F grade**, plus **SARIF** output for GitHub code scanning. **Read-only: it never executes the skill.**
134
+ - 🎥 **Cinematic 5-stage prompt builder** — `promptforge cinematic "idea"` writes model-ready video prompts (Sora / Veo / Kling / Seedance / Runway) in the five-stage structure used by top AI-short-film creators: core-theme tags → character & scene with deliberate imperfections → real camera/lens anchoring (IMAX + Panavision C-series, ARRI Alexa 65, anamorphic, 16mm) → breath-like handheld camera rules → per-second storyboard beats with an empty ending, production-audio-only rule and no-readable-text guardrails. Fifteen genre packs (data files in `src/promptforge/data/genres/`, v0.9 adds noir, cyberpunk, documentary, food and sports). **`promptforge lint-prompt`** scores any prompt against the 10-item checklist — naive prompts score 0–3/10; a generated one self-checks at 10/10.
135
+ - 🔧 **Prompt auto-fix** — `promptforge fix-prompt "epic cinematic 4K video of a swordsman…"` rebuilds a naive prompt with the same five-stage machinery and reports the real lint scores on both sides (the bundled example: **0/10 → 10/10**). Genre auto-detects; vertical prompts stay vertical.
136
+ - 🌐 **HTML storyboard preview** — `promptforge preview "idea" -o plan.html` renders a storyboard as **one self-contained HTML page**: shot cards with timestamps, camera, full prompts and voiceover, inline CSS only, no external resources — opens offline, shares as a single file. Also renders an existing storyboard JSON (`--from-json`).
137
+ - 🔌 **MCP server** — 6 tools (`make_storyboard`, `storyboard_srt`, `make_character_sheet`, `check_skill`, `preview_storyboard`, `fix_prompt`) over stdio JSON-RPC, ready for any MCP client. The repo ships a Registry-ready [`server.json`](server.json) (official MCP Registry schema) and per-host install guides in [docs/MCP.md](docs/MCP.md).
138
+ - 🎯 **Model dialect validation** — `--model-target seedance|kling|veo|sora` on `storyboard` / `cinematic` validates output against the target model's *documented* limits (Seedance: 4–15 s generations, `@Image 1` reference roles, ≤9/≤3/≤3 reference files; Kling: 16:9/9:16/1:1 only, 2,500-char prompt cap, negatives in the separate `negative_prompt` field; Veo 3.1: discrete 4/6/8 s lengths, 16:9/9:16 only, negatives in the `negativePrompt` parameter; Sora 2: discrete 4/8/12/16/20 s `seconds` parameter, no negative field — steer positively). Violations print precise warnings; output is never silently rewritten. Dialect sheets live in `src/promptforge/data/dialects/`.
139
+ - 🧪 **Regression evals** — `promptforge eval` runs the declarative case suite in [`evals/cases.json`](evals/cases.json) (31 cases over storyboard / cinematic / lint / fix / dialects / batch: score ranges, required phrases, warning triggers) and reports a pass rate; a failing case exits non-zero, and CI runs the suite on every push, so generator changes can't silently regress prompt quality.
140
+ - 🗂️ **Batch / project mode** — `promptforge batch project.json -o out/ --cinematic` turns a manifest (JSON or a Markdown list, per-item overrides after a `|` suffix) into a folder of storyboards: Markdown + JSON per item, optional cinematic prompts, an `index.html` browsing page and an `index.json` summary. One bad item is recorded and skipped; a malformed file stops the run.
141
+ - ⚖️ **Compare** — `promptforge compare "idea"` puts the local storyboard and the cinematic prompt side by side (size, lint scores, what each carries, when to use which). Fully offline.
142
+ - 🧩 **Also an Agent Skill** — [`skills/promptforge/SKILL.md`](skills/promptforge/SKILL.md) plus `.claude-plugin/` manifests package PromptForge for Claude Code / agent hosts; the skill passes PromptForge's own checker at **100/100 (grade A)**.
143
+ - 🤖 **Multi-provider LLM enhancement (optional)** — `--provider grok|openai|claude|gemini|deepseek|openrouter|custom|auto` enhances storyboards with the model of your choice (see [Building with Grok](#building-with-grok) and [Multi-provider support](#multi-provider-support)). Off by default; automatic local fallback without a key.
144
+ - 📦 **Zero dependencies** — Python 3.10+ standard library only, including every provider API client (`urllib`).
145
+
146
+ ## Quick start
147
+
148
+ ```bash
149
+ pip install -e .
150
+
151
+ # 1) Storyboard (add --platform youtube, --format srt|csv|json as needed)
152
+ promptforge storyboard "一只小羊在海边看日落的治愈日常" --seconds 25 --shots 5
153
+
154
+ # 2) Character consistency sheet
155
+ promptforge character "Mooncurl" "cream-yellow lamb, two moon curls on head" "mint moon pajamas, orange scarf"
156
+
157
+ # 3) Check an Agent Skill before you install it
158
+ promptforge check-skill examples/demo-skill
159
+ promptforge check-skill ~/.claude/skills/some-skill-you-downloaded --format text
160
+
161
+ # 4) Run as an MCP server
162
+ promptforge mcp
163
+
164
+ # 5) Optional: enhance with an LLM provider (needs that provider's key, see above)
165
+ promptforge storyboard "a funny cat chef" --provider grok # or openai / claude / gemini / …
166
+ promptforge storyboard "a funny cat chef" --provider auto # first key found wins
167
+
168
+ # 6) Share the plan as one self-contained HTML page
169
+ promptforge preview "a funny cat chef" -o plan.html
170
+
171
+ # 7) Rescue a naive prompt (prints before/after lint scores + the fixed prompt)
172
+ promptforge fix-prompt "epic cinematic 4K video of a cat chef, stunning"
173
+
174
+ # 8) Compare the two artefacts, and check a prompt against a model's real limits
175
+ promptforge compare "a funny cat chef"
176
+ promptforge cinematic "a swordsman in the rain" --duration 25 --model-target seedance # warns: 25s > 15s per generation
177
+ promptforge cinematic "a lighthouse at dusk" --duration 5 --model-target veo # warns: 5s is not a Veo length (4/6/8)
178
+
179
+ # 9) Run the regression eval suite (also runs in CI)
180
+ promptforge eval
181
+
182
+ # 10) Batch mode: a whole series from one manifest
183
+ promptforge batch project.json -o out/ --cinematic
184
+ ```
185
+
186
+ Full guide: [docs/USAGE.md](docs/USAGE.md) · **Recipes: [docs/COOKBOOK.md](docs/COOKBOOK.md)** · MCP details: [docs/MCP.md](docs/MCP.md) · What's next: [docs/ROADMAP.md](docs/ROADMAP.md)
187
+
188
+ MCP client config:
189
+
190
+ ```json
191
+ {
192
+ "mcpServers": {
193
+ "promptforge": { "command": "promptforge", "args": ["mcp"] }
194
+ }
195
+ }
196
+ ```
197
+
198
+ ## Example output (abridged)
199
+
200
+ ```text
201
+ # Storyboard: a funny cat chef
202
+ - Genre: comedy | Platform: short (9:16) | Total: 25s
203
+ | 1 | Hook | 0.0–5.0s | quick zoom-in |
204
+ ## Shot 1 — Hook (5.0s)
205
+ - Prompt: `a funny cat chef, beat: hook, bright daylight, exaggerated expressions, quick cuts, ...`
206
+ - Negative: `extra fingers, deformed hands, face changing between shots, flicker, watermark, ...`
207
+
208
+ Skill check: Score: 100/100 (grade A) — OK
209
+ ```
210
+
211
+ ## Examples
212
+
213
+ Real runs, not mock-ups — every file in [examples/](examples/README.md) is actual CLI output, with the exact command that produced it:
214
+
215
+ - [storyboard-example.md](examples/storyboard-example.md) — a complete 5-shot storyboard (rain-soaked swordsman)
216
+ - [cinematic-example.txt](examples/cinematic-example.txt) — a complete five-stage cinematic prompt, self-check 10/10
217
+ - [preview-example.html](examples/preview-example.html) — the same storyboard as a self-contained HTML page (open it in a browser)
218
+ - [fix-prompt-example.md](examples/fix-prompt-example.md) — a naive prompt rebuilt by `fix-prompt`: lint 0/10 → 10/10
219
+
220
+ Eight end-to-end workflows built from these commands live in the [Cookbook](docs/COOKBOOK.md). Real failure modes — bad prompts, the exact lint/dialect findings and their repaired scores — are collected in the [failure → fix case library](docs/failure-cases.md).
221
+
222
+ ## Safety & legality
223
+
224
+ - **Defensive and creative tooling only**: it generates prompts and *detects* risky patterns. No scraping, no account automation, no engagement manipulation, no voice/face cloning, no bypass of any platform rule. See [SECURITY.md](SECURITY.md).
225
+ - All sample content is original. MIT licensed — use it, fork it, ship it.
226
+
227
+ ## Roadmap
228
+
229
+ - [x] Genre packs: product, education, travel, horror, kids, tech
230
+ - [x] Character consistency sheets
231
+ - [x] SRT / CSV export, SARIF output, safety scoring
232
+ - [x] Grok / xAI API integration: OpenAI-compatible endpoint (`https://api.x.ai/v1`) for richer, Grok-enhanced storyboards (bring your own `XAI_API_KEY`, off by default, local fallback)
233
+ - [x] Multi-provider support: OpenAI, Claude (Messages API), Gemini (generateContent), DeepSeek, OpenRouter and custom OpenAI-compatible endpoints, plus an `auto` mode that picks the first configured key
234
+ - [x] HTML storyboard preview page (`promptforge preview`), prompt auto-fix (`promptforge fix-prompt`), examples library and cookbook
235
+ - [x] Model dialect layer v1 (Seedance + Kling validation), `promptforge compare`, MCP `server.json` + per-host install guides, Agent Skill packaging (`skills/promptforge/` + `.claude-plugin/`)
236
+ - [x] PyPI release pipeline: full packaging metadata, a Trusted Publishing (OIDC, token-less) workflow that publishes on GitHub Release, and build/wheel smoke checks — see [docs/RELEASING.md](docs/RELEASING.md). *The one remaining step is the maintainer's one-time Trusted Publisher registration on PyPI.*
237
+ - [x] Regression eval suite (`promptforge eval`, 22 declarative cases, wired into CI), dialect layer v2 (Veo + Sora), and genre packs as data files (`src/promptforge/data/genres/` + `index.json`)
238
+ - [x] Batch / project-file mode (`promptforge batch`), five more genre packs (noir, cyberpunk, documentary, food, sports — 15 total), a [failure → fix case library](docs/failure-cases.md) with tool-verified scores, and the eval suite grown to 31 cases including a batch kind
239
+
240
+ The forward backlog — v1.0 release criteria (PyPI listing, MCP Registry submission, shot recipe cards, check-skill spec checks) and long-term — lives in [docs/ROADMAP.md](docs/ROADMAP.md).
241
+
242
+ ## Use it as an Agent Skill
243
+
244
+ ```bash
245
+ /plugin marketplace add lis022892-dot/promptforge-ai # in Claude Code
246
+ /plugin install promptforge@promptforge-ai
247
+ ```
248
+
249
+ …or copy `skills/promptforge/` into your host's skills directory. The
250
+ skill teaches the agent every command above (and the key-safety rules:
251
+ keys only from the environment, never through chat).
252
+
253
+ ## Contributing
254
+
255
+ See [CONTRIBUTING.md](CONTRIBUTING.md). Run the tests before you push:
256
+
257
+ ```bash
258
+ python -m pytest tests/ -q
259
+ ```
260
+
261
+ ## Changelog
262
+
263
+ See [CHANGELOG.md](CHANGELOG.md). Current version: **0.9.1**.
264
+
265
+ ## License
266
+
267
+ MIT © 2026 PromptForge Contributors
@@ -0,0 +1,237 @@
1
+ # PromptForge AI 🔨
2
+
3
+ **Local-first AI video toolkit: storyboard generator, character consistency sheets, Agent Skill safety checker, and an MCP server — now with optional multi-provider LLM enhancement (Grok, OpenAI, Claude, Gemini, DeepSeek, OpenRouter, or your own OpenAI-compatible endpoint).**
4
+ Works fully offline with no API key; add any provider's API key and the same storyboards get enhanced by that provider's model. Pure Python standard library, zero dependencies either way.
5
+
6
+ 把一句话想法,变成能直接喂给 AI 视频工具的分镜表;把角色定妆锁死不串样;顺手还能给 Agent Skill 做带评分的安全体检。
7
+
8
+ ![CI](https://github.com/lis022892-dot/promptforge-ai/actions/workflows/ci.yml/badge.svg)
9
+
10
+ ## Demo
11
+
12
+ **[▶ Watch the demo video (52s, 1280×720)](https://github.com/lis022892-dot/promptforge-ai/blob/main/docs/demo/promptforge-demo.mp4)** — a real run of the actual CLI, fully offline, no API key, no mocks. Every line of output in the video is what the tool printed on a real run:
13
+
14
+ | Time | What happens |
15
+ |---|---|
16
+ | 0:04 | `promptforge storyboard "a lone swordsman in the rain at night…"` → a 5-shot storyboard with beats, camera moves, per-shot prompts and voiceover lines |
17
+ | 0:17 | `promptforge cinematic … --genre epic --camera imax --self-check` → a 5-stage film-grade prompt (IMAX + Panavision anchor, imperfections, breath-like handheld, quiet ending), self-check **10/10** |
18
+ | 0:30 | `promptforge lint-prompt` → the naive prompt `"epic cinematic 4K video of a swordsman"` scores **0/10**; the generated cinematic prompt scores **10/10** |
19
+ | 0:42 | `promptforge storyboard … --provider auto` → no key set, so it falls back to local generation with a clear notice; set any provider key (Step 4 lists them) to enhance instead |
20
+
21
+ The video file also lives in this repo at [`docs/demo/promptforge-demo.mp4`](docs/demo/promptforge-demo.mp4).
22
+
23
+ ## Building with Grok
24
+
25
+ PromptForge is built to work **with Grok**: the local generator produces a deterministic storyboard skeleton (beats, camera moves, timestamps, platform presets), and the optional **Grok provider** sends that skeleton to a Grok model on the [xAI API](https://docs.x.ai) to rewrite every shot's visual prompt and English voiceover line — richer, more specific prompts, same structure.
26
+
27
+ - **API**: xAI's OpenAI-compatible API, base URL `https://api.x.ai/v1`, endpoint `/chat/completions`, called with nothing but `urllib` from the standard library.
28
+ - **Model**: `grok-4.7` by default (the flagship Grok model in the official xAI docs). Override with `--model` or the `PROMPTFORGE_GROK_MODEL` environment variable.
29
+ - **Key handling**: the key is read *only* from the `XAI_API_KEY` environment variable. It is never hard-coded, never written to a file, and never printed.
30
+ - **Offline fallback**: no key, or any API error → you get the local offline storyboard plus a clear notice on stderr. Nothing breaks.
31
+
32
+ ```bash
33
+ # 1) Get a key at https://console.x.ai and export it (never commit it)
34
+ export XAI_API_KEY="xai-..." # PowerShell: $env:XAI_API_KEY = "xai-..."
35
+
36
+ # 2) Enhance a storyboard with Grok
37
+ promptforge storyboard "a funny cat chef" --provider grok
38
+ promptforge storyboard "一只小羊在海边看日落的治愈日常" --provider grok --model grok-4.7 --format json
39
+
40
+ # 3) No key set? It still works — local generation, with a fallback notice
41
+ promptforge storyboard "a funny cat chef" --provider grok
42
+ ```
43
+
44
+ The MCP tools accept the same options: pass `"provider": "grok"` (and optionally `"model"`) to `make_storyboard` or `storyboard_srt`, with `XAI_API_KEY` set in the MCP server's environment.
45
+
46
+ ## Multi-provider support
47
+
48
+ Grok is the headline provider (see above), but the same enhancement layer speaks to six more providers — each implemented against that vendor's official docs, still with nothing but `urllib`:
49
+
50
+ | Provider (`--provider`) | API key env var | Default model | Wire format | Get a key |
51
+ |---|---|---|---|---|
52
+ | `grok` | `XAI_API_KEY` | `grok-4.7` | xAI, OpenAI-compatible (`https://api.x.ai/v1`) | [console.x.ai](https://console.x.ai) |
53
+ | `openai` | `OPENAI_API_KEY` | `gpt-6.2-astra` | OpenAI Chat Completions | [platform.openai.com/api-keys](https://platform.openai.com/api-keys) |
54
+ | `claude` | `ANTHROPIC_API_KEY` | `claude-opus-5-5` | Anthropic Messages API (native format) | [console.anthropic.com](https://console.anthropic.com/settings/keys) |
55
+ | `gemini` | `GEMINI_API_KEY` (or `GOOGLE_API_KEY`) | `gemini-4-carbon` | Gemini `generateContent` (native format) | [aistudio.google.com/apikey](https://aistudio.google.com/apikey) |
56
+ | `deepseek` | `DEEPSEEK_API_KEY` | `deepseek-chat` | OpenAI-compatible | [platform.deepseek.com](https://platform.deepseek.com/api_keys) |
57
+ | `openrouter` | `OPENROUTER_API_KEY` | `openai/gpt-4o` | OpenAI-compatible (many models, one key) | [openrouter.ai/keys](https://openrouter.ai/keys) |
58
+ | `custom` | `PROMPTFORGE_CUSTOM_API_KEY` | — (set one, see below) | Any OpenAI-compatible endpoint | your own endpoint |
59
+
60
+ ```bash
61
+ # Use whichever key you have
62
+ export ANTHROPIC_API_KEY="sk-ant-..."
63
+ promptforge storyboard "a funny cat chef" --provider claude
64
+
65
+ # Or let PromptForge pick: first key found wins, in this fixed priority:
66
+ # grok → openai → claude → gemini → deepseek → openrouter → custom
67
+ promptforge storyboard "a funny cat chef" --provider auto
68
+
69
+ # Any OpenAI-compatible endpoint (local server, gateway, another vendor):
70
+ export PROMPTFORGE_CUSTOM_BASE_URL="https://llm.example.com/v1"
71
+ export PROMPTFORGE_CUSTOM_API_KEY="..." # optional if your endpoint needs none
72
+ export PROMPTFORGE_CUSTOM_MODEL="my-model" # or pass --model
73
+ promptforge storyboard "a funny cat chef" --provider custom
74
+ ```
75
+
76
+ Rules that hold for **every** provider:
77
+
78
+ - **Model choice**: `--model` wins, then `PROMPTFORGE_<PROVIDER>_MODEL` (e.g. `PROMPTFORGE_OPENAI_MODEL`), then the default in the table.
79
+ - **Keys are env-only**: never hard-coded, never written to a file, never printed — error messages are even scrubbed of the key before they reach you.
80
+ - **Fallback**: no key, an HTTP/network error, or an unusable reply → the local offline storyboard plus a clear notice on stderr. The local skeleton (beats, camera, timestamps) is never changed by a provider; the model only rewrites the prompts, voiceover lines and music direction.
81
+ - **MCP**: the same `provider` / `model` arguments work on `make_storyboard` and `storyboard_srt`, including `"auto"`.
82
+
83
+ > Honest note: the provider clients are covered by mocked-network unit tests (request construction, native-format parsing for Claude/Gemini, fallbacks, key-leak assertions). No live paid API call is made by the test suite.
84
+
85
+ ## Why this, why now (Dec 2026)
86
+
87
+ GitHub Trending in December 2026 is dominated by three things:
88
+
89
+ 1. **Agent Skills** — reusable `SKILL.md` packs are the new extension format for coding agents.
90
+ 2. **MCP servers** — one protocol so Claude Code, Cursor, Gemini CLI and Copilot can all call the same tools.
91
+ 3. **AI short-video tooling** — local-first video creation tools are breakout hits.
92
+
93
+ PromptForge sits exactly at that intersection — and unlike most of them, it runs **fully offline with zero dependencies**, so you can read every line before you trust it.
94
+
95
+ ## Features
96
+
97
+ - 🎬 **Storyboard generator** — one-line idea → shot list with visual prompt, negative prompt, camera move, timestamps, music direction and an English voiceover line per shot.
98
+ - **15 genres**, bilingual detection (EN / 中文): healing 治愈 · comedy 搞笑 · epic 史诗 · romance 爱情 · product 产品广告 · education 教程科普 · travel 旅行 · horror 恐怖 · kids 儿童 · tech 科技 · noir 黑色电影 · cyberpunk 赛博朋克 · documentary 纪录片 · food 美食 · sports 运动
99
+ - **Platform presets**: `short` / `douyin` / `tiktok` (9:16), `youtube` / `bilibili` (16:9), `square` (1:1), each with production notes
100
+ - **10 story beats**: Hook → Setup → Build → Turn → Escalation → Detail → Reaction → Payoff → Callback → Button
101
+ - **Exports**: Markdown, JSON, **SRT subtitles**, **CSV shot list**
102
+ - 🧍 **Character consistency sheets** — the #1 AI-video pain is a character drifting between shots. Generate a lock prompt once, plus 6 turnaround and 6 expression prompts, and paste it into every shot.
103
+ - 🛡️ **Agent Skill checker** — validates `SKILL.md` frontmatter and scans for hard-coded keys (OpenAI / GitHub / AWS / Google / Slack / JWT / private keys), destructive commands, pipe-to-shell installs, dynamic code execution and prompt-injection phrases. Returns a **0–100 safety score with an A–F grade**, plus **SARIF** output for GitHub code scanning. **Read-only: it never executes the skill.**
104
+ - 🎥 **Cinematic 5-stage prompt builder** — `promptforge cinematic "idea"` writes model-ready video prompts (Sora / Veo / Kling / Seedance / Runway) in the five-stage structure used by top AI-short-film creators: core-theme tags → character & scene with deliberate imperfections → real camera/lens anchoring (IMAX + Panavision C-series, ARRI Alexa 65, anamorphic, 16mm) → breath-like handheld camera rules → per-second storyboard beats with an empty ending, production-audio-only rule and no-readable-text guardrails. Fifteen genre packs (data files in `src/promptforge/data/genres/`, v0.9 adds noir, cyberpunk, documentary, food and sports). **`promptforge lint-prompt`** scores any prompt against the 10-item checklist — naive prompts score 0–3/10; a generated one self-checks at 10/10.
105
+ - 🔧 **Prompt auto-fix** — `promptforge fix-prompt "epic cinematic 4K video of a swordsman…"` rebuilds a naive prompt with the same five-stage machinery and reports the real lint scores on both sides (the bundled example: **0/10 → 10/10**). Genre auto-detects; vertical prompts stay vertical.
106
+ - 🌐 **HTML storyboard preview** — `promptforge preview "idea" -o plan.html` renders a storyboard as **one self-contained HTML page**: shot cards with timestamps, camera, full prompts and voiceover, inline CSS only, no external resources — opens offline, shares as a single file. Also renders an existing storyboard JSON (`--from-json`).
107
+ - 🔌 **MCP server** — 6 tools (`make_storyboard`, `storyboard_srt`, `make_character_sheet`, `check_skill`, `preview_storyboard`, `fix_prompt`) over stdio JSON-RPC, ready for any MCP client. The repo ships a Registry-ready [`server.json`](server.json) (official MCP Registry schema) and per-host install guides in [docs/MCP.md](docs/MCP.md).
108
+ - 🎯 **Model dialect validation** — `--model-target seedance|kling|veo|sora` on `storyboard` / `cinematic` validates output against the target model's *documented* limits (Seedance: 4–15 s generations, `@Image 1` reference roles, ≤9/≤3/≤3 reference files; Kling: 16:9/9:16/1:1 only, 2,500-char prompt cap, negatives in the separate `negative_prompt` field; Veo 3.1: discrete 4/6/8 s lengths, 16:9/9:16 only, negatives in the `negativePrompt` parameter; Sora 2: discrete 4/8/12/16/20 s `seconds` parameter, no negative field — steer positively). Violations print precise warnings; output is never silently rewritten. Dialect sheets live in `src/promptforge/data/dialects/`.
109
+ - 🧪 **Regression evals** — `promptforge eval` runs the declarative case suite in [`evals/cases.json`](evals/cases.json) (31 cases over storyboard / cinematic / lint / fix / dialects / batch: score ranges, required phrases, warning triggers) and reports a pass rate; a failing case exits non-zero, and CI runs the suite on every push, so generator changes can't silently regress prompt quality.
110
+ - 🗂️ **Batch / project mode** — `promptforge batch project.json -o out/ --cinematic` turns a manifest (JSON or a Markdown list, per-item overrides after a `|` suffix) into a folder of storyboards: Markdown + JSON per item, optional cinematic prompts, an `index.html` browsing page and an `index.json` summary. One bad item is recorded and skipped; a malformed file stops the run.
111
+ - ⚖️ **Compare** — `promptforge compare "idea"` puts the local storyboard and the cinematic prompt side by side (size, lint scores, what each carries, when to use which). Fully offline.
112
+ - 🧩 **Also an Agent Skill** — [`skills/promptforge/SKILL.md`](skills/promptforge/SKILL.md) plus `.claude-plugin/` manifests package PromptForge for Claude Code / agent hosts; the skill passes PromptForge's own checker at **100/100 (grade A)**.
113
+ - 🤖 **Multi-provider LLM enhancement (optional)** — `--provider grok|openai|claude|gemini|deepseek|openrouter|custom|auto` enhances storyboards with the model of your choice (see [Building with Grok](#building-with-grok) and [Multi-provider support](#multi-provider-support)). Off by default; automatic local fallback without a key.
114
+ - 📦 **Zero dependencies** — Python 3.10+ standard library only, including every provider API client (`urllib`).
115
+
116
+ ## Quick start
117
+
118
+ ```bash
119
+ pip install -e .
120
+
121
+ # 1) Storyboard (add --platform youtube, --format srt|csv|json as needed)
122
+ promptforge storyboard "一只小羊在海边看日落的治愈日常" --seconds 25 --shots 5
123
+
124
+ # 2) Character consistency sheet
125
+ promptforge character "Mooncurl" "cream-yellow lamb, two moon curls on head" "mint moon pajamas, orange scarf"
126
+
127
+ # 3) Check an Agent Skill before you install it
128
+ promptforge check-skill examples/demo-skill
129
+ promptforge check-skill ~/.claude/skills/some-skill-you-downloaded --format text
130
+
131
+ # 4) Run as an MCP server
132
+ promptforge mcp
133
+
134
+ # 5) Optional: enhance with an LLM provider (needs that provider's key, see above)
135
+ promptforge storyboard "a funny cat chef" --provider grok # or openai / claude / gemini / …
136
+ promptforge storyboard "a funny cat chef" --provider auto # first key found wins
137
+
138
+ # 6) Share the plan as one self-contained HTML page
139
+ promptforge preview "a funny cat chef" -o plan.html
140
+
141
+ # 7) Rescue a naive prompt (prints before/after lint scores + the fixed prompt)
142
+ promptforge fix-prompt "epic cinematic 4K video of a cat chef, stunning"
143
+
144
+ # 8) Compare the two artefacts, and check a prompt against a model's real limits
145
+ promptforge compare "a funny cat chef"
146
+ promptforge cinematic "a swordsman in the rain" --duration 25 --model-target seedance # warns: 25s > 15s per generation
147
+ promptforge cinematic "a lighthouse at dusk" --duration 5 --model-target veo # warns: 5s is not a Veo length (4/6/8)
148
+
149
+ # 9) Run the regression eval suite (also runs in CI)
150
+ promptforge eval
151
+
152
+ # 10) Batch mode: a whole series from one manifest
153
+ promptforge batch project.json -o out/ --cinematic
154
+ ```
155
+
156
+ Full guide: [docs/USAGE.md](docs/USAGE.md) · **Recipes: [docs/COOKBOOK.md](docs/COOKBOOK.md)** · MCP details: [docs/MCP.md](docs/MCP.md) · What's next: [docs/ROADMAP.md](docs/ROADMAP.md)
157
+
158
+ MCP client config:
159
+
160
+ ```json
161
+ {
162
+ "mcpServers": {
163
+ "promptforge": { "command": "promptforge", "args": ["mcp"] }
164
+ }
165
+ }
166
+ ```
167
+
168
+ ## Example output (abridged)
169
+
170
+ ```text
171
+ # Storyboard: a funny cat chef
172
+ - Genre: comedy | Platform: short (9:16) | Total: 25s
173
+ | 1 | Hook | 0.0–5.0s | quick zoom-in |
174
+ ## Shot 1 — Hook (5.0s)
175
+ - Prompt: `a funny cat chef, beat: hook, bright daylight, exaggerated expressions, quick cuts, ...`
176
+ - Negative: `extra fingers, deformed hands, face changing between shots, flicker, watermark, ...`
177
+
178
+ Skill check: Score: 100/100 (grade A) — OK
179
+ ```
180
+
181
+ ## Examples
182
+
183
+ Real runs, not mock-ups — every file in [examples/](examples/README.md) is actual CLI output, with the exact command that produced it:
184
+
185
+ - [storyboard-example.md](examples/storyboard-example.md) — a complete 5-shot storyboard (rain-soaked swordsman)
186
+ - [cinematic-example.txt](examples/cinematic-example.txt) — a complete five-stage cinematic prompt, self-check 10/10
187
+ - [preview-example.html](examples/preview-example.html) — the same storyboard as a self-contained HTML page (open it in a browser)
188
+ - [fix-prompt-example.md](examples/fix-prompt-example.md) — a naive prompt rebuilt by `fix-prompt`: lint 0/10 → 10/10
189
+
190
+ Eight end-to-end workflows built from these commands live in the [Cookbook](docs/COOKBOOK.md). Real failure modes — bad prompts, the exact lint/dialect findings and their repaired scores — are collected in the [failure → fix case library](docs/failure-cases.md).
191
+
192
+ ## Safety & legality
193
+
194
+ - **Defensive and creative tooling only**: it generates prompts and *detects* risky patterns. No scraping, no account automation, no engagement manipulation, no voice/face cloning, no bypass of any platform rule. See [SECURITY.md](SECURITY.md).
195
+ - All sample content is original. MIT licensed — use it, fork it, ship it.
196
+
197
+ ## Roadmap
198
+
199
+ - [x] Genre packs: product, education, travel, horror, kids, tech
200
+ - [x] Character consistency sheets
201
+ - [x] SRT / CSV export, SARIF output, safety scoring
202
+ - [x] Grok / xAI API integration: OpenAI-compatible endpoint (`https://api.x.ai/v1`) for richer, Grok-enhanced storyboards (bring your own `XAI_API_KEY`, off by default, local fallback)
203
+ - [x] Multi-provider support: OpenAI, Claude (Messages API), Gemini (generateContent), DeepSeek, OpenRouter and custom OpenAI-compatible endpoints, plus an `auto` mode that picks the first configured key
204
+ - [x] HTML storyboard preview page (`promptforge preview`), prompt auto-fix (`promptforge fix-prompt`), examples library and cookbook
205
+ - [x] Model dialect layer v1 (Seedance + Kling validation), `promptforge compare`, MCP `server.json` + per-host install guides, Agent Skill packaging (`skills/promptforge/` + `.claude-plugin/`)
206
+ - [x] PyPI release pipeline: full packaging metadata, a Trusted Publishing (OIDC, token-less) workflow that publishes on GitHub Release, and build/wheel smoke checks — see [docs/RELEASING.md](docs/RELEASING.md). *The one remaining step is the maintainer's one-time Trusted Publisher registration on PyPI.*
207
+ - [x] Regression eval suite (`promptforge eval`, 22 declarative cases, wired into CI), dialect layer v2 (Veo + Sora), and genre packs as data files (`src/promptforge/data/genres/` + `index.json`)
208
+ - [x] Batch / project-file mode (`promptforge batch`), five more genre packs (noir, cyberpunk, documentary, food, sports — 15 total), a [failure → fix case library](docs/failure-cases.md) with tool-verified scores, and the eval suite grown to 31 cases including a batch kind
209
+
210
+ The forward backlog — v1.0 release criteria (PyPI listing, MCP Registry submission, shot recipe cards, check-skill spec checks) and long-term — lives in [docs/ROADMAP.md](docs/ROADMAP.md).
211
+
212
+ ## Use it as an Agent Skill
213
+
214
+ ```bash
215
+ /plugin marketplace add lis022892-dot/promptforge-ai # in Claude Code
216
+ /plugin install promptforge@promptforge-ai
217
+ ```
218
+
219
+ …or copy `skills/promptforge/` into your host's skills directory. The
220
+ skill teaches the agent every command above (and the key-safety rules:
221
+ keys only from the environment, never through chat).
222
+
223
+ ## Contributing
224
+
225
+ See [CONTRIBUTING.md](CONTRIBUTING.md). Run the tests before you push:
226
+
227
+ ```bash
228
+ python -m pytest tests/ -q
229
+ ```
230
+
231
+ ## Changelog
232
+
233
+ See [CHANGELOG.md](CHANGELOG.md). Current version: **0.9.1**.
234
+
235
+ ## License
236
+
237
+ MIT © 2026 PromptForge Contributors
@@ -0,0 +1,44 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "promptforge-video"
7
+ version = "0.9.1"
8
+ description = "Local-first AI video storyboard generator with optional multi-provider LLM enhancement (Grok, OpenAI, Claude, Gemini, DeepSeek, OpenRouter, custom OpenAI-compatible endpoints), batch project-file mode, self-contained HTML storyboard previews, a cinematic prompt builder with lint + auto-fix, character consistency sheets, Agent Skill safety checker with scoring + SARIF, and an MCP server. No API key required."
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = { text = "MIT" }
12
+ authors = [{ name = "PromptForge Contributors" }]
13
+ keywords = ["ai", "agent-skills", "mcp", "storyboard", "prompt-engineering", "short-video", "ai-video", "cinematic-prompts", "veo", "sora", "seedance", "kling", "text-to-video"]
14
+ classifiers = [
15
+ "Development Status :: 4 - Beta",
16
+ "Environment :: Console",
17
+ "Intended Audience :: Developers",
18
+ "Intended Audience :: End Users/Desktop",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Operating System :: OS Independent",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Topic :: Multimedia :: Video",
26
+ "Topic :: Software Development :: Libraries",
27
+ "Topic :: Text Processing :: Linguistic",
28
+ ]
29
+
30
+ [project.urls]
31
+ Homepage = "https://github.com/lis022892-dot/promptforge-ai"
32
+ Repository = "https://github.com/lis022892-dot/promptforge-ai"
33
+ Issues = "https://github.com/lis022892-dot/promptforge-ai/issues"
34
+ Changelog = "https://github.com/lis022892-dot/promptforge-ai/blob/main/CHANGELOG.md"
35
+ Documentation = "https://github.com/lis022892-dot/promptforge-ai/blob/main/docs/USAGE.md"
36
+
37
+ [project.scripts]
38
+ promptforge = "promptforge.cli:main"
39
+
40
+ [tool.setuptools.packages.find]
41
+ where = ["src"]
42
+
43
+ [tool.setuptools.package-data]
44
+ promptforge = ["data/dialects/*.md", "data/genres/*.md", "data/genres/*.json"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,4 @@
1
+ """PromptForge AI — local-first storyboard + Agent Skill tools."""
2
+
3
+ __version__ = "0.9.1"
4
+ __all__ = ["__version__"]