关于 certificate-generation
certificate-generation 是使用 each::sense 生成证书图像的技能,适用于教育机构、企业培训和表彰项目。它支持多种证书类型,并可在设计中安排姓名、日期、签名和标识等元素。
主要功能
- 01生成课程结业与培训证书
- 02制作奖项及成就证书
- 03设计专业资格证书与学位证书
- 04创建感谢与参与证书
- 05加入品牌元素和内容占位符
适用场景
- 01为在线课程制作结业证书
- 02为员工培训和合规课程颁发证书
- 03为竞赛获奖者制作奖项证书
- 04设计带机构标识的定制证书
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ eachlabs/ skills --skill certificate-generation安装后在 Claude Code 中输入/certificate-generation确认已加载。
附带文件references/SSE-EVENTS.md
详细介绍
证书生成
使用 each::sense 生成专业证书、文凭和奖项。此技能可创建高品质证书图像,适用于教育机构、企业培训、职业发展和表彰项目。
功能
- 课程结业证书:在线课程、研讨会、训练营
- 成就证书:里程碑、目标、竞赛
- 奖项证书:表彰、卓越表现、杰出成就
- 职业资格证书:行业资质、资格认证
- 学术文凭:学位、毕业、学术成就
- 培训证书:企业培训、合规培训、技能发展
- 感谢证书:致谢、志愿者表彰、服务奖项
- 参与证书:活动、会议、项目
- 员工表彰:月度最佳员工、服务年限
- 定制品牌证书:融入公司标志和品牌元素的专属设计
快速开始
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a professional course completion certificate for a web development bootcamp. Include placeholder text for recipient name, course name, completion date, and instructor signature."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
证书设计元素
| 元素 | 描述 | 位置 |
|---|---|---|
| 边框/装饰框 | 装饰性边框、华丽的装饰框 | 外围 |
| 页眉 | 机构名称、标志占位符 | 顶部居中 |
| 标题 | 证书类型(结业证书等) | 上方居中 |
| 获证者姓名 | 醒目、显眼的占位符 | 中央 |
| 描述 | 成就详情、课程名称 | 姓名下方 |
| 日期 | 完成/颁发日期 | 下方区域 |
| 签名 | 授权人签名及职衔 | 底部区域 |
| 印章/徽章 | 官方印章、徽章或标记 | 角落或底部中央 |
| 证书 ID | 唯一标识符占位符 | 底部角落 |
用例示例
1. 课程结业证书
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create an elegant course completion certificate for an online learning platform. Modern design with navy blue and gold accents. Include sections for: recipient name, course title, completion date, instructor signature, and platform logo placeholder. Add a decorative border and official seal."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
2. 成就证书
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design an achievement certificate for a sales team. Celebratory design with star motifs and ribbon accents. Include fields for: employee name, achievement description (e.g., exceeded quarterly target by 150%), date, and manager signature. Corporate professional style with red and silver color scheme."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
3. 奖项证书
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create an award certificate for a science fair competition. First place winner design with trophy imagery and laurel wreath elements. Include: winner name, project title, competition name, date, and judges signatures. Premium golden design with white background."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
4. 职业资格证书
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design a professional certification certificate for a project management credential. Formal corporate style with clean lines. Include: certified professional name, certification title (Certified Project Manager), issue date, expiration date, certification ID number, and certifying authority signature. Use dark blue and white color scheme with embossed seal look."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
5. 学术文凭
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a traditional academic diploma for a university. Classic formal design with ornate border and calligraphic elements. Include: graduate name, degree title (Bachelor of Science in Computer Science), university name, graduation date, university seal placeholder, and signatures for dean and president. Ivory background with dark green and gold accents."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
6. 培训证书
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design a corporate training certificate for workplace safety compliance. Professional and official design. Include: employee name, training program name, training hours completed, completion date, trainer signature, and HR manager signature. Add company logo placeholder and compliance badge. Blue and gray corporate colors."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
7. 感谢证书
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a certificate of appreciation for volunteer work. Warm and heartfelt design with soft colors. Include: volunteer name, organization name, description of service, hours contributed, date, and director signature. Add decorative elements like hands or hearts. Use teal and coral color palette."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
8. 参与证书
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design a participation certificate for a hackathon event. Modern tech-inspired design with geometric patterns. Include: participant name, event name, event dates, category/track participated in, and organizer signature. Use vibrant purple and electric blue colors with clean sans-serif typography."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
9. 月度最佳员工
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create an Employee of the Month certificate. Prestigious and motivating design with star and spotlight elements. Include: employee name, month and year, department, reason for recognition, CEO signature, and company logo placeholder. Premium gold and black design with elegant typography."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
10. 定制品牌证书
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Design a certificate template for a tech company named TechForward. Minimalist modern design that matches tech startup aesthetics. Include: recipient name, certificate title (flexible), achievement description, date, and dual signature lines. Use clean white background with gradient accent in purple to blue. Include prominent logo placeholder area and QR code placeholder for verification."}],
"model": "eachsense/beta",
"stream": true,
"mode": "max"
}'
模式选择
生成前询问用户:
“您想要快速且经济的方案,还是高品质方案?”
| 模式 | 最适合 | 速度 | 质量 |
|---|---|---|---|
max | 最终版证书、正式文件 | 较慢 | 最高 |
eco | 快速草稿、模板探索 | 较快 | 良好 |
多轮证书设计
使用 session_id 迭代设计证书:
# Initial design
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a certificate of completion for a coding bootcamp"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "cert-bootcamp-001"
}'
# Iterate based on feedback
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Make the design more modern with darker colors and add a tech-inspired geometric border"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "cert-bootcamp-001"
}'
# Add specific elements
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Add a QR code placeholder in the bottom right corner and include space for a holographic seal"}],
"model": "eachsense/beta",
"stream": true,
"session_id": "cert-bootcamp-001"
}'
系列证书生成
为不同级别生成风格统一的证书:
# Bronze level certificate
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create a Bronze level achievement certificate for a learning platform. Use bronze/copper metallic accents. Include level badge prominently."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "cert-levels-001"
}'
# Silver level certificate (same session for consistency)
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create the Silver level version of this certificate. Same layout but with silver metallic accents."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "cert-levels-001"
}'
# Gold level certificate
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
-H "Content-Type: application/json" \
-H "X-API-Key: $EACHLABS_API_KEY" \
-H "Accept: text/event-stream" \
-d '{
"messages": [{"role": "user", "content": "Create the Gold level version. Same layout but with gold metallic accents and more ornate details."}],
"model": "eachsense/beta",
"stream": true,
"session_id": "cert-levels-001"
}'
最佳实践
设计指南
- 字体排印:使用优雅、易读的字体;姓名使用手写体,正文使用简洁的无衬线字体
- 层级:让获证者姓名成为最醒目的元素
- 平衡:正式证书通常采用对称布局效果最佳
- 留白:为各元素留出充足的空白空间
- 配色:最多使用 2–3 种颜色;金色/海军蓝/勃艮第红能传达尊贵感
内容建议
- 标题清晰:醒目标明证书类型
- 具体成就:说明取得的成就
- 权威性:添加签名和官方印章
- 验证信息:添加证书 ID 或 QR 码占位符
- 日期:务必注明颁发日期;如适用,也应注明有效期
技术注意事项
- 分辨率:为满足印刷质量要求,请指定高分辨率
- 宽高比:标准证书通常采用横向 4:3 比例或信纸尺寸
- 文本占位符:使用清晰的占位文本,例如“[Recipient Name]”
- 标志空间:务必为机构标志预留专门区域
证书提示词技巧
创建证书时,请在提示词中包含以下详细信息:
- 证书类型:结业证书、成就证书、奖项证书、文凭等。
- 场合/目的:要表彰或证明的事项
- 风格:正式、现代、传统、活泼
- 配色方案:指定颜色或整体色调
- 必备元素:姓名、日期、签名、印章、徽标
- 组织背景:行业、正式程度
- 特殊功能:二维码、安全元素、徽章
提示词结构示例
"Create a [certificate type] certificate for [organization/purpose].
Style: [formal/modern/traditional].
Color scheme: [colors].
Include: [list of required elements].
Special features: [QR code, seal, badge, etc.]."
错误处理
| 错误 | 原因 | 解决方案 |
|---|---|---|
Failed to create prediction: HTTP 422 | 余额不足 | 在 eachlabs.ai 充值 |
| 内容政策违规 | 内容违规 | 调整提示词,使其符合内容政策 |
| 超时 | 生成内容复杂 | 将客户端超时时间设为至少 10 分钟 |
相关技能
each-sense- 核心 API 文档product-photo-generation- 产品和品牌图像logo-generation- 证书徽标制作
评论
支持 Markdown