/sciris:sciris-arraysfrom sciris
Simplifies NumPy array operations in Sciris: finding indices, nearest values, concatenation, NaN handling, smoothing, and linear regression.
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 array utilities that simplify NumPy workflows. See full tutorial: docs/tutorials/tut_arrays.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.
import numpy as np
import sciris as sc
data = np.random.rand(100)
# Find indices where condition is true
inds = sc.findinds(data > 0.9) # vs (data>0.9).nonzero()[0]
# Find nearest value
ind = sc.findnearest(data, 0.5) # vs np.argmin(abs(data - 0.5))
# Works on lists too (not just arrays)
ind = sc.findnearest([81, 78, 66, 25], 50)
sc.cat(1, 2, 3) # array([1, 2, 3])
# Add row to matrix — vs np.concatenate([data, np.atleast_2d(np.array([1,2]))])
data = sc.cat(data, [1, 2])
d0 = [1, 2, np.nan, 4, np.nan, 6, np.nan, np.nan, np.nan, 10]
d1 = sc.rmnans(d0) # Remove NaNs
d2 = sc.fillnans(d0, 0) # Replace with zeros
d3 = sc.fillnans(d0, 'linear') # Linear interpolation
# 1D smoothing
smooth = sc.smooth(data, 7) # Gaussian-like smoothing
roll = sc.rolling(data, 7) # Rolling average
# 2D Gaussian smoothing
smooth2d = sc.gauss2d(raw_2d, scale=2)
# Random rounding: 0.7 rounds up 70% of the time
rounded = sc.randround(data)
# Linear regression
m, b = sc.linregress(x, y)
# 3D plotting helpers
ax = sc.ax3d(121) # Create 3D subplot
sc.bar3d(data, ax=ax) # 3D bar plot
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-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./sciris-parallelUse 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.npx claudepluginhub sciris/sciris --plugin scirisOther plugins' skills for the same job