arcpy-script
Generate ArcPy scripts for ArcGIS Pro using live map context, layer sampling, and ArcGIS‑aware prompt rules
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Generate ArcPy scripts for ArcGIS Pro using live map context, layer sampling, and ArcGIS‑aware prompt rules
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create a pre‑publish checklist for ArcGIS Online items with risk and data quality checks
Search ArcGIS Online items and return clean, filtered results with safe defaults
Plan ArcPy workflows for ArcGIS Pro tasks with real project context and safe sequencing
Package GIS layers into GeoParquet with metadata and validation
Audit ArcGIS Pro projects for broken layers, schema issues, and performance risks
Minimal Q&A skill example with clear inputs and outputs
| name | arcpy-script |
| description | Generate ArcPy scripts for ArcGIS Pro using live map context, layer sampling, and ArcGIS‑aware prompt rules |
Generate ArcPy code tailored to the user’s active ArcGIS Pro project by using real map/layer context and ArcGIS‑specific constraints. Output should be code-only unless the user explicitly asks for explanations.
Produce scripts that work on the first run by grounding the prompt in:
task_description (string)project_path (string, optional)map_name (string, optional)layer_names (array, optional)selected_only (bool, optional)max_features_per_layer (int, optional, default 50)simplify_ratio (float, optional, default 0.01)include_view_extent (bool, optional)include_map_screenshot (bool, optional)provider (string, optional: OpenAI, OpenRouter, Azure OpenAI, Claude, DeepSeek, Local LLM)model (string, optional)If available, call arcgispro-cli to fetch live project details:
arcgispro layers --json for exact layer names and typesarcgispro fields "LayerName" for real field schemasarcgispro context for full project dumpPrefer actual layer/field names from these outputs over guesses.
When available, build a map_info JSON payload that includes:
arcpy onlySelectLayerByAttribute for attribute filtersSelectLayerByLocationORDER BY in selection SQLactive_map.listLayers("LayerName")[0] when zoomingarcpy.AddMessage for user-facing outputUser: “Select the 3 counties with lowest population density and zoom to them.”
Agent output: Python only, using SelectLayerByAttribute, SearchCursor, and active_view.camera.setExtent(...).
Return a concise, usable result with the key artifacts or recommendations.
Do not invent data, credentials, or system context. Flag uncertainty and risky operations clearly.