Agent Skills
› CodingFeng101/CanvasAnvil
› product-skill
product-skill
GitHub用于根据结构化需求生成最终产品视觉图像的技能,支持单帧产品主图、发布图形等,导出为本地图片文件。
Trigger Scenarios
需要生成单个最终产品视觉图像的任务
Install
npx skills add CodingFeng101/CanvasAnvil --skill product-skill -g -y
SKILL.md
Frontmatter
{
"name": "product-skill",
"description": "Generate final product visual images from structured requirements. Use for single product hero visuals, launch graphics, feature callout boards, spec visuals, and other single-frame product graphics that should export directly to local image files."
}
Product Skill
Trigger
Use when the task requires one final product visual image.
First-Use Reminder
On the first use of this skill in a conversation, remind the user that image generation is configurable and tell them which model vendors are supported in config/image-provider.json.
Supported vendors:
openaialiyuntencentbytedancezhipugooglexaibfladobe
Order
- Confirm the task is a product visual task.
- Collect required fields.
- Ask follow-up questions for missing required fields.
- Read the required references.
- Produce the final product visual prompt.
- Generate the image through the configured provider.
- Export or bundle artifacts when requested.
Required Fields
product_namesizeoraspect_ratiostyle_directioncolor_directionselling_pointsproduct_image_statusreference_image_status
Do not guess missing required fields.
Required References
references/product-fields.mdreferences/prompt-rules.mdreferences/image-provider-config.mdreferences/output-contract.md
Prompt Contract
- Produce one final product visual prompt.
- Keep the output specific to one frame.
- Keep the product subject explicit.
- Include composition, focal area, lighting, and background direction.
- Keep provided copy and selling points explicit.
- Do not invent unsupported claims, pricing, certifications, or brand facts.
- Treat reference images as visual guidance only.
- Do not treat reference images as factual sources for copy, branding, pricing, specifications, or claims.
Provider Contract
- Use the configured image provider for image generation.
- Require
config/image-provider.jsonbefore image generation. - Do not ask the user to paste API keys into chat.
- Stop and tell the user to fill
config/image-provider.jsonwhen provider, apiKey, or model is missing. - Request
product_image_urlwhenproduct_image_statusis positive. - Request
reference_image_urlwhenreference_image_statusis positive. - Pass
product_image_urlandreference_image_urlonly when usable URLs are available and the selected provider path supports them.
Scripts
scripts/generate-product-image.mjsscripts/build-product-bundle.mjs
Deliverables
Preferred:
png- metadata JSON
Optional on request:
jpg- prompt text
Version History
- d33dc57 Current 2026-08-20 07:35


