EasonZhu1997/Eason-Agent-Skills / skills/rokid-article-publisher
rokid-article-publisher
Verified将 Word、TXT、Markdown 或 HTML 图文稿发布到 Rokid 论坛,保留配图位置与正文格式,修复原帖缺图和标题排版,并在保存后刷新核对。不用于 AIUI 应用打包或平台提审。
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 1.0 KB |
| README.md | markdown | 5.1 KB |
| SKILL.md | skill md | 7.9 KB |
| agents/openai.yaml | config | 337 B |
| references/md-image-mapping.md | markdown | 5.4 KB |
| references/richtext.md | markdown | 9.9 KB |
| references/rokid-editor.md | markdown | 10.8 KB |
| references/text-input.md | markdown | 8.7 KB |
| references/validation.md | markdown | 1.9 KB |
| requirements-render.txt | markdown | 22 B |
| scripts/docx_inventory.py | script | 19.7 KB |
| scripts/fill_image_map.py | script | 12.2 KB |
| scripts/finalize_images.py | script | 10.1 KB |
| scripts/prepare_text.py | script | 24.2 KB |
| scripts/render_richtext.py | script | 16.5 KB |
| scripts/test_docx_inventory.py | script | 12.2 KB |
| scripts/test_fill_image_map.py | script | 8.2 KB |
| scripts/test_finalize_images.py | script | 13.0 KB |
| scripts/test_prepare_text.py | script | 19.6 KB |
| scripts/test_render_richtext.py | script | 16.6 KB |
| scripts/test_rokid_text_flow.py | script | 9.1 KB |
references/validation.md
View on GitHub# 验证记录
核对日期:2026-09-06。
- `test_docx_inventory.py`:14 项合成测试通过。
- `test_fill_image_map.py`:14 项合成测试通过。
- `test_prepare_text.py`:49 项 TXT / Markdown 预处理测试通过。
- `test_finalize_images.py`:23 项 Markdown 图片回填测试通过。
- `test_render_richtext.py`:29 项富文本与 TXT 字面保真测试通过。
- `test_rokid_text_flow.py`:16 项 Rokid 平台适配和完整链路测试通过。
- 本次共 145 项测试通过,无跳过;独立评测另复核了真实 CLI 输出流程。
- 官方 `skill-creator` 的 `quick_validate.py`:通过。
前向评测发现并修复了一个边界问题:图片 `alt` 属性中的示例 `src="…"` 曾可能被误认作真实属性。现在按属性边界定位并复核输出;对应回归用例已纳入包内测试。
新增平台适配测试检查实际输出:独立图片为正文顶层 `img`,宽度属性为 `100%`,图注与原顺序保留;混排、链接包图、列表 / 引用 / 表格内图片会阻断且不产出部分稿件。图床没有默认白名单,回填和渲染均需相同的精确主机授权。旧 Word helper 与原有 28 项测试未改动。
以上是技能结构和本地助手的验证,不代表任意账号、网络或未来论坛版本都能自动发布。本次升级没有登录或修改真实帖子;线上上传、图片加载、位置、样式及保存状态仍须按技能流程逐次核对。
完整测试环境为 Python 3.9+,安装 `requirements-render.txt` 中的 `markdown-it-py==3.0.0` 与可选测试依赖 `html5lib==1.1`。前者用于真正的 Markdown 渲染,后者仅用于 HTML5 首换行与文本保真检查;缺少时对应测试会跳过,必须如实报告。Word helper、TXT 纯文本路线、预处理与图片回填本身只需标准库。官方技能校验工具不包含在本包中,也不是运行本技能所需的依赖。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |