claude_plugin/skills/sciris-files/SKILL.md
Use when saving or loading files with Sciris — sc.save, sc.load, sc.savejson, sc.loadjson, sc.saveyaml, sc.readyaml, sc.savearchive, sc.loadarchive, sc.savefig, sc.loadmetadata, sc.getfilelist, sc.thispath, sc.makefilepath, sc.rmpath, sc.metadata, sc.compareversions, sc.require, or version/reproducibility tracking.
npx skillsauth add sciris/sciris sciris-filesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reference for file I/O and version management. See full tutorial: docs/tutorials/tut_files.ipynb.
If you need more detail, use your MCP tools (Context7 or GitMCP) to look up current Sciris documentation, or consult the other Sciris skills.
sc.save('my-sim.obj', sim) # Gzipped pickle (works with any Python object)
sim = sc.load('my-sim.obj') # Load — methods and class still work
sc.zsave('fast.obj', sim) # Zstandard compression (slightly faster)
# sc.load() auto-detects compression format
sc.savejson('data.json', obj) # Saves JSONifiable parts of any object
data = sc.loadjson('data.json') # Returns dict (not original object)
data = sc.readjson(json_string) # Parse JSON from string
data = sc.readyaml(yaml_string) # Parse YAML (supports comments)
sc.saveyaml('config.yaml', data)
sc.getfilelist('*.ipynb') # List files matching pattern
sc.thispath() # Path of current file (use instead of pathlib.Path)
sc.makefilepath('data/out.csv', makedirs=True) # Ensure path exists
sc.rmpath('file_or_folder') # Remove file or folder (auto-detects)
md = sc.metadata() # Collect all environment metadata
sc.compareversions(np, '>1.0') # Version comparison (returns True/False)
sc.require('numpy>1.20') # Warn/raise if requirement not met
sc.savefig('fig.png', comments='My analysis') # Saves with metadata (use instead of plt.savefig)
md = sc.loadmetadata('fig.png') # Retrieve metadata later
sc.savearchive('sim.zip', sim, files='script.py', comments='Full run')
sim = sc.loadarchive('sim.zip') # Restore object
md = sc.loadmetadata('sim.zip') # Get metadata separately
testing
Use when working with Sciris miscellaneous utilities — sc.mergedicts, sc.mergelists, sc.tolist, sc.toarray, sc.isnumber, sc.suggest, sc.download, sc.runcommand, sc.importbypath, sc.loadtext, sc.help, sc.traceback, sc.autolist, sc.pp, or type checking/conversion.
development
Use when printing or formatting output with Sciris — sc.heading, sc.printgreen, sc.printblue, colored output, sc.strjoin, sc.newlinejoin, sc.pr, sc.prettyobj, sc.indent, sc.progressbar, sc.printmedian, or monitoring loop progress.
development
Use when plotting with Sciris or Matplotlib — sc.options, sc.dateformatter, sc.commaticks, sc.SIticks, sc.boxoff, sc.setylim, sc.figlayout, sc.getrowscols, sc.vectocolor, sc.gridcolors, sc.scatter3d, sc.savefig, plot styles (sciris.simple, sciris.fancy), colormaps (parula, orangeblue), or 3D plotting.
development
Use when parallelizing code or profiling performance with Sciris — sc.parallelize, sc.Parallel, iterarg, iterkwargs, maxcpu, maxmem, async parallelization, sc.profile, sc.benchmark, sc.memload, sc.checkram, line profiling, or CPU/memory monitoring.