Skip to content

vimalinx/bio-agent / .claude/skills/sort-table

sort-table

Unverified

Use 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 sort key 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

  1. Make sure the input is truly tab-delimited text.
  2. Pass ordinary GNU sort arguments exactly as you would to sort, except you do not need to specify -t $'\\t'.
  3. Write the sorted output to stdout or redirect it to a file.
  4. 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 '.'.
  • -h is not help here; it is forwarded to GNU sort as the human-numeric flag, so sort-table -h with no data does not print usage.
  • --version is forwarded to GNU sort; in this environment it reported sort (GNU coreutils) 9.10.
  • In live testing, printf 'z\t10\n\na\t2\nb\t1\n' | sort-table -k 2,2n yielded b\t1, a\t2, z\t10.
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 318kUpdated Claude CodeCodexUnverifiedInstall
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: 196kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall
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: 117kUpdated Claude CodeCodexUnverifiedInstall