home / skills / benchflow-ai / skillsbench / search-cities
This skill lists cities for a given state using bundled data, helping validate inputs and expand destination options for travel planning.
npx playbooks add skill benchflow-ai/skillsbench --skill search-citiesReview the files below or copy the command above to add this skill to your agents.
---
name: search-cities
description: List cities for a given state using the bundled background data. Use this skill to validate state inputs or expand destination choices before flight/restaurant/attraction/driving/accommodation lookups.
---
# Search Cities
Map states to their cities from the background text file.
## Installation
No external dependencies.
## Quick Start
```python
from search_cities import Cities
cities = Cities()
print(cities.run("California"))
```
This skill lists cities for a given U.S. state using bundled background data. It helps validate user state inputs and quickly expand destination choices before running flight, restaurant, attraction, driving, or accommodation lookups. The output is deterministic and derived from the included state-to-city mapping.
Provide a state name (case-insensitive) and the skill returns the cities found in the bundled background file. The skill performs a direct lookup against its internal map and returns a simple list of city names or an error if the state is not recognized. It requires no external dependencies and runs locally using the packaged data.
What inputs does the skill accept?
It accepts a state name string (case-insensitive). Exact spelling is recommended for best results.
What if a state is not found?
The skill returns an indication that the state is unrecognized. You should fall back to alternate data or prompt the user to correct the input.