Text Formatter Skill
You can format text into various visual layouts.
Table Format
python3 -c "
data = [
['Name', 'Value', 'Status'],
['Item 1', '100', 'Active'],
]
widths = [max(len(str(row[i])) for row in data) for i in range(len(data[0]))]
for j, row in enumerate(data):
line = ' | '.join(str(cell).ljust(widths[i]) for i, cell in enumerate(row))
print(f'| {line} |')
if j == 0:
print('|' + '|'.join('-' * (w + 2) for w in widths) + '|')
"
Guidelines
- Choose the format that best fits the content
- Keep tables under 5 columns for readability