lov-skill-creator

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Skill 工坊 · Skill Studio

Skill 工坊 · Skill Studio

Create every Skill as a portable local source directory named
{name}-skill
, bind it to the shared
user-profile/v1
contract, validate it, and install it into the user's local agent skills directory as
lov-{name}
. Remote repositories, catalogs, marketplace packages, uploads, and live-channel verification belong to
lov-skill-publisher
.
将每个 Skill 创建为名为
{name}-skill
的可移植本地源目录,绑定到共享的
user-profile/v1
契约,对其进行验证,并以
lov-{name}
的形式安装到用户的本地 Agent skills 目录。远程仓库、目录、marketplace 包、上传和线上渠道验证均由
lov-skill-publisher
负责。

Triggers

触发条件

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}-skill
Key rules:
  • Creation ends with a validated, locally discoverable Skill.
  • Source frontmatter name is
    lov-{name}
    and uses kebab-case.
  • Source top-level fields are limited to
    name
    ,
    description
    ,
    license
    ,
    compatibility
    ,
    allowed-tools
    ,
    depends_on
    , and
    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
    scripts/profile_store.py
    entrypoint and reported back.
  • 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
    lov-branding-consistency
    in its top-level
    depends_on
    . Preserve source data, quotations, transcripts, legal text, identifiers, and code unless the user explicitly asks to rewrite them.
  • Classify normal output as
    authored-prose
    ,
    microcopy
    ,
    verbatim
    , or
    deterministic-output
    before 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.
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 名称为
    lov-{name}
    ,并使用 kebab-case。
  • 源文件顶层字段仅限于
    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
scripts/migrate_command.py
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.
对于原始命令文件、命令目录、已归档命令或部分迁移的 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:
  1. Problem, supported input, and concrete output.
  2. Two or three realistic examples and Chinese plus English trigger phrases.
  3. Internal context versus content that belongs in the final user-facing result.
  4. Public layer versus protected logic, prompts, keys, rules, or data.
  5. 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.
  6. The normal output class:
    • authored-prose
      for articles, reports, scripts, letters, and prose where reasoning and editorial choice are part of the result;
    • microcopy
      for labels, descriptions, prompts, notices, and short UI text;
    • verbatim
      for transcripts, quotations, legal text, identifiers, and other source-faithful material;
    • deterministic-output
      for retrieval, storage, deployment, diagnostics, structured data, and binary transformation.
  7. Use
    --content-class authored-prose
    or
    --authored-prose
    for the first class. Authored prose and microcopy automatically enable
    lov-branding-consistency
    ; authored prose also generates and routes to
    references/authorship-integrity.md
    .
  8. 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.
先利用请求、记忆、仓库和提供的示例;只有当缺失答案会改变用户可见结果时,才一次询问一个问题。绝不让用户选择技术实现方式。
在内部记录以下决策:
  1. 问题、支持的输入和具体输出。
  2. 两到三个真实示例,以及中英文触发短语。
  3. 内部上下文与最终用户可见结果中应包含的内容。
  4. 公开层与受保护的逻辑、提示词、密钥、规则或数据。
  5. 首个真实用户案例:输入、最低限度的提示词/任务说明、输出和证据资产。不得为让卡片显得完整而虚构案例或评分。
  6. 常规输出类别:
    • authored-prose
      :用于文章、报告、脚本、信函及其他将推理和编辑判断作为结果组成部分的散文本;
    • microcopy
      :用于标签、描述、提示词、通知和简短 UI 文本;
    • verbatim
      :用于转录文本、引文、法律文本、标识符及其他必须忠于源材料的材料;
    • deterministic-output
      :用于检索、存储、部署、诊断、结构化数据和二进制转换。
  7. 对第一类使用
    --content-class authored-prose
    或
    --authored-prose
    。
    authored-prose
    和
    microcopy
    会自动启用
    lov-branding-consistency
    ;
    authored-prose
    还会生成并转入
    references/authorship-integrity.md
    。
  8. 选择准确、简洁、优雅且一致的显示名称,并以用户已批准的名称和风格示例为起点。优先使用容易记忆的产品名称;功能型、结果型、角色型和隐喻型名称均可。不要强求每个名称都采用“对象—动作”结构,也不要禁用“大师”“专家”“神器”“小帮手”等词语。省略创建者或工作室品牌前缀,但保留定义任务的平台名称。将详细范围写入 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
references/skill-composition.md
for every generated Skill.
Classify 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
skill.yaml
declaration for
user-profile/v1
, even when its first invocation has no missing configuration. This is the cross-session connection point for:
  • 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
skills.<skill_id>.records
(or the shared
user
/
brand
scope when the value is explicitly global). It uses this precedence:
  1. Explicit CLI flags or current request.
  2. Environment variables.
  3. Shared profile JSON.
  4. Safe inferred defaults.
  5. Ask once for only the remaining user-facing values.
When the user directly states a value intended for future sessions, run the generated
scripts/profile_store.py record ... --confirm
command and report the canonical saved path. Inferred values stay in the current request context.
Every generated Skill remains portable. Never introduce an author-only or Lovstudio.AI-only branch; different users supply different profile values.
每个新 Skill 都要包含一份针对
user-profile/v1
的
skill.yaml
声明,即使首次调用时没有任何缺失配置也是如此。它是以下信息的跨会话连接点:
  • 用户身份、语言、时区和工作默认值;
  • 品牌名称、网站、Logo、语气、Profile 和设计指导;
  • 工作区/项目根目录和输出位置;
  • Skill 专属默认值和持久记录。
生成的契约会读取共享 Profile,并将用户直接陈述的内容写入
skills.<skill_id>.records
;如果某个值明确属于全局范围,则写入共享的
user
或
brand
scope。解析时使用以下优先级:
  1. 显式 CLI 参数或当前请求。
  2. 环境变量。
  3. 共享 Profile JSON。
  4. 安全的推断默认值。
  5. 仅针对剩余的用户可见值询问一次。
当用户直接陈述了供未来会话使用的值时,运行生成的
scripts/profile_store.py record ... --confirm
命令,并报告规范化保存路径。推断值仅保留在当前请求上下文中。
每个生成的 Skill 都必须保持可移植。绝不引入仅限作者或 Lovstudio.AI 的分支;不同用户应提供各自的 Profile 值。

Step 4: Plan contents

第 4 步:规划内容

  • Deterministic operations →
    scripts/
    as standalone
    argparse
    CLIs.
  • Domain knowledge →
    references/
    .
  • Reused output files, templates, fonts, or icons →
    assets/
    .
  • Independently triggerable stages → embedded
    skills/
    plus
    kit.yaml
    .
  • User Profile contract →
    skill.yaml
    ,
    references/user-profile.md
    , and the standalone
    scripts/profile_store.py
    reader/writer; this is always generated.
  • Skill trust evidence →
    skill-card.yaml
    ,
    skill-card.md
    ,
    cases/cases.json
    , and
    pricing-card.yaml
    .
  • Skill group decision →
    references/skill-composition.md
    , including nearby Skills inspected, atomic handoffs, overlap decisions, and the final Single-versus-Kit rationale.
  • Authorship integrity →
    references/authorship-integrity.md
    for
    authored-prose
    , including a source ledger, seven discourse checks, and explicit non-fabrication boundaries.
Python scripts must be standalone files without package scaffolding. Treat CJK text handling as a core requirement for document and content workflows.
  • 确定性操作 →
    scripts/
    中作为独立的
    argparse
    CLI。
  • 领域知识 →
    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 组合决策 →
    references/skill-composition.md
    ,包括已检查的 Skill 组合、原子交接或重叠决策,以及最终选择 Single Skill 或 Kit 的理由。
  • 创作完整性 →
    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
microcopy
for short audience-visible text,
verbatim
when source fidelity owns acceptance, and
deterministic-output
for operational or structured results.
--branding-consistency
remains an explicit override for unusual mixed-output Skills.
Skill 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
只把
~/.claude/skills/lov-{name}
建为指向真源的 绝对 symlink;要符合 Lovstudio 三层链约定,需再补中间层
~/.agents/skills/lov-{name}
(绝对指向真源)并把 install 改成相对
../../.agents/skills/lov-{name}
,
readlink -f
才会解析到真源 (2026-08-20, ab88955)。
Tool pit: skills 仓库 working tree 常驻大量未提交改动(其他 skill 的 WIP、 子模块指针),
git add -A
/
git commit -a
会把它们卷进提交;提交前先
git status
,只
git add <目标 skill 目录>
(2026-08-20, 99c10a0)。
Tool pit:
validate_skill.py
对 description 按「compact 后文本」计 50–200 字符,中英混排极易超 200;先写短版过校验再展开正文(2026-08-20, 009afde)。
Tool pit: 卡片/案例文件里
dict[str, list[str]]
这类花括号字面量会被
contains_placeholder
的
\{[^}]+\}
误判为占位符;skill-card / cases / pricing 文件一律避免花括号写法(2026-08-20, 009afde)。
Tool pit:
~/lovstudio/coding/skills/skill-creator-skill
是嵌套独立 git 仓库(自带 .git),父仓库
~/lovstudio/coding/skills
把它当单个未跟踪目录, 从父仓库
git add
内部文件不会生效;改 skill-creator 源要在其自身仓库内提交 (2026-08-20, c09a0a1)。
For cloud-split implementations, read
references/cloud-split.md
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.
Single 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"
对于简短的受众可见文本,使用
microcopy
;当源材料忠实度决定验收结果时,使用
verbatim
;对于运营或结构化结果,使用
deterministic-output
。对于不常见的混合输出 Skill,
--branding-consistency
仍可作为显式覆盖项。
Skill 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
只把
~/.claude/skills/lov-{name}
建为指向真源的绝对 symlink;若要符合 Lovstudio 三层链约定,还需补充中间层
~/.agents/skills/lov-{name}
(绝对指向真源),并将 install 改为相对路径
../../.agents/skills/lov-{name}
,这样
readlink -f
才能解析到真源(2026-08-20, ab88955)。
工具易错点:skills 仓库的 working tree 常驻大量未提交改动(其他 skill 的 WIP、子模块指针);
git add -A
/
git commit -a
会把它们一并卷入提交。提交前先执行
git status
,只使用
git add <目标 skill 目录>
(2026-08-20, 99c10a0)。
工具易错点:
validate_skill.py
按“compact 后的文本”计算 description 的 50–200 字符限制;中英混排极易超过 200。先写短版通过校验,再展开正文(2026-08-20, 009afde)。
工具易错点:卡片/案例文件中
dict[str, list[str]]
这类花括号字面量会被
contains_placeholder
的
\{[^}]+\}
误判为占位符;skill-card / cases / pricing 文件一律避免使用花括号写法(2026-08-20, 009afde)。
工具易错点:
~/lovstudio/coding/skills/skill-creator-skill
是一个嵌套的独立 git 仓库(自带
.git
);父仓库
~/lovstudio/coding/skills
会将其视为单个未跟踪目录,从父仓库执行
git add
无法添加内部文件。修改 skill-creator 源时,应在其自身仓库内提交(2026-08-20, c09a0a1)。
对于云端拆分实现,编码前完整阅读
references/cloud-split.md
。将真实逻辑保留在已配置的 cloud handler 中,返回最小化的符号化 payload,在本地渲染符号,并完成其强制的 preflight 审计。适用时,云端部署属于独立的外部发布步骤。

Step 6: Implement

第 6 步:实现

Write the source as instructions for an agent, not as notes about this chat:
  • description
    is the routing contract: outcome, inputs, and natural Chinese plus English triggers in 50–200 characters.
  • Add
    ## Triggers
    , activation examples, and adjacent non-trigger conditions.
  • Keep
    SKILL.md
    below 500 lines; move detail to relevant references.
  • Put
    compatibility
    and
    depends_on
    at the top level. Keep version, tags, card standard, and package-only runtime metadata under
    metadata
    .
  • metadata.version
    is the single version source:
    skill.yaml
    ,
    skill-card.yaml
    , and
    pricing-card.yaml
    must carry the same
    version
    whenever they declare one; bump all of them together.
  • 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
    AskUserQuestion
    only for unresolved user-facing product decisions.
  • 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
README.md
includes a matching version badge, local installation, the Profile contract, examples, dependencies, and quality gate.
将源文件写成供 Agent 遵循的指令,而不是本次对话的笔记:
  • description
    是路由契约:应在 50–200 字符内说明结果、输入,以及自然的中英文触发短语。
  • 添加
    ## Triggers
    、激活示例和相邻的不触发条件。
  • 将
    SKILL.md
    控制在 500 行以内;将细节移至相关 references。
  • 将
    compatibility
    和
    depends_on
    放在顶层。将版本、标签、卡片标准以及仅用于包的运行时元数据放在
    metadata
    下。
  • metadata.version
    是单一版本来源:
    skill.yaml
    、
    skill-card.yaml
    和
    pricing-card.yaml
    只要声明版本,就必须使用相同的
    version
    ;修改版本时必须同步更新三者。
  • 保留 NVIDIA 兼容的必需卡片字段,然后添加 LovStudio 的用户案例、维度映射、定价依据和分发字段。
  • 除非外部 Skill 被嵌入为 Kit 模块,否则应保持其为可选依赖;公开产物级交接,避免隐藏的跨 Skill 耦合。
  • 仅使用
    AskUserQuestion
    解决尚未确定的用户可见产品决策。
  • 绝不在可复用源文件中硬编码私人路径或个人品牌数据。
  • 当工作流允许时,使用明显合适的生成材料补齐缺失的视觉/内容资产;仅当真实性会实质影响结果时,才向用户索要原始素材。
面向用户的
README.md
应包含匹配的版本徽章、本地安装说明、Profile 契约、示例、依赖项和质量门禁。

Step 7: Validate and install

第 7 步:验证并安装

bash
python3 scripts/validate_skill.py .
Completion requires:
  1. Validation passes with standard YAML.
  2. Every module, local reference, script, and asset resolves.
  3. No unresolved placeholders, private absolute paths, cache files, or compiled Python artifacts remain.
  4. The local install path resolves to this source directory.
  5. A documented activation phrase works and a non-trigger stays outside scope.
  6. Every Skill Kit module and at least one named pipeline are exercised.
  7. 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.
  8. references/skill-composition.md
    records the inspected Skill group, atomic handoffs or overlap decision, and why the result is a Single Skill or Kit.
  9. 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
lov-skill-publisher
with the validated source path and requested channels; do not duplicate publishing logic in this Skill.
bash
python3 scripts/validate_skill.py .
完成需要满足以下条件:
  1. 使用标准 YAML 通过验证。
  2. 每个模块、本地 reference、脚本和资产均可正确解析。
  3. 不存在未解析的占位符、私人绝对路径、缓存文件或已编译的 Python 产物。
  4. 本地安装路径能够解析到此源目录。
  5. 有文档记录的激活短语可以正常工作,且不触发条件保持在适用范围之外。
  6. 每个 Skill Kit 模块以及至少一条命名 pipeline 都经过实际运行。
  7. 每个新 Skill 至少有一个经过验证的 Input → Prompt → Output 案例、三个或更多带证据的命名维度、一份定价依据,以及明确的付费/免费渠道状态。
  8. references/skill-composition.md
    记录了已检查的 Skill 组合、原子交接或重叠决策,以及选择 Single Skill 或 Kit 的原因。
  9. 显示名称与 description 和实际工作流一致,脱离对话上下文后仍清晰可辨,并能与其他相邻 Skill 区分。对应的 README、Card 和用户要求的目录显示字段应保持一致。
除非用户同时要求发布,否则流程应停留在本地结果。如果用户提出发布要求,则调用
lov-skill-publisher
,并传入已验证的源路径和所需渠道;不要在本 Skill 中重复实现发布逻辑。

Design Patterns

设计模式

Context-aware prefill

上下文感知预填

  1. Read the request, conversation, memory, and current project.
  2. Prefill all supported fields.
  3. Infer implementation and configuration modes.
  4. Ask only for missing information that changes the user-facing outcome.
  1. 读取请求、对话、记忆和当前项目。
  2. 预填所有受支持字段。
  3. 推断实现方式和配置模式。
  4. 仅询问会改变用户可见结果的缺失信息。

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_GUIDE.md
    ; installation belongs in
    README.md
    .
  • Test-framework scaffolding for instruction-only Skills.
  • __pycache__
    , compiled Python files,
    .DS_Store
    , or unresolved placeholders.
  • User-specific absolute paths or an internal-only product mode.
For source templates see
references/templates.md
. For the Skill Card contract see
references/skill-card-standard.md
. For the Profile contract see
references/user-profile.md
. Historical migrations remain in
references/migration.md
.
  • 远程仓库创建、推送、发行、目录、marketplace 包、平台上传和线上发布检查。
  • INSTALLATION_GUIDE.md
    ;安装内容应放在
    README.md
    中。
  • 为纯指令型 Skill 创建测试框架脚手架。
  • __pycache__
    、已编译的 Python 文件、
    .DS_Store
    或未解析的占位符。
  • 用户特定绝对路径或仅限内部使用的产品模式。
源代码模板见
references/templates.md
。Skill Card 契约见
references/skill-card-standard.md
。Profile 契约见
references/user-profile.md
。历史迁移保留在
references/migration.md
中。

Runtime context (shared)

运行时上下文(共享)

运行前读取本 Skill 包的
skill.yaml
,由宿主提供
skill-runtime/v1
上下文。字段解析顺序为:当前请求、项目上下文、Skill 专属记录、个人 Preferences、品牌/用户 Profile、通用默认值。
  • 只使用 Manifest 声明的字段;Profile 保存用户与品牌的共享资料,
    skills.<skill_id>.records
    保存本 Skill 的持久化记录。
  • 用户直接说出的长期偏好或品牌事实,通过
    scripts/profile_store.py
    原子写回 Profile,并在结果中报告保存路径。
  • required: true
    字段缺失时,按 Manifest 的问题配置向用户提出一个聚焦问题。
  • 报错提供可复制的
    context_id
    、字段路径与来源,诊断内容避开秘密、完整私人路径和原始配置。
运行前读取本 Skill 包的
skill.yaml
,由宿主提供
skill-runtime/v1
上下文。字段解析顺序为:当前请求、项目上下文、Skill 专属记录、个人 Preferences、品牌/用户 Profile、通用默认值。
  • 只使用 Manifest 声明的字段;Profile 保存用户与品牌的共享资料,
    skills.<skill_id>.records
    保存本 Skill 的持久化记录。
  • 用户直接说出的长期偏好或品牌事实,通过
    scripts/profile_store.py
    原子写回 Profile,并在结果中报告保存路径。
  • required: true
    字段缺失时,按 Manifest 的问题配置向用户提出一个聚焦问题。
  • 报错提供可复制的
    context_id
    、字段路径与来源,诊断内容避开秘密、完整私人路径和原始配置。

通用反馈闭环

通用反馈闭环

用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行:
  1. 先判断意见是
    task-specific
    (仅本次)还是
    reusable
    (可跨任务复用)。
  2. task-specific
    只修改当前任务,不改 Skill。
  3. reusable
    先确定作用域:领域规则先更新对应 canonical Skill;适用于所有 Skill 的规则先更新共享规范。
  4. 完成规则更新、版本、lint 与分发核验后,再把修改应用到当前任务。
  5. reusable
    修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。
用户在 Skill 驱动任务中提出修改意见时,继续当前产物前必须执行:
  1. 先判断意见是
    task-specific
    (仅本次)还是
    reusable
    (可跨任务复用)。
  2. task-specific
    只修改当前任务,不改 Skill。
  3. reusable
    先确定作用域:领域规则先更新对应的 canonical Skill;适用于所有 Skill 的规则先更新共享规范。
  4. 完成规则更新、版本、lint 与分发核验后,再把修改应用到当前任务。
  5. reusable
    修改会使此前的“确认”“继续”“发吧”失效;完成当前产物修改和回读后必须停下,等待用户下一步指示,不自动进入发布、提交或其他外部写入。