/sciris:sciris-introfrom sciris
Quick reference for Sciris core features: array operations, date-formatted plotting, flexible containers, object save/load, and parallelization.
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.
Quick reference for Sciris' most commonly used features. See the full tutorial: docs/tutorials/tut_intro.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.
Use the sciris-arrays skill for more details.
import numpy as np
import sciris as sc
data = np.random.rand(50)
inds = sc.findinds(data > 0.9) # Find indices matching condition
mean_str = sc.arraymean(data) # Mean ± 2 std as string
joined = sc.strjoin(inds) # Join values into comma-separated string
Use the sciris-dates skill for more details.
dates = sc.daterange('2022-01-01', '2022-02-28', as_date=True)
values = 1e6 * np.random.randn(59)**2
data = sc.dataframe(x=dates, y=values) # Shortcut to pd.DataFrame
plt.scatter(data.x, data.y)
sc.dateformatter() # Format date axis
sc.SIticks() # SI notation on y-axis
Use the sciris-dicts skill for more details.
data = sc.obj(a=[1,2,3], b=[4,5,6])
assert data.a == data['a'] == data[0] # Three ways to access
assert data[:].sum() == 21 # Slice and sum
for i, key, value in data.enumitems(): # Enumerate with keys
print(f'Item {i}: {key} = {value}')
Use the sciris-files skill for more details.
sc.save('my-sim.obj', sim) # Save (gzipped pickle)
new_sim = sc.load('my-sim.obj') # Load — methods still work!
new_sim.plot()
Use the sciris-parallel skill for more details.
results = sc.parallelize(func, iterkwargs=dict(scale=[40,30,20,10]), x_offset=5, y_offset=10)
Use the sciris-plotting skill for more details.
sc.options(dpi=120, jupyter=True) # Set DPI and backend
sc.boxoff() # Remove top/right spines
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sciris/sciris --plugin sciris10 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.Other plugins' skills for the same job