Doris 技术文章插图生成
doris-img-gen
以 Doris 手绘白板风格创建 Apache Doris 文章插图,仅当任务、指南、操作者、诊断或拟人化叙事需要角色时,才随机选用 Pip、Dori 或 Flux 吉祥物。当用户调用 $doris-img-gen 或要求生成 Doris 技术文章插图、概念可视化、信息图、架构图、流程图或吉祥物辅助的讲解图时使用。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 137
- Forks
- 488
01 前言 Front Matter
- name
- doris-img-gen
- description
- Create Apache Doris article illustrations in the Doris hand-drawn whiteboard style, using a randomly selected Pip, Dori, or Flux mascot only when a task, guide, operator, diagnosis, or anthropomorphic narrative benefits from a character. Use when the user invokes $doris-img-gen or asks for a Doris technical article illustration, concept visual, infographic, architecture diagram, process diagram, or mascot-assisted explanatory graphic.
02 资源文件 26
- 参考文档.claude-plugin/marketplace.json2.6 KB
- 参考文档agents/openai.yaml262 B
- 资产文件assets/examples/sample_input.md1.1 KB
- 资产文件assets/meet-d-crew.jpg161.0 KB
- 资产文件assets/prompts/analysis_prompt.txt835 B
- 参考文档DECISIONS.md12.1 KB
- 参考文档README.md8.6 KB
- 参考文档references/analysis-methodology.md2.3 KB
- 参考文档references/extraction-patterns.md3.1 KB
- 参考文档references/generation-rules.md3.4 KB
- 参考文档references/visual-style.md2.9 KB
- 参考文档requirements.txt335 B
- 脚本scripts/__init__.py172 B
- 脚本scripts/analyzers/__init__.py519 B
- 脚本scripts/analyzers/code_detector.py3.8 KB
- 脚本scripts/analyzers/content_analyzer.py14.0 KB
- 脚本scripts/extractors/__init__.py359 B
- 脚本scripts/extractors/markdown_extractor.py6.1 KB
- 脚本scripts/extractors/notebook_extractor.py8.1 KB
- 脚本scripts/extractors/pdf_extractor.py15.8 KB
- 脚本scripts/extractors/web_extractor.py16.4 KB
- 脚本scripts/generators/__init__.py379 B
- 脚本scripts/generators/language_selector.py4.5 KB
- 脚本scripts/generators/prototype_generator.py14.1 KB
- 脚本scripts/main.py7.2 KB
- 脚本scripts/select_mascot.py1.1 KB
03 SKILL.md 正文
Doris Article Illustration Generator
Create technically clear, visually consistent illustrations for Apache Doris articles. Treat the text after $doris-img-gen as the primary content brief.
Prepare
- Read
references/visual-style.mdcompletely before generating an image. - Extract the requested concepts, relationships, sequence, labels, and layout constraints. Preserve them; do not invent technical facts, metrics, components, or product claims.
- If the request refers to an article, section, or local draft, read the relevant passage before composing the illustration.
- Keep all in-image wording in English by default. Use the user's exact quoted labels when supplied. Keep labels short and render each label exactly once.
Decide Whether to Use a Mascot
Apply the semantic-role test: include a mascot only when it performs a meaningful action that can be stated as a verb in the image.
Include one mascot when the scene needs:
- an operator starting or running a task;
- an investigator searching, observing, comparing, or diagnosing;
- a guide teaching or walking readers through a process;
- a central actor already present in the requested narrative;
- a human-like moment that makes an abstract idea easier to understand.
Omit the mascot when the image is primarily:
- architecture, topology, data flow, or component relationships;
- a chart, table, query plan, dashboard, or factual comparison;
- a compact process whose clarity would be reduced by a character;
- a scene where the mascot would be decorative rather than explanatory.
Never add a mascot only to fill space. Use one mascot by default. Use more than one only when interaction among roles is itself part of the requested content.
An explicit user request for a character always overrides random selection.
Treat the character roles as personality and prop hints, not fixed assignment rules:
- Pip — The Query Runner: purple triangular character; can run, launch, point, inspect, or guide.
- Dori — The Core Engine: cyan capsule character; can compute, operate, inspect, compare, or guide.
- Flux — The Data Explorer: mint-green diagonal capsule character; can search, investigate, connect, inspect, or guide.
Randomize Mascot Selection
After applying the semantic-role test, count only the images that need a mascot and do not already have a user-specified character. Randomize those slots by running the bundled selector once from the skill directory:
python3 scripts/select_mascot.py --count <number-of-unspecified-mascot-slots>
Assign the returned names to the mascot-bearing images in output order. For a single image, omit --count or pass --count 1.
The selector creates a fresh system-random order on every invocation. In a batch, it uses every character once before reshuffling and avoids the same character on adjacent slots. Use its output exactly: do not replace or rerun a valid result because another mascot seems more suitable for the scene. Do not run the selector for images that fail the semantic-role test.
Inspect assets/meet-d-crew.jpg with an image-viewing tool whenever a mascot will appear. Use it as the identity reference and preserve the selected character's silhouette, body color, face, and simple black limbs. Translate the character into the illustration style instead of copying the reference card layout or its surrounding text.
Compose the Image Prompt
Build a structured prompt with these fields:
Use case: infographic-diagram
Asset type: Apache Doris technical article illustration
Primary request: <content and relationships from the user's brief>
Scene/backdrop: <only what is needed to explain the content>
Subject: <main concepts, icons, arrows, and the mascot's action if included>
Style/medium: <the canonical style from references/visual-style.md>
Composition/framing: landscape 1200 x 630 with a clear reading order and generous margins
Text (verbatim): <exact English labels, or "No text">
Color palette: <the canonical palette from references/visual-style.md>
Constraints: technically faithful; readable labels; consistent icon scale; clear arrow direction; no extra text; no watermark; no photorealism; no 3D
Avoid: decorative clutter; dense paragraphs; tiny labels; unrelated logos; mascot use without a semantic role
If using the D-Crew reference, add:
Input images: Image N is the D-Crew identity reference. Use only the selected mascot; do not reproduce the reference poster, logo lockup, cards, headings, or descriptive copy.
Character consistency: preserve the selected mascot's recognizable geometry, color, face, and limbs; render it with the same hand-drawn marker linework as the rest of the illustration.
If the user also supplies a composition reference, identify each input image by number and role. Preserve the composition's information architecture without copying irrelevant artifacts.
Generate and Review
- Use the built-in image-generation tool by default.
- For a new image without a mascot or other supplied image reference, omit all reference-image parameters.
- When using a local mascot or composition reference, pass the required local files through
referenced_image_pathsand describe each image's role explicitly. - Save the final image in the user's project or requested destination as a PNG with a descriptive filename.
- Inspect the result at full resolution. Verify:
- all requested concepts and relationships are present;
- arrow directions and process order are correct;
- every label is English, legible, and spelled correctly;
- no unrequested wording appears;
- the mascot decision adds meaning, and the chosen character follows the random rotation or the user's explicit request;
- the image follows the canonical palette, background, linework, and dimensions.
- If any verification fails, refine the smallest necessary area and inspect again.
Invocation Examples
$doris-img-gen Show a query diagnosis loop with the exact labels "Hypothesis", "Evidence", "Observation", and "Elimination". A data investigator reviews profile, plan, chart, and checklist evidence.
$doris-img-gen Draw a left-to-right Doris data flow from client to FE to BE to object storage. Use no mascot and no text beyond the component labels.
04 同仓库更多 Skills
Doris 周报转 Slack 公告
weekly-report-slack
从 Apache Doris 每周社区报告 MDX 文件生成英文 Slack 就绪帖子,并保存一份临时 Markdown 副本。当用户调用 $weekly-report-slack path/to/report.mdx 或要求将 Doris 周报(尤其是 `src/pages/community-report/_reports/YYYY-MM-DD.mdx`)转换为标准 Slack 公告格式(包含日期范围、摘要段落、亮点和报告链接)时使用。
Doris 发布文档编写
doris-release-docs
暂无简介
Doris 文档重构与 SEO 优化
doris-doc-optimize
对现有的 Apache Doris 用户文档文件(`.md` / `.mdx`)进行重构与 SEO/GEO 优化,主要位于 `i18n/zh-CN/docusaurus-plugin-content-docs-next/current/` 或 `docs-next/` 目录下。该技能从用户场景角度重新组织文档,对参数/场景/常见问题(FAQ)使用表格和列表,修复格式问题(4 空格缩进、代码块语言标签、空行、中英文空格、命令拼接错误),用 `curl` 校验每个外部链接,并对照 `static/` 校验每个 `/images/...` 引用,同时按照内置的 `./references/seo-geo.md` 指南更新 frontmatter 中的 `description` + `keywords`——所有操作均不改变原意,也不遗漏任何技术内容(命令、参数、YAML、示例输出、图片均逐字保留)。当用户指向单个 Doris 文档文件并要求“优化这篇文档”“重新组织这篇文档”“帮我优化文档结构”“对这篇文章进行 SEO 优化”“按 SEO/GEO 优化这篇文档”“调整一下这篇文档的结构”“把这篇文档润色一下”“optimize this doc”“restructure this doc”“polish this doc”或类似表述时使用本技能——即使用户只是指向某个 Doris 文档路径并说“make this doc better”或“这篇文档读起来不顺”也应使用。请勿将本技能用于语言间翻译(改用 `doris-translate-zh-to-en`)、从零撰写全新文档(改用 `doris-feature-card` 或 `doc-coauthoring`),或仅做链接检查而不重构(改用 `check-md-links`)。
Doris 版本发布
add-release
在 Doris 网站上发布新的 Apache Doris Core 或 Doris 生态版本。用于更新下载数据、双语发布说明、Doris Core 发布索引、发布导航或生态发布页面。需先确认组件和发布元数据,因为 Core 与生态版本使用不同的文件和校验路径。