Generates code and queries for geographic/spatial data in Orchard Core: GeoPointField, Leaflet maps, geo-bounding-box and geo-distance queries with Lucene/Elasticsearch.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an Orchard Core expert. Generate code and queries for spatial data including GeoPointField usage, geo-bounding-box queries, geo-distance queries, and combined spatial filtering with Lucene.
OrchardCore.Spatial to add the GeoPointField content field. The module depends on OrchardCore.ContentTypes and OrchardCore.Lucene, so enabling it also enables Lucene.GeoPointField (OrchardCore.Spatial.Fields) stores decimal? Latitude and decimal? Longitude. GeoPointFieldSettings only has the standard Hint and Required settings.Leaflet (an interactive OpenStreetMap map; it sends a referrer so tiles load). Values are parsed and rendered with the invariant culture, so always use . as the decimal separator. Both editors accept coordinates with more than six decimals (step="any" since 4.0; they used to reject them as invalid).{PartName}.{FieldName} and also under a shared Location key, so one query can search several content types. Lucene stores the point as culture-invariant lat,lon text (fixed in 4.0, cultures with a , decimal separator used to corrupt it).geo_bounding_box queries for fast area-based filtering without distance calculation.geo_distance queries for precise radius-based filtering using the Haversine formula.geo_bounding_box with geo_distance for optimal performance on large datasets — the bounding box pre-filters records before the more expensive distance calculation runs.{PartName}.{FieldName} (e.g., StorePart.Location); Location targets every geo point field. Run these queries as Lucene or Elasticsearch queries (see orchardcore-lucene, orchardcore-elasticsearch, orchardcore-content-queries), with the content type's fields included in the index profile.{ "steps": [...] }.sealed modifier.{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Spatial"
],
"disable": []
}
]
}
Add a GeoPointField named Location to a content type via recipe:
{
"steps": [
{
"name": "ContentDefinition",
"ContentTypes": [
{
"Name": "Store",
"DisplayName": "Store",
"Settings": {
"ContentTypeSettings": {
"Creatable": true,
"Listable": true,
"Draftable": true
}
},
"ContentTypePartDefinitionRecords": [
{
"PartName": "StorePart",
"Name": "StorePart",
"Settings": {}
}
]
}
],
"ContentParts": [
{
"Name": "StorePart",
"Settings": {},
"ContentPartFieldDefinitionRecords": [
{
"FieldName": "TextField",
"Name": "Name",
"Settings": {
"ContentPartFieldSettings": {
"DisplayName": "Name"
}
}
},
{
"FieldName": "GeoPointField",
"Name": "Location",
"Settings": {
"ContentPartFieldSettings": {
"DisplayName": "Location"
}
}
}
]
}
]
}
]
}
{
"StorePart": {
"Location": {
"Latitude": -33.8688,
"Longitude": 151.2093
}
}
}
The default display template GeoPointField.cshtml renders Latitude, Longitude with six decimals; override it (e.g. GeoPointField-StorePart-Location.cshtml or a Liquid template) to render a map. In Liquid, read {{ Model.ContentItem.Content.StorePart.Location.Latitude }}. With GraphQL enabled, query storePart { location { latitude longitude } }.
A geo_bounding_box query finds documents within a rectangular area defined by top-left and bottom-right coordinates. This is fast and does not calculate distance from a center point.
Example: Find all Store content items with a Location field within a bounding box:
{
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
"geo_bounding_box": {
"StorePart.Location": {
"top_left": {
"lat": -33,
"lon": 137
},
"bottom_right": {
"lat": -35,
"lon": 139
}
}
}
}
}
}
}
This returns content items whose Location falls within the rectangle bounded by:
A geo_distance query finds documents within a specified radius of a central point. It uses the Haversine formula to calculate the distance between each document and the center point.
Example: Find all Store content items within 200km of a point:
{
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
"geo_distance": {
"distance": "200km",
"StorePart.Location": {
"lat": -34,
"lon": 138
}
}
}
}
}
}
A 200km radius is approximately 1.7986 degrees of arc from the center point.
| Unit | Example | Description |
|---|---|---|
km | "200km" | Kilometers |
mi | "100mi" | Miles |
m | "5000m" | Meters |
For large datasets, combine geo_bounding_box with geo_distance for optimal performance. The bounding box pre-filters the dataset to a smaller region, then the distance calculation runs only on the filtered results:
{
"query": {
"bool": {
"must": [
{
"term": {
"Content.ContentItem.ContentType.keyword": "Store"
}
},
{
"bool": {
"filter": {
"geo_distance": {
"distance": "200km",
"StorePart.Location": {
"lat": -33,
"lon": 137
}
}
}
}
}
],
"filter": {
"geo_bounding_box": {
"StorePart.Location": {
"top_left": {
"lat": -31,
"lon": 135
},
"bottom_right": {
"lat": -35,
"lon": 139
}
}
}
}
}
}
}
| Query Type | Speed | Precision | Use Case |
|---|---|---|---|
geo_bounding_box | Fast | Rectangular area only | Quick area filtering, map viewport queries |
geo_distance | Slower (Haversine) | Exact radius | Precise "within X km" searches |
| Combined | Optimal | Exact radius with pre-filter | Large datasets requiring radius search |
The geo_distance query uses the Haversine formula to calculate the great-circle distance between two points on a sphere. Key characteristics:
geo_bounding_box before applying geo_distance.A content type can have multiple GeoPointField instances for different geographic attributes:
{
"steps": [
{
"name": "ContentDefinition",
"ContentParts": [
{
"Name": "DeliveryRoute",
"Settings": {},
"ContentPartFieldDefinitionRecords": [
{
"FieldName": "GeoPointField",
"Name": "Origin",
"Settings": {
"ContentPartFieldSettings": {
"DisplayName": "Origin Location"
}
}
},
{
"FieldName": "GeoPointField",
"Name": "Destination",
"Settings": {
"ContentPartFieldSettings": {
"DisplayName": "Destination Location"
}
}
}
]
}
]
}
]
}
Query by origin location:
{
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
"geo_distance": {
"distance": "50km",
"DeliveryRoute.Origin": {
"lat": 40.7128,
"lon": -74.0060
}
}
}
}
}
}
Official Orchard Core videos shown on the documentation page:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/orchardcore:orchardcore-spatialfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard./orchardcore-admin-edit-viewsSkill for writing Orchard Core admin editor views with the ocat CSS classes and cards. Covers Edit views for content parts and fields, field editor variants, part, field and site settings editors, Fields.Edit views, admin pages rendering Model.Editor built with IDisplayManager, the ocat classes and their layout rules, label associations and group captions, part and field wrapper classes, validation, hints and the Hint_Admin shape, cards declared in placement and the Card and CardContainer shapes, split editor shapes, tabs and columns, the edit page action bar, the horizontal form layout, and the UI text casing standard. Use this skill when requests mention Orchard Core admin edit views, admin forms, grouping fields in cards, Edit.cshtml, Fields.Edit.cshtml, Settings.Edit.cshtml, ocat classes, label casing, or field hints. Strong matches include ocat-wrapper, ocat-card, Hint_Admin, PlacementLocationBuilder, IDisplayManager, ContentPartDisplayDriver, SiteDisplayDriver./orchardcore-admin-listsSkill for Orchard Core 4.0 admin index views (list pages) rendered with the AdminList shape. Covers the List and Grid layouts, AdminListContext of TModel, the admin-list and admin-list-column tag helpers, column width and alignment, row display drivers placing shapes for SummaryAdmin and SummaryAdminGrid, row templates and zones, AdminListActions Buttons and Menu layouts, AdminListToolbar, AdminListSearch, the list-management script for select-all and bulk actions, IAdminListColumnsProvider, AdminListOptions, user layout selection, per-list alternates, sortable lists, and upgrading overridden list views. Use this skill when requests mention Orchard Core admin index views, an admin index page, admin lists, converting a hand-written admin listing, grid layout, list columns, row actions menu, or adding a column to the content items list. Strong matches include OrchardCore.Admin.Abstractions, AdminListContext, AdminListColumn, IAdminListColumnsProvider, AdminListOptions, AdminListLayout, ContentsAdminList./orchardcore-admin-menuSkill for creating admin menus in Orchard Core. Covers admin menu content, the link, placeholder, content types, and lists admin node types, the AdminMenu recipe and deployment step, ManageAdminMenu, ViewAdminMenuAll and per-menu ViewAdminMenu permissions from AdminMenuPermissions, custom admin nodes with AdminNode, IAdminNodeNavigationBuilder and AddAdminNode, data localization of node text, rendering in the 4.0 TheAdmin menu, and upgrading from the removed legacy admin menu layout. Use this skill when requests mention Orchard Core Admin Menu, Create and Manage Admin Menus, Admin Menu Deployment Recipe Step, Built-In Admin Node Types, Custom Admin Node Class, LegacyAdminMenuNavigation, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminMenu, OrchardCore.AdminMenu.Abstractions, AdminMenuPermissions, LinkAdminNode, PlaceholderAdminNode, OrchardCore.Lists, OrchardCore.Navigation./orchardcore-admin-schemesSkill for the Orchard Core 4.0 TheAdmin redesign and its admin schemes. Covers scheme records with their four colors, typography, density, corners, horizontal form layout and content width, Design > Themes > Schemes, the default scheme, the per-user scheme picker and its cookie, the seven built-in schemes, the AdminSchemes recipe step and Admin Schemes deployment step, the schemes.css stylesheet, the --ta-* design tokens, ta-content-fluid, dark mode utilities and nested color modes, TheOldAdmin and how to switch to it, and the breaking changes for custom admin themes and Layout overrides. Use this skill when requests mention admin schemes, admin colors, rebranding TheAdmin, dark mode of the admin, the admin content width, the horizontal form layout, TheOldAdmin, or upgrading a custom admin theme to the new TheAdmin. Strong matches include AdminScheme, AdminSchemes, DefaultSchemeId, HorizontalFormLayout, ContentWidth, data-ta-scheme, --ta-primary, ta-content-fluid, TheOldAdmin, and OrchardCore.Themes.TheAdmin.Other plugins' skills for the same job