@saschabrunnerch/arcgis-maps-sdk-js-ai-context 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +163 -203
  2. package/bin/cli.js +157 -173
  3. package/contexts/4.34/{claude → skills}/arcgis-3d-advanced/SKILL.md +586 -586
  4. package/contexts/4.34/{claude → skills}/arcgis-advanced-layers/SKILL.md +431 -431
  5. package/contexts/4.34/{claude → skills}/arcgis-analysis-services/SKILL.md +607 -607
  6. package/contexts/4.34/{claude → skills}/arcgis-authentication/SKILL.md +301 -301
  7. package/contexts/4.34/{claude → skills}/arcgis-cim-symbols/SKILL.md +486 -486
  8. package/contexts/4.34/{claude → skills}/arcgis-coordinates-projection/SKILL.md +406 -406
  9. package/contexts/4.34/{claude → skills}/arcgis-core-maps/SKILL.md +739 -739
  10. package/contexts/4.34/{claude → skills}/arcgis-core-utilities/SKILL.md +732 -732
  11. package/contexts/4.34/{claude → skills}/arcgis-custom-rendering/SKILL.md +445 -445
  12. package/contexts/4.34/{claude → skills}/arcgis-editing-advanced/SKILL.md +702 -702
  13. package/contexts/4.34/{claude → skills}/arcgis-feature-effects/SKILL.md +393 -393
  14. package/contexts/4.34/{claude → skills}/arcgis-geometry-operations/SKILL.md +489 -489
  15. package/contexts/4.34/{claude → skills}/arcgis-imagery/SKILL.md +307 -307
  16. package/contexts/4.34/{claude → skills}/arcgis-interaction/SKILL.md +572 -572
  17. package/contexts/4.34/{claude → skills}/arcgis-knowledge-graphs/SKILL.md +582 -582
  18. package/contexts/4.34/{claude → skills}/arcgis-layers/SKILL.md +601 -601
  19. package/contexts/4.34/{claude → skills}/arcgis-map-tools/SKILL.md +668 -668
  20. package/contexts/4.34/{claude → skills}/arcgis-media-layers/SKILL.md +290 -290
  21. package/contexts/4.34/{claude → skills}/arcgis-portal-content/SKILL.md +679 -679
  22. package/contexts/4.34/{claude → skills}/arcgis-scene-effects/SKILL.md +512 -512
  23. package/contexts/4.34/{claude → skills}/arcgis-smart-mapping/SKILL.md +686 -686
  24. package/contexts/4.34/{claude → skills}/arcgis-starter-app-extended/SKILL.md +649 -649
  25. package/contexts/4.34/{claude → skills}/arcgis-tables-forms/SKILL.md +877 -877
  26. package/contexts/4.34/{claude → skills}/arcgis-time-animation/SKILL.md +722 -722
  27. package/contexts/4.34/{claude → skills}/arcgis-utility-networks/SKILL.md +301 -301
  28. package/contexts/4.34/{claude → skills}/arcgis-visualization/SKILL.md +580 -580
  29. package/contexts/4.34/{claude → skills}/arcgis-widgets-ui/SKILL.md +574 -574
  30. package/lib/installer.js +19 -104
  31. package/package.json +45 -45
  32. package/contexts/4.34/copilot/arcgis-3d.instructions.md +0 -267
  33. package/contexts/4.34/copilot/arcgis-analysis.instructions.md +0 -294
  34. package/contexts/4.34/copilot/arcgis-arcade.instructions.md +0 -234
  35. package/contexts/4.34/copilot/arcgis-authentication.instructions.md +0 -187
  36. package/contexts/4.34/copilot/arcgis-cim-symbols.instructions.md +0 -177
  37. package/contexts/4.34/copilot/arcgis-core-maps.instructions.md +0 -246
  38. package/contexts/4.34/copilot/arcgis-core-utilities.instructions.md +0 -247
  39. package/contexts/4.34/copilot/arcgis-editing.instructions.md +0 -262
  40. package/contexts/4.34/copilot/arcgis-geometry.instructions.md +0 -225
  41. package/contexts/4.34/copilot/arcgis-layers.instructions.md +0 -278
  42. package/contexts/4.34/copilot/arcgis-popup-templates.instructions.md +0 -266
  43. package/contexts/4.34/copilot/arcgis-portal-advanced.instructions.md +0 -275
  44. package/contexts/4.34/copilot/arcgis-smart-mapping.instructions.md +0 -184
  45. package/contexts/4.34/copilot/arcgis-starter-app-extended.instructions.md +0 -643
  46. package/contexts/4.34/copilot/arcgis-starter-app.instructions.md +0 -268
  47. package/contexts/4.34/copilot/arcgis-time-animation.instructions.md +0 -112
  48. package/contexts/4.34/copilot/arcgis-visualization.instructions.md +0 -321
  49. package/contexts/4.34/copilot/arcgis-widgets-ui.instructions.md +0 -277
  50. /package/contexts/4.34/{claude → skills}/arcgis-arcade/SKILL.md +0 -0
  51. /package/contexts/4.34/{claude → skills}/arcgis-popup-templates/SKILL.md +0 -0
  52. /package/contexts/4.34/{claude → skills}/arcgis-starter-app/SKILL.md +0 -0
package/README.md CHANGED
@@ -1,203 +1,163 @@
1
- # arcgis-maps-sdk-js-ai-context
2
-
3
- > **DISCLAIMER:** This is work in progress and not yet tested extensively. Use at your own risk.
4
-
5
- Install AI assistant context files for [ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/) development. Supports Claude skills and GitHub Copilot instructions.
6
-
7
- ## Features
8
-
9
- - **Claude Skills**: Comprehensive skill files for Claude AI assistant covering all major ArcGIS Maps SDK features
10
- - **GitHub Copilot Instructions**: Context files for GitHub Copilot to improve code suggestions
11
- - **SDK Version Selection**: Choose context files for specific ArcGIS Maps SDK versions
12
- - **Cross-platform**: Works on Windows, macOS, and Linux
13
- - **Zero dependencies**: Uses only built-in Node.js modules
14
-
15
- ## Installation
16
-
17
- No installation required! Run directly with npx:
18
-
19
- ```bash
20
- npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context <command>
21
- ```
22
-
23
- ## Commands
24
-
25
- ### Install Claude Skills
26
-
27
- Installs Claude skill files to `.claude/skills/arcgis-maps-sdk-js/` in your project:
28
-
29
- ```bash
30
- # Install for latest SDK version
31
- npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context claude
32
-
33
- # Install for specific SDK version
34
- npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context claude --sdk 4.34
35
- ```
36
-
37
- ### Install GitHub Copilot Instructions
38
-
39
- Installs Copilot instruction files to `.github/instructions/` in your project:
40
-
41
- ```bash
42
- # Install for latest SDK version
43
- npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context copilot
44
-
45
- # Install for specific SDK version
46
- npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context copilot --sdk 4.34
47
- ```
48
-
49
- ### Install All
50
-
51
- Installs both Claude skills and Copilot instructions:
52
-
53
- ```bash
54
- # Install for latest SDK version
55
- npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context all
56
-
57
- # Install for specific SDK version
58
- npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context all --sdk 4.34
59
- ```
60
-
61
- ### List Available Contexts
62
-
63
- Shows all available SDK versions and context files:
64
-
65
- ```bash
66
- npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context list
67
- ```
68
-
69
- ### Help
70
-
71
- ```bash
72
- npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context --help
73
- ```
74
-
75
- ## SDK Version Selection
76
-
77
- Use the `--sdk` flag to install context files for a specific ArcGIS Maps SDK version:
78
-
79
- ```bash
80
- npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context claude --sdk 4.34
81
- ```
82
-
83
- Available versions can be viewed with the `list` command. If no version is specified, the latest available version is used.
84
-
85
- | SDK Version | Status |
86
- |-------------|--------|
87
- | 4.34 | Available |
88
-
89
- ## Claude Skills Included
90
-
91
- The package includes 29 comprehensive Claude skills covering:
92
-
93
- | Skill | Description |
94
- |-------|-------------|
95
- | arcgis-starter-app | Scaffold minimal TypeScript/Vite app with Map Components |
96
- | arcgis-core-maps | 2D and 3D map creation, views, navigation |
97
- | arcgis-layers | FeatureLayer, TileLayer, GeoJSONLayer, and more |
98
- | arcgis-visualization | Renderers, symbols, and visual variables |
99
- | arcgis-popup-templates | Popup configuration and content |
100
- | arcgis-widgets-ui | Built-in widgets and UI components |
101
- | arcgis-geometry-operations | Geometry engine and spatial operations |
102
- | arcgis-coordinates-projection | Coordinate systems and projections |
103
- | arcgis-authentication | OAuth, API keys, and identity management |
104
- | arcgis-portal-content | Portal items, groups, and content management |
105
- | arcgis-smart-mapping | Smart mapping and data-driven visualization |
106
- | arcgis-editing-advanced | Feature editing and sketching |
107
- | arcgis-analysis-services | Spatial analysis and geoprocessing |
108
- | arcgis-3d-advanced | 3D visualization and SceneView |
109
- | arcgis-scene-effects | 3D effects, lighting, and atmosphere |
110
- | arcgis-cim-symbols | CIM symbol specification |
111
- | arcgis-arcade | Arcade expressions |
112
- | arcgis-time-animation | Time-aware layers and animation |
113
- | arcgis-feature-effects | Feature effects and filters |
114
- | arcgis-custom-rendering | Custom WebGL rendering |
115
- | arcgis-interaction | View interaction and events |
116
- | arcgis-map-tools | Measurement, print, and utility tools |
117
- | arcgis-tables-forms | Attribute tables and feature forms |
118
- | arcgis-media-layers | Media and image layers |
119
- | arcgis-advanced-layers | Specialized layer types |
120
- | arcgis-imagery | Imagery and raster analysis |
121
- | arcgis-knowledge-graphs | Knowledge graph integration |
122
- | arcgis-utility-networks | Utility network analysis |
123
- | arcgis-core-utilities | Core utilities and helpers |
124
-
125
- ## GitHub Copilot Instructions
126
-
127
- The package includes 17 comprehensive Copilot instruction files covering all topics:
128
-
129
- | File | Coverage |
130
- |------|----------|
131
- | arcgis-starter-app.instructions.md | Scaffold TypeScript/Vite app with Map Components |
132
- | arcgis-core-maps.instructions.md | Maps, views, navigation, imports |
133
- | arcgis-layers.instructions.md | All layer types, queries, management |
134
- | arcgis-visualization.instructions.md | Renderers, symbols, visual variables, labels |
135
- | arcgis-widgets-ui.instructions.md | Widgets, Calcite Design System |
136
- | arcgis-popup-templates.instructions.md | Popup content, charts, expressions |
137
- | arcgis-geometry.instructions.md | Geometry operators, spatial operations, projection |
138
- | arcgis-authentication.instructions.md | OAuth, API keys, identity |
139
- | arcgis-editing.instructions.md | Editor, Sketch, forms, versioning |
140
- | arcgis-3d.instructions.md | SceneView, 3D layers, weather, lighting, effects |
141
- | arcgis-arcade.instructions.md | Arcade expressions for all contexts |
142
- | arcgis-analysis.instructions.md | Analysis tools, measurement, print |
143
- | arcgis-smart-mapping.instructions.md | Auto-generated renderers, statistics |
144
- | arcgis-time-animation.instructions.md | TimeSlider, temporal data |
145
- | arcgis-cim-symbols.instructions.md | Advanced CIM symbology |
146
- | arcgis-portal-advanced.instructions.md | Portal, imagery, media layers, utility networks, knowledge graphs |
147
- | arcgis-core-utilities.instructions.md | reactiveUtils, Collection, hit testing, highlighting, events |
148
-
149
- Each file provides:
150
- - Import patterns and best practices
151
- - Comprehensive code examples
152
- - TypeScript guidance with `as const`
153
- - Common pitfalls to avoid
154
-
155
- ## Usage with Claude
156
-
157
- After installing Claude skills, Claude will automatically have access to ArcGIS-specific knowledge when working in your project. The skills provide:
158
-
159
- - Correct import patterns for ESM and CDN usage
160
- - Best practices for TypeScript with autocasting
161
- - Code examples for common tasks
162
- - API reference guidance
163
-
164
- ## Usage with GitHub Copilot
165
-
166
- After installing Copilot instructions, GitHub Copilot will provide better suggestions for:
167
-
168
- - ArcGIS API imports
169
- - Map and view initialization
170
- - Layer configuration
171
- - Widget setup
172
- - Common patterns
173
-
174
- ## Requirements
175
-
176
- - Node.js 14.0.0 or higher
177
-
178
- ## Source
179
-
180
- The context files in this package are based on the official ArcGIS Maps SDK for JavaScript documentation:
181
-
182
- - **Documentation:** https://developers.arcgis.com/javascript/latest/downloads/
183
- - **Folders used:** `api-reference` and `sample-code`
184
-
185
- ## AI Assistance Declaration
186
-
187
- This project was primarily developed using AI coding assistants. The maintainer directed the development through prompts and reviewed all generated code.
188
-
189
- ## License
190
-
191
- MIT
192
-
193
- ## Contributing
194
-
195
- Contributions are welcome! Please feel free to submit issues and pull requests at:
196
-
197
- https://github.com/SaschaBrunnerCH/arcgis-maps-sdk-js-ai-context
198
-
199
- ## Related
200
-
201
- - [ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/)
202
- - [Claude](https://claude.ai/)
203
- - [GitHub Copilot](https://github.com/features/copilot)
1
+ # arcgis-maps-sdk-js-ai-context
2
+
3
+ > **DISCLAIMER:** This is work in progress and not yet tested extensively. Use at your own risk.
4
+
5
+ Install [Agent Skills](https://agentskills.io) for [ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/) development. Compatible with Claude, VS Code, Cursor, and other AI agents.
6
+
7
+ ## Features
8
+
9
+ - **Agent Skills**: Comprehensive skill files following the open [Agent Skills specification](https://agentskills.io/specification)
10
+ - **Cross-platform AI support**: Works with Claude, VS Code Copilot, Cursor, OpenCode, and other compatible agents
11
+ - **SDK Version Selection**: Choose skills for specific ArcGIS Maps SDK versions
12
+ - **Cross-platform**: Works on Windows, macOS, and Linux
13
+ - **Zero dependencies**: Uses only built-in Node.js modules
14
+
15
+ ## Installation
16
+
17
+ No installation required! Run directly with npx:
18
+
19
+ ```bash
20
+ npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context <command>
21
+ ```
22
+
23
+ ## Commands
24
+
25
+ ### Install Agent Skills
26
+
27
+ Installs 30 Agent Skills directly to `.github/skills/` in your project:
28
+
29
+ ```bash
30
+ # Install for latest SDK version
31
+ npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context skills
32
+
33
+ # Install for specific SDK version
34
+ npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context skills --sdk 4.34
35
+ ```
36
+
37
+ This creates the following structure (all skills are prefixed with `arcgis-` to avoid conflicts with other packages):
38
+
39
+ ```
40
+ your-project/
41
+ └── .github/
42
+ └── skills/
43
+ ├── arcgis-core-maps/
44
+ │ └── SKILL.md
45
+ ├── arcgis-layers/
46
+ │ └── SKILL.md
47
+ ├── arcgis-visualization/
48
+ │ └── SKILL.md
49
+ └── ... (30 skill directories total)
50
+ ```
51
+
52
+ ### List Available Skills
53
+
54
+ Shows all available SDK versions and skills:
55
+
56
+ ```bash
57
+ npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context list
58
+ ```
59
+
60
+ ### Help
61
+
62
+ ```bash
63
+ npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context --help
64
+ ```
65
+
66
+ ## SDK Version Selection
67
+
68
+ Use the `--sdk` flag to install skills for a specific ArcGIS Maps SDK version:
69
+
70
+ ```bash
71
+ npx @saschabrunnerch/arcgis-maps-sdk-js-ai-context skills --sdk 4.34
72
+ ```
73
+
74
+ Available versions can be viewed with the `list` command. If no version is specified, the latest available version is used.
75
+
76
+ | SDK Version | Status |
77
+ |-------------|--------|
78
+ | 4.34 | Available |
79
+
80
+ ## Skills Included
81
+
82
+ The package includes 30 comprehensive Agent Skills covering:
83
+
84
+ | Skill | Description |
85
+ |-------|-------------|
86
+ | arcgis-starter-app | Scaffold minimal TypeScript/Vite app with Map Components |
87
+ | arcgis-starter-app-extended | Extended starter app with additional features |
88
+ | arcgis-core-maps | 2D and 3D map creation, views, navigation |
89
+ | arcgis-layers | FeatureLayer, TileLayer, GeoJSONLayer, and more |
90
+ | arcgis-visualization | Renderers, symbols, and visual variables |
91
+ | arcgis-popup-templates | Popup configuration and content |
92
+ | arcgis-widgets-ui | Built-in widgets and UI components |
93
+ | arcgis-geometry-operations | Geometry engine and spatial operations |
94
+ | arcgis-coordinates-projection | Coordinate systems and projections |
95
+ | arcgis-authentication | OAuth, API keys, and identity management |
96
+ | arcgis-portal-content | Portal items, groups, and content management |
97
+ | arcgis-smart-mapping | Smart mapping and data-driven visualization |
98
+ | arcgis-editing-advanced | Feature editing and sketching |
99
+ | arcgis-analysis-services | Spatial analysis and geoprocessing |
100
+ | arcgis-3d-advanced | 3D visualization and SceneView |
101
+ | arcgis-scene-effects | 3D effects, lighting, and atmosphere |
102
+ | arcgis-cim-symbols | CIM symbol specification |
103
+ | arcgis-arcade | Arcade expressions |
104
+ | arcgis-time-animation | Time-aware layers and animation |
105
+ | arcgis-feature-effects | Feature effects and filters |
106
+ | arcgis-custom-rendering | Custom WebGL rendering |
107
+ | arcgis-interaction | View interaction and events |
108
+ | arcgis-map-tools | Measurement, print, and utility tools |
109
+ | arcgis-tables-forms | Attribute tables and feature forms |
110
+ | arcgis-media-layers | Media and image layers |
111
+ | arcgis-advanced-layers | Specialized layer types |
112
+ | arcgis-imagery | Imagery and raster analysis |
113
+ | arcgis-knowledge-graphs | Knowledge graph integration |
114
+ | arcgis-utility-networks | Utility network analysis |
115
+ | arcgis-core-utilities | Core utilities and helpers |
116
+
117
+ ## Usage
118
+
119
+ After installing skills, your AI agent will automatically have access to ArcGIS-specific knowledge when working in your project. The skills provide:
120
+
121
+ - Correct import patterns for ESM and CDN usage
122
+ - Best practices for TypeScript with autocasting
123
+ - Code examples for common tasks
124
+ - API reference guidance
125
+
126
+ ### Supported AI Agents
127
+
128
+ - [Claude](https://claude.ai/) / [Claude Code](https://claude.ai/claude-code)
129
+ - [VS Code with Copilot](https://code.visualstudio.com/)
130
+ - [Cursor](https://cursor.com/)
131
+ - [OpenCode](https://opencode.ai/)
132
+ - Any agent supporting the [Agent Skills specification](https://agentskills.io)
133
+
134
+ ## Requirements
135
+
136
+ - Node.js 14.0.0 or higher
137
+
138
+ ## Source
139
+
140
+ The skills in this package are based on the official ArcGIS Maps SDK for JavaScript documentation:
141
+
142
+ - **Documentation:** https://developers.arcgis.com/javascript/latest/downloads/
143
+ - **Folders used:** `api-reference` and `sample-code`
144
+
145
+ ## AI Assistance Declaration
146
+
147
+ This project was primarily developed using AI coding assistants. The maintainer directed the development through prompts and reviewed all generated code.
148
+
149
+ ## License
150
+
151
+ MIT
152
+
153
+ ## Contributing
154
+
155
+ Contributions are welcome! Please feel free to submit issues and pull requests at:
156
+
157
+ https://github.com/SaschaBrunnerCH/arcgis-maps-sdk-js-ai-context
158
+
159
+ ## Related
160
+
161
+ - [ArcGIS Maps SDK for JavaScript](https://developers.arcgis.com/javascript/)
162
+ - [Agent Skills Specification](https://agentskills.io)
163
+ - [Claude](https://claude.ai/)