hadyfayed/laravel-agent/geo-make
Claude Code and agent skill by hadyfayed/laravel-agent
- community
Checking that the SKILL.md file is still in the repository.
Scaffold geolocation features with distance queries, geocoding, spatial indexes; when adding location-based functionality.
Install
npx vskill@latest install hadyfayed/laravel-agent/geo-makeSKILL.md
The same SKILL.md was published earlier as hadyfayed/laravel-agent/geo-make.
Task
Generate geolocation/geospatial features using spatie/geocoder and Haversine distance calculations for location-based queries.
Input
- FeatureName: Feature name (e.g.,
StoreLocator,DeliveryZones,NearbySearch)
Steps
- Install spatie/geocoder if not present:
``bash composer require spatie/geocoder ``
- Publish config:
``bash php artisan vendor:publish --provider="Spatie\Geocoder\GeocoderServiceProvider" --tag="config" ``
- Create core service in
app/Services/GeocodingService.php:
geocode($address)— Convert address to coordinatesreverseGeocode($lat, $lng)— Convert coordinates to addresscalculateDistance($lat1, $lng1, $lat2, $lng2)— Haversine formulaparseAddressComponents()— Extract fields from API response
- Create Location model with spatial scope methods:
withinRadius($lat, $lng, $radiusKm)— Distance query using Haversinenearest($lat, $lng, $limit)— Find N closest locationsdistanceTo($otherLocation)— Distance between two models
- Create migration for locations table:
latitude,longitudedecimal columns (10,8 precision)- Index on
[latitude, longitude]for fast proximity queries - Store
formatted_addressand address components
- Environment setup:
- Add
GOOGLE_MAPS_GEOCODING_API_KEYto.env - Optionally configure language/region in config
- Create controller for location endpoints (optional):
- Index with radius search
- Nearest with coordinates
- Geocode address input into coordinates
Reference
For comprehensive patterns and example implementations:
${CLAUDE_SKILL_DIR}/references/geocoding-service.md— Service methods and API integration${CLAUDE_SKILL_DIR}/references/distance-queries.md— Haversine formula and spatial scopes${CLAUDE_SKILL_DIR}/references/controller-examples.md— Route handlers and endpoints
Security guardrails
- Never log or cache raw address input containing sensitive location data
- Validate and sanitize address components before storing
- Rate-limit geocoding API calls (Google charges per request)
- Use fallback coordinates for failed geocodes
- Validate latitude/longitude bounds (-90 to 90, -180 to 180)
- Consider privacy: allow anonymous location searches without authentication if needed
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/geo-make/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/geo-make)