From pysbs-dev
Analyze .sbs file structure and contents. Use when user asks about sbs file structure, graph contents, node counts, or wants to understand a Substance file.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pysbs-dev:analyze-sbs [file path][file path]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Analyze the structure and contents of a Substance Designer .sbs file.
Analyze the structure and contents of a Substance Designer .sbs file.
$ARGUMENTS contains a file path, analyze that specific .sbs filefrom pysbs import context, substance
def analyze_sbs(sbs_path):
ctx = context.Context()
doc = substance.SBSDocument(ctx, sbs_path)
doc.parseDoc()
info = {
'path': sbs_path,
'format_version': doc.mFormatVersion,
'file_uid': doc.mFileUID,
'graphs': [],
'functions': [],
'resources': [],
'dependencies': []
}
# Analyze graphs
for graph in doc.getSBSGraphList():
graph_info = {
'identifier': graph.mIdentifier,
'uid': graph.mUID,
'input_params': [],
'input_images': [],
'outputs': [],
'node_count': len(graph.getNodeList()),
'filter_count': len([n for n in graph.getNodeList() if n.isAFilter()]),
'instance_count': len([n for n in graph.getNodeList() if n.isAnInstance()])
}
for param in graph.getInputParameters():
graph_info['input_params'].append({
'identifier': param.mIdentifier,
'type': str(param.getType()),
'widget': str(param.getWidget())
})
for img in graph.getInputImages():
graph_info['input_images'].append(img.mIdentifier)
for output in graph.getGraphOutputs():
graph_info['outputs'].append({
'identifier': output.mIdentifier,
'usages': [str(u) for u in output.getUsages()]
})
info['graphs'].append(graph_info)
# Functions
for func in doc.getSBSFunctionList():
info['functions'].append(func.mIdentifier)
# Resources
for res in doc.getSBSResourceList():
info['resources'].append({
'identifier': res.mIdentifier,
'type': str(res.getResourceType())
})
# Dependencies
for dep in doc.getSBSDependencyList():
info['dependencies'].append(dep.mFilename)
return info
Present the analysis in a clear, hierarchical format showing the complete structure of the .sbs file.
npx claudepluginhub juyeongyi/jylee_claude_marketplace --plugin pysbs-devCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.