- name
SKILL.md
ไฟล์สกิลยังคงอยู่ในรีโพซิทอรีของผู้เผยแพร่
วางคำสั่งที่คัดลอกไว้ในเทอร์มินัล คำสั่งจะติดตั้ง SKILL.md นี้ลงในเอเจนต์ตัวนั้น
npx skills add Light0305/Light-Science --skill light-diagram-prompt -a cursor -yวางคำสั่งที่คัดลอกไว้ในเทอร์มินัล คำสั่งจะติดตั้ง SKILL.md นี้ลงในเอเจนต์ตัวนั้น
npx skills add Light0305/Light-Science --skill light-diagram-prompt -a claude-code -yวางคำสั่งที่คัดลอกไว้ในเทอร์มินัล คำสั่งจะติดตั้ง SKILL.md นี้ลงในเอเจนต์ตัวนั้น
npx skills add Light0305/Light-Science --skill light-diagram-prompt -a codex -yวางคำสั่งที่คัดลอกไว้ในเทอร์มินัล คำสั่งจะติดตั้ง SKILL.md นี้ลงในเอเจนต์ตัวนั้น
npx skills add Light0305/Light-Science --skill light-diagram-prompt -a grok -yส่งข้อความที่คัดลอกไว้ในแชต Grok Bot แล้ว Bot จะดึง SKILL.md นี้จาก GitHub และเพิ่มลงในสกิลที่ Bot ทุกตัวของคุณใช้ร่วมกัน
Install this skill: https://github.com/Light0305/Light-Science/tree/HEAD/light-diagram/light-diagram-promptจากผู้เผยแพร่
需要落盘或继续已有项目时,先读 项目目录约定,按其中的本阶段位置、版本与关联规则保存;用户指定路径和旧项目优先。包内资源相对本 skill,研究产物相对真实项目,二者不要混用。只做局部讨论时无需初始化目录。
Produce a scientifically faithful, visually intentional, copy-ready image-generation prompt for a non-data scientific figure. Always deliver the prompt before generation. Unless the user requests prompt-only, use an available host image tool, otherwise a user-configured image service; without either, deliver the prompt alone. Editable reconstruction belongs to the Illustrator, PowerPoint or Visio skills.
When invoked through the parent light-diagram workflow, reuse its brief, source scope, label list and critical relationships. Use the same generation route and return actual prompt/image paths, hashes and review findings; the parent continues editing-tool selection. Do not generate twice across the handoff. Record revisions separately from executed prompts. Direct prompt-only requests end at the prompt; other direct requests may end at a reviewed generated image.
持续项目先读取有关 Memory,再回实际论文、设计、分析及采用的稿图版本核对。保留实际阅读范围和来源定位、FIG/修订身份、关键关系与证据边界;生成图只作视觉参考。将采用的提示词/图版本、图注需同步事项、未决问题和有来源的决定交回 Write/Review 与 Memory。直接请求无需创建整套交接。
Use what the user supplied: paper text or files, abstract, methods, caption, protocol, research plan, existing figure, reference image(s), desired audience, output context, and target image model if named.
If files are supplied, read/extract the relevant parts using available file-reading tools. For long papers, prioritize the method/approach, figure caption, definitions of the key modules, and passages that establish their relationships. Do not silently base a detailed method figure on an abstract alone: state the limitation and either produce a high-level conceptual prompt or request methods details if those details determine the structure.
Extract a compact Figure Brief:
Do not ask the user to fill in fields that can be safely inferred. Ask only when two plausible interpretations would produce materially different science or layout. Otherwise state a reasonable assumption and proceed.
Select one primary archetype based on the visual claim, not merely paper topic. Consult references/diagram-archetypes.md when useful. Combine archetypes only when it makes the relationships clearer.
Read the relevant section of references/domain-visual-language.md for domain objects, relationship semantics, and failure modes. Use references/worked-examples.md for complete teaching examples; their invented study settings are not evidence for the user's paper.
For CS/ML, also choose a content community (e.g. NeurIPS/ICML/ICLR, CVPR/ICCV/ECCV, ACL/EMNLP, ACM systems/data, USENIX/OSDI/SOSP) separately from a visual treatment (strict paper figure, premium academic graphical abstract, technical presentation overview, minimal vector, or a user-specified treatment). For other fields, infer the field's actual publishing and diagram conventions rather than borrowing these examples.
When style is unspecified, choose and briefly state a suitable direction and deliver the prompt. Ask a concise preference question only if materially different readings would make the result unusable; do not introduce a mandatory approval pause. If the user asks for alternatives, supply 2–3 distinct directions or complete prompts.
When a local corpus or user-provided reference figures are available, retrieve a small, relevant set based on visual intent first, domain second:
Resolve bundled paths relative to this skill's directory, not the caller's working directory. The optional local corpus is Some papers' diagram/; see references/reference-corpus.md for discovery and CLI examples. scripts/search_reference_figures.py performs offline filename/metadata matching and can produce a contact sheet if Pillow is installed. It does not perform visual similarity search. Prefer curated metadata when available; inspect original images after candidate retrieval. Metadata coverage may differ from the image inventory. Missing corpus, metadata, or Pillow must not block prompt generation. No reference repository is a runtime dependency. Provide source paths/metadata for inspected examples and distinguish observations from interpretations.
If no usable visual reference is available, proceed from the discipline and archetype; do not pretend to have inspected references. If the user provides a reference image, analyze style and structure separately from its scientific content. Reuse its palette/layout cues only within the user's requested scope; do not copy proprietary logos, watermarks, or another paper's scientific claims.
For complex figures (more than four regions, parallel streams, feedback, multi-level hierarchy, dense labels, or strict layout constraints), create an internal or user-visible Visual Schema before writing the rendering prompt. Keep it concise and concrete:
For error-prone details, give each repeated module an internal identifier and list critical edges as source → target → meaning. These identifiers guide planning; do not render them unless whitelisted. Define label leaders separately from scientific arrows: name the exact object and boundary where each leader ends. For nucleic acids, polymers, circuits, and layered systems, specify continuity and junctions; nearby shapes or color changes do not establish connectivity. State the scope of repeat brackets so preprocessing is not accidentally repeated.
For simple figures, use the brief directly. Do not output empty schema scaffolding or unresolved placeholders.
Use references/prompt-structure.md and references/prompt-quality-check.md as needed. The final prompt must be self-contained and directly pasteable into an image-generation model. It should include, in a natural order:
Do not overload the prompt with generic quality adjectives. Replace vague words such as "professional", "beautiful", "high-end" or "top-conference quality" with observable design instructions. Do not prescribe exact hex colors, pixel sizes, or typographic implementation unless the target model/workflow explicitly benefits from them; such details can be rendered literally as text. Use relative spatial language and natural color descriptions by default.
The visible-text whitelist is mandatory in the final prompt. Include only labels the source supports. Explicitly say that prompt-internal headings (e.g. "ZONE 1", "CONNECTIONS") are instructions, not figure text, unless individually whitelisted. Do not ask for a title, caption, footnote, legend, axis, or annotation unless it is explicitly required and listed.
If a specific image model is named, adapt only what is needed for its text rendering, reference-image handling, aspect ratio controls, and image-editing capabilities. Do not assert unsupported features or current model availability. If current model capability is important and not known, verify from the provider's official documentation when web access is available; otherwise phrase the prompt model-neutrally and state the limitation.
If the model is unspecified, produce a model-neutral prompt with explicit spatial structure, controlled labels, and clear scientific constraints. Do not block on model selection unless it changes the result substantially.
Run the checklist in references/prompt-quality-check.md. At minimum, verify:
Read image-generation.md for routing, configuration and the helper. Before every generation/edit call, show the complete executable prompt in a user-visible message, or save it and show a clickable file link; continue without a routine approval pause. A tool log alone does not meet this requirement.
Respect explicit prompt-only requests first. Otherwise discover actual host image tools and prefer them, following the host image skill/tool rules. If the host has none, use the user's configured service (url, api_key_env or api_key, model, optional parameters). An explicit custom-provider preference overrides the default. With neither capability nor complete configuration, deliver the full prompt and briefly state that no image was generated; configuration is optional. Unknown host capability requires discovery rather than an assumed fallback.
The bundled custom adapter supports synchronous OpenAI-compatible Image APIs only; it does not imply that arbitrary vendor endpoints support that protocol. Do not read keys aloud, put them in prompts, copy them into case records or print full configuration. Follow the host imagegen and any available imagegen-fallback instructions. A previously authorized fallback after tool unavailability or technical failure may use its existing adapter/configuration; do not require a second API-key setup. Never route a safety refusal through another provider. Preserve the failed attempt and actual call lineage; do not silently switch or retry without a bound. Record actual calls and output hashes, inspect the returned image, and apply the checks below before claiming it passed. When no image was produced, report prompt delivery only.
If the user returns an image, inspect it before claiming to assess it. Compare it with the brief in this order: scientific entities/relationships, missing or wrong labels, topology/readability, then visual finish. Identify concrete locations and changes; preserve correct content and any user-approved style. Return a complete revised prompt, not a fragment that requires copying old prompts. For edit-capable models, separate what to preserve from what to change, and do not claim pixel-perfect preservation. With text-only feedback, revise the stated problem and say that no image was inspected. Stop when requested fixes are covered; do not force repeated generations or extra variants. Deliver each revised prompt before executing it. The custom adapter is text-to-image only; do not label a new generation as an edit or silently omit edit targets/reference images.
When a draft is mostly correct and an edit-capable generator is available, a self-contained edit prompt with an explicit target image, preserved elements, and localized corrections may retain topology better than another full generation. Recheck the entire critical edge list after any revision: a corrected port can coexist with a newly missing module or wrongly sourced arrow. Record unresolved problems rather than declaring success from visual polish. If revisions remain unstable, offer a scoped overview plus a separate detail panel without silently omitting required science. See references/generated-image-review.md for observed failure patterns and the real-paper pilot.
Answer in the user's language. For Chinese requests, explain in Chinese; the copyable prompt and figure labels should follow the paper/venue/output language, not automatically the conversation language.
## 图意与结构
- **核心表达:** ...
- **图类型 / 布局:** ...
- **领域语境 / 视觉气质:** ...
- **图中文字:** ...
- **依据与假设:** ...
## 参考图观察
[Only if references were actually inspected: 3–6 concise transferable observations and source paths/metadata when available. Omit otherwise.]
## 最终生图提示词
```text
[One complete prompt ready to paste into the image-generation model.]
```
## 生成后核查
[Briefly call out the most important scientific/text/data checks.]
If the user explicitly says "只要 prompt" / "prompt only", output only the final copyable prompt. If the user asks for several directions, provide distinct prompts rather than blending incompatible styles. Do not output internal reasoning or a long tutorial.
When generation will follow, deliver the prompt or its file link before the call; the final response includes that prompt/link, the image, the provider route and actual review limitations. If generation is unavailable or fails, keep the prompt as the usable deliverable and state the reason briefly. Do not call an ungenerated image complete.
references/image-generation.md — prompt-first routing, optional custom service configuration and actual invocation.
references/diagram-archetypes.md — selecting an information structure for non-data scientific figures.
references/prompt-structure.md — reusable blueprint and copy-ready prompt scaffold.
references/prompt-quality-check.md — scientific, visual, text, and image-model audit checklist.
references/reference-corpus.md — optional local corpus, retrieval commands, and provenance notes.
references/domain-visual-language.md — domain-specific object and relationship semantics.
references/worked-examples.md — complete cross-domain teaching inputs and prompts.
references/reference-observations.md — observations of images actually inspected, with limitations.
references/acceptance-cases.md — behavioral acceptance scenarios; not an executed model benchmark.
references/research-notes.md — source synthesis and design decisions; not required on every invocation.
>-
---name: light-diagram-promptdescription: >----# light-diagram/light-diagram-prompt/SKILL.mdFAQ
ดาวน์โหลด light-diagram/light-diagram-prompt/SKILL.md จากผู้เผยแพร่ หรือคัดลอกพาธแล้วเปิดรีโพซิทอรี PlugMCP แสดงรายการสกิลเท่านั้น ไม่ได้โฮสต์ไฟล์
ผู้เผยแพร่เก็บไว้ที่ https://github.com/Light0305/Light-Science
Claude, Cursor, Codex และ Grok Build อ่าน SKILL.md ที่คุณเพิ่มจากรีโพซิทอรีของผู้เผยแพร่ได้ ส่วน Grok Bot จะติดตั้งให้เมื่อคุณส่งลิงก์โฟลเดอร์ GitHub ของสกิลในแชต