vimalinx/bio-agent / .claude/skills/sort-table
sort-table
UnverifiedUse when sorting tab-delimited, nonblank text rows with GNU `sort` while preserving a fixed tab field separator in shell pipelines.
sort-table
Minimal shell wrapper around GNU sort. It first removes blank lines with grep '.', then calls sort -t $'\\t' "$@", so tab is always the field separator.
Quick Start
- Command:
... | sort-table [sort-args] - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/sort-table - Fixed delimiter: tab
When To Use This Tool
- Sorting tab-delimited rows without repeatedly spelling out the tab separator
- Passing normal GNU
sortkey or numeric flags through a thin wrapper - Cleaning out blank lines before sorting tabular text
- Reusing a predictable tab-based sort primitive inside bioinformatics shell pipelines
Common Patterns
# Numeric sort on the second tab-delimited column
printf 'z\t10\n\na\t2\nb\t1\n' | sort-table -k 2,2n
# Lexicographic sort on the first column
cat table.tsv | sort-table -k 1,1
# Reverse numeric sort on a score column
cat table.tsv | sort-table -k 3,3nr
Recommended Workflow
- Make sure the input is truly tab-delimited text.
- Pass ordinary GNU
sortarguments exactly as you would tosort, except you do not need to specify-t $'\\t'. - Write the sorted output to stdout or redirect it to a file.
- If you need documentation for flag semantics, consult GNU
sort, not this wrapper.
Guardrails
- Blank lines are dropped unconditionally because the wrapper begins with
grep '.'. -his not help here; it is forwarded to GNUsortas the human-numeric flag, sosort-table -hwith no data does not print usage.--versionis forwarded to GNUsort; in this environment it reportedsort (GNU coreutils) 9.10.- In live testing,
printf 'z\t10\n\na\t2\nb\t1\n' | sort-table -k 2,2nyieldedb\t1,a\t2,z\t10.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 318k | Updated | Claude CodeCodex | Unverified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 117k | Updated | Claude CodeCodex | Unverified | Install |