/sciris:sciris-dictsfrom sciris
Reference for Sciris container types: sc.obj, sc.objdict, sc.odict, and sc.dataframe with indexing, object-syntax access, and dataframe creation shortcuts.
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 Sciris container types. See full tutorial: docs/tutorials/tut_dicts.qmd.
If you need more detail, use your MCP tools (Context7 or GitMCP) to look up current Sciris documentation, or consult the other Sciris skills.
A real dict that is as fast as a plain object. Use it by default.
ob = sc.obj(key1=[1, 2], key2=[3, 4])
ob.key1 # Object syntax (no quotes!)
ob['key1'] # Dict syntax
ob[0] # Index syntax
# All three are equivalent
ob.keys()[0] # Keys returns a list (not dict_keys)
for i, k, v in ob.enumitems(): # Enumerate with key and value
print(f'Item {i}: {k} = {v}')
print(f'{ob.key1 = }') # Especially handy in f-strings: no nested quote issues
When NOT to use sc.obj: When your dict has integer keys (ambiguous with index access).
Methods are protected: ob = sc.obj(clear=0.1) keeps ob.clear() working; get the key with ob['clear']. Setting ob.clear = 0.1 raises an error.
Subclassing: Methods work as usual. Attributes that aren't keys must be declared in __slots__; set them with setattribute(), and give them starting values in __new__. Overriding __setitem__() also applies to ob.x = 3, but makes that subclass slower.
sc.objdict: a slower sc.obj that also supports setting items by position (ob[0] = 3), lists of keys (ob[['a','b']]), defaultdict, and attributes that aren't keys (setattribute()) without __slots__.sc.odict: like sc.objdict, but with dict syntax only.sc.dictobj: a simpler dict with object syntax, without indexing or the sc.odict methods; keys can replace methods.# Simpler than pd.DataFrame(dict(x=x, y=y, z=z))
df = sc.dataframe(x=x, y=y, z=z)
# With dtypes
df = sc.dataframe(x=x, y=y, z=z, dtypes=[str, float, bool])
# Columns with types
df = sc.dataframe(columns=dict(x=str, y=float, z=bool), data=data)
df.disp() # Show full dataframe (no truncation)
df.disp(precision=1, ncols=5, nrows=10) # Customized display
df['values', 1] # Column + row access
df[1] # Auto iloc fallback (KeyError in pandas)
df.appendrow(['d', 4, 0]) # Append row in-place
# Concatenate anything
df = sc.dataframe.cat(
sc.dataframe(x=['a'], y=[1]), # Dataframe
dict(x=['b'], y=[2]), # Dict
[['c', 3]], # Raw data
)
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