360 Secure SkillHub
360 安全技能中心

YouCam Facial Consultant

输入一张正面单人自拍,先询问用户需要的分析类型并告知积分消耗,再由 Python 脚本调用 YouCam 的肤色分析与面部特征分析接口(必要时轮询任务状态),最后依据参考文档解读颜色、脸型与黄金比例,生成可读报告。

youcam-api
youcam-api
热度 50.77
最近更新 2026-10-14 16:15:50
分类:数据依赖:代码执行 / 第三方 API / 读写文件应用场景:报告撰写 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add youcam-facial-consultant
Metadata
name
facial-consultant
description
Analyze skin tone and facial attributes from a single selfie using YouCam (Perfect Corp) AI. Returns skin/eye/eyebrow/lip/hair colors plus facial feature shapes and golden-ratio proportions, as a readable report. Use for "測膚色", "臉型分析", "facial attributes". Do NOT use for skin-condition scoring (that's skin-analysis-expert), makeup, or hair try-on.
version
1.1.1
requirements
{"credentials":[{"name":"YOUCAM_API_KEY","source":"env | credentials.json (in the skill root, next to SKILL.md)"}],"network":["yce-api-01.makeupar.com"],"apis":["skin-tone-analysis","face-attr-analysis"],"permissions":[{"type":"exec","commands":["python"]}]}

Facial Consultant

An analysis skill that can call two APIs. You (the agent) run the flow here through scripts/youcam_core.py, and you also do the golden-ratio interpretation from the references.

When to trigger

When the user wants their skin tone, facial features / face shape, or facial proportions. For skin-condition scores, hand off to skin-analysis-expert.

Ask first (this skill has multiple analyses)

Before running anything, ask the user what they want and state the credit cost of each:

  • Skin tone — colors of skin/eyes/brows/lips/hair (skin-tone-analysis)
  • Facial attributes & ratios — feature shapes, face shape, golden-ratio proportions (face-attr-analysis)
  • Both Get the per-call cost with python scripts/youcam_core.py cost --feature skin-tone-analysis and --feature face-attr-analysis, tell the user, and only run the ones they choose.

Get the latest API spec (do this every run)

Read the doc section(s) for the chosen analyses and open the latest version for the current endpoint / parameters:

Prerequisites

  1. A clear, front-facing, single-person selfie.
  2. Run python scripts/youcam_core.py validate-key (0 credits) to confirm the key. If it is not set, tell the user to get one at https://yce.perfectcorp.com/api-console and set the YOUCAM_API_KEY env var, or create credentials.json in the skill root (see credentials.example.json for the format).

Run (only the chosen analyses)

python scripts/youcam_core.py run --feature skin-tone-analysis --src_file <photo> --param face_angle_strictness_level=high
python scripts/youcam_core.py run --feature face-attr-analysis  --src_file <photo> \
    --param face_angle_strictness_level=high \
    --param features='["eyeShape","eyeSize","eyeDistance","eyebrowShape","cheekbones","faceShape","lipShape","noseWidth","noseLength","eyeColor","lipColor","eyebrowColor","hairColor","horizontalThird","verticalFifth","faceAspectRatio","upperLipToLowerLip"]'

If run prints "task_status": "running", the task is still processing and run stopped waiting. Do not run it again, since that starts a new task and charges again. Check back with python scripts/youcam_core.py status --feature <feature> --task_id <task_id>, using the task_id from that output, until task_status is success or error. A task_id stays valid for 24 hours.

Interpret colors and features with references/guide.md, and do the golden-ratio bucketing yourself (buckets and golden targets are in that file).

Output rules

  • For colors, report colors only; do not infer an undertone that was not returned.
  • Ratios drift slightly between runs and faceShape may not be returned; label ratios as approximate and skip missing values instead of filling them in.
  • Always end with this note: "This is an AI-based facial analysis for reference only. It is not a medical or cosmetic-surgery assessment; results can vary with lighting and pose."