/sciris:sciris-filesfrom sciris
Provides file I/O and version management utilities from the Sciris library: save/load objects, JSON, YAML, file listing, path handling, metadata tracking, and reproducibility checks.
Ships in sciris. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.loadjson('cache.json', default={}) # Use a default if the file is missing or invalid
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
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/sciris-advancedUse when working with advanced Sciris features — nested dictionaries (sc.makenested, sc.getnested, sc.setnested, sc.iternested, sc.search, sc.iterobj), context blocks (sc.capture, sc.tryexcept), sc.smoothinterp interpolation, sc.asd optimization, sc.animation, sc.savemovie, or sc.printjson./sciris-arraysUse when working with NumPy arrays in Sciris — finding indices, nearest values, concatenation, handling NaN/missing values, smoothing data, 2D Gaussian smoothing, or linear regression with sc.findinds, sc.findnearest, sc.cat, sc.rmnans, sc.fillnans, sc.smooth, sc.rolling, sc.linregress./sciris-datesUse when working with dates, times, or timing in Sciris — sc.timer, sc.tic, sc.toc, sc.date, sc.daterange, sc.datedelta, sc.now, sc.getdate, sc.time, sc.timedsleep, sc.randsleep, date format conversion, or timing code blocks.npx claudepluginhub sciris/sciris --plugin scirisOther plugins' skills for the same job