vimalinx/bio-agent / .claude/skills/print-columns
print-columns
VerifiedUse when projecting or transforming tab-delimited stdin columns with a tiny EDirect `awk` wrapper, especially for quick field arithmetic, quoting, or date stamping in shell pipelines.
print-columns
Quick Start
- Command:
print-columns 'awk_print_expression' - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/print-columns - I/O shape: reads tab-delimited stdin and emits the requested fields on stdout
When To Use This Tool
- Project or reorder tab-delimited columns without writing a full
awkcommand each time. - Add lightweight arithmetic or string transforms inside an EDirect shell pipeline.
- Stamp output with the current year (
YR) or date (DT) via the wrapper's built-in variables. - Quickly quote or lowercase specific fields before piping into another shell utility.
Common Patterns
# 1) Reorder columns and add arithmetic
printf '1\t2\t3\n' | print-columns '$1, $2+1, YR, DT'
# 2) Quote a selected field
printf 'geneA\t42\n' | print-columns '$1, "\"" $2 "\""'
# 3) Lowercase and keep selected columns from an upstream extractor
xtract -pattern DocumentSummary -element Name,Status,CreateDate |
print-columns '$1, tolower($2), $3'
Recommended Workflow
- Make sure the incoming stream is tab-delimited, because the wrapper hard-codes
-F '\t'. - Write the desired
awkprint expression and wrap it in single quotes so the shell does not expand$1,$2, and friends. - Pipe stdin into
print-columnsand verify that the transformed columns still line up with downstream expectations. - Use the built-in
YRandDTvariables when you need run-date metadata without callingdateyourself.
Guardrails
- The expression is injected directly into
awk "{print ...}"; if you forget shell quoting,$1and similar fields will be expanded by the shell and the command can break with anawksyntax error. - There is no real option parsing or built-in help path;
print-columns --helpwith no stdin produces no useful output. - The wrapper is stdin-oriented and does not support separate filenames or flags in the usual
awkstyle. - Field splitting is always tab-based, not whitespace-generic.
- The wrapper defines
YRas the current year andDTas the currentYYYY-MM-DDdate for use inside the print expression.
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 | Verified | 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 | Verified | Install |