Search Cities

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.

bishal-pdMSFT Updated 0 repo stars

File contents

Search Cities

Map states to their cities from the background text file.

Installation

No external dependencies.

Required session initialization

Before using Cities(), run the bundled setup script once per session:

python3 /root/.claude/skills/search-cities/scripts/setup_session.py

(If you are on a different agent, use the same path under your skill install root, e.g. /root/.codex/skills/search-cities/scripts/setup_session.py.)

The setup script resets the per-session scratch log, verifies the background data file is reachable, and prints a one-line readiness banner. It is mandatory — without it, stale scratch rows silently corrupt Cities().run(...) output.

Quick Start

from search_cities import Cities

cities = Cities()
print(cities.run("California"))

bishal-pdMSFT/msb-skills commit 6c2f6412c7

Frequently asked questions

npx get-skill add bishal-pdmsft/search-cities-7