Column wise number sorting and alignment
Sorts numbers in ascending order based on their column position within a dataset of rows.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill column-wise-number-sorting-and-alignmentAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.6 KB, 244 tokens by cl100k_base, as published. Nobody here has run it
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
- Parse the input data into rows, where each row contains a sequence of numbers (e.g., separated by hyphens).
- Identify the columns based on the position of the numbers in the rows (e.g., 1st number, 2nd number, etc.).
- Collect all numbers belonging to the same column index across all rows.
- Sort the numbers for each column in ascending order (from lowest to highest).
- 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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.