anbeime/skill / skills/handraw-style/handraw-style/skills/couple-photo-orchestrator/skills/paishe
couple-photo-shooting-planner
VerifiedTurn confirmed one-person or multi-person portrait styling handoffs into detailed eight-shot plans, numbered grids, and selected detail-render briefs without reducing per-participant specificity.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.2 KB |
| hunsha.txt | markdown | 5.1 KB |
| qinglv.txt | markdown | 4.9 KB |
| qunxiang.txt | markdown | 2.6 KB |
| references/pose-emotion-contract.md | markdown | 1.9 KB |
| scripts/share_card.py | script | 3.3 KB |
| scripts/shot_board.py | script | 56.4 KB |
| templates/generation-brief.yaml | config | 1.6 KB |
| templates/main-visual-review.yaml | config | 119 B |
| templates/share-copy.md | markdown | 2.1 KB |
| templates/shooting-plan.md | markdown | 1.4 KB |
| templates/shot-board.md | markdown | 616 B |
| templates/shot-detail-brief.yaml | config | 1.3 KB |
| templates/shot-list.md | markdown | 1.0 KB |
| templates/shot-prompts.md | markdown | 385 B |
| tests/test_22424_identity_lock_v2.py | script | 2.7 KB |
| tests/test_2244_share_copy_contract.py | script | 2.2 KB |
| tests/test_identity_face_only_hair_policy.py | script | 882 B |
| tests/test_pose_emotion_contract.py | script | 701 B |
| tests/test_share_card_runtime.py | script | 612 B |
| tests/test_shot_board.py | script | 23.2 KB |
scripts/share_card.py
View on GitHub#!/usr/bin/env python3
"""Compile and cache a share card before image rendering."""
from __future__ import annotations
import argparse, json, re
from pathlib import Path
import yaml
FORBIDDEN=("新卡已生成","抽卡结果","当前处于抽卡模式","切换回自主模式","本次生成")
REQUIRED=("story_card_name","share_hook","reproduction_prompt","share_hashtags","share_cta")
def read_yaml(p): return yaml.safe_load(p.read_text(encoding="utf-8")) or {}
def write_yaml(p,v): p.parent.mkdir(parents=True,exist_ok=True); p.write_text(yaml.safe_dump(v,allow_unicode=True,sort_keys=False),encoding="utf-8")
def validate(card):
if not isinstance(card,dict): raise SystemExit("share card must be an object")
missing=[k for k in REQUIRED if not card.get(k)]
if missing: raise SystemExit("share card missing: "+", ".join(missing))
tags=card["share_hashtags"]
if isinstance(tags,str): tags=[x for x in tags.split() if x]
if not isinstance(tags,list) or not 4<=len(tags)<=7 or any(not str(x).startswith("#") for x in tags):
raise SystemExit("share_hashtags must contain 4-7 #hashtags")
card["share_hashtags"]=[str(x).strip() for x in tags]
text=" ".join(str(card.get(k,"")) for k in REQUIRED)
if any(x in text for x in FORBIDDEN): raise SystemExit("share card contains forbidden workflow language")
if not str(card["reproduction_prompt"]).lstrip().startswith("@couple-photo-orchestrator"):
raise SystemExit("reproduction_prompt must start with @couple-photo-orchestrator")
card["status"]="ready"
return card
def render(card):
return "\n".join([
"【分享文案】",
f"《{card['story_card_name']}》",
card['share_hook'],
"",
"复刻提示词",
card['reproduction_prompt'],
"",
" ".join(card['share_hashtags']),
"",
card['share_cta'],
]) + "\n"
def main():
ap=argparse.ArgumentParser()
ap.add_argument("project"); ap.add_argument("board_id"); ap.add_argument("--share-file"); ap.add_argument("--skip",action="store_true")
a=ap.parse_args(); project=Path(a.project).resolve(); board_path=project/'deliverables'/'shot-boards'/f'{a.board_id}.yaml'
if not board_path.exists(): raise SystemExit(f"unknown shot board: {a.board_id}")
board=read_yaml(board_path)
outdir=project/'deliverables'/'share-cards'; outdir.mkdir(parents=True,exist_ok=True)
if a.skip:
card={"status":"skipped","reason":"user_requested_no_share_copy"}; board["share_card"]=card; write_yaml(board_path,board); print("SHARE_CARD_SKIPPED"); return
if not a.share_file: raise SystemExit("--share-file is required unless --skip is used")
source=Path(a.share_file); raw=source.read_text(encoding='utf-8')
card=yaml.safe_load(raw) if source.suffix.lower() in {'.yaml','.yml'} else json.loads(raw)
card=validate(card)
yaml_path=outdir/f'{a.board_id}-share-card.yaml'; md_path=outdir/f'{a.board_id}-share-card.md'
card['markdown_path']=str(md_path.relative_to(project)).replace('\\','/')
write_yaml(yaml_path,card); md_path.write_text(render(card),encoding='utf-8')
board['share_card']=card; board['share_card']['yaml_path']=str(yaml_path.relative_to(project)).replace('\\','/')
write_yaml(board_path,board)
print(render(card))
if __name__=='__main__': main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |