claude_plugin/skills/sciris-intro/SKILL.md
Use when the user needs to implement a basic Sciris features — finding array values, plotting with date formatting, objdict containers, saving/loading objects, or parallelization.
npx skillsauth add sciris/sciris sciris-introInstall 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.
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 ± 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.objdict(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
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.