用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/LAIJiangFeng/resume-builder --skill resume-template-from-image命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | resume-template-from-image |
| description | 当用户发送简历模板图片时,按本项目现有模板规范直接生成可用的新模板(含组件、注册与预览图接入)。 |
当用户上传一张或多张简历模板图片,并表达“照这个样式生成模板/新增模板”时,直接执行本技能。
基于用户图片,生成一套可在当前项目直接切换使用的模板实现,且严格对齐现有模板规则,不发散到项目外实现。 图片只用于参考视觉样式,不用于决定数据字段结构。
image-style-20260328)。${key}-preview.svg(或 png/webp)。src/templates/resume/<key>/ResumeTemplate.vuesrc/templates/resume/<key>/template.tssrc/assets/templates/resume/<key>-preview.svgsrc/templates/resume/index.tsRESUME_TEMPLATES 列表。key 必须唯一,name 和 previewImage 不能为空。template.ts 必须使用静态资源导入方式(与现有模板保持一致):import previewImage from '../../../assets/templates/resume/<key>-preview.svg'resolveTemplatePreviewImage('../../../assets/templates/resume/<key>-preview.svg', import.meta.url),避免 Vite 构建时遗漏静态资源打包。ResumeTemplateDefinition 对象,字段仅用 key/name/previewImage/component。ResumeTemplate.vue 必须复用现有数据来源:useResumeTemplateData()。moduleOrderStyle 维持模块顺序。src/stores/resume.ts 已有字段,不新增数据模型字段。basicInfo: store.isModuleVisible('basicInfo')education: store.isModuleVisible('education') && store.educationList.some((e) => e.school)skills: store.isModuleVisible('skills') && store.skillsworkExperience: store.isModuleVisible('workExperience') && store.workList.some((w) => w.company)projectExperience: store.isModuleVisible('projectExperience') && store.projectList.some((p) => p.name)awards: store.isModuleVisible('awards') && store.awardList.some((a) => a.name)selfIntro: store.isModuleVisible('selfIntro') && store.selfIntro!hasAnyContent 时展示提示。skills / selfIntro / work.description / project.introduction / project.mainWork / award.description / education.description 用 v-html 渲染。:deep(.entry-rich ...) 提供基础兼容样式(ul/ol/li/p)。width: 100%、min-height: 100%、box-sizing: border-box。PreviewPanel.vue 的 794 宽画布)。website/github/blog/link,链接需支持可点击并带 target="_blank" 与 rel="noopener noreferrer"。toHref 处理。src/assets/templates/resume 下创建与模板同名风格的 SVG 预览图:<key>-preview.svg。800 x 1120,viewBox="0 0 800 1120"),保证模板选择器显示效果稳定。<text> 节点。font-family、font-size 等字体相关属性。template.ts 的 previewImage 必须通过“静态 import”引用该 SVG 文件。src/stores/resume.ts 的 modules 为唯一来源:
教育经历、专业技能、工作经历、项目经历、荣誉奖项、个人简介。basicInfo 固定在首位,其余模块必须通过 moduleOrderStyle 跟随编辑区顺序变化。src/stores/resume.ts 中该模块已存在且用户已填写的字段,都必须在模板中有对应展示位置。basicInfo、education、skills、workExperience、projectExperience、awards、selfIntro 七个模块都必须支持完整映射;模块隐藏仅由可见性控制,不得通过删除渲染逻辑实现。useResumeTemplateData 中的 lineOneMeta / lineTwoMeta / lineThreeMeta 体系,避免字段缺失。ResumeTemplate.vue、template.ts、src/assets/templates/resume/<key>-preview.svg。template.ts 中的预览图接入必须使用 import previewImage from ...svg,禁止 resolveTemplatePreviewImage + import.meta.url 写法。src/templates/resume/index.ts 完成 import + 注册。<text> 与字体属性。基于 SOC 职业分类