go-photo-studio
Build identity-preserving professional headshot prompts and provider-ready generation payloads from a single photo input. Use when users ask to transform selfies into professional portraits, resume photos, or ID-style images with strict realism and safety constraints.
适合你,如果想把自拍变成专业头像或证件照
npx oh-my-skill add zoezyzy/go-photo-studio-skill/go-photo-studiocurl -fsSL https://oh-my-skill.com/install.sh | bash -s -- zoezyzy/go-photo-studio-skill/go-photo-studionpx oh-my-skill verify zoezyzy/go-photo-studio-skill/go-photo-studio怎么用
商店整理自技能原文 · 版本 6e6ac53 · 表述以原文为准将自拍照转换为专业头像,生成保留身份特征的提示词和可直接发送给图像生成服务的载荷。
当用户要求将自拍或生活照转为职业头像、简历照或证件照时触发。
技能原文 SKILL.md
GO Photo Studio Skill
When to use
Use this skill when the user wants:
- Professional headshot generation from selfie photos
- Resume/profile/ID-photo styling with realistic skin texture
- Strict identity-preserving prompt construction
- Reusable prompt payloads that can be sent to Gemini/OpenAI/Anthropic adapters
Do not use this skill for:
- Face swapping with celebrities
- Deepfake or impersonation requests
- Illegal identity document forgery
Inputs
Expect a JSON request with:
image_uri: local file path, URL, or data URI to the source photopreset_id: style preset ID fromreferences/presets.jsonoutput_ratio: one of9:16,4:5,1:1,2:2language:enorzh- Optional
constraints: additional user constraints
Workflow
- Validate input with
scripts/validate_request.cjs. - Compose standardized prompt payload with
scripts/compose_prompt.cjs. - Pass payload to the chosen provider adapter in the host project.
- Return both:
- Provider-ready prompt fields
- Human-readable explanation of chosen preset and safety boundaries
Progressive Pipeline (Recommended)
Use this when you need layer parsing, identity extraction, and staged refinement.
- Stage A: Layer parse
node skills/go-photo-studio/scripts/stage-a-layer-parse.cjs --input request.json --provider gemini > stage-a.json
- Stage B: Identity extract
node skills/go-photo-studio/scripts/stage-b-identity-extract.cjs --input stage-a.json --request request.json --provider gemini > stage-b.json
- Stage C: Guided stylization
node skills/go-photo-studio/scripts/stage-c-guided-stylization.cjs --request request.json --stage-a stage-a.json --stage-b stage-b.json > stage-c.json
- Stage D: Refinement and export plan
node skills/go-photo-studio/scripts/stage-d-refine-export.cjs --request request.json --stage-c stage-c.json > stage-d.json
- Stage E: Verify generated image and decide retry
node skills/go-photo-studio/scripts/stage-e-verify-generation.cjs --request request.json --generated output.png --provider gemini --thresholds skills/go-photo-studio/references/verification-thresholds.json > stage-e.json
If stage-e.json returns pass: false, retry generation with stronger negative constraints before accepting output.
Commands
Validate:
node skills/go-photo-studio/scripts/validate_request.cjs --input request.json
Compose payload:
node skills/go-photo-studio/scripts/compose_prompt.cjs --input request.json
Run end-to-end with retry gate:
node skills/go-photo-studio/scripts/run-pipeline.cjs --request request.json --generated output.png --provider gemini
For automatic retries with regenerated outputs, pass --generate-cmd:
node skills/go-photo-studio/scripts/run-pipeline.cjs --request request.json --provider gemini --generate-cmd "your_generator --request {request} --stage-c {stage_c} --stage-d {stage_d} --output {output}"
Minimal built-in generator for real provider-backed runs:
node skills/go-photo-studio/scripts/generate-with-provider.cjs --request request.json --stage-c stage-c.json --stage-d stage-d.json --provider gemini --output output.png
Build quality monitoring dashboard from run history:
node skills/go-photo-studio/scripts/build-quality-dashboard.cjs --history .pipeline-history/runs.ndjson
Supported --provider values: gemini, openai, anthropic.
Calibrate thresholds from labeled eval records:
node skills/go-photo-studio/scripts/calibrate-thresholds.cjs --input skills/go-photo-studio/references/eval/eval.json --output skills/go-photo-studio/references/verification-thresholds.json
Output contract
The composed payload must include:
system_prompt: identity and realism rulesstyle_prompt: preset-driven style constraintsnegative_constraints: forbidden outcomesmetadata: preset, category, ratio, language, version
References
- Presets:
references/presets.json - Policy boundaries:
references/policy.md - Integration notes:
references/integration.md - Pipeline spec:
references/pipeline.md - Verification thresholds:
references/verification-thresholds.json - Status tracker:
references/status.md - Eval dataset/template:
references/eval/eval.jsonandreferences/eval/README.md - Example requests/outputs:
examples/ - Smoke tests:
tests/smoke.cjs - Architecture split:
../../ARCHITECTURE.md - Optional Python deps for deterministic score:
scripts/requirements.txt - Embedding scorer:
scripts/embedding-identity-score.py - Quality dashboard:
scripts/build-quality-dashboard.cjs