claude_plugin/skills/sciris-printing/SKILL.md
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.
npx skillsauth add sciris/sciris sciris-printingInstall 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.
Reference for output formatting and progress display. See full tutorial: docs/tutorials/tut_printing.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.
sc.heading('Section Title') # Bold section heading with divider
sc.printgreen('Success message') # Green text
sc.printblue('Info message') # Blue text
sc.indent(text) # Indent text block
sc.strjoin(['a', 'b', 'c']) # 'a, b, c' (shortcut to ', '.join())
sc.newlinejoin(['a', 'b', 'c']) # 'a\nb\nc' (auto str conversion)
# Especially useful in f-strings and error messages
sc.pr(obj) # Pretty representation (attributes, types, sizes)
# Much more informative than dir(obj)
class MySim(sc.prettyobj): # Inherit for nice print(sim) output
def __init__(self):
self.n = 10
self.ready = False
sim = MySim()
print(sim) # Shows all attributes with types and values
for i in sc.progressbar(range(100)): # tqdm-based progress bar
do_work(i)
sc.printmedian(data) # Print median with IQR
sc.sigfig(123456, 3, sep=True) # '123,000' (significant figures with separator)
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 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.
development
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.