skill-package-manifest-enricher
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill Package Manifest Enricher
Skill Package Manifest Enricher
Augment package manifest sidecars from portable, content-bound evidence.
Scope: Manifest enrichment only. It does not emit ZIPs, edit metadata
sources, infer repository support, or run live installs.
Permission posture: . Preview is read-only; only explicit
may replace the selected sidecar.
write-scoped--apply基于可移植、内容绑定的证据增强包清单副文件。
适用范围: 仅用于清单增强。不生成ZIP包、不编辑元数据源、不推断仓库支持情况,也不执行实时安装。
权限策略: 。预览模式为只读;仅当显式使用参数时才会替换选定的副文件。
write-scoped--applyDispatch
调用方式
| $ARGUMENTS | Action |
|---|---|
| Preview one repo skill; use its verified repo-local catalog when available |
| Preview without writing |
| Prefer an explicit catalog row, then fall back to sync evidence |
| Run repo-independently from an installed skill package |
| Atomically write |
| Empty | Show enriched field catalog and workflow |
| $ARGUMENTS | 操作 |
|---|---|
| 预览单个仓库技能;若存在已验证的仓库本地目录则优先使用 |
| 预览但不写入文件 |
| 优先使用显式目录行,若无则回退至同步证据 |
| 独立于仓库,基于已安装的技能包运行 |
| 原子化写入 |
| 无参数 | 显示可增强字段目录及工作流程 |
Enriched Fields
可增强字段
The enricher refreshes its owned fields while preserving unrelated upstream
manifest keys:
- and
namefrom safely decoded YAML frontmatterdescription - from
compatibility_notesfrontmattercompatibility - from
eval_case_countevals/evals.json - from the selected skill's catalog/sync row
harness_targets - :
harness_targets_status,catalog, orsyncunavailable - as a portable relative label
harness_targets_source - as the selected source's content digest
harness_targets_source_sha256 - UTC timestamp (apply mode only)
packaged_at
If neither source contains an applicable target row, the status is
, the source is , and is empty.
unavailableunavailableharness_targets增强器会更新其负责的字段,同时保留无关的上游清单键值:
- 和
name来自安全解码的YAML前置元数据description - 来自
compatibility_notes前置元数据compatibility - 来自
eval_case_countevals/evals.json - 来自选定技能的目录/同步行
harness_targets - :
harness_targets_status、catalog或syncunavailable - 作为可移植的相对标签
harness_targets_source - 作为所选源的内容摘要
harness_targets_source_sha256 - UTC时间戳(仅应用模式下生成)
packaged_at
若两个源均无适用的目标行,则状态为,源为,且为空。
unavailableunavailableharness_targetsWorkflow
工作流程
Preview
预览
bash
uv run skills/skill-package-manifest-enricher/scripts/enrich_manifest.py <name> \
--catalog-metadata docs/public/generated-registries/skills-catalog-index.json \
--dry-runTreat , catalog JSON, sync JSON, and upstream manifests as untrusted
data. The script uses , accepts JSON only for metadata inputs,
and fails before a write on malformed or conflicting input.
SKILL.mdyaml.safe_loadbash
uv run skills/skill-package-manifest-enricher/scripts/enrich_manifest.py <name> \
--catalog-metadata docs/public/generated-registries/skills-catalog-index.json \
--dry-run将、目录JSON、同步JSON及上游清单视为不可信数据。脚本使用,仅接受JSON格式的元数据输入,若输入格式错误或存在冲突,会在写入前终止运行。
SKILL.mdyaml.safe_loadApply
应用
Review the preview, then use the same inputs with . To preserve an
existing package manifest, pass it explicitly:
--applybash
uv run skills/skill-package-manifest-enricher/scripts/enrich_manifest.py <name> \
--manifest <upstream-manifest.json> \
--catalog-metadata <skills-catalog-index.json> \
--applyAfterward, validate packaging without creating a release:
bash
uv run python skills/skill-creator/scripts/package.py skills/<name>/ --dry-run查看预览结果后,使用相同输入并添加参数。若要保留现有包清单,需显式传入:
--applybash
uv run skills/skill-package-manifest-enricher/scripts/enrich_manifest.py <name> \
--manifest <upstream-manifest.json> \
--catalog-metadata <skills-catalog-index.json> \
--apply之后,无需创建版本即可验证打包情况:
bash
uv run python skills/skill-creator/scripts/package.py skills/<name>/ --dry-runMetadata Contract
元数据约定
Catalog input uses the generated catalog shape (,
, or ) with exact and
fields. Sync fallback accepts exact named rows under , , or
, or a structured skills-sync report whose per-agent active buckets name
the selected skill.
customSkillIndexexternalSkillIndexallSkillIndexnametargetAgentsskillsdesiredrowsThe catalog wins when both inputs contain the selected skill. A present source
without an applicable row is not evidence of support. A digest binds the raw
bytes of the source that actually supplied the targets.
目录输入使用生成的目录结构(、或),需包含精确的和字段。同步回退接受、或下的精确命名行,或包含按代理分类的活动桶中指定所选技能的结构化技能同步报告。
customSkillIndexexternalSkillIndexallSkillIndexnametargetAgentsskillsdesiredrows若两个输入均包含选定技能,则优先使用目录数据。存在源但无适用行不代表支持。摘要会绑定实际提供目标的源原始字节。
Evidence Resolution
证据解析规则
| Evidence | Target status | Action |
|---|---|---|
| Applicable catalog row | | Use its exact target set and digest |
| Catalog miss plus applicable sync row/report | | Use the sync target set and digest |
| No applicable row | | Emit an empty target set |
| Malformed or conflicting evidence | None | Fail before writing |
| 证据 | 目标状态 | 操作 |
|---|---|---|
| 适用的目录行 | | 使用其精确目标集和摘要 |
| 目录未命中但存在适用的同步行/报告 | | 使用同步目标集和摘要 |
| 无适用行 | | 生成空目标集 |
| 格式错误或冲突的证据 | 无 | 写入前终止运行 |
Progressive Disclosure
渐进式披露
Use the preview workflow for the common path. Inspect for installed
, custom output, source-label, and upstream-manifest options only
when those inputs are needed.
--help--skill-dir常规场景使用预览工作流程。仅当需要相关输入时,才查看获取已安装的、自定义输出、源标签和上游清单选项。
--help--skill-dirValidation Contract
验证约定
bash
uv run python skills/skill-package-manifest-enricher/scripts/check.py
uv run python skills/skill-creator/scripts/audit.py skills/skill-package-manifest-enricher/
uv run pytest -q tests/test_skill_package_manifest_enricher.py
uv run python skills/skill-creator/scripts/package.py skills/skill-package-manifest-enricher/ --dry-runbash
uv run python skills/skill-package-manifest-enricher/scripts/check.py
uv run python skills/skill-creator/scripts/audit.py skills/skill-package-manifest-enricher/
uv run pytest -q tests/test_skill_package_manifest_enricher.py
uv run python skills/skill-creator/scripts/package.py skills/skill-package-manifest-enricher/ --dry-runCompletion Criteria
完成标准
- All four commands exit successfully.
- Preview leaves the sidecar byte-for-byte unchanged.
- Explicit apply preserves unrelated upstream keys.
- Missing target evidence remains with an empty target set.
unavailable
- 四个命令均成功执行。
- 预览模式下副文件字节保持不变。
- 显式应用模式保留无关的上游清单键值。
- 缺失目标证据时状态保持且目标集为空。
unavailable
Critical Rules
关键规则
- Parse frontmatter only with a real YAML safe loader.
- Never import repository application modules from the portable script.
- Derive targets only from the selected skill's applicable metadata row.
- Emit and an empty target set when evidence is absent.
unavailable - Never persist machine-local absolute source labels.
- Preserve unrelated upstream manifest keys.
- Require explicit before writing a sidecar.
--apply - Run package dry-run after enrichment preview.
- Route ZIP creation to skill-creator mode.
Package
- 仅使用真实的YAML安全加载器解析前置元数据。
- 切勿从可移植脚本导入仓库应用模块。
- 仅从选定技能的适用元数据行派生目标。
- 证据缺失时生成状态及空目标集。
unavailable - 切勿持久化机器本地的绝对源标签。
- 保留无关的上游清单键值。
- 写入副文件前需显式指定参数。
--apply - 增强预览后运行包的dry-run模式。
- 将ZIP创建路由至skill-creator的模式。
Package
Canonical Vocabulary
标准术语
Canonical terms (use these exactly throughout):
- Modes: ,
previewapply - Target status: ,
catalog,syncunavailable - Evidence inputs: ,
catalog metadata,sync metadataupstream manifest
标准术语(全程需严格使用):
- 模式:、
previewapply - 目标状态:、
catalog、syncunavailable - 证据输入:、
catalog metadata、sync metadataupstream manifest