lov-skill-creator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill 工坊 · Skill Studio
Skill 工坊 · Skill Studio
Create every Skill as a portable local source directory named ,
bind it to the shared contract, validate it, and install it
into the user's local agent skills directory as . Remote repositories, catalogs, marketplace packages,
uploads, and live-channel verification belong to .
{name}-skilluser-profile/v1lov-{name}lov-skill-publisher将每个 Skill 创建为名为 的可移植本地源目录,绑定到共享的 契约,对其进行验证,并以 的形式安装到用户的本地 Agent skills 目录。远程仓库、目录、marketplace 包、上传和线上渠道验证均由 负责。
{name}-skilluser-profile/v1lov-{name}lov-skill-publisherTriggers
触发条件
Activate when
激活条件
- 用户要“创建 skill”“封装成 skill”“生成 Skill Kit”或优化 Skill 生成机制。
- The user asks to create, scaffold, validate, or locally install an Agent Skill.
- 用户要把 Claude Code 早期 slash command 全量迁移为通用 Skill,或升级只改了文件名的旧迁移结果。
- 用户要“创建 skill”“封装成 skill”“生成 Skill Kit”或优化 Skill 生成机制。
- 用户要求创建、搭建、验证或本地安装 Agent Skill。
- 用户要把 Claude Code 早期 slash command 全量迁移为通用 Skill,或升级只改了文件名的旧迁移结果。
Do not activate when
不激活条件
- 用户只是在调用现有 Skill 完成业务任务。
- 用户要发布远程仓库、上架目录、生成平台发行包或上传 Skill;交给 。
lov-skill-publisher
- 用户只是在调用现有 Skill 完成业务任务。
- 用户要发布远程仓库、上架目录、生成平台发行包或上传 Skill;交给 。
lov-skill-publisher
Architecture
架构
text
<configured local source root>/
└── {name}-skill/
├── SKILL.md
├── README.md
├── CHANGELOG.md
├── LICENSE
├── kit.yaml # Skill Kit only
├── skills/ # embedded modules, Skill Kit only
├── scripts/ # deterministic local CLIs
├── references/ # progressive disclosure
└── assets/ # reusable output assets
├── skill-card.yaml # machine-readable trust/release record
├── skill-card.md # human-readable Skill Card
├── cases/cases.json # real Input → Prompt → Output evidence
└── pricing-card.yaml # value, boundary, and review basis
<agent skills directory>/
└── lov-{name} -> <local source root>/{name}-skillKey rules:
- Creation ends with a validated, locally discoverable Skill.
- Source frontmatter name is and uses kebab-case.
lov-{name} - Source top-level fields are limited to ,
name,description,license,compatibility,allowed-tools, anddepends_on.metadata - Required modules live inside a Skill Kit; no external sibling dependencies.
- User-specific values come from flags, environment, or a portable profile.
- Every generated Skill declares and reads a shared user Profile across sessions;
Skill-specific durable records live under .
skills.<skill_id>.records - A direct user statement about a durable preference or brand fact is persisted
through the generated entrypoint and reported back.
scripts/profile_store.py - Every new Skill carries a real user case, a dimension map, a pricing basis, and explicit paid/free distribution states. A scaffold is incomplete until those records are filled and validated.
- Lovstudio.AI is a possible profile value, never a separate implementation mode.
- Do not create remotes, releases, catalogs, platform packages, or uploads here.
- If the Skill generates, edits, reviews, renders, packages, or publishes text
visible to an end user or reader, declare in its top-level
lov-branding-consistency. Preserve source data, quotations, transcripts, legal text, identifiers, and code unless the user explicitly asks to rewrite them.depends_on - Classify normal output as ,
authored-prose,microcopy, orverbatimbefore scaffolding. Authored prose receives an authorship-integrity contract; microcopy receives branding review; verbatim material remains source-faithful; deterministic output is accepted on correctness and completeness.deterministic-output
text
<configured local source root>/
└── {name}-skill/
├── SKILL.md
├── README.md
├── CHANGELOG.md
├── LICENSE
├── kit.yaml # Skill Kit only
├── skills/ # embedded modules, Skill Kit only
├── scripts/ # deterministic local CLIs
├── references/ # progressive disclosure
└── assets/ # reusable output assets
├── skill-card.yaml # machine-readable trust/release record
├── skill-card.md # human-readable Skill Card
├── cases/cases.json # real Input → Prompt → Output evidence
└── pricing-card.yaml # value, boundary, and review basis
<agent skills directory>/
└── lov-{name} -> <local source root>/{name}-skill关键规则:
- 创建流程必须以生成一个通过验证且可在本地发现的 Skill 结束。
- 源 frontmatter 名称为 ,并使用 kebab-case。
lov-{name} - 源文件顶层字段仅限于 、
name、description、license、compatibility、allowed-tools和depends_on。metadata - 必需模块位于 Skill Kit 内部;不允许存在外部同级依赖。
- 用户特定值来自参数标志、环境变量或可移植 Profile。
- 每个生成的 Skill 都会声明并跨会话读取共享的用户 Profile;Skill 专属的持久记录存放在 下。
skills.<skill_id>.records - 用户直接陈述的持久偏好或品牌事实,应通过生成的 入口点持久化,并反馈保存结果。
scripts/profile_store.py - 每个新 Skill 都必须包含真实用户案例、维度映射、定价依据,以及明确的付费/免费分发状态。在这些记录填写完毕并通过验证之前,脚手架均视为未完成。
- Lovstudio.AI 只是一个可能的 Profile 值,绝不是单独的实现模式。
- 不要在此创建远程仓库、发行版、目录、平台包或上传内容。
- 如果 Skill 生成、编辑、评审、渲染、打包或发布面向最终用户或读者的文本,应在其顶层 中声明
depends_on。除非用户明确要求改写,否则应保留源数据、引文、转录文本、法律文本、标识符和代码。lov-branding-consistency - 在搭建脚手架前,将常规输出分类为 、
authored-prose、microcopy或verbatim。deterministic-output使用创作完整性契约;authored-prose进行品牌评审;microcopy保持忠于源材料;verbatim则按正确性和完整性验收。deterministic-output
Creation Workflow
创建工作流
Step 0: Route legacy command migrations
第 0 步:路由旧命令迁移
For raw command files, command directories, archived commands, or partially
migrated Skills, first read Slash command migration.
Inventory the full requested scope, resolve aliases and existing capabilities,
then upgrade each canonical source through the normal workflow below. Use
for read-only inventory and isolated preparation.
Do not treat renaming Markdown, removing host switches, or generating a scaffold
as completed migration. A website synchronization request includes the publisher
handoff after validation; keep each item's local and live evidence separate.
scripts/migrate_command.py对于原始命令文件、命令目录、已归档命令或部分迁移的 Skill,先阅读 Slash command 迁移。清点完整请求范围,解析别名和现有能力,然后通过下面的正常工作流升级每个规范源。使用 进行只读清点和隔离准备。
scripts/migrate_command.py不得将重命名 Markdown、移除宿主开关或生成脚手架视为迁移完成。网站同步请求在验证后需移交 publisher;每个条目的本地证据和线上证据应分开保留。
Step 1: Infer the product shape
第 1 步:推断产品形态
Use the request, memory, repository, and supplied examples before asking
anything. Ask one question at a time only when a missing answer changes the
user-visible outcome. Never ask users to choose technical machinery.
Record these decisions internally:
- Problem, supported input, and concrete output.
- Two or three realistic examples and Chinese plus English trigger phrases.
- Internal context versus content that belongs in the final user-facing result.
- Public layer versus protected logic, prompts, keys, rules, or data.
- The first real user case: input, minimum prompt/brief, output, and evidence assets. Do not manufacture a case or score to make the card look complete.
- The normal output class:
- for articles, reports, scripts, letters, and prose where reasoning and editorial choice are part of the result;
authored-prose - for labels, descriptions, prompts, notices, and short UI text;
microcopy - for transcripts, quotations, legal text, identifiers, and other source-faithful material;
verbatim - for retrieval, storage, deployment, diagnostics, structured data, and binary transformation.
deterministic-output
- Use or
--content-class authored-prosefor the first class. Authored prose and microcopy automatically enable--authored-prose; authored prose also generates and routes tolov-branding-consistency.references/authorship-integrity.md - Choose accurate, brief, elegant and consistent display names, starting from names and style examples the user has approved. Favor memorable product names; functional, result, role and metaphor names are all valid. Do not force every name into an object–action phrase or ban terms such as 大师、专家、神器、小能手. Omit creator/studio brand prefixes while preserving task-defining platform names. Put detailed scope in the description and compare neighboring Skills for recognition and distinction. Chinese and English names describe the same capability, with natural wording in each language. Existing IDs, paths and Profile keys are compatibility contracts; a display-name change preserves them.
Background details, personal names, and competitor observations are context by
default. Include them in generated products only when they serve the end user.
先利用请求、记忆、仓库和提供的示例;只有当缺失答案会改变用户可见结果时,才一次询问一个问题。绝不让用户选择技术实现方式。
在内部记录以下决策:
- 问题、支持的输入和具体输出。
- 两到三个真实示例,以及中英文触发短语。
- 内部上下文与最终用户可见结果中应包含的内容。
- 公开层与受保护的逻辑、提示词、密钥、规则或数据。
- 首个真实用户案例:输入、最低限度的提示词/任务说明、输出和证据资产。不得为让卡片显得完整而虚构案例或评分。
- 常规输出类别:
- :用于文章、报告、脚本、信函及其他将推理和编辑判断作为结果组成部分的散文本;
authored-prose - :用于标签、描述、提示词、通知和简短 UI 文本;
microcopy - :用于转录文本、引文、法律文本、标识符及其他必须忠于源材料的材料;
verbatim - :用于检索、存储、部署、诊断、结构化数据和二进制转换。
deterministic-output
- 对第一类使用 或
--content-class authored-prose。--authored-prose和authored-prose会自动启用microcopy;lov-branding-consistency还会生成并转入authored-prose。references/authorship-integrity.md - 选择准确、简洁、优雅且一致的显示名称,并以用户已批准的名称和风格示例为起点。优先使用容易记忆的产品名称;功能型、结果型、角色型和隐喻型名称均可。不要强求每个名称都采用“对象—动作”结构,也不要禁用“大师”“专家”“神器”“小帮手”等词语。省略创建者或工作室品牌前缀,但保留定义任务的平台名称。将详细范围写入 description,并比较相邻 Skill 以确保辨识度和区分度。中英文名称应描述同一能力,并在各自语言中表达自然。现有 ID、路径和 Profile 键是兼容性契约;更改显示名称时必须保留它们。
背景细节、个人姓名和竞品观察默认仅作为上下文。只有在有助于服务最终用户时,才将其纳入生成的产品。
Step 2: Infer implementation and composition
第 2 步:推断实现与组合方式
Choose automatically and briefly state the result:
- Cloud handler — sensitive proprietary logic must stay off the user's disk.
- Instruction-only — judgment, research, conversation, or generation has no useful deterministic local transform.
- Python CLI — repeatable parsing, conversion, validation, packaging, or file generation benefits from deterministic execution.
- Single Skill — one outcome, or several modes sharing the same context.
- Skill Kit — two or more independently useful stages with their own input/output contracts are composed through named pipelines.
Scripts alone do not justify a Kit. Prefer Single when modularity is marginal.
For a Kit, list module IDs and named pipeline order before scaffolding.
自动选择并简要说明结果:
- Cloud handler——敏感专有逻辑必须保留在用户磁盘之外。
- Instruction-only——判断、研究、对话或生成任务不存在有用的确定性本地转换。
- Python CLI——可重复的解析、转换、验证、打包或文件生成适合确定性执行。
- Single Skill——单一结果,或多个模式共享同一上下文。
- Skill Kit——两个或更多各自具有独立用途的阶段通过命名 pipeline 组合。
仅凭脚本不足以构成 Kit;当模块化收益有限时,优先采用 Single。对于 Kit,在搭建前列出模块 ID 和命名 pipeline 顺序。
Step 2.5: Analyze the nearby Skill group before creating a new one
第 2.5 步:创建新 Skill 前分析相邻 Skill 组合
Before scaffolding, inspect the local Skill source root and installed Skill
catalog for related capabilities, using their routing descriptions and actual
input/output contracts rather than names alone. Record the outcome in
for every generated Skill.
references/skill-composition.mdClassify each relevant Skill as one of:
- upstream atom — independently produces an approved input for this Skill;
- core atom — this new Skill owns the requested user-visible outcome;
- downstream atom — independently consumes the verified output;
- overlap — owns the same outcome and should be extended or selected instead of duplicated; or
- not composed — adjacent in topic but adds no meaningful handoff.
For each proposed handoff, state the concrete artifact or contract, the
invocation boundary, and who owns the final acceptance criterion. Do not create
an external sibling dependency merely because another Skill is related. If
multiple stages are required for one user-visible outcome, embed them as a
self-contained Skill Kit; otherwise keep the new Skill standalone and describe
optional handoffs explicitly. A no-composition conclusion is valid only after
the nearby group was inspected.
搭建脚手架前,检查本地 Skill 源根目录和已安装的 Skill 目录中的相关能力;应依据路由描述及实际输入/输出契约,而非仅凭名称进行判断。每个生成的 Skill 都必须将检查结果记录到 。
references/skill-composition.md将每个相关 Skill 归为以下类别之一:
- upstream atom——独立为此 Skill 生成已认可的输入;
- core atom——新 Skill 负责用户请求的可见结果;
- downstream atom——独立消费已验证的输出;
- overlap——负责相同结果,应扩展或选择现有 Skill,而不是重复创建;或
- not composed——主题相邻,但没有有意义的交接。
对于每项拟议交接,说明具体产物或契约、调用边界,以及最终验收标准的归属方。不要仅因为另一个 Skill 与当前 Skill 相关,就创建外部同级依赖。如果一个用户可见结果需要多个阶段,应将其作为自包含的 Skill Kit 嵌入;否则保持新 Skill 独立,并明确说明可选交接。只有在检查相邻 Skill 组合后,才能得出无需组合的结论。
Step 3: Declare the user Profile contract — always
第 3 步:始终声明用户 Profile 契约
Every new Skill receives a declaration for , even
when its first invocation has no missing configuration. This is the cross-session
connection point for:
skill.yamluser-profile/v1- user identity, language, timezone, and working defaults;
- brand name, website, logo, tone, profile, and design guidance;
- workspace/project roots and output locations;
- Skill-specific defaults and durable records.
The generated contract reads the shared Profile and writes direct user
statements into (or the shared /
scope when the value is explicitly global). It uses this precedence:
skills.<skill_id>.recordsuserbrand- Explicit CLI flags or current request.
- Environment variables.
- Shared profile JSON.
- Safe inferred defaults.
- Ask once for only the remaining user-facing values.
When the user directly states a value intended for future sessions, run the
generated command and report the
canonical saved path. Inferred values stay in the current request context.
scripts/profile_store.py record ... --confirmEvery generated Skill remains portable. Never introduce an author-only or
Lovstudio.AI-only branch; different users supply different profile values.
每个新 Skill 都要包含一份针对 的 声明,即使首次调用时没有任何缺失配置也是如此。它是以下信息的跨会话连接点:
user-profile/v1skill.yaml- 用户身份、语言、时区和工作默认值;
- 品牌名称、网站、Logo、语气、Profile 和设计指导;
- 工作区/项目根目录和输出位置;
- Skill 专属默认值和持久记录。
生成的契约会读取共享 Profile,并将用户直接陈述的内容写入 ;如果某个值明确属于全局范围,则写入共享的 或 scope。解析时使用以下优先级:
skills.<skill_id>.recordsuserbrand- 显式 CLI 参数或当前请求。
- 环境变量。
- 共享 Profile JSON。
- 安全的推断默认值。
- 仅针对剩余的用户可见值询问一次。
当用户直接陈述了供未来会话使用的值时,运行生成的 命令,并报告规范化保存路径。推断值仅保留在当前请求上下文中。
scripts/profile_store.py record ... --confirm每个生成的 Skill 都必须保持可移植。绝不引入仅限作者或 Lovstudio.AI 的分支;不同用户应提供各自的 Profile 值。
Step 4: Plan contents
第 4 步:规划内容
- Deterministic operations → as standalone
scripts/CLIs.argparse - Domain knowledge → .
references/ - Reused output files, templates, fonts, or icons → .
assets/ - Independently triggerable stages → embedded plus
skills/.kit.yaml - User Profile contract → ,
skill.yaml, and the standalonereferences/user-profile.mdreader/writer; this is always generated.scripts/profile_store.py - Skill trust evidence → ,
skill-card.yaml,skill-card.md, andcases/cases.json.pricing-card.yaml - Skill group decision → , including nearby Skills inspected, atomic handoffs, overlap decisions, and the final Single-versus-Kit rationale.
references/skill-composition.md - Authorship integrity → for
references/authorship-integrity.md, including a source ledger, seven discourse checks, and explicit non-fabrication boundaries.authored-prose
Python scripts must be standalone files without package scaffolding. Treat CJK
text handling as a core requirement for document and content workflows.
- 确定性操作 → 中作为独立的
scripts/CLI。argparse - 领域知识 → 。
references/ - 重复使用的输出文件、模板、字体或图标 → 。
assets/ - 可独立触发的阶段 → 嵌入式 及
skills/。kit.yaml - User Profile 契约 → 、
skill.yaml和独立的references/user-profile.md读写器;这些内容始终生成。scripts/profile_store.py - Skill 信任证据 → 、
skill-card.yaml、skill-card.md和cases/cases.json。pricing-card.yaml - Skill 组合决策 → ,包括已检查的 Skill 组合、原子交接或重叠决策,以及最终选择 Single Skill 或 Kit 的理由。
references/skill-composition.md - 创作完整性 → 对应的
authored-prose,包括来源台账、七项话语检查和明确的禁止虚构边界。references/authorship-integrity.md
Python 脚本必须是独立文件,不使用 package 脚手架。对于文档和内容工作流,应将 CJK 文本处理视为核心要求。
Step 5: Initialize locally
第 5 步:本地初始化
Single Skill:
bash
python3 "$SKILL_DIR/scripts/init_skill.py" <name> \
--content-class deterministic-output \
--install-dir "$LOVSTUDIO_SKILLS_INSTALL_DIR"For articles, reports, scripts, letters, or other authored prose:
bash
python3 "$SKILL_DIR/scripts/init_skill.py" <name> \
--content-class authored-prose \
--install-dir "$LOVSTUDIO_SKILLS_INSTALL_DIR"Use for short audience-visible text, when source fidelity
owns acceptance, and for operational or structured
results. remains an explicit override for unusual
mixed-output Skills.
microcopyverbatimdeterministic-output--branding-consistencySkill Kit:
bash
python3 "$SKILL_DIR/scripts/init_skill.py" <name> \
--kit \
--module <module-a> \
--module <module-b> \
--install-dir "$LOVSTUDIO_SKILLS_INSTALL_DIR"When embedded stages produce different kinds of output, classify them at the
module boundary instead of forcing one rule across the Kit:
bash
python3 "$SKILL_DIR/scripts/init_skill.py" publishing \
--kit --module research --module draft \
--module-content-class draft=authored-prose \
--install-dir "$LOVSTUDIO_SKILLS_INSTALL_DIR"Resolve the install directory from an explicit flag, environment variable,
shared profile, or the active agent runtime. If it remains unknown, ask once.
The initializer must reject an occupied install target instead of overwriting it.
Tool pit:只把init_skill.py建为指向真源的 绝对 symlink;要符合 Lovstudio 三层链约定,需再补中间层~/.claude/skills/lov-{name}(绝对指向真源)并把 install 改成相对~/.agents/skills/lov-{name},../../.agents/skills/lov-{name}才会解析到真源 (2026-08-20, ab88955)。readlink -fTool pit: skills 仓库 working tree 常驻大量未提交改动(其他 skill 的 WIP、 子模块指针),/git add -A会把它们卷进提交;提交前先git commit -a,只git status(2026-08-20, 99c10a0)。git add <目标 skill 目录>Tool pit:对 description 按「compact 后文本」计 50–200 字符,中英混排极易超 200;先写短版过校验再展开正文(2026-08-20, 009afde)。validate_skill.pyTool pit: 卡片/案例文件里这类花括号字面量会被dict[str, list[str]]的contains_placeholder误判为占位符;skill-card / cases / pricing 文件一律避免花括号写法(2026-08-20, 009afde)。\{[^}]+\}Tool pit:是嵌套独立 git 仓库(自带 .git),父仓库~/lovstudio/coding/skills/skill-creator-skill把它当单个未跟踪目录, 从父仓库~/lovstudio/coding/skills内部文件不会生效;改 skill-creator 源要在其自身仓库内提交 (2026-08-20, c09a0a1)。git add
For cloud-split implementations, read completely
before coding. Keep real logic in the configured cloud handler, return minimal
symbolic payloads, render symbols locally, and complete its mandatory preflight
audit. Cloud deployment itself is an external publication step when applicable.
references/cloud-split.mdSingle Skill:
bash
python3 "$SKILL_DIR/scripts/init_skill.py" <name> \
--content-class deterministic-output \
--install-dir "$LOVSTUDIO_SKILLS_INSTALL_DIR"对于文章、报告、脚本、信函或其他 authored prose:
bash
python3 "$SKILL_DIR/scripts/init_skill.py" <name> \
--content-class authored-prose \
--install-dir "$LOVSTUDIO_SKILLS_INSTALL_DIR"对于简短的受众可见文本,使用 ;当源材料忠实度决定验收结果时,使用 ;对于运营或结构化结果,使用 。对于不常见的混合输出 Skill, 仍可作为显式覆盖项。
microcopyverbatimdeterministic-output--branding-consistencySkill Kit:
bash
python3 "$SKILL_DIR/scripts/init_skill.py" <name> \
--kit \
--module <module-a> \
--module <module-b> \
--install-dir "$LOVSTUDIO_SKILLS_INSTALL_DIR"当嵌入式阶段产生不同类型的输出时,应在模块边界分别分类,而不是在整个 Kit 中强制使用同一规则:
bash
python3 "$SKILL_DIR/scripts/init_skill.py" publishing \
--kit --module research --module draft \
--module-content-class draft=authored-prose \
--install-dir "$LOVSTUDIO_SKILLS_INSTALL_DIR"通过显式参数、环境变量、共享 Profile 或当前 Agent runtime 解析安装目录。如果仍无法确定,则询问一次。初始化器必须拒绝已被占用的安装目标,而不是覆盖它。
工具易错点:只把init_skill.py建为指向真源的绝对 symlink;若要符合 Lovstudio 三层链约定,还需补充中间层~/.claude/skills/lov-{name}(绝对指向真源),并将 install 改为相对路径~/.agents/skills/lov-{name},这样../../.agents/skills/lov-{name}才能解析到真源(2026-08-20, ab88955)。readlink -f工具易错点:skills 仓库的 working tree 常驻大量未提交改动(其他 skill 的 WIP、子模块指针);/git add -A会把它们一并卷入提交。提交前先执行git commit -a,只使用git status(2026-08-20, 99c10a0)。git add <目标 skill 目录>工具易错点:按“compact 后的文本”计算 description 的 50–200 字符限制;中英混排极易超过 200。先写短版通过校验,再展开正文(2026-08-20, 009afde)。validate_skill.py工具易错点:卡片/案例文件中这类花括号字面量会被dict[str, list[str]]的contains_placeholder误判为占位符;skill-card / cases / pricing 文件一律避免使用花括号写法(2026-08-20, 009afde)。\{[^}]+\}工具易错点:是一个嵌套的独立 git 仓库(自带~/lovstudio/coding/skills/skill-creator-skill);父仓库.git会将其视为单个未跟踪目录,从父仓库执行~/lovstudio/coding/skills无法添加内部文件。修改 skill-creator 源时,应在其自身仓库内提交(2026-08-20, c09a0a1)。git add
对于云端拆分实现,编码前完整阅读 。将真实逻辑保留在已配置的 cloud handler 中,返回最小化的符号化 payload,在本地渲染符号,并完成其强制的 preflight 审计。适用时,云端部署属于独立的外部发布步骤。
references/cloud-split.mdStep 6: Implement
第 6 步:实现
Write the source as instructions for an agent, not as notes about this chat:
- is the routing contract: outcome, inputs, and natural Chinese plus English triggers in 50–200 characters.
description - Add , activation examples, and adjacent non-trigger conditions.
## Triggers - Keep below 500 lines; move detail to relevant references.
SKILL.md - Put and
compatibilityat the top level. Keep version, tags, card standard, and package-only runtime metadata underdepends_on.metadata - is the single version source:
metadata.version,skill.yaml, andskill-card.yamlmust carry the samepricing-card.yamlwhenever they declare one; bump all of them together.version - Keep the NVIDIA-compatible required card fields intact, then add LovStudio's user case, dimension map, pricing basis, and distribution fields.
- Keep external Skills optional unless they are embedded Kit modules; expose artifact-level handoffs instead of hidden cross-Skill coupling.
- Use only for unresolved user-facing product decisions.
AskUserQuestion - Never hard-code private paths or personal brand data in reusable source.
- Fill missing visual/content assets with clearly appropriate generated material when the workflow permits; ask for originals only when authenticity materially affects the result.
Human-facing includes a matching version badge, local installation,
the Profile contract, examples, dependencies, and quality gate.
README.md将源文件写成供 Agent 遵循的指令,而不是本次对话的笔记:
- 是路由契约:应在 50–200 字符内说明结果、输入,以及自然的中英文触发短语。
description - 添加 、激活示例和相邻的不触发条件。
## Triggers - 将 控制在 500 行以内;将细节移至相关 references。
SKILL.md - 将 和
compatibility放在顶层。将版本、标签、卡片标准以及仅用于包的运行时元数据放在depends_on下。metadata - 是单一版本来源:
metadata.version、skill.yaml和skill-card.yaml只要声明版本,就必须使用相同的pricing-card.yaml;修改版本时必须同步更新三者。version - 保留 NVIDIA 兼容的必需卡片字段,然后添加 LovStudio 的用户案例、维度映射、定价依据和分发字段。
- 除非外部 Skill 被嵌入为 Kit 模块,否则应保持其为可选依赖;公开产物级交接,避免隐藏的跨 Skill 耦合。
- 仅使用 解决尚未确定的用户可见产品决策。
AskUserQuestion - 绝不在可复用源文件中硬编码私人路径或个人品牌数据。
- 当工作流允许时,使用明显合适的生成材料补齐缺失的视觉/内容资产;仅当真实性会实质影响结果时,才向用户索要原始素材。
面向用户的 应包含匹配的版本徽章、本地安装说明、Profile 契约、示例、依赖项和质量门禁。
README.mdStep 7: Validate and install
第 7 步:验证并安装
bash
python3 scripts/validate_skill.py .Completion requires:
- Validation passes with standard YAML.
- Every module, local reference, script, and asset resolves.
- No unresolved placeholders, private absolute paths, cache files, or compiled Python artifacts remain.
- The local install path resolves to this source directory.
- A documented activation phrase works and a non-trigger stays outside scope.
- Every Skill Kit module and at least one named pipeline are exercised.
- Every new Skill has at least one verified Input → Prompt → Output case, three or more named dimensions with evidence, a pricing basis, and explicit paid/free channel states.
- records the inspected Skill group, atomic handoffs or overlap decision, and why the result is a Single Skill or Kit.
references/skill-composition.md - Display names agree with the description and actual workflow, remain clear without conversation context, and are distinguishable from nearby Skills. Corresponding README, Card and requested catalog display fields agree.
Stop at the local result unless the user also requests publication. When they
do, invoke with the validated source path and requested
channels; do not duplicate publishing logic in this Skill.
lov-skill-publisherbash
python3 scripts/validate_skill.py .完成需要满足以下条件:
- 使用标准 YAML 通过验证。
- 每个模块、本地 reference、脚本和资产均可正确解析。
- 不存在未解析的占位符、私人绝对路径、缓存文件或已编译的 Python 产物。
- 本地安装路径能够解析到此源目录。
- 有文档记录的激活短语可以正常工作,且不触发条件保持在适用范围之外。
- 每个 Skill Kit 模块以及至少一条命名 pipeline 都经过实际运行。
- 每个新 Skill 至少有一个经过验证的 Input → Prompt → Output 案例、三个或更多带证据的命名维度、一份定价依据,以及明确的付费/免费渠道状态。
- 记录了已检查的 Skill 组合、原子交接或重叠决策,以及选择 Single Skill 或 Kit 的原因。
references/skill-composition.md - 显示名称与 description 和实际工作流一致,脱离对话上下文后仍清晰可辨,并能与其他相邻 Skill 区分。对应的 README、Card 和用户要求的目录显示字段应保持一致。
除非用户同时要求发布,否则流程应停留在本地结果。如果用户提出发布要求,则调用 ,并传入已验证的源路径和所需渠道;不要在本 Skill 中重复实现发布逻辑。
lov-skill-publisherDesign Patterns
设计模式
Context-aware prefill
上下文感知预填
- Read the request, conversation, memory, and current project.
- Prefill all supported fields.
- Infer implementation and configuration modes.
- Ask only for missing information that changes the user-facing outcome.
- 读取请求、对话、记忆和当前项目。
- 预填所有受支持字段。
- 推断实现方式和配置模式。
- 仅询问会改变用户可见结果的缺失信息。
Progressive disclosure
渐进式披露
Keep the controller lean. Split large theme systems, APIs, examples, platform
contracts, and asset catalogs into directly referenced files.
保持控制器精简。将大型主题系统、API、示例、平台契约和资产目录拆分到直接引用的文件中。
Exclusions
排除项
- Remote repository creation, pushes, releases, catalogs, marketplace packages, platform uploads, and live publication checks.
- ; installation belongs in
INSTALLATION_GUIDE.md.README.md - Test-framework scaffolding for instruction-only Skills.
- , compiled Python files,
__pycache__, or unresolved placeholders..DS_Store - User-specific absolute paths or an internal-only product mode.
For source templates see . For the Skill Card contract
see . For the Profile contract see
. Historical migrations remain in
.
references/templates.mdreferences/skill-card-standard.mdreferences/user-profile.mdreferences/migration.md- 远程仓库创建、推送、发行、目录、marketplace 包、平台上传和线上发布检查。
- ;安装内容应放在
INSTALLATION_GUIDE.md中。README.md - 为纯指令型 Skill 创建测试框架脚手架。
- 、已编译的 Python 文件、
__pycache__或未解析的占位符。.DS_Store - 用户特定绝对路径或仅限内部使用的产品模式。
源代码模板见 。Skill Card 契约见 。Profile 契约见 。历史迁移保留在 中。
references/templates.mdreferences/skill-card-standard.mdreferences/user-profile.mdreferences/migration.mdRuntime context (shared)
运行时上下文(共享)
运行前读取本 Skill 包的 ,由宿主提供 上下文。字段解析顺序为:当前请求、项目上下文、Skill 专属记录、个人 Preferences、品牌/用户 Profile、通用默认值。
skill.yamlskill-runtime/v1- 只使用 Manifest 声明的字段;Profile 保存用户与品牌的共享资料,保存本 Skill 的持久化记录。
skills.<skill_id>.records - 用户直接说出的长期偏好或品牌事实,通过 原子写回 Profile,并在结果中报告保存路径。
scripts/profile_store.py - 字段缺失时,按 Manifest 的问题配置向用户提出一个聚焦问题。
required: true - 报错提供可复制的 、字段路径与来源,诊断内容避开秘密、完整私人路径和原始配置。
context_id
运行前读取本 Skill 包的 ,由宿主提供 上下文。字段解析顺序为:当前请求、项目上下文、Skill 专属记录、个人 Preferences、品牌/用户 Profile、通用默认值。
skill.yamlskill-runtime/v1- 只使用 Manifest 声明的字段;Profile 保存用户与品牌的共享资料,保存本 Skill 的持久化记录。
skills.<skill_id>.records - 用户直接说出的长期偏好或品牌事实,通过 原子写回 Profile,并在结果中报告保存路径。
scripts/profile_store.py - 字段缺失时,按 Manifest 的问题配置向用户提出一个聚焦问题。
required: true - 报错提供可复制的 、字段路径与来源,诊断内容避开秘密、完整私人路径和原始配置。
context_id
通用反馈闭环
通用反馈闭环
用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行:
- 先判断意见是 (仅本次)还是
task-specific(可跨任务复用)。reusable - 只修改当前任务,不改 Skill。
task-specific - 先确定作用域:领域规则先更新对应 canonical Skill;适用于所有 Skill 的规则先更新共享规范。
reusable - 完成规则更新、版本、lint 与分发核验后,再把修改应用到当前任务。
- 修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。
reusable
用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行:
- 先判断意见是 (仅本次)还是
task-specific(可跨任务复用)。reusable - 只修改当前任务,不改 Skill。
task-specific - 先确定作用域:领域规则先更新对应的 canonical Skill;适用于所有 Skill 的规则先更新共享规范。
reusable - 完成规则更新、版本、lint 与分发核验后,再把修改应用到当前任务。
- 修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。
reusable