Agent Skillstandpfun/wardrobe › generate-outfits

generate-outfits

GitHub

根据本地衣橱数据库,为用户生成指定数量的完整穿搭方案及身份一致的模特展示图。支持并行处理、风格筛选与最终质检,确保图片唯一性并保存至本地。

.agents/skills/generate-outfits/SKILL.md tandpfun/wardrobe

Trigger Scenarios

用户询问穿搭建议或造型灵感 请求基于已有衣物生成搭配组合 要求生成模特试穿效果图片 创建个人时尚图鉴

Install

npx skills add tandpfun/wardrobe --skill generate-outfits -g -y
More Options

Non-standard path

npx skills add https://github.com/tandpfun/wardrobe/tree/main/.agents/skills/generate-outfits -g -y

Use without installing

npx skills use tandpfun/wardrobe@generate-outfits

指定 Agent (Claude Code)

npx skills add tandpfun/wardrobe --skill generate-outfits -a claude-code -g -y

安装 repo 全部 skill

npx skills add tandpfun/wardrobe --all -g -y

预览 repo 内 skill

npx skills add tandpfun/wardrobe --list

SKILL.md

Frontmatter
{
    "name": "generate-outfits",
    "description": "Curate complete outfits from the local Wardrobe database and generate identity-preserving square modeled photos for every selected look end to end. Use when a user asks Codex for outfit ideas, combinations, looks, styling suggestions, a lookbook, or modeled outfit images based on clothes already imported into this Wardrobe."
}

Generate Outfits

Create a complete local outfit collection from data/library.json: select strong combinations, generate a square modeled image for each, verify every result, and save the finished manifest and images under data/.

Begin with the count

Ask How many outfits would you like me to generate? unless the user already provided a positive count. Do not choose a default silently.

Also obtain the intended season, occasions, dress codes, or styling direction when the user named them. Otherwise create a balanced everyday mix without blocking on more questions.

Do the workflow end to end after receiving the count. Do not stop after returning suggestions, a manifest, or prompts.

Requirements

  • Read and follow the built-in imagegen skill before generating images.
  • Require data/library.json, enough tops and bottoms for the requested count, and a local identity reference at data/model-reference.png or WARDROBE_MODEL_REFERENCE.
  • Keep every source garment and identity image local and unchanged.
  • Never add data/, the identity reference, garment images, or generated photos to Git.
  • Use only wardrobe items that exist in the current database and whose local assets resolve successfully.
  • Generate exactly the requested number of unique outfits and exactly one accepted modeled photo for each.

Parallel work

Use subagents when the user requests more than eight outfits or explicitly asks for parallel generation. Keep one main agent responsible for the complete wardrobe inventory, global combination uniqueness, garment-usage balance, manifest reconciliation, and final QA.

Assign each worker a disjoint set of outfit IDs plus the exact identity and garment reference paths. Require every worker to return the outfit ID, filled prompt, reference list, generated path, status, and visual-review notes. Never allow two workers to generate or write the same outfit ID. Run workers in waves when concurrency is limited, reconcile results after every wave, and resume only missing or failed IDs.

1. Inspect the wardrobe

Read data/library.json. Resolve /api/import/library/FILENAME assets to data/imported/FILENAME. Group items by:

  • upperbody — tops
  • wholebody_up — jackets and outer layers
  • lowerbody — bottoms
  • accessories_up — optional accessories
  • shoes — optional shoes

Create checkerboard contact sheets of at most 12 garment cutouts and inspect them. Use both metadata and visual evidence; do not style from filenames or colors alone.

If the wardrobe cannot support the requested number of genuinely distinct outfits, tell the user the maximum useful count and ask whether to continue with that number.

2. Curate the combinations

Each outfit must contain exactly one top and one bottom, with an optional jacket, shoes, and restrained accessory. Use these principles recovered from the established Wardrobe outfit workflow:

  • Favor tonal or analogous color harmony for cohesion.
  • Use complementary contrast selectively and keep one color or garment dominant.
  • Let one graphic, pattern, texture, or saturated piece carry the statement.
  • Balance visual weight and silhouette: pair fuller bottoms with a cleaner top; keep heavier layers over a simple base.
  • Use outer layers to frame the base look, repeat a present color, or add one controlled contrast.
  • Keep layered looks physically plausible and make every selected garment visibly identifiable.
  • Diversify garment usage instead of repeatedly leaning on the easiest neutral pieces.

Cover a useful mix of the user’s requested contexts. Without specific direction, balance casual, smart-casual, warm-weather, layered, dark-tonal, and statement looks as the wardrobe permits.

Build $WORK/outfits.json with the final target count:

{
  "version": 1,
  "outfits": [
    {
      "id": "navy-camel-classic",
      "name": "Navy & Camel Classic",
      "occasion": ["smart-casual", "office"],
      "garmentIds": ["import-...", "import-..."],
      "reason": "Deep navy and camel create controlled warm-cool contrast.",
      "setting": "a quiet warm-stone courtyard with restrained greenery",
      "image": "outfit-images/navy-camel-classic.png",
      "status": "planned"
    }
  ]
}

Use stable lowercase hyphenated IDs. Reject duplicate garment combinations even when names or settings differ.

3. Prepare references and prompts

Create one generation package per outfit:

  1. Identity reference
  2. Exact top cutout
  3. Exact bottom cutout
  4. Optional exact outer layer
  5. Optional exact shoes or accessory only when deliberately selected

Read references/outfit-image-prompt.md and fill its template from the exact outfit record. Inspect every outer-layer reference before choosing the layered clause; never infer a zipper, buttons, placket, opening, or closure.

Rotate restrained warm, natural settings across the collection while keeping one cohesive editorial art direction.

4. Generate every outfit

Create one square 1:1 modeled PNG per outfit with Imagegen. Save working outputs outside data/ until they pass review. Use the smallest valid set of references for each call and never omit a selected garment.

Generate in bounded batches when the collection is large. Track every outfit as planned, generated, accepted, or failed; resume only missing or failed IDs.

5. Verify and correct

Compare every output against the identity and all garment references. Inspect contact sheets of at most 12 modeled outfits, then open questionable images individually.

Require:

  • recognizable identity, face, hair, age, build, and body proportions
  • every selected garment present and recognizable
  • exact garment color, material, fit, construction, graphics, logos, text, proportions, and closures
  • complete head-to-shoes framing with readable outfit and realistic anatomy
  • natural layering without invented openings or hidden inner pieces
  • no unselected visible garments except plain neutral shoes or invisible basics when no shoes were selected
  • no extra person, text overlay, watermark, product mockup, or synthetic AI polish

Regenerate identity drift, missing or redesigned garments, fake closures or text, anatomy failures, or cropped feet. Do not mark an outfit accepted based on plausibility alone.

6. Deliver locally

After all requested outfits pass:

  1. Create data/outfit-images/ if needed.
  2. Copy each accepted PNG to data/outfit-images/OUTFIT-ID.png.
  3. Set every accepted manifest image to /api/import/outfits/OUTFIT-ID.png only if the app exposes that endpoint; otherwise keep the repository-relative outfit-images/OUTFIT-ID.png path.
  4. Atomically write the exact requested collection to data/outfits.json.
  5. Reopen every copied file and verify that the count of images, unique outfit IDs, and accepted manifest records all equal the number the user requested.

Do not claim the current gallery displays outfits unless the app has an outfit route. The completed local assets and manifest are still the deliverable.

Finish

Report the requested and completed count, output paths, any regenerated failures, and the styling mix. Display up to 12 modeled outfits in chat and point the user to the local folder for the rest.

Version History

  • f44006c Current 2026-07-19 08:52

Same Skill Collection

.agents/skills/import-clothes/SKILL.md

Metadata

Files
0
Version
f44006c
Hash
49ec2241
Indexed
2026-07-19 08:52

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-21 04:22
浙ICP备14020137号-1 $Carte des visiteurs$