Install
openclaw skills install @turinfohlen/splitsymExtract comments and split symbols from source files. Use when users want to extract inline comments, docstrings, or block comments from code files to understand structure or generate documentation.
openclaw skills install @turinfohlen/splitsymExtract split symbols (line or pair) from source files. Analyzes source code and extracts comments based on file type.
splitsym <file> [--lines M-N] [--config CONFIG]
| Argument | Description |
|---|---|
file | Source file to analyze (required) |
--lines | Optional line range (e.g., 100-200) |
--config | Path to symbols.json config (default: ~/.config/splitsym/symbols.json) |
| Extension | Comment Style |
|---|---|
.py, .rb, .sh, .yaml | # comment |
.c, .js, .ts, .java | // comment |
.sql, .hs | -- comment |
.lisp, .clj | ; comment |
.tex, .erl | % comment |
.html, .xml, .vue | <!-- comment --> |
.py | """docstring""" or '''docstring''' |
.ml, .mli | (* comment *) |
# Extract all comments from a Python file
splitsym myfile.py
# Extract comments from specific line range
splitsym myfile.py --lines 100-200
# Use custom config
splitsym myfile.py --config ./my-symbols.json
123 PAIR: multi-line comment content...
45 # This is a comment line
PAIR: prefix indicates multi-line block comments