关于 alicloud-solution-content-article-illustrator-test
这是用于验证 alicloud-solution-content-article-illustrator 技能的冒烟测试项目,面向维护该技能及其工作流的人员。它检查脚本编译、偏好设置回退、提示词和模拟后端流程,并验证生成的文章图片链接及测试证据。
主要功能
- 01检查技能元数据和脚本编译
- 02验证项目与用户偏好设置回退
- 03检查类型与风格兼容文档
- 04运行模拟后端工作流
- 05验证带图片文章及相对链接
适用场景
- 01在修改技能后运行冒烟测试
- 02检查偏好设置读取优先级
- 03验证提示词文件先于图像生成
- 04确认输出文章使用相对图片链接
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ cinience/ alicloud-skills --skill alicloud-solution-content-article-illustrator-test安装后在 Claude Code 中输入/alicloud-solution-content-article-illustrator-test确认已加载。
附带文件scripts/smoke_test_article_illustrator.py
详细介绍
Category:test
内容文章插图工具冒烟测试
前置条件
- 目标技能路径:
skills/solutions/alicloud-solution-content-article-illustrator/ - Python 3
测试步骤
- 编译辅助脚本:
python3 tests/common/compile_skill_scripts.py \
--skill-path skills/solutions/alicloud-solution-content-article-illustrator \
--output output/alicloud-solution-content-article-illustrator-test/compile-check.json
- 运行可执行冒烟测试:
python3 tests/solutions/alicloud-solution-content-article-illustrator-test/scripts/smoke_test_article_illustrator.py \
--output output/alicloud-solution-content-article-illustrator-test/smoke-test-result.json
- 将命令输出保存到
output/alicloud-solution-content-article-illustrator-test/下。
通过标准
SKILL.md包含有效的 frontmatter。- 辅助脚本编译成功。
load_preferences.py遵循项目优先于用户的回退规则。load_preferences.py从项目偏好设置中获取水印、输出目录和自定义样式名称。- 参考文档将 Type 和 Style 作为两个独立维度说明。
- 样式文档包含 Type x Style 兼容性矩阵和自动选择指南。
- 后端约定说明推荐方案,但不强制绑定。
- 提示词文档和生成的提示词文件使用
ZONES、LABELS、COLORS和ASPECT等结构化章节。 - 工作流和提示词文档说明
direct、style和palette参考图的用法。 run_workflow.py执行模拟后端工作流并写入工作流证据。- 提示词文件先于生成的图像存在。
- 最终的
article.with-images.md使用相对images/...链接。 output/alicloud-solution-content-article-illustrator-test/下存在证据。
结果模板
- 日期:YYYY-MM-DD
- 技能:skills/solutions/alicloud-solution-content-article-illustrator
- 结论:通过 / 失败
- 备注:
评论
支持 Markdown