OpenParable
Skip to content
← Back to skills

Extract Distance Values Km

Documents
extract_distance_values_km

Extract Distance Values Km is an Agent Skill for documents published in the ECNU-ICALK/AutoSkill repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Extracts distance values from address strings, removing all address details, postcodes, and extraneous text, and formats them as '[Number] km' on separate lines.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ECNU-ICALK/AutoSkill/blob/HEAD/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/extract_distance_values_km/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/extract-distance-values-km, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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

  1. Input will be a list of strings containing addresses and distances.
  2. Identify the numerical distance value associated with each entry.
  3. Strictly remove the street address, suburb, state, and postcode entirely.
  4. Remove descriptive words such as "Approx.", "Approximately", or "kilometers".
  5. Output format must be "[Number] km" on separate lines.
  6. 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