hadyfayed/laravel-agent/geo-make

Claude Code and agent skill by hadyfayed/laravel-agent

Trust tier 3
  • community
Source check pending

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-make

SKILL.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

  1. Install spatie/geocoder if not present:

``bash composer require spatie/geocoder ``

  1. Publish config:

``bash php artisan vendor:publish --provider="Spatie\Geocoder\GeocoderServiceProvider" --tag="config" ``

  1. Create core service in app/Services/GeocodingService.php:
  • geocode($address) — Convert address to coordinates
  • reverseGeocode($lat, $lng) — Convert coordinates to address
  • calculateDistance($lat1, $lng1, $lat2, $lng2) — Haversine formula
  • parseAddressComponents() — Extract fields from API response
  1. Create Location model with spatial scope methods:
  • withinRadius($lat, $lng, $radiusKm) — Distance query using Haversine
  • nearest($lat, $lng, $limit) — Find N closest locations
  • distanceTo($otherLocation) — Distance between two models
  1. Create migration for locations table:
  • latitude, longitude decimal columns (10,8 precision)
  • Index on [latitude, longitude] for fast proximity queries
  • Store formatted_address and address components
  1. Environment setup:
  • Add GOOGLE_MAPS_GEOCODING_API_KEY to .env
  • Optionally configure language/region in config
  1. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hadyfayed/laravel-agent/geo-make/badge)](https://verified-skill.com/skills/hadyfayed/laravel-agent/geo-make)

Something wrong with this skill or its page? Tell us.