
nsfc-schematic
当用户明确要求"生成 NSFC 原理图/机制图/schematic diagram/mechanism diagram"或需要把标书中的研究机制、算法架构、模块关系转成"可编辑 + 可嵌入文档"的图示时使用。默认输出可编辑源文件(.drawio)与渲染文件(.pdf/.svg/.png);当用户主动提及 Nano Banana 图片模型时,可切换为 PNG-only 模式,并兼容 Gemini 与 OpenAI gpt-image-2。⚠️ 不适用:用户只是想润色正文文本(应直接改写文本)、只是想改已有图片格式/尺寸(应使用图片处理技能)、没有明确"原理图/机制图"意图。
- Installs
- 79
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/huangwb8/chineseresearchlatex --skill nsfc-schematic- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads nsfc-schematic automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
NSFC 原理图生成器
与 bensz-collect-bugs 的协作约定
- 当用户环境中出现因本 skill 设计缺陷导致的 bug 时,优先使用
bensz-collect-bugs按规范记录到~/.bensz-skills/bugs/,严禁直接修改用户本地 Claude Code / Codex 中已安装的 skill 源码。 - 若 AI 仍可通过 workaround 继续完成用户任务,应先记录 bug,再继续完成当前任务。
- 当用户明确要求“report bensz skills bugs”等公开上报动作时,调用本地
gh与bensz-collect-bugs,仅上传新增 bug 到huangwb8/bensz-bugs;不要 pull / clone 整个 bug 仓库。
定位
- 把机制链、算法架构、模块关系或实验闭环画成可编辑、可嵌入的科研图。
- 默认使用
drawio生成drawio/pdf/svg/png;只有用户明确要求 Nano Banana 图片模型时才允许切到 PNG-only。 - 仅用于科研写作与表达优化,不代表评审口径。
输入
至少提供其一:
spec_file:结构化图规格文件,优先。proposal_file:单个标书文件。proposal_path:标书目录。
可选:
roundsrendereroutput_dirconfigstyle_ref_imagescontext:自然语言机制描述,供规划模式生成草案template_ref
输出
默认交付:
schematic.drawioschematic.pdfschematic.svgschematic.png
隐藏中间产物写入 output_dir/.nsfc-schematic/:
optimization_report.mdspec_latest.yamlconfig_used_best.yamlevaluation_best.jsonruns/run_*/round_*ai/:stop_strategy=ai_critic工作区legacy/:历史残留收纳区
Nano Banana 模式仅交付:
schematic.pngschematic_compacted.png
硬规则
- 开始前强制读取
config.yaml,以renderer、layout、color_scheme、evaluation、planning、output为单一真相来源。 - 默认仅处理用户明确提供的文件或目录,不联网抓素材。
- 默认保持
drawio流程;未被用户点名时,不要切到图片模型。 - 拥挤优先改
spec,不要优先缩字号;只有出现 overflow 风险时才减字号。 - 配色问题优先改
kind分配或结构,不用黑白方案掩盖结构错误。
主流程
1. 规划
- 推荐首次使用时先走“规划 → 审阅 → 生成”。
- 默认
planning_mode=ai:plan_schematic.py生成规划请求- 宿主 AI 产出
schematic-plan.md和spec_draft.yaml - 复跑脚本做合法性校验
- 若用户只给自然语言描述,也可直接以
--context启动规划。
2. 生成
python3 nsfc-schematic/scripts/generate_schematic.py \
--spec-file ./schematic_plan/spec_draft.yaml \
--output-dir ./schematic_output \
--rounds 5
- 流程包括:解析 spec、生成 draw.io XML、XML 预检、渲染、主评估、多维度自检、导出 best round。
- 如提供显式
edges,渲染器必须优先复现;否则按layout.auto_edges自动连线。
3. 评估与优化
- 默认最多 5 轮,阈值与停止策略只看
config.yaml:evaluation。 - 每轮至少输出:
evaluation.jsonlayout_debug.jsonedge_debug.jsonmeasurements.jsondimension_measurements.jsoncritique_structure.jsoncritique_visual.jsoncritique_readability.json
4. 可选:AI 自主闭环
- 当需要宿主 AI 根据证据包决定下一轮时,启用
evaluation.stop_strategy: ai_critic。 - 协议文件位于
.nsfc-schematic/ai/,主要包括:ai_critic_request.mdai_critic_response.yamlai_pack_round_XX/
5. 可选:Nano Banana PNG-only(Gemini / OpenAI gpt-image-2)
- 只有用户明确要求时启用。
- 先做连通性检查:
python3 nsfc-schematic/scripts/nano_banana_check.py
-
.env中可通过IMAGE_PROVIDER=openai切到 OpenAI;未显式指定时,默认优先沿用既有GEMINI_*配置。 -
再执行 PNG-only 生成:
python3 nsfc-schematic/scripts/generate_schematic.py \
--renderer nano_banana \
--spec-file ./schematic_plan/spec_draft.yaml \
--output-dir ./schematic_output \
--rounds 5
常用命令
# 规划
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
参考材料
config.yamlreferences/plan_template.mdreferences/design_principles.mdreferences/models/templates.yamlreferences/spec_examples/
FAQ
What does the nsfc-schematic skill do?
当用户明确要求"生成 NSFC 原理图/机制图/schematic diagram/mechanism diagram"或需要把标书中的研究机制、算法架构、模块关系转成"可编辑 + 可嵌入文档"的图示时使用。默认输出可编辑源文件(.drawio)与渲染文件(.pdf/.svg/.png);当用户主动提及 Nano Banana 图片模型时,可切换为 PNG-only 模式,并兼容 Gemini 与 OpenAI gpt-image-2。⚠️ 不适用:用户只是想润色正文文本(应直接改写文本)、只是想改已有图片格式/尺寸(应使用图片处理技能)、没有明确"原理图/机制图"意图。
How do I install nsfc-schematic?
Run npx skills add https://github.com/huangwb8/chineseresearchlatex --skill nsfc-schematic in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/nsfc-schematic/ (personal) or .claude/skills/nsfc-schematic/ (project).
Which AI agents can use nsfc-schematic?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is nsfc-schematic safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains nsfc-schematic?
It is published by huangwb8 in huangwb8/chineseresearchlatex. It has 79 recorded installs.
More from huangwb8/chineseresearchlatex
systematic-literature-review
huangwb8/chineseresearchlatex
当用户明确要求"做系统综述/文献综述/related work/相关工作/文献调研"时使用。AI 自定检索词,多源检索→去重→AI 逐篇阅读并评分(1–10分语义相关性与子主题分组)→按高分优先比例选文→自动生成"综/述"字数预算→资深领域专家自由写作(固定摘要/引言/子主题/讨论/展望/结论),保留正文字数与参考文献数硬校验,强制导出 PDF 与 Word。支持多语言翻译与智能编译(en/zh/ja/de/fr/es)。
nsfc-justification-writer
huangwb8/chineseresearchlatex
Open the skill to read its SKILL.md instructions.
nsfc-research-content-writer
huangwb8/chineseresearchlatex
Open the skill to read its SKILL.md instructions.
nsfc-research-foundation-writer
huangwb8/chineseresearchlatex
Open the skill to read its SKILL.md instructions.
nsfc-abstract
huangwb8/chineseresearchlatex
Open the skill to read its SKILL.md instructions.
nsfc-reviewers
huangwb8/chineseresearchlatex
Open the skill to read its SKILL.md instructions.
Popular docs & writing skills
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
lark-markdown
open.feishu.cn
飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。
writing-beats
mattpocock/skills
Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
writing-shape
mattpocock/skills
Writing, exploit: shape raw material into an article, paragraph by paragraph.
writing-fragments
mattpocock/skills
Writing, explore: mine raw fragments, no structure yet.
writing-for-agents
mattpocock/skills
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.