claude/skills/shortn/SKILL.md
Compress text/markdown files to fit within a specified token limit using extractive summarization with per-section TextRank (no LLM required, no API cost). Use when the user asks to: compress a file to N tokens, shrink context, reduce a doc to fit a context window, summarize to token budget, fit into Claude/GPT/LLM context. Also use proactively when Claude's own task context contains oversized reference files that could be compressed before ingestion. Triggers: 'shortn', 'compress to N tokens', 'shrink this file', 'fit this in X tokens', 'summarize to token limit', 'reduce tokens', 'compress context'.
npx skillsauth add kendreaditya/.config shortnInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Extractive text compressor for LLM context. Fits a large file into a target token budget via per-section TextRank summarization. Local, deterministic, no API cost.
shortn input.md -t 8000 # → input.compressed.md
shortn input.md -t 32000 -o out.md # specify output
shortn input.md -t 8000 --stdout # print instead of writing
cat input.md | shortn -t 8000 --stdin --stdout
Flags that matter:
-t TOKENS (required) — target token limit-o PATH — output file (default: <input>.compressed.md)--stdout — emit to stdout--stdin — read from stdin--model MODEL — tiktoken encoding (default cl100k_base, matches GPT-4/Claude roughly)-v / -q — verbose / quiet--no-parallel — disable multi-process (useful for small files or debugging)tiktoken in the ~/.config/config-venv venv. Already installed; _utils.ensure_config_venv() handles re-exec.ProcessPoolExecutor; if the process tree is already in a pool, pass --no-parallel.testing
Reviews test coverage and suggests missing test cases for error paths, edge cases, and business logic. Activates when users write tests or implement new features.
development
Identify, categorize, and prioritize technical debt. Trigger with "tech debt", "technical debt audit", "what should we refactor", "code health", or when the user asks about code quality, refactoring priorities, or maintenance backlog.
tools
Comprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enforcement. Use when: authentication implementation, authorization logic, payment processing, user data handling, API endpoint creation, file upload handling, database queries, external API integration. Skip when: read-only operations on public data, internal development tooling, static documentation, styling changes.
development
Optimizes application performance. Use when performance requirements exist, when you suspect performance regressions, or when Core Web Vitals or load times need improvement. Use when profiling reveals bottlenecks that need fixing.