/sciris:sciris-parallelfrom sciris
Parallelizes Python code and profiles performance using Sciris: sc.parallelize, sc.Parallel, iterarg, iterkwargs, resource limits, async execution, sc.profile, sc.benchmark, sc.memload, sc.checkram.
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 parallel execution and performance analysis. See full tutorial: docs/tutorials/tut_parallel.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.
# Simple: iterate over one argument
results = sc.parallelize(func, [1, 2, 3])
# With keyword arguments
results = sc.parallelize(complex_func, [1, 2, 3], arg2=10)
# Multiple iteration arguments (dict of lists)
results = sc.parallelize(mult, iterkwargs={'x': [1,2,3], 'y': [2,3,4]})
# Multiple iteration arguments (list of tuples)
results = sc.parallelize(mult, iterarg=[(1,2), (2,3), (3,4)])
# Multiple iteration arguments (list of dicts)
results = sc.parallelize(mult, iterkwargs=[{'x':1, 'y':2}, {'x':2, 'y':3}])
results = sc.parallelize(
func = my_func,
iterarg = range(200),
maxcpu = 0.8, # Don't exceed 80% CPU
maxmem = 0.9, # Don't exceed 90% memory
interval = 0.2, # Re-check interval (seconds)
)
P = sc.Parallel(
func = slow_func,
iterarg = range(10),
parallelizer = 'multiprocess-async', # Async execution
die = False, # Continue on failure
)
P.run_async()
P.monitor() # Watch progress
P.finalize() # Collect results
print(P.success) # Per-job success flags
print(P.exceptions) # Any exceptions that occurred
print(P.results) # Results (the exception for failed jobs)
print(P.times) # Per-job timing
bm = sc.benchmark() # CPU performance in MOPS
ml = sc.memload() # System memory load
ram = sc.checkram() # Python process RAM usage
sc.profile(my_func) # Shows time per line (like line_profiler)
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sciris, parallelization, profiling, performance, cpu-monitoring, memory-monitoring
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