Skip to content
Agentmart
Submit a tool

yas-demo-text

Convert `make demo/img` statusline snapshots into ANSI-stripped plain text for diffing and PR embedding.

Skill by tmck-code

IndexedBSD-3-Clause★ 244
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/tmck-code-yas-demo-text

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Convert `make demo/img` statusline snapshots into ANSI-stripped plain text for diffing and PR embedding. Use when comparing statusline renders before/after a change, producing a text representation of a demo scenario, or preparing before/after statusline output for a pull request without screenshots.

Use cases: ml

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/yas-demo-text

What's inside

Skill name
yas-demo-text
Description
Convert `make demo/img` statusline snapshots into ANSI-stripped plain text for diffing and PR embedding. Use when comparing statusline renders before/after a change, producing a text representation of a demo scenario, or preparing before/after statusline output for a pull request without screenshots.
License
BSD-3-Clause
Instructions
55 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • demo-text.sh · scripts/
  • strip-ansi.sh · scripts/

SKILL.md (first lines)

# YAS demo text

`make demo/img` writes ANSI-coloured statusline snapshots to `demo/<scenario>.txt`
(and per-theme renders under `demo/themes/`). This skill strips the ANSI escape
sequences so the box-drawing layout survives as plain, diff-able, paste-able text.

## Quick start

Render the snapshots, then strip them into `demo/text/` (mirrors the `demo/` tree):

```bash
make demo/img                                   # or: DEMO_ONLY=tasks make demo/img
.claude/skills/yas-demo-text/scripts/demo-text.sh
```

`demo/text/<scenario>.txt` now holds the colour-free render. Both `demo/` and
`demo/text/` are gitignored, so these are scratch artifacts — diff them, paste
them, regenerate them; don't commit them.

## Strip arbitrary output

`scripts/strip-ansi.sh` is a plain ANSI filter (stdin or named files → stdout),
wrapping `sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g'`:

```bash
COLUMNS=160 uv run python claude/statusline_command.py < ops/session-info-example.json \
  | .claude/skills/yas-demo-text/scripts/strip-ansi.sh
```

## Before/after comparison

```bash
make demo/img && .claude/skills/yas-demo-text/scripts/demo-text.sh
cp -r demo/text /tmp/yas-before        # stash the baseline
# ... make your renderer change ...
make demo/img && .claude/skills/yas-demo-text/scripts/demo-text.sh
diff -ru /tmp/yas-before demo/text     # see exactly which cells moved
```

## Notes

- The strip regex matches CSI sequences (`\x1B[…<letter>`), removing colour,
  bold and italic; it leaves box-drawing and Nerd Font glyphs intact, so column
  alignment is preserved exactly.
- Nerd Font PUA glyphs render as boxes outside a Nerd-Font terminal (e.g. on
  GitHub), but the layout and text labels still read clearly. For a snapshot
  meant to paste into GitHub markdown, render in the `github` glyph mode first
  (`YAS_GLYPH_MODE=github make demo/img`): it folds the box-drawing frame,
  block/sparkline ramp, and PUA icons to width-1 EAW-narrow/ASCII stand-ins, so
  the result stays a clean, box-free rectangle in a browser monospace font. The
  **yas-pr** skill uses this by default for before/after PR renders.
- The repo's Python `strip_ansi` (`test/helper.py`) is SGR-only and for tests;
  this skill's sed filter is broader and for the demo snapshots.

From tmck-code/yet-another-statusline, BSD-3-Clause.

Signals

Stars
244
Forks
26
Open issues
3
Last commit (this folder)
Jun 18, 2026 (4 months ago)
Last release
Jul 17, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
BSD-3-Clause
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from tmck-code

Cite this page

yas-demo-text skill. Agent Mart. https://agentmart.dev/skills/tmck-code-yas-demo-text (last updated 2026-10-24)