punk-avatar
GitHub用于从Punk风格库选择单一样式,结合主体描述与头像蓝图,生成整合的头像或纪念卡片提示词。支持人、宠物及物体,默认1:1比例,不暴露封面类样式。
Trigger Scenarios
Install
npx skills add NeverSight/learn-skills.dev --skill punk-avatar -g -y
SKILL.md
Frontmatter
{
"name": "punk-avatar",
"description": "Generate avatar images and reusable avatar image prompts from the shared Punk style library for people, pets, objects, profile pictures, pet portraits, and avatar-derived keepsake cards. Use this skill to identify the subject from image or text, choose one avatar-capable style, compile the selected style atom into the avatar blueprint, save the final prompt, and generate the image when an image-generation tool is available."
}
Punk Avatar
Core Rule
punk-avatar is an avatar-shape workflow, not a style owner. Select exactly one reusable style from the repository-level styles/ library, then compile that style atom into the avatar shape.
The final image prompt is not a loose concatenation of "avatar instructions + style instructions". It must be one integrated, avatar-specific prompt that applies the selected style to a profile image, portrait avatar, object avatar, pet avatar, or avatar-derived keepsake card.
Use three inputs:
punk-avatartask fields: subject type, source image or text description, intended use, likeness policy, avatar composition, aspect ratio, background simplification, crop safety, and universal output constraints.- The selected style's
META.mdmetadata andSTYLE.mdreusable visual style atom. references/avatar-prompt-blueprint.md, which defines the full avatar prompt shape.
The style file defines the reusable visual language. The avatar blueprint defines the output form. The final prompt must fuse them into one complete avatar-generation prompt.
Resources
- Read
references/style-catalog.mdto list or choose avatar styles. - Read
references/avatar-prompt-blueprint.mdbefore composing the final prompt. - For the selected style, read both:
../../styles/{style-id}/META.md../../styles/{style-id}/STYLE.md
- Expose only these five styles in the
punk-avatarmenu:pixel-avatargrotesque-soul-sketchmessy-crayon-pet-portraitfashion-sketch-observationpolaroid-keepsake
- Do not expose cover/poster styles in the
punk-avatarmenu. - Do not read
punk-coverreferences or templates for avatar runs.
Workflow
-
Analyze the source material:
- If the user provides one or more images, treat image input as primary.
- Identify the main subject type:
person,pet,object, orunclear. - Extract only concise visual traits needed for an avatar: face/head shape, hair or fur, eyes, expression, posture, signature colors, clothing, accessories, object silhouette, and any must-preserve marks.
- Use text as supplemental context: name, temperament, intended use, preferred background color, elements to preserve, and elements to avoid.
- If there is no image and the user describes a fictional avatar, handle it as description-based generation. Do not promise likeness to a real photo.
-
Resolve aspect ratio:
- Default ratio is always
1:1insidepunk-avatar. - If the user specifies
3:4,4:5,16:9, or any custom ratio, keep the user's ratio exactly. - Do not use the selected style metadata's
default_ratioas the avatar default. - For
polaroid-keepsake, default to1:1inpunk-avatar; only generate a vertical polaroid card when the user explicitly asks for a vertical ratio. - Do not ask a ratio question when the user omits ratio.
- Default ratio is always
-
Confirm style before generating any prompt:
- If the user specifies one catalog style, use it.
- If no style is specified, recommend 2-3 eligible styles based on the subject type and ask the user to choose one.
- When style is missing, stop after asking. Do not fill a style file, save prompt files, or generate an image.
- Only auto-select one style when the user explicitly says to decide everything automatically.
-
Recommendation rules:
- Pet subject: recommend
凌乱蜡笔宠物肖像,拍立得纪念卡, and怪诞灵魂手绘; include像素头像when a more icon-like avatar may fit. - Person subject: recommend
怪诞灵魂手绘,时尚速写观察页, and像素头像. - Object subject or unclear subject: recommend
像素头像first. - Do not recommend
messy-crayon-pet-portraitfor people. - Do not recommend
fashion-sketch-observationfor pets or objects unless the user explicitly asks for that style. - Do not recommend
polaroid-keepsakefor people or objects.
- Pet subject: recommend
-
Use this confirmation gate:
- Missing style: ask for style choice and stop.
- Missing ratio: silently use
1:1. - Known style: continue without asking.
- If both style and subject are known enough to proceed, compile the prompt.
-
Compile the final image prompt:
- Use
references/avatar-prompt-blueprint.mdas the required structure forprompts/avatar.md. - Read exactly one selected style visual atom from
../../styles/{style-id}/STYLE.md. - Read the selected style metadata from
../../styles/{style-id}/META.md. - Extract the selected style's non-negotiable visual anchors: subject treatment, composition, background behavior, line or texture system, color logic, typography or handwritten behavior, likeness constraints, and negative constraints.
- Fuse the avatar task fields and style anchors into one full avatar prompt. The final prompt should read like a complete avatar-generation brief, not like two unrelated prompt fragments pasted together.
- Include avatar-shape sections for role/task, input fields, source interpretation, subject identity, likeness policy, avatar composition, crop safety, background, style application, color/material/texture, optional text/name handling, negative constraints, and final standard.
- Do not append the raw
STYLE.mdcontent as a standalone second section. Rewrite and adapt its style atoms into the avatar blueprint. - Do not combine multiple styles or add a second custom style section.
- Replace or resolve all explicit placeholders from the selected style file.
- For image-based inputs, preserve recognizable subject identity without creating a photorealistic copy unless the selected style requires realistic structure.
- For text-only fictional avatars, say the image should follow the description and avoid claims such as "preserve photo likeness".
- Do not bring cover-title hierarchy, article summaries, platform propagation rules, or social-cover composition into the avatar prompt.
- Do not output analysis inside the final prompt.
- Use
-
Save files before image generation:
- Create
punk-assets/punk-avatar/{slug}/prompts/avatar.mdwith the complete filled prompt. - If image generation returns an explicit local file path, downloadable URL, or image bytes for the current run, save that artifact as
punk-assets/punk-avatar/{slug}/avatar.png. - Do not infer the correct artifact by scanning broad generated-image directories, because those directories may contain unrelated images from other runs.
- If the image-generation tool only returns an inline preview with no explicit retrievable artifact for the current run, do not create a fake
avatar.png.
- Create
-
Generate an image by default after saving the prompt when a usable image-generation tool is available, such as
image_gen. Treat inline preview generation as successful image generation, but treat localavatar.pngsaving as successful only when the tool explicitly exposes a current-run artifact. Skip image generation only when the user explicitly asks for prompt-only output or the current environment has no image-generation tool. If image generation is unavailable, return the prompt file path and the full prompt content.
First Response Format
For input with no style, ask concisely:
默认画幅:1:1。
请选择一个头像风格:
- `风格 A`:reason tied to the subject.
- `风格 B`:reason tied to the subject.
- `风格 C`:reason tied to the subject.
也可以回复 "auto" 让我自动选择。
Do not ask for ratio unless the user explicitly wants ratio options.
Style Selection Heuristics
- Use
pixel-avatarfor people, pets, objects, symbolic avatars, icon-like profile pictures, and unclear subjects. - Use
grotesque-soul-sketchfor people or pets that should feel expressive, funny, sketchy, and personality-driven. - Use
messy-crayon-pet-portraitonly for pets and pet portrait avatars. - Use
fashion-sketch-observationonly for people, especially fashion, travel, street-photo, film-still, or editorial personal portraits. - Use
polaroid-keepsakeonly for pets, especially memorial, collectible, named pet cards, and avatar-derived keepsake cards.
Avatar Prompt Blueprint
Use references/avatar-prompt-blueprint.md as the full prompt structure. The block below is retained only as the required task-field content that must be represented inside the integrated final prompt.
# punk-avatar task instructions
Create one single avatar image. Aspect ratio: {ratio}.
Use the following derived subject fields only:
- Subject type: {subject_type}
- Generation mode: {image_based_or_description_based}
- Subject identity: {subject_identity}
- Recognizable traits: {recognizable_traits}
- Name or text to include: {name_or_text}
- Intended use: {use_case}
- Background preference: {background_preference}
- Mood: {mood}
- Preserve: {preserve}
- Avoid: {avoid}
For image-based inputs, preserve the subject's most recognizable traits while translating them into the selected style. Do not claim exact biometric identity or photorealistic duplication.
For description-based inputs, create a fictional avatar from the description. Do not write that it preserves photo likeness.
The avatar must work as a profile image: readable at small size, centered or deliberately framed, clear silhouette, no important facial features or subject marks cropped out, simplified background, and one final output.
Generate only one final image. Do not output explanations, alternatives, grids, contact sheets, or multi-option compositions.
Output Discipline
- The final generated prompt must be one integrated avatar-specific prompt compiled from the avatar task fields,
references/avatar-prompt-blueprint.md, and exactly one selected style atom. - Do not paste the selected style
STYLE.mdas a standalone second section. Adapt its style atoms into the avatar blueprint. - The final prompt must preserve the selected style's non-negotiable anchors from
META.mdandSTYLE.md. - Do not copy unrelated user text into the final prompt; use concise derived subject fields.
- Do not include style-selection rationale inside the prompt file.
- Do not combine multiple styles.
- Do not add cover/poster title hierarchy, article summary, or platform cover rules.
Version History
- e0220ca Current 2026-07-05 23:31


