/sciris:sciris-utilsfrom sciris
Provides reference for Sciris utility functions: type conversion, merging dicts/lists, downloading, shell commands, fuzzy matching, and debugging helpers.
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 type handling, downloading, and other tools. See full tutorial: docs/tutorials/tut_utils.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.
def my_func(json=None, **kwargs):
default = dict(a=1, b=2)
output = sc.mergedicts(default, json, kwargs) # None inputs are OK
return output
sc.mergelists(['a', 'b'], 'c', None, {'d': 1}) # ['a', 'b', 'c', {'d': 1}]
sc.tolist('single') # ['single'] — safe to iterate
sc.tolist(['already']) # ['already'] — unchanged
sc.toarray(2) # array([2]) — handles scalars (np.array doesn't)
sc.toarray([1, 2, 3]) # array([1, 2, 3])
sc.cat(1, [2, 3], np.array([4, 5])) # array([1, 2, 3, 4, 5]) — concatenates
output = sc.autolist()
for item in data:
output += f'Result: {item}' # Appends automatically with +=
sc.isnumber(3) # True
sc.isnumber(3.14j) # True
sc.isnumber('3') # False
sc.suggest('Scirys', ['Python', 'NumPy', 'Sciris']) # 'Sciris'
data = sc.download(urls, save=False) # Download to memory (parallel)
sc.download(urls, save=True) # Download to disk
out = sc.runcommand('ls *.py', printoutput=True) # Use instead of Popen()
old = sc.importbypath('sim_v1/sim.py') # Import without sys.path
new = sc.importbypath('sim_v2/sim.py') # Two modules with same name
plt = sc.lazyimport('matplotlib.pyplot') # Only imported when first used
sc.help('interpol') # Search all Sciris source code
sc.help('interpol', context=True) # With surrounding context
sc.traceback() # Get exception traceback as string
sc.loadtext('file.py') # Load text file as string
sc.pp(obj) # Pretty-print any object
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./sciris-dictsUse when working with Sciris dictionaries or dataframes — sc.obj, sc.objdict, sc.odict, sc.dataframe, integer indexing of dicts, enumitems, object-syntax access, dataframe creation with dtypes, appendrow, or sc.dataframe.cat./sciris-filesUse 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./sciris-introUse when the user needs to implement a basic Sciris features — finding array values, plotting with date formatting, sc.obj containers, saving/loading objects, or parallelization.npx claudepluginhub sciris/sciris --plugin scirisOther plugins' skills for the same job