Loading...
Loading...
Compare original and translation side by side
jinja2render_card.pySKILL.mdskill.mdtarget_skill_directoryreferences/scripts//tmp/render_card.pyjinja2SKILL.mdskill.mdtarget_skill_directoryreferences/scripts//tmp/SKILL.md$ARGUMENTS.env/tmp/scripts/discover_assets.pyreferences/style-guide.mdHUMAN-REQUIREDscripts/render_card.pyscripts/validate_submission.py{{ ... }}{% ... %}SKILL.md$ARGUMENTS.env/tmp/scripts/discover_assets.pyreferences/style-guide.mdHUMAN-REQUIREDscripts/render_card.pyscripts/validate_submission.py{{ ... }}{% ... %}| Script | Purpose | Arguments |
|---|---|---|
| Extracts skill files, repo signals, style guide, and template into one discovery report. | |
| Validates context JSON and renders the skill card from the Jinja template. | |
| Fails if the rendered card still contains VERIFY or SELECT review markers. | |
| 脚本 | 用途 | 参数 |
|---|---|---|
| 将技能文件、仓库信号、风格指南和模板提取为一份发现报告。 | |
| 验证上下文JSON并从Jinja模板生成技能卡片。 | |
| 若生成的卡片仍包含VERIFY或SELECT审查标记,则验证失败。 | |
run_script("scripts/discover_assets.py", args=["/path/to/target-skill"])run_script(
"scripts/render_card.py",
args=[
"--context", "/tmp/target-skill-context.json",
"--template", "references/skill-card.md.j2",
"--out", "/path/to/target-skill/target-skill-card.md"
]
)run_script("scripts/validate_submission.py", args=["/path/to/target-skill/target-skill-card.md"])run_script("scripts/discover_assets.py", args=["/path/to/target-skill"])run_script(
"scripts/render_card.py",
args=[
"--context", "/tmp/target-skill-context.json",
"--template", "references/skill-card.md.j2",
"--out", "/path/to/target-skill/target-skill-card.md"
]
)run_script("scripts/validate_submission.py", args=["/path/to/target-skill/target-skill-card.md"])| Error | Cause | Solution |
|---|---|---|
| The target path is wrong or not mounted in the workspace. | Re-run discovery with the absolute path to the skill directory. |
| The renderer dependency is missing. | Install |
| Required fields are missing or typed incorrectly. | Fix the context JSON using |
| Unresolved marker failure | VERIFY or SELECT markers remain after review. | Confirm each marked field, prune catalog entries, then re-run |
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 目标路径错误或未挂载到工作区。 | 使用技能目录的绝对路径重新运行发现脚本。 |
| 缺少渲染器依赖。 | 安装 |
| 必填字段缺失或类型错误。 | 使用 |
| Unresolved marker failure | 审查后仍存在VERIFY或SELECT标记。 | 确认每个标记字段,删减目录条目后重新运行 |
SKILL.mdreferences/style-guide.mdreferences/skill-card.md.j2references/Skill Card Generator License.txtreferences/catalog/limitations.jsonreferences/catalog/risks.jsonscripts/discover_assets.pyscripts/render_card.pyscripts/validate_submission.pySKILL.mdreferences/style-guide.mdreferences/skill-card.md.j2references/Skill Card Generator License.txtreferences/catalog/limitations.jsonreferences/catalog/risks.jsonscripts/discover_assets.pyscripts/render_card.pyscripts/validate_submission.py