Skip to content

💃 Free CC0 mannequin pose reference library for AI image tools (Nano Banana, ChatGPT, ComfyUI, Midjourney) — 250+ poses × 5 angles in line art, names in ja/zh/en/ko

feat(tools): card expander and Muse brief writer for the scene, prop, light and animal plans

wquguru36f0981fb305
diff --git a/tools/series_brief.py b/tools/series_brief.py
new file mode 100644
index 00000000..167c2f1d
--- /dev/null
+++ b/tools/series_brief.py
@@ -0,0 +1,222 @@
+#!/usr/bin/env python3
+"""Write the paste-ready Muse brief for the scene, prop, light or animal library (docs/<lib>/PLAN.md).
+
+The counterpart of costume_brief.py. Either one category, or --probe: the first variant of every form marked
+`probe`, across all categories, to test each category before the full run (the costume-probe01 step).
+
+Usage: python3 -I tools/series_brief.py scene HM ~/Downloads/scene-HM-run01 [--only E001,E002] [--gate 10]
+ python3 -I tools/series_brief.py prop --probe ~/Downloads/prop-probe01
+Writes OUT/brief.md and OUT/manifest.json; items that already have every view are skipped. The animal library only
+has its --probe brief, which draws every probe item in two styles to decide D-14 (docs/animal/PLAN.md).
+"""
+import argparse, json, pathlib, sys
+
+sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent)) # -I drops the script dir from sys.path
+import series_kit as K # noqa: E402
+
+ROOT = pathlib.Path(__file__).resolve().parent.parent
+VIEW_ZH = {"eye": "平视", "above": "俯视", "below": "仰视",
+ "front": "正面", "back": "背面", "side": "侧面", "diag": "斜侧"}
+
+
+def cat_rules(cats: dict, cat_list: list) -> str:
+ return "\n".join(f"- {c}:rules = {cats[c]['rules']}\n negatives = {cats[c]['negatives']}" for c in cat_list)
+
+
+def scene_parts(cats: dict, cat_list: list) -> list:
+ rules = cat_rules(cats, cat_list)
+ return [
+ "## 规则",
+ "1. 一次一张图。每个场景的顺序固定:平视(文生图)→ 俯视(参考平视)→ 仰视(参考平视)。",
+ "2. 平视最多 3 次,俯视、仰视各最多 2 次。每张按该场景的“要点”逐条自查;平视不过,这个场景后面两张不做。",
+ "3. 画面中央约 4 米处必须留一块空地(以后合成人物站在那里),任何人、人影、雕像、人台都不行;"
+ "有人就重画,不要修。",
+ "4. 平视的地平线(室内是远墙的视平线)落在画面正中,竖线保持竖直;俯视要明显看到更多地面,仰视要明显看到"
+ "更多天花板或天空,三张是同一个地方、同一个朝向、同一时刻。",
+ "5. 不能有可读文字、招牌字、logo、车牌,不能是真实地标。招牌可以有,但上面没有字。",
+ "6. 第 1 次没画对,把漏掉的那条要点改写成更具体的结构句再试,改写过的提示词记进 attempts.csv。",
+ "",
+ "## 平视模板(文生图;{desc} {light} 换成该场景的字段,{rules} {negatives} 换成所属大类的两行)",
+ "```",
+ K.SCENE_FRONT.replace("{view}", K.SCENE_VIEW_TEXT["eye"]).replace("{spot}", K.SCENE_SPOT),
+ "```",
+ "大类规则:",
+ rules,
+ "",
+ "## 俯视 / 仰视模板(参考平视;{keep} 用该场景的“保持不变”)",
+ "```",
+ K.SCENE_TURN,
+ "```",
+ f"- 俯视的 {{view}}:{K.SCENE_VIEW_TEXT['above']}",
+ f"- 仰视的 {{view}}:{K.SCENE_VIEW_TEXT['below']}",
+ ]
+
+
+def prop_parts(cats: dict, cat_list: list) -> list:
+ rules = cat_rules(cats, cat_list)
+ return [
+ "## 规则",
+ "1. 一次一张图。每件的顺序固定:正面 → 背面(参考正面)→ 侧面(参考正面 + 背面)→ 斜侧(参考正面 + 侧面)。",
+ "2. 正面最多 3 次,其余视角各最多 2 次。每张按该件的“要点”逐条自查;正面不过,这件后面的视角不做。",
+ "3. 画面里只有这一件东西:没有手、人、支架、挂钩、桌面,没有别的物件;家具类立在看不见的地面上,不画地板。",
+ "4. 不能有文字、logo、品牌相似设计(手机不要做成某品牌的摄像头排布,乐器不要品牌头)。",
+ "5. 背面不能是正面的镜像;侧面、斜侧如果画成了另一侧,图可以留,但在 note 里写 flipped。",
+ "6. 第 1 次没画对,把漏掉的那条要点改写成更具体的结构句再试,改写过的提示词记进 attempts.csv。",
+ "",
+ "## 正面模板(每件把 {desc} {place} {fill} {bg} 换成该件的字段,{rules} {negatives} 换成所属大类的两行)",
+ "```",
+ K.PROP_FRONT,
+ "```",
+ f"- {{place}}:悬浮 = “{K.PROP_PLACE['float']}”;落地 = “{K.PROP_PLACE['stand']}”",
+ f"- {{fill}}:小 = “{K.PROP_FILL['S']}”,中 = “{K.PROP_FILL['M']}”,大 = “{K.PROP_FILL['L']}”",
+ f"- {{bg}}:浅灰 = “{K.BG['light']}”,中灰(白色、浅色物件用)= “{K.BG['dark']}”",
+ "大类规则:",
+ rules,
+ "",
+ "## 视角说明(转视角模板里的 {view})",
+ *[f"- {v}:{K.PROP_VIEW_TEXT[v]}" for v in ("back", "side", "diag")],
+ "",
+ "## 转视角模板(背面 / 侧面 / 斜侧通用,{keep} 用每件的“保持不变”)",
+ "```",
+ K.PROP_TURN,
+ "```",
+ f"- {{refs}}:背面用“{K.PROP_REFS['back']}”;侧面用“{K.PROP_REFS['side']}”;斜侧用“{K.PROP_REFS['diag']}”",
+ f"- {{back_rule}}:只有背面加这句:{K.PROP_BACK_RULE.strip()}",
+ ]
+
+
+def light_parts(cats: dict, cat_list: list) -> list:
+ return [
+ "## 规则",
+ "1. 一次一张图。每个光线预设的顺序固定:正面(文生图)→ 斜侧(参考正面)→ 侧面(参考正面)。",
+ "2. 正面最多 3 次,斜侧、侧面各最多 2 次。每张按该预设的“要点”逐条自查;正面不过,后面两张不做。",
+ "3. 主体永远不变:同一个浅灰无脸人台、同一个站姿、旁边同一个灰球。唯一的变量是光。人台有脸、有头发、"
+ "穿了衣服、换了姿势都重画。",
+ "4. 光的方向按正面机位的画面左右写;转视角时灯不动、只有相机绕人台转,所以亮面和影子在画面里的位置会跟着变,"
+ "这是对的,不要把光“摆回”原来的画面方向。",
+ "5. 自查重点看灰球:高光在哪、明暗交界线是硬是软、投影朝哪,这三项和描述对上才算过。",
+ "6. 第 1 次没画对,把漏掉的那条要点改写成更具体的句子再试,改写过的提示词记进 attempts.csv。",
+ "",
+ "## 正面模板({setting} {desc} 换成该预设的字段,{rules} {negatives} 换成所属大类的两行)",
+ "```",
+ K.LIGHT_FRONT.replace("{subject}", K.LIGHT_SUBJECT).replace("{view}", K.LIGHT_VIEW_TEXT["front"]),
+ "```",
+ "大类规则:",
+ cat_rules(cats, cat_list),
+ "",
+ "## 斜侧 / 侧面模板(参考正面;{keep} 用该预设的“保持不变”)",
+ "```",
+ K.LIGHT_TURN,
+ "```",
+ f"- 斜侧的 {{view}}:{K.LIGHT_VIEW_TEXT['diag']}",
+ f"- 侧面的 {{view}}:{K.LIGHT_VIEW_TEXT['side']}",
+ ]
+
+
+def animal_parts(cats: dict, cat_list: list) -> list:
+ return [
+ "## 这轮要回答的问题",
+ "动物库用哪种画风(D-14):A = 和姿势库一样的无脸关节素体线稿;B = 写实照片。每个动作两种都画正面,"
+ "A 再做全部五个机位。notes.md 最后给出你的判断:哪种更稳、哪种肢体更不容易错。",
+ "",
+ "## 规则",
+ "1. 一次一张图。每个动作的顺序:A 正面 → B 正面 → A 斜侧 / 侧面 / 俯视 / 仰视(都参考 A 正面)。",
+ "2. 正面最多 3 次,其余各最多 2 次。每张先数腿、尾巴、翅膀、耳朵,再对“要点”;多一条少一条都算错。",
+ "3. 关节方向:猫狗的后腿在跗关节处向后弯,马的前膝向前弯;画反算错。",
+ "4. 不要幼崽,不要项圈、衣服、道具、地面和背景元素;不要和任何作品里的角色像。",
+ "5. A 风格沿用 pose_lineart_gallery 定稿线稿的线条粗细和留白,只把人体素体换成下面写的动物素体。",
+ "",
+ "## A 正面模板(线稿;{species} {tail} {desc} 换成该动作的字段)",
+ "```",
+ K.ANIMAL_LINE.replace("{view}", K.ANIMAL_VIEW_TEXT["front"]),
+ "```",
+ "## B 正面模板(照片;多一个 {coat})",
+ "```",
+ K.ANIMAL_PHOTO.replace("{view}", K.ANIMAL_VIEW_TEXT["front"]),
+ "```",
+ "大类规则:",
+ cat_rules(cats, cat_list),
+ "",
+ "## A 转机位模板(参考 A 正面;{keep} 用该动作的“保持不变”)",
+ "```",
+ K.ANIMAL_TURN,
+ "```",
+ *[f"- {v} 的 {{view}}:{K.ANIMAL_VIEW_TEXT[v]}" for v in ("diag", "side", "above", "below")],
+ ]
+
+
+def item_lines(lib: str, i: dict) -> list:
+ head = f"### {i['id']} {i['cat']} · {i['group_zh']} · {i['name_zh']}"
+ if lib == "scene":
+ meta = [f"light:{i['light']}"]
+ elif lib == "light":
+ meta = [f"setting:{i['setting']}"]
+ elif lib == "animal":
+ meta = [f"species:{i['species']}", f"tail:{i['tail']}", f"coat(仅 B):{i['coat']}"]
+ else:
+ meta = [f"place = {'落地' if i.get('place') == 'stand' else '悬浮'};"
+ f"fill = {dict(S='小', M='中', L='大')[i.get('size', 'M')]};"
+ f"bg = {'中灰' if i.get('bg') == 'dark' else '浅灰'}"]
+ return ["", head, *meta, f"desc:{i['desc_en']}", f"keep:{i['keep_en']}",
+ "要点:" + " ".join(f"{'①②③④⑤⑥'[k]} {t}" for k, t in enumerate(i["checks"]))]
+
+
+def main() -> None:
+ ap = argparse.ArgumentParser()
+ ap.add_argument("lib", choices=("scene", "prop", "light", "animal"))
+ ap.add_argument("cat", nargs="?", default="")
+ ap.add_argument("out")
+ ap.add_argument("--only", default="")
+ ap.add_argument("--probe", action="store_true")
+ ap.add_argument("--gate", type=int, default=10)
+ a = ap.parse_args()
+ if bool(a.cat) == a.probe:
+ raise SystemExit("give either a category or --probe")
+ if a.lib == "animal" and not a.probe:
+ raise SystemExit("the animal library only has a --probe brief until D-14 decides its style")
+ cfg = K.LIBS[a.lib]
+ views = cfg["views"]
+ cats = json.loads((ROOT / cfg["src"] / "_categories.json").read_text())
+ only = set(filter(None, a.only.split(",")))
+ items = [i for i in json.loads((ROOT / cfg["out"]).read_text())["items"]
+ if (i.get("probe") if a.probe else i["cat"] == a.cat) and (not only or i["id"] in only)
+ and not all(i["views"].get(v) for v in views)]
+ if not items:
+ raise SystemExit("nothing to brief")
+ out = pathlib.Path(a.out).expanduser()
+ out.mkdir(parents=True, exist_ok=True)
+ run = out.name
+ need = {i["id"]: [v for v in views if not i["views"].get(v)] for i in items}
+ n_img = sum(len(v) for v in need.values()) + (len(items) if a.lib == "animal" else 0) # + one B-style front each
+ cat_list = sorted({i["cat"] for i in items}, key=lambda c: cats[c]["order"])
+ title = "试验(每个大类挑几件,验证能不能稳定生成)" if a.probe else f"{cats[a.cat]['name']['zh']}({a.cat})"
+ unit = {"scene": "个场景", "light": "个光线预设", "animal": "个动作"}.get(a.lib, "件")
+ view_zh = "、".join(VIEW_ZH[v] for v in views)
+ gate = ([] if a.probe else [
+ f"**自检闸**:先做前 {a.gate} {unit}的第一张({VIEW_ZH[views[0]]})。通过少于 {round(a.gate * 0.7)} {unit}就停下,"
+ "把问题写进 notes.md 交付,不要继续;达到了再做完其余。", ""])
+
+ L = [f"# shisei {cfg['label']} · {title} · {run}", "",
+ f"共 {len(items)} {unit}、{n_img} 张(视角:{view_zh})。规格见下,每{unit}的字段已经给好,照模板拼即可。"
+ + ("这是试验轮:每张都要认真自查,notes.md 写清楚哪类稳、哪类不稳、改写后怎样,这份记录决定正式生产的模板。"
+ if a.probe else ""),
+ "", *gate,
+ *{"scene": scene_parts, "prop": prop_parts, "light": light_parts, "animal": animal_parts}[a.lib](cats, cat_list),
+ "", "## 交付",
+ f"打包成 {run}.zip(太大可以分成 {run}-part1.zip、part2…):",
+ f"- img/<ID>_<view>.png,view = {' / '.join(views)},例如 img/{items[0]['id']}_{views[0]}.png;1344×1792 PNG"
+ + (";B 风格正面存为 img/<ID>_photo.png" if a.lib == "animal" else ""),
+ "- attempts.csv:file,attempts,outcome,hits,note(outcome = ok / refused / wrong;hits = 要点命中数如 4/4)",
+ "- notes.md:按大类总结一次就对的、改写才对的、怎么写都不对的,以及改写用过的句子",
+ f"做完给我下载链接,回复最后一行写:DONE {run} ok=<数> refused=<数> wrong=<数>",
+ "", f"## {len(items)} {unit}"]
+ for i in items:
+ L += item_lines(a.lib, i)
+ (out / "brief.md").write_text("\n".join(L) + "\n")
+ (out / "manifest.json").write_text(json.dumps({"run": run, "lib": a.lib, "cat": a.cat or "probe",
+ "need": need}, indent=1) + "\n")
+ print(f"{out / 'brief.md'}: {len(items)} items, {n_img} images, {len(chr(10).join(L))} chars")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/tools/series_cards.py b/tools/series_cards.py
new file mode 100644
index 00000000..babe12b1
--- /dev/null
+++ b/tools/series_cards.py
@@ -0,0 +1,98 @@
+#!/usr/bin/env python3
+"""Expand data/<lib>-src/<CAT>.json (forms × variants) into data/<lib>s.json, one item per variant.
+
+The scene, prop and animal counterpart of costume_cards.py, with the same ID rules (AGENTS §2): an item keeps the ID
+recorded for its `cat:form:variant` key, new keys take the next free number, a dropped key keeps its ID retired, and
+generated fields (views, gaps) carry over. Per-library differences come from series_kit.LIBS.
+
+Usage: python3 -I tools/series_cards.py scene|prop|light|animal [--check] (--check validates without writing)
+"""
+import json, pathlib, re, sys
+
+sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent)) # -I drops the script dir from sys.path
+from series_kit import LANGS, LIBS # noqa: E402
+
+ROOT = pathlib.Path(__file__).resolve().parent.parent
+
+
+def fill(text: str, vars_: dict, where: str) -> str:
+ out = re.sub(r"\{(\w+)\}", lambda m: vars_[m.group(1)] if m.group(1) in vars_ else m.group(0), text)
+ left = re.findall(r"\{\w+\}", out)
+ if left:
+ raise SystemExit(f"{where}: unfilled placeholder(s) {left}")
+ return out
+
+
+def main() -> None:
+ lib = sys.argv[1] if len(sys.argv) > 1 else ""
+ check = "--check" in sys.argv[2:]
+ if lib not in LIBS:
+ raise SystemExit(f"usage: series_cards.py {'|'.join(LIBS)}")
+ cfg = LIBS[lib]
+ src_dir, out_path, letter = ROOT / cfg["src"], ROOT / cfg["out"], cfg["letter"]
+ cats = json.loads((src_dir / "_categories.json").read_text())
+ old = json.loads(out_path.read_text()) if out_path.exists() else {"retired": {}, "items": []}
+ by_key = {it["key"]: it for it in old["items"]}
+ retired = dict(old.get("retired", {}))
+ used = [int(i["id"][1:]) for i in old["items"]] + [int(v[1:]) for v in retired.values()]
+ nxt = max(used, default=0) + 1
+
+ items, seen = [], set()
+ for cat in sorted(cats, key=lambda c: cats[c]["order"]):
+ f = src_dir / f"{cat}.json"
+ if not f.exists():
+ continue
+ src = json.loads(f.read_text())
+ groups = src.get("groups", {})
+ for form in src["forms"]:
+ assert len(form["checks"]) >= 3, form["key"]
+ assert form.get("group") in groups, f"{cat}:{form['key']}: group {form.get('group')!r} not in groups"
+ for v in form["variants"]:
+ key = f"{cat}:{form['key']}:{v['key']}"
+ assert key not in seen, f"duplicate {key}"
+ seen.add(key)
+ prev = by_key.get(key)
+ if prev:
+ iid = prev["id"]
+ elif key in retired:
+ iid = retired.pop(key)
+ else:
+ iid, nxt = f"{letter}{nxt:03d}", nxt + 1
+ vars_ = v.get("vars", {})
+ # library-specific fields: scenes carry the variant's light, props their placement and size,
+ # animals their species; anything not set falls back to the form, then to a default
+ extra = {k: v.get(k, form.get(k)) for k in ("light", "season", "place", "size", "species", "tail", "coat", "setting", "bg")
+ if v.get(k, form.get(k)) is not None}
+ for k in ("light", "setting"):
+ if k in extra:
+ extra[k] = fill(extra[k], vars_, key)
+ items.append({
+ "id": iid, "key": key, "cat": cat, "form": form["key"], "group": form["group"],
+ "rating": v.get("rating", form.get("rating", cats[cat].get("rating", "general"))),
+ **({"probe": True} if form.get("probe") and v is form["variants"][0] else {}),
+ **extra,
+ **{f"name_{l}": f"{form['name'][l]}({v['name'][l]})" if l in ("zh", "ja")
+ else f"{form['name'][l]} ({v['name'][l]})" for l in LANGS},
+ **{f"group_{l}": groups[form["group"]][l] for l in LANGS},
+ "desc_en": fill(form["desc"], vars_, key),
+ "keep_en": fill(form["keep"], vars_, key),
+ "checks": form["checks"],
+ "views": (prev or {}).get("views") or {vw: None for vw in cfg["views"]},
+ "gaps": (prev or {}).get("gaps") or {},
+ })
+ for key, it in by_key.items():
+ if key not in seen:
+ retired[key] = it["id"]
+ items.sort(key=lambda i: i["id"])
+ if not check:
+ out_path.write_text(json.dumps({"views": list(cfg["views"]), "retired": retired, "items": items},
+ ensure_ascii=False, indent=1) + "\n")
+ per = {}
+ for i in items:
+ per[i["cat"]] = per.get(i["cat"], 0) + 1
+ print(f"{cfg['out']}{' (check only)' if check else ''}: {len(items)} items {per}, probe {sum(1 for i in items if i.get('probe'))}, "
+ f"retired {len(retired)}")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/tools/series_kit.py b/tools/series_kit.py
new file mode 100644
index 00000000..dc27ca3c
--- /dev/null
+++ b/tools/series_kit.py
@@ -0,0 +1,149 @@
+"""Shared definitions for the planned scene, prop and animal libraries (docs/scene, docs/prop, docs/animal).
+
+Each library follows the costume method (docs/costume/PLAN.md): category rules in data/<lib>-src/_categories.json,
+one <CAT>.json of forms × variants, expanded by series_cards.py into data/<lib>s.json and turned into paste-ready
+Muse briefs by series_brief.py. What differs per library lives here: ID letter, views and prompt templates.
+"""
+
+LANGS = ("zh", "ja", "en", "ko")
+
+# Backgrounds shared with the costume library: generation only asks for a flat colour, intake re-composites it.
+BG = {"light": "uniform flat light grey background with no gradient, no vignette and no floor shadow",
+ "dark": "uniform flat mid grey background with no gradient, no vignette and no floor shadow"}
+
+# ---- scenes (E###): an empty location seen from the pose library's three camera heights ----------------------
+# Poses are drawn front / diag / side at eye level, above at about 30° down and below at about 45° up
+# (docs/GENERATION.md), so one scene needs only those three heights; the camera never turns away from the spot.
+SCENE_VIEWS = ("eye", "above", "below")
+SCENE_SPOT = ("a clear, unobstructed patch of ground in the centre of the frame about 4 metres from the camera, "
+ "big enough for one standing adult, with nothing standing, lying or hanging there")
+SCENE_VIEW_TEXT = {
+ "eye": "eye-level view: the camera 1.6 metres above the ground, perfectly level, the horizon or the far "
+ "wall's eye line exactly at the vertical centre of the image, vertical lines vertical",
+ "above": "a high-angle view: the camera raised to 3.5 metres above the ground and tilted 30 degrees downward, "
+ "still facing the same direction, the empty standing spot now at the centre of the image and more of "
+ "the ground visible",
+ "below": "a low-angle view: the camera 0.4 metres above the ground and tilted 35 degrees upward, still facing "
+ "the same direction, the ground at the standing spot visible only along the bottom edge and the rest "
+ "of the frame showing what rises behind it (walls and ceiling, or trees and sky)",
+}
+SCENE_FRONT = (
+ "Photograph of {desc}. An empty location with nobody in it, {view}, 35 mm lens, deep focus so the whole scene "
+ "is sharp, {spot}. {light}. Realistic materials and scale, natural colour, 3:4 vertical, location-scouting "
+ "reference photo.\n{rules}\n"
+ "No people, no figures, no silhouettes, no mannequins, no statues, no animals, no reflections of people, no "
+ "readable text, no signs with lettering, no logos, no brand names, no licence plates, no real landmark, no "
+ "watermark. {negatives}")
+SCENE_TURN = (
+ "Image 1 is the eye-level view of a location. Show exactly the same location, facing the same direction from "
+ "the same spot, as {view}. Keep these identical: {keep}; same time of day, light, weather and season, same "
+ "colours and materials. The empty standing spot stays empty. Add nothing image 1 does not support beyond what "
+ "the new camera height reveals (more floor from above, more ceiling or sky from below). 35 mm lens, 3:4 "
+ "vertical. No people, no figures, no animals, no readable text, no logos.")
+
+# ---- props (T###): one object, product photograph, same four views as costumes -------------------------------
+PROP_VIEWS = ("front", "back", "side", "diag")
+PROP_VIEW_TEXT = {
+ "back": "a straight back view showing the full back of the object",
+ "side": "a true 90-degree side profile showing the object's left side, with its front pointing toward "
+ "image-left, showing its depth and thickness",
+ "diag": "a three-quarter view with the camera moved 45 degrees around toward the object's left side, so the "
+ "front and the left side are both visible and the front turns slightly toward image-left",
+}
+PROP_REFS = {"back": "Image 1 is the front view.",
+ "side": "Image 1 is the front view and image 2 is the back view.",
+ "diag": "Image 1 is the front view and image 2 is the side view."}
+# float: held or worn objects hang in mid-air in their natural orientation; stand: furniture and other things that
+# rest on the ground stand upright on an invisible floor, so the bottom edge is level.
+PROP_PLACE = {"float": "floating in mid-air in its natural upright orientation with nothing holding it",
+ "stand": "resting in its natural position on an invisible level floor (upright, or lying flat where "
+ "stated), its feet or base on a flat line, with no visible floor"}
+PROP_FILL = {"S": "about 50%", "M": "about 65%", "L": "about 80%"}
+PROP_FRONT = (
+ "Product photograph of {desc}, a single object {place}, straight front view, camera level with the middle of "
+ "the object, centered, the object filling {fill} of the frame height, soft even studio lighting, {bg}, "
+ "accurate material colour and texture, visible construction details such as joints, seams, hardware and "
+ "edges, 3:4 vertical, catalogue style.\n{rules}\n"
+ "No person, no hands, no mannequin, no display stand or hook (the object's own built-in stand or tripod stays), "
+ "no objects other than those stated, no text, no logo, no brand mark, no watermark. {negatives}")
+PROP_TURN = (
+ "{refs} They are product photographs of one object. Show exactly the same object from {view}. Keep these "
+ "identical: {keep}; same proportions, colours, materials and details. Add nothing the reference images do not "
+ "support. {back_rule}Same background, lighting, scale and framing, 3:4 vertical. No person, no hands, no "
+ "text, no logo.")
+PROP_BACK_RULE = ("The back is the object's real back, not a mirror of the front: front-only details such as "
+ "screens, dials or decorations do not continue onto the back. ")
+
+# ---- animals (A###): probe only until the style is decided (docs/animal/PLAN.md, D-14) -----------------------
+# Same five camera positions as the pose library, so an animal reference can sit beside a pose reference.
+ANIMAL_VIEWS = ("front", "diag", "side", "above", "below")
+ANIMAL_VIEW_TEXT = {
+ "front": "straight front view, the camera level with the animal's shoulder and facing its chest",
+ "diag": "three-quarter view, the camera moved 45 degrees around toward the animal's left side, level with "
+ "the shoulder",
+ "side": "true side profile of the animal's left side, the head pointing toward image-left, camera level with "
+ "the shoulder",
+ "above": "high-angle view from about 30 degrees above, in front and slightly to the left, so the top of the "
+ "head and the whole back are visible",
+ "below": "low-angle view from about 45 degrees below, in front and slightly to the left, so the underside of "
+ "the jaw, chest and belly are visible and the nearest paws look larger than the head",
+}
+# Style A follows the pose library: a featureless articulated mannequin in black construction lines, so one card
+# serves every breed and coat. Style B is a photograph, only tried in the probe to decide D-14.
+ANIMAL_LINE = (
+ "Clean black-line construction drawing for a pose reference: a smooth featureless wooden artist's mannequin "
+ "of an adult {species}, with the real anatomy and proportions of the animal, ball joints at the shoulders, "
+ "elbows, wrists, hips, knees and hocks, a segmented neck and {tail}, no fur, no eyes, no mouth detail, no "
+ "markings. Pose: {desc}. {view}. Whole body in frame with even margins, thin even black lines with light "
+ "construction lines on pure white, no shading, no colour, no ground, no background, 3:4 vertical.\n{rules}\n"
+ "No people, no hands, no other animals, no text, no watermark. {negatives}")
+ANIMAL_PHOTO = (
+ "Realistic photograph of an adult {species} with {coat}. Pose: {desc}. {view}. Whole body in frame with even "
+ "margins, soft even studio lighting, uniform flat light grey background with no gradient, no floor shadow, "
+ "3:4 vertical.\n{rules}\nNo people, no hands, no collar, no clothing, no props, no other animals, no text, no "
+ "watermark. {negatives}")
+ANIMAL_TURN = (
+ "Image 1 is the front view of a pose reference. Draw exactly the same animal in exactly the same pose from "
+ "{view}. Keep these identical: {keep}; the same style, line weight and proportions. The pose must not change, "
+ "only the camera moves; do not mirror image 1. No people, no text.")
+
+# ---- light presets (L###): one light setup on a fixed neutral subject, three eye-level camera positions ---------
+# Light is an attribute, not an object: the subject never changes (the pose library's faceless mannequin and a grey
+# sphere), so the only variable is the light. The light stays fixed in the world while the camera moves, which
+# shows how it wraps the figure; each preset's `desc` is also the sentence scenes and the combinator reuse.
+LIGHT_VIEWS = ("front", "diag", "side")
+LIGHT_SUBJECT = ("a life-size matte light-grey faceless artist's mannequin with a smooth egg-shaped head, ball "
+ "joints and neutral adult proportions, standing upright facing the camera with arms relaxed at its "
+ "sides, and a matte mid-grey sphere 25 cm across on a slim grey pedestal at hip height, placed one "
+ "metre in front of it and one metre to its right (image-left), so the sphere stays visible from the "
+ "front, three-quarter and side views")
+LIGHT_VIEW_TEXT = {
+ "front": "straight front view, camera at chest height 4 metres away, 50 mm lens",
+ "diag": "the camera moved 45 degrees around toward the mannequin's left side (it now stands three-quarter to "
+ "the camera), same height and distance",
+ "side": "the camera moved 90 degrees around to the mannequin's left side, showing it in profile facing "
+ "image-left, same height and distance",
+}
+LIGHT_FRONT = (
+ "Lighting reference photograph: {subject}, {setting}. Lighting: {desc}. {view}. Whole figure and sphere in "
+ "frame, deep focus, true-to-life exposure with no added grading, 3:4 vertical. The light must read clearly on "
+ "the mannequin and the sphere: which side is lit, where the highlight sits on the sphere, how soft the shadow "
+ "edge is and which way the cast shadow falls.\n{rules}\n"
+ "No people, no real face, no hair, no clothing, no text, no logo, no watermark. {negatives}")
+LIGHT_TURN = (
+ "Image 1 is a lighting reference photograph of a grey mannequin and a grey sphere. Show exactly the same moment "
+ "from a new camera position: {view}. The lights, the mannequin, the sphere and the surroundings do not move; "
+ "only the camera moves, so the lit side, highlight and cast shadow now appear where that light would fall from "
+ "the new angle. Keep these identical: {keep}. Same exposure and colour, 3:4 vertical. No people, no text. "
+ "Do not mirror image 1.")
+
+LIBS = {
+ "scene": {"letter": "E", "src": "data/scene-src", "out": "data/scenes.json", "views": SCENE_VIEWS,
+ "label": "场景库", "plan": "docs/scene/PLAN.md"},
+ "prop": {"letter": "T", "src": "data/prop-src", "out": "data/props.json", "views": PROP_VIEWS,
+ "label": "道具库", "plan": "docs/prop/PLAN.md"},
+ "light": {"letter": "L", "src": "data/light-src", "out": "data/lights.json", "views": LIGHT_VIEWS,
+ "label": "光线库", "plan": "docs/light/PLAN.md"},
+ "animal": {"letter": "A", "src": "data/animal-src", "out": "data/animals.json", "views": ANIMAL_VIEWS,
+ "label": "动物库", "plan": "docs/animal/PLAN.md"},
+}