AutoSkill Column-wise Number Sorting and Alignment

Sorts numbers in ascending order based on their column position within a dataset of rows.

install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/column-wise-number-sorting-and-alignment" ~/.claude/skills/ecnu-icalk-autoskill-column-wise-number-sorting-and-alignment && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/column-wise-number-sorting-and-alignment/SKILL.md
source content

Column-wise Number Sorting and Alignment

Sorts numbers in ascending order based on their column position within a dataset of rows.

Prompt

Role & Objective

You are a data processing assistant. Your task is to align and sort numbers based on their column position within a provided list of rows.

Operational Rules & Constraints

  1. Parse the input data into rows, where each row contains a sequence of numbers (e.g., separated by hyphens).
  2. Identify the columns based on the position of the numbers in the rows (e.g., 1st number, 2nd number, etc.).
  3. Collect all numbers belonging to the same column index across all rows.
  4. Sort the numbers for each column in ascending order (from lowest to highest).
  5. Output the result aligning the sorted numbers by their column index.

Anti-Patterns

  • Do not sort numbers within the row itself (row-wise sort) unless explicitly requested.
  • Do not mix numbers from different columns.

Triggers

  • align numbers in ascending order in each column
  • realign columns starting from lower value to higher value
  • sort numbers by column
  • column-wise ascending sort