— No reviews yet
0 installs
10 views
0.0% view→install
Install
$ agentstack add skill-jimmc414-claude-code-plugin-marketplace-show-side-by-side ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Show Side By Side? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
show-side-by-side
When to Use
- Comparing before and after states
- Showing multiple solutions
- Visual diff for debugging
- Parallel algorithm outputs
When NOT to Use
- Single output
- Very wide outputs
- Non-textual data
The Pattern
Print two or more outputs in parallel columns.
def side_by_side(left, right, width=40, labels=('Left', 'Right')):
"""Print two strings side by side."""
left_lines = left.splitlines()
right_lines = right.splitlines()
# Header
print(f"{labels[0]:<{width}} {labels[1]:<{width}}")
print('-' * width + ' ' + '-' * width)
# Content
for l, r in zip_longest(left_lines, right_lines, fillvalue=''):
print(f"{l:<{width}} {r:<{width}}")
Example (from pytudes)
# Sudoku.ipynb - puzzle vs solution
def print_side_by_side(left, right, width=20):
"""Print two strings side-by-side, line-by-line."""
for L, R in zip(left.splitlines(), right.splitlines()):
print(L.ljust(width), R.ljust(width))
# Usage
puzzle = '''
4 . . |. . . |8 . 5
. 3 . |. . . |. . .
. . . |7 . . |. . .
------+------+------
. 2 . |. . . |. 6 .
. . . |. 8 . |4 . .
. . . |. 1 . |. . .
------+------+------
. . . |6 . 3 |. 7 .
5 . . |2 . . |. . .
1 . 4 |. . . |. . .
'''
solution = '''
4 1 7 |3 6 9 |8 2 5
6 3 2 |1 5 8 |9 4 7
9 5 8 |7 2 4 |3 1 6
------+------+------
8 2 5 |4 3 7 |1 6 9
7 9 1 |5 8 6 |4 3 2
3 4 6 |9 1 2 |7 5 8
------+------+------
2 8 9 |6 4 3 |5 7 1
5 7 3 |2 9 1 |6 8 4
1 6 4 |8 7 5 |2 9 3
'''
print_side_by_side(puzzle, solution)
# Multiple comparison
def show_algorithms(puzzle, *algorithms):
"""Compare multiple algorithm results."""
results = [algo(puzzle) for algo in algorithms]
names = [algo.__name__ for algo in algorithms]
# Print headers
width = 25
print(' '.join(name.center(width) for name in names))
print(' '.join('-' * width for _ in names))
# Print results line by line
result_lines = [r.splitlines() for r in results]
for lines in zip(*result_lines):
print(' '.join(line.ljust(width) for line in lines))
Key Principles
- Consistent width: Fixed column widths
- Aligned rows: zip_longest for unequal lengths
- Labels: Headers identify what's being compared
- Separators: Visual distinction
- ljust for padding: Clean alignment
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: jimmc414
- Source: jimmc414/claude-code-plugin-marketplace
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.