跳到正文
cccskills
免费在 GitHub 公开

engineering-figure-agent

Use when the user needs engineering or research-paper figures: system architecture diagrams, algorithm workflows, hardware schematics, benchmark charts, ablation plots, figure briefs, redraws, image edits, or exact publication-style plots from numeric data. Covers Gemini, Nano Banana, OpenAI image models, and local plotting workflows.

中文简介正在准备中。当前显示原文说明。

集成工具OpenAIGemini
查看安装方法

包含的文件(86)

  • SKILL.md4.5 KB
  • .github/workflows/ci.yml1.1 KB
  • .gitignore252 B
  • adapters/claude-code/README.md1.0 KB
  • adapters/claude-code/skills/engineering-figure-agent/SKILL.md2.6 KB
  • adapters/claude-code/skills/engineering-figure-agent/templates/figure-brief.md600 B
  • adapters/README.md463 B
  • agents/openai.yaml431 B
  • assets/prompt-templates/engineering-figure-templates.json6.5 KB
  • assets/prompt-templates/materials-science-figure-templates.json9.5 KB
  • docs/examples/benchmark-plot-request.json1.4 KB
  • docs/examples/benchmark-plot.png163.2 KB
  • docs/examples/briefs/benchmark-plot.md560 B
  • docs/examples/briefs/cooperative-object-tracking.md552 B
  • docs/examples/briefs/federated-open-vocab-driving.md558 B
  • docs/examples/briefs/health-monitoring-early-warning.md692 B
  • docs/examples/briefs/linux-kernel-system.md518 B
  • docs/examples/briefs/multi-agent-safety-overview.md540 B
  • docs/examples/cooperative-object-tracking-2k-1.png4.6 MB
  • docs/examples/cooperative-object-tracking-prompt.txt1.6 KB
  • docs/examples/federated-open-vocab-driving-2k-1.png5.4 MB
  • docs/examples/federated-open-vocab-driving-prompt.txt1.7 KB
  • docs/examples/health-monitoring-early-warning-note.txt699 B
  • docs/examples/health-monitoring-early-warning-reference.jpg195.0 KB
  • docs/examples/linux-kernel-system-1.jpg770.8 KB
  • docs/examples/linux-kernel-system-diagram-prompt.txt2.5 KB
  • docs/examples/multi-agent-safety-overview-2k-1.png5.6 MB
  • docs/examples/multi-agent-safety-overview-prompt.txt1.5 KB
  • docs/examples/README.md2.0 KB
  • docs/platform-adapters.md1.9 KB
  • docs/prompt-pack.md2.5 KB
  • docs/showcase.md1.5 KB
  • examples/figure-briefs/algorithm-workflow-en.md913 B
  • examples/figure-briefs/benchmark-plot-request.md1.8 KB
  • examples/figure-briefs/engineering-pipeline-zh.md429 B
  • examples/figure-briefs/system-architecture-en.md1022 B
  • examples/figure-briefs/system-architecture-zh.md580 B
  • LICENSE1.0 KB
  • providers.md5.0 KB
  • README.en.md4.3 KB
  • README.md7.7 KB
  • README.zh-CN.md4.2 KB
  • references/api-reference.md3.0 KB
  • references/chinese-labels.md1.5 KB
  • references/editable-figure-handoff.md1.3 KB
  • references/engineering-figure-templates.md1.7 KB
  • references/figure-brief-spec.md3.2 KB
  • references/highres-policy.md1.0 KB
  • references/materials-science-figure-template.md9.9 KB
  • references/natural-language-plot-workflow.md4.1 KB
  • references/prompt-templates.md2.4 KB
  • references/provider-selection.md2.3 KB
  • references/publication-chart-patterns.md2.4 KB
  • references/publication-figure-design.md2.4 KB
  • references/publication-plot-api.md5.6 KB
  • requirements.txt81 B
  • schemas/figure-brief.schema.json1.2 KB
  • schemas/plot-request.schema.json1.1 KB
  • scripts/build_engineering_figure_prompt.py2.8 KB
  • scripts/build_materials_figure_prompt.py2.9 KB
  • scripts/build_plot_spec.py8.2 KB
  • scripts/check_docs_links.py1.6 KB
  • scripts/check_runtime_package.py2.8 KB
  • scripts/check_setup.ps18.5 KB
  • scripts/efa.py4.7 KB
  • scripts/generate_image.js12.4 KB
  • scripts/generate_image.py26.4 KB
  • scripts/install_and_test.ps14.0 KB
  • scripts/install_skill.ps13.1 KB
  • scripts/load_nanobanana_env.ps12.1 KB
  • scripts/plot_publication_figure.py15.6 KB
  • scripts/sync_codex_skill.py2.5 KB
  • scripts/validate_prompt_templates.py4.3 KB
  • scripts/validate_skill.py1.1 KB
  • scripts/validate_text_encoding.py1.8 KB
  • scripts/wizard.ps13.9 KB
  • secrets/nanobanana_api_key.txt.example51 B
  • secrets/nanobanana.env.example1.6 KB
  • secrets/openai_api_key.txt.example47 B
  • templates/figure-brief/figure-brief.en.md929 B
  • templates/figure-brief/figure-brief.json633 B
  • templates/figure-brief/figure-brief.zh-CN.md912 B
  • tests/test_cli.py1.2 KB
  • tests/test_plot_workflow.py3.6 KB
  • tests/test_prompt_builder.py2.2 KB
  • tests/test_provider_safety.py3.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Engineering Figure Agent

Use this skill after the figure goal is already reasonably clear.

Boundary

Good fit:

  • Turn a figure brief into a conceptual diagram, workflow figure, schematic, or exact publication plot.
  • Choose between image, plot, and mixed mode.
  • Build prompts, render plots, and refine existing briefs.

Not the main tool for:

  • Deciding from scratch what claim the paper should visualize.
  • Full paper-argument or reviewer-style critique.

If the user is still deciding the figure claim, panel logic, or caption argument, use an available research-writing or paper-analysis skill upstream first.

Core Decision

  • image mode: conceptual figures, architecture diagrams, algorithm workflows, graphical abstracts, schematics, reference-inspired redraws.
  • plot mode: exact bar charts, trend curves, heatmaps, scatter plots, ablation plots, benchmark summaries.
  • mixed mode: render quantitative panels locally first, then use image generation only for conceptual panels.

Never use image generation for exact values, axes, or benchmark geometry.

Default Workflow

  1. Inspect the user input and decide whether a figure brief is already present.
  2. If needed, create a brief using references/figure-brief-spec.md.
  3. Choose image, plot, or mixed mode.
  4. For conceptual figures, prefer the prompt-builder scripts; read template references only when you need to inspect or customize template wording.
  5. For exact plots, create a concise plot request and render it locally.
  6. Keep labels short, claims source-grounded, and outputs publication-oriented.
  7. Save prompt/spec/output paths when files are produced.
  8. Before finishing, run only the checks needed for the touched path.

Reference Loading

Read only what is needed:

  • references/figure-brief-spec.md: brief structure and mode rules.
  • references/publication-figure-design.md: publication styling defaults.
  • references/provider-selection.md: Gemini/Banana/OpenAI setup.
  • references/highres-policy.md: high-resolution and fail-closed rules.
  • references/chinese-labels.md: Chinese label readability rules.
  • references/engineering-figure-templates.md and references/materials-science-figure-template.md: template wording when script output needs customization.
  • references/publication-chart-patterns.md, references/natural-language-plot-workflow.md, and references/publication-plot-api.md: exact or plot-heavy workflows.
  • references/editable-figure-handoff.md: optional editable SVG handoff.

Scripts

  • Build a prompt without network calls:
python scripts/build_engineering_figure_prompt.py --figure-template system-architecture --lang en "technical background"
python scripts/build_materials_figure_prompt.py --materials-figure mechanism-figure --lang en "scientific background"
  • Generate or edit a conceptual image:
python scripts/generate_image.py --provider openai --figure-template system-architecture --lang en "technical background"
python scripts/generate_image.py --provider openai --materials-figure mechanism-figure --lang en "scientific background"
  • Render an exact plot:
python scripts/build_plot_spec.py request.json --out spec.json
python scripts/plot_publication_figure.py spec.json --out-path output/figure --formats png pdf svg
  • Use the unified CLI:
python scripts/efa.py prompt --figure-template system-architecture "technical background"
python scripts/efa.py prompt --materials-figure mechanism-figure "scientific background"
python scripts/efa.py plot request.json --out-path output/figure
python scripts/efa.py check

Quality Rules

  • Do not fabricate measurements, benchmark values, hardware specs, or unsupported causal claims.
  • Keep arrows, reading order, and module hierarchy explicit.
  • Favor white backgrounds, publication-style spacing, and readable labels.
  • Use prompt-first workflows when layout fidelity matters.
  • For high-resolution requests, follow references/highres-policy.md.
  • For third-party providers, require explicit opt-in before sending keys or user files.
  • For Chinese figures, preserve standard technical notation when it improves clarity.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题