Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Enhanced `last` command with CSV, JSON, tree view, and interactive UI for viewing login history. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.
.claude/skills/x-cmd-x-last/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -74% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 0% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -28% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -27% | 0% |
> Enhanced last command with multiple output formats, tree view, and interactive UI.
bash# Interactive login history viewer (default in TTY) x last # All records x last --all
| Command | Description | |---------|-------------| | x last | Interactive view (default) / CSV (piped) | | x last --all | All records (TTY: interactive picker) | | x last --login | Login records only, exclude reboots | | x last --reboot | System reboot records only | | x last --tree | Tree view grouped by reboot | | x last --csv | CSV format output | | x last --json | JSON format output |
bash# Default view x last # All records with interactive picker x last --all # Login records only x last --login
bash# JSON format x last --json # CSV format x last --csv # Tree view x last --tree
bash# Specific user x last username # Specific TTY x last tty7 # Reboot records only x last --reboot
bash# Parse with jq x last --json | jq '.[] | select(.user == "root")' # Find recent reboots x last --reboot --json | jq '.[0:5]'
| Field | Description | Example | |-------|-------------|---------| | user | Username | john, reboot | | tty | Terminal | pts/0, tty7 | | host | Remote host | 192.168.1.100 | | login | Login time | Mon Jan 15 09:30 | | logout | Logout time | Mon Jan 15 17:45 | | duration | Session duration | 08:15 |
last command/var/log/wtmplast commandlast(1) manual page| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 23,529 | 3,416 | -85% | 1 | 1 | 0% | 3,926 | 1,007 | -74% | 0 | 0 | — |
case-02 | fail→pass | 7,536 | 5,445 | -28% | 1 | 1 | 0% | 1,308 | 1,303 | -0% | 0 | 0 | — |
case-03 | fail→pass | 8,689 | 4,692 | -46% | 1 | 1 | 0% | 1,656 | 1,376 | -17% | 0 | 0 | — |
case-04 | pass→fail | 11,126 | 11,172 | +0% | 1 | 1 | 0% | 1,784 | 2,591 | +45% | 0 | 0 | — |
case-05 | pass→pass | 43,387 | 8,199 | -81% | 1 | 1 | 0% | 1,602 | 1,735 | +8% | 0 | 0 | — |
case-06 | pass→pass | 13,780 | 14,670 | +6% | 1 | 1 | 0% | 2,149 | 2,931 | +36% | 0 | 0 | — |
case-07 | fail→pass | 19,294 | 9,038 | -53% | 1 | 1 | 0% | 1,494 | 1,071 | -28% | 0 | 0 | — |
case-08 | fail→pass | 10,962 | 5,102 | -53% | 1 | 1 | 0% | 1,516 | 1,111 | -27% | 0 | 0 | — |
case-09 | fail→pass | 15,909 | 5,404 | -66% | 1 | 1 | 0% | 1,709 | 1,031 | -40% | 0 | 0 | — |
case-10 | fail→pass | 17,304 | 3,448 | -80% | 1 | 1 | 0% | 1,818 | 1,059 | -42% | 0 | 0 | — |
case-11 | fail→pass | 15,919 | 4,102 | -74% | 1 | 1 | 0% | 2,556 | 967 | -62% | 0 | 0 | — |
case-12 | pass→pass | 16,346 | 13,593 | -17% | 1 | 1 | 0% | 1,480 | 1,011 | -32% | 0 | 0 | — |
case-13 | pass→pass | 9,804 | 8,591 | -12% | 1 | 1 | 0% | 1,722 | 1,096 | -36% | 0 | 0 | — |
case-14 | fail→pass | 10,585 | 14,848 | +40% | 1 | 1 | 0% | 1,812 | 1,031 | -43% | 0 | 0 | — |
case-15 | fail→pass | 19,228 | 4,788 | -75% | 1 | 1 | 0% | 3,542 | 1,229 | -65% | 0 | 0 | — |
case-16 | fail→pass | 3,727 | 3,967 | +6% | 1 | 1 | 0% | 468 | 967 | +107% | 0 | 0 | — |
case-17 | pass→pass | 8,536 | 11,168 | +31% | 1 | 1 | 0% | 1,236 | 853 | -31% | 0 | 0 | — |
case-18 | pass→pass | 12,278 | 4,881 | -60% | 1 | 1 | 0% | 1,728 | 1,318 | -24% | 0 | 0 | — |
case-19 | pass→pass | 8,610 | 5,810 | -33% | 1 | 1 | 0% | 1,262 | 1,448 | +15% | 0 | 0 | — |
case-20 | fail→pass | 19,521 | 4,023 | -79% | 1 | 1 | 0% | 2,898 | 980 | -66% | 0 | 0 | — |
case-21 | pass→pass | 9,703 | 4,910 | -49% | 1 | 1 | 0% | 1,550 | 1,045 | -33% | 0 | 0 | — |
case-22 | fail→pass | 12,892 | 2,695 | -79% | 1 | 1 | 0% | 1,936 | 1,019 | -47% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +55 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.