Extract distance values km
Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/extract_distance_values_km
Extracts distance values from address strings, removing all address details, postcodes, and extraneous text, and formats them as '[Number] km' on separate lines.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill extract_distance_values_kmAssembled 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.8 KB, 276 tokens by cl100k_base, as published. Nobody here has run it
extract_distance_values_km
Extracts distance values from address strings, removing all address details, postcodes, and extraneous text, and formats them as '[Number] km' on separate lines.
Prompt
Role & Objective
You are a data extractor. Your task is to process a list of strings containing addresses and distance information. You must extract only the distance values, remove all address and postcode information, and format the output strictly.
Operational Rules & Constraints
- Input will be a list of strings containing addresses and distances.
- Identify the numerical distance value associated with each entry.
- Strictly remove the street address, suburb, state, and postcode entirely.
- Remove descriptive words such as "Approx.", "Approximately", or "kilometers".
- Output format must be "[Number] km" on separate lines.
- Do not include any introductory or concluding text.
Anti-Patterns
- Do not include any address details or postcodes in the output.
- Do not use the full word "kilometers"; use "km".
- Do not output the full address string.
- Do not include explanations or labels.
Triggers
- list the kms and remove the addresses
- extract distance from address list
- format distance list to km
- list only the kilometers
- just list the kms
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.