/sciris:sciris-datesfrom sciris
Provides Sciris date/time utilities: timer, sleep functions, date conversion, ranges, and delta math.
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 timing and date utilities. See full tutorial: docs/tutorials/tut_dates.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.
T = sc.timer()
zeros = np.zeros((n, n))
T.tt('Make zeros') # toc-then-tic (prints elapsed, resets)
rand = np.random.rand(n, n)
T.tt('Make random')
with sc.timer('My operation'):
expensive_work()
T = sc.timer()
for i in range(10):
work(i)
T.tt(f'Iteration {i}')
print(T.mean(), T.std(), T.min(), T.max())
T.plot() # Plot timing results
sc.timedsleep(0.3) # Like time.sleep()
# In a loop: accounts for computation time so each iteration = exact duration
for i in range(5):
sc.timedsleep('start')
do_work()
sc.timedsleep(0.3, verbose=True) # Total iteration = 0.3s
sc.randsleep(0.2) # Sleep random 0-0.4s (mean 0.2)
sc.time() # Unix timestamp (time.time())
sc.now() # datetime.datetime.now()
sc.getdate() # Formatted string: '2024-Mar-15 14:30:00'
sc.date('2022-03-04') # str → datetime
sc.date('04-03-2022', format='mdy') # Explicit format
sc.date('04-03-2022', format='dmy') # Day-month-year
dates = sc.daterange('2022-02-02', '2022-03-04') # List of date strings
dates = sc.daterange('2022-01-01', '2022-12-31', as_date=True) # As datetime objects
newdates = sc.datedelta(dates, months=10) # Add 10 months
What SKILL.md sets; muted values are Claude Code's defaults
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-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