用途:将机制链、算法架构、模块关系或实验闭环绘制为可编辑、可嵌入的科研图,用于科研写作与表达优化,不代表评审口径。
主要能力:默认使用 drawio 生成 schematic.drawio、schematic.pdf、schematic.svg、schematic.png;支持规划模式(planning_mode=ai)由宿主 AI 产出 schematic-plan.md 与 spec_draft.yaml;支持多轮评估与优化,默认最多 5 轮,阈值与停止策略以 config.yaml:evaluation 为准;可选 ai_critic 自主闭环;可选 Nano Banana PNG-only 模式(Gemini / OpenAI gpt-image-2),仅在用户明确要求时启用。
输入:至少提供 spec_file、proposal_file、proposal_path 之一;可选 rounds、renderer、output_dir、config、style_ref_images、context、template_ref。
使用方式: 规划:python3 nsfc-schematic/scripts/plan_schematic.py --proposal /path/to/proposal --output ./schematic_plan 生成:python3 nsfc-schematic/scripts/generate_schematic.py --spec-file ./schematic_plan/spec_draft.yaml --output-dir ./schematic_output --rounds 5 连通性检查:python3 nsfc-schematic/scripts/nano_banana_check.py Nano Banana 模式需加 --renderer nano_banana;.env 中可通过 IMAGE_PROVIDER=openai 切换,未指定时优先沿用既有 GEMINI_* 配置。
输出:默认交付上述四种文件;隐藏中间产物写入 output_dir/.nsfc-schematic/,含 optimization_report.md、spec_latest.yaml、config_used_best.yaml、evaluation_best.json、runs/run_/round_、ai/、legacy/。Nano Banana 模式仅交付 schematic.png 与 schematic_compacted.png。
限制:开始前强制读取 config.yaml 作为单一真相来源;默认仅处理用户明确提供的文件或目录,不联网抓素材;默认保持 drawio 流程;拥挤优先改 spec 而非缩字号,仅 overflow 风险时减字号;配色问题优先改 kind 分配或结构。若出现本 skill 设计缺陷导致的 bug,应使用 bensz-collect-bugs 记录到 ~/.bensz-skills/bugs/,不要直接修改本地已安装源码;公开上报时仅上传新增 bug 到 huangwb8/bensz-bugs。