Skip to content
Back to skills

Shorthand

ASecurity

Toggle prompt compression ON, OFF, DRY-RUN, or show STATUS

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
toolspythonbash

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add gladehq/claude-shorthand --skill shorthand --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shorthand?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shorthand
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gladehq-shorthand/badge)](https://www.skillsdirectory.com/skills/gladehq-shorthand)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shorthand
description: Toggle prompt compression ON, OFF, DRY-RUN, or show STATUS
---

# Shorthand Toggle

Controls the LLMLingua-2 compression hook via `state.json`.

```bash
STATE_DIR="$HOME/.claude/plugins/shorthand/bin"
LOG_FILE="$HOME/.claude/plugins/shorthand/compress.log"
mkdir -p "$STATE_DIR"

if [ "$ARGUMENTS" = "off" ]; then
    echo '{"enabled": "off"}' > "$STATE_DIR/state.json"
    echo "Shorthand compression disabled."
elif [ "$ARGUMENTS" = "dry-run" ]; then
    echo '{"enabled": "dry-run"}' > "$STATE_DIR/state.json"
    echo "Shorthand dry-run enabled — stats will be logged but prompts will not be compressed."
elif [ "$ARGUMENTS" = "status" ]; then
    if [ -f "$STATE_DIR/state.json" ]; then
        STATE=$(python3 -c "import json; print(json.load(open('$STATE_DIR/state.json')).get('enabled','on'))")
        echo "Shorthand is: $STATE"
    else
        echo "Shorthand is: on (default)"
    fi
    if [ -f "$LOG_FILE" ]; then
        echo ""
        echo "Recent activity:"
        tail -5 "$LOG_FILE"
    fi
else
    echo '{"enabled": "on"}' > "$STATE_DIR/state.json"
    echo "Shorthand compression enabled."
fi
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.