scientific-figure-studio
UnverifiedFigureCraft 根据科学对象、关系和数据制作科研图与语义配色。适用于机制、硬件、分层材料、定量图及整套配图,交付可编辑图源和分别记录的技术、科学与视觉审阅,保留数值、拓扑和修改范围。
examples/assembled-cutaway/build.py
View on GitHub"""Rebuild the selected editable cutaway; historical failures are optional."""
from pathlib import Path
import argparse,subprocess,sys,json,hashlib
p=argparse.ArgumentParser(description=__doc__)
p.add_argument('--skill',type=Path,default=Path(__file__).resolve().parents[2])
p.add_argument('--out',type=Path,required=True)
p.add_argument('--font',type=Path,required=True)
p.add_argument('--pdftoppm',type=Path,required=True)
p.add_argument('--include-rejected',action='store_true',help='Also rebuild first/alternative, both known to contain scientific depiction errors.')
a=p.parse_args();a.out.mkdir(parents=True,exist_ok=False)
here=Path(__file__).resolve().parent
subprocess.run([sys.executable,'-X','utf8','-B',str(here/'author_interface.py'),'--skill',str(a.skill),'--out',str(a.out/'selected.json')],check=True)
source=here/'input/implementation.md'
spec=json.loads((a.out/'selected.json').read_text(encoding='utf-8'))
spec['source_refs']=[{'description':'Original synthetic fixture material','sha256':hashlib.sha256(source.read_bytes()).hexdigest()}]
(a.out/'selected.json').write_text(json.dumps(spec,ensure_ascii=False,indent=2),encoding='utf-8')
for name in (['selected','first','alternative'] if a.include_rejected else ['selected']):
scene=a.out/'selected.json' if name=='selected' else here/'scenes'/f'{name}.json'
subprocess.run([sys.executable,'-X','utf8','-B',str(a.skill/'scripts/render_figure.py'),str(scene),'--out',str(a.out/name),'--font',str(a.font),'--pdftoppm',str(a.pdftoppm),'--qa-views'],check=True)
(a.out/'scope.json').write_text(json.dumps({'selected':'selected','historical_rejected_included':a.include_rejected,'fixed_source_rebuild':True,'new_language_generation':False},indent=2),encoding='utf-8')
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |