@open-skills-hub/mcp-server 1.0.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.
@@ -0,0 +1,255 @@
1
+ # Platform Support Update - Changelog
2
+
3
+ ## v2.0.0 - Multi-Platform Support (2026-02-05)
4
+
5
+ ### ๐ŸŽ‰ Major Features
6
+
7
+ #### Automatic Platform Detection
8
+ - **Auto-detect** current AI platform (Cursor, Codex, CodeBuddy, Claude, Anthropic)
9
+ - **Smart fallback** to `~/.skills` when platform cannot be determined
10
+ - **Environment variable detection** for reliable platform identification
11
+
12
+ #### Simplified Installation
13
+ - `targetDir` parameter is now **optional** (was required)
14
+ - Just provide skill name: `{ "name": "@official/skill" }`
15
+ - System automatically handles directory creation and placement
16
+
17
+ #### Multi-Platform Support
18
+ - **5 built-in platforms**: Cursor, Codex, CodeBuddy, Claude, Anthropic
19
+ - **Platform-specific defaults**:
20
+ - Cursor: `~/.cursor/skills`
21
+ - Codex: `~/.codex/skills`
22
+ - CodeBuddy: `~/.codebuddy/skills`
23
+ - Claude: `~/.claude/skills`
24
+ - Anthropic: `~/.anthropic/skills`
25
+ - **Generic fallback**: `~/.skills`
26
+
27
+ #### Automatic Directory Creation
28
+ - All directories created automatically if they don't exist
29
+ - Nested subdirectories supported (scripts/, references/, etc.)
30
+ - Proper permissions handling
31
+
32
+ ### ๐Ÿ“ API Changes
33
+
34
+ #### `skills_install` Tool
35
+
36
+ **Before:**
37
+ ```typescript
38
+ {
39
+ name: string; // Required
40
+ targetDir: string; // Required
41
+ version?: string; // Optional
42
+ }
43
+ ```
44
+
45
+ **After:**
46
+ ```typescript
47
+ {
48
+ name: string; // Required
49
+ targetDir?: string; // Optional (auto-detected)
50
+ platform?: string; // Optional (auto-detected)
51
+ version?: string; // Optional
52
+ }
53
+ ```
54
+
55
+ #### New Parameters
56
+
57
+ - **`platform`** (optional): Explicitly specify target platform
58
+ - Valid values: `"cursor"`, `"codex"`, `"codebuddy"`, `"claude"`, `"anthropic"`
59
+ - Auto-detected if omitted
60
+
61
+ #### Modified Parameters
62
+
63
+ - **`targetDir`** (optional): Custom installation directory
64
+ - Was: Required parameter
65
+ - Now: Optional, auto-detected if omitted
66
+ - Still accepts custom paths when specified
67
+
68
+ ### ๐Ÿ”„ Migration Guide
69
+
70
+ #### No Breaking Changes
71
+
72
+ Existing code continues to work:
73
+
74
+ ```typescript
75
+ // โœ… Old code - still works
76
+ await skills_install({
77
+ name: "@official/skill",
78
+ targetDir: "/custom/path"
79
+ });
80
+
81
+ // โœ… New code - simpler
82
+ await skills_install({
83
+ name: "@official/skill"
84
+ });
85
+ ```
86
+
87
+ #### Recommended Updates
88
+
89
+ For cleaner code, you can remove explicit `targetDir`:
90
+
91
+ ```typescript
92
+ // Before
93
+ {
94
+ "name": "@official/pdf-parser",
95
+ "targetDir": "/Users/george/.cursor/skills"
96
+ }
97
+
98
+ // After
99
+ {
100
+ "name": "@official/pdf-parser"
101
+ }
102
+ ```
103
+
104
+ ### ๐Ÿ“– Documentation Updates
105
+
106
+ #### New Documents
107
+ - โœจ `PLATFORM-SUPPORT.md` - Comprehensive platform support guide
108
+ - ๐Ÿ“š Updated `README.md` - Reflects new auto-detection features
109
+ - ๐Ÿ“˜ Updated `EXAMPLES.md` - Shows simplified usage patterns
110
+
111
+ #### Updated Sections
112
+ - Tool descriptions - Clarified optional parameters
113
+ - Usage examples - Added auto-detection examples
114
+ - Troubleshooting - Added platform-specific guidance
115
+ - Best practices - Emphasized auto-detection
116
+
117
+ ### ๐Ÿ› ๏ธ Technical Implementation
118
+
119
+ #### New Functions
120
+ ```typescript
121
+ detectPlatform(): string
122
+ - Detects current platform from environment
123
+ - Returns platform name or 'unknown'
124
+
125
+ getDefaultSkillsDir(platform?: string): string
126
+ - Returns default directory for platform
127
+ - Handles ~ expansion and path resolution
128
+ ```
129
+
130
+ #### New Constants
131
+ ```typescript
132
+ PLATFORM_SKILLS_DIRS: Record<string, string>
133
+ - Maps platform names to default directories
134
+ - Used for auto-detection and resolution
135
+ ```
136
+
137
+ #### Modified Functions
138
+ ```typescript
139
+ handleInstall(storage, args)
140
+ - Now accepts optional targetDir
141
+ - Auto-detects platform when not specified
142
+ - Creates directories automatically
143
+ - Enhanced response with detection info
144
+ ```
145
+
146
+ ### ๐ŸŽฏ User Experience Improvements
147
+
148
+ #### For AI Agents
149
+ - โœ… Simpler tool calls - just provide skill name
150
+ - โœ… No need to ask users for installation directory
151
+ - โœ… Automatic platform detection reduces errors
152
+ - โœ… Clear feedback about where skills were installed
153
+
154
+ #### For End Users
155
+ - โœ… Skills installed in correct platform location automatically
156
+ - โœ… No manual directory creation needed
157
+ - โœ… Clear indication of auto-detected platform
158
+ - โœ… Works out-of-the-box on all supported platforms
159
+
160
+ ### ๐Ÿงช Testing Recommendations
161
+
162
+ When testing this update:
163
+
164
+ 1. **Test auto-detection**:
165
+ ```json
166
+ { "name": "@official/test-skill" }
167
+ ```
168
+
169
+ 2. **Test platform override**:
170
+ ```json
171
+ { "name": "@official/test-skill", "platform": "cursor" }
172
+ ```
173
+
174
+ 3. **Test custom directory** (backward compatibility):
175
+ ```json
176
+ { "name": "@official/test-skill", "targetDir": "/custom/path" }
177
+ ```
178
+
179
+ 4. **Test with non-existent directories**:
180
+ - Verify automatic creation
181
+ - Check permissions
182
+
183
+ 5. **Test on multiple platforms**:
184
+ - Cursor, Codex, CodeBuddy, etc.
185
+ - Verify correct directory used
186
+
187
+ ### ๐Ÿ“Š Impact Analysis
188
+
189
+ #### Code Changes
190
+ - **Modified files**: 3
191
+ - `src/index.ts` - Core implementation
192
+ - `README.md` - Documentation
193
+ - `EXAMPLES.md` - Usage examples
194
+ - **New files**: 2
195
+ - `PLATFORM-SUPPORT.md` - Platform guide
196
+ - `CHANGELOG-PLATFORM.md` - This file
197
+
198
+ #### Backward Compatibility
199
+ - โœ… 100% backward compatible
200
+ - โœ… All existing code continues to work
201
+ - โœ… No breaking changes to API
202
+
203
+ #### Performance
204
+ - โœ… Minimal overhead (< 1ms for detection)
205
+ - โœ… Directory creation only when needed
206
+ - โœ… No impact on other operations
207
+
208
+ ### ๐Ÿ”ฎ Future Enhancements
209
+
210
+ Potential improvements for future releases:
211
+
212
+ 1. **More platforms**:
213
+ - VSCode with Continue.dev
214
+ - JetBrains AI Assistant
215
+ - Aider
216
+ - Cody (Sourcegraph)
217
+
218
+ 2. **Smart detection**:
219
+ - Read platform config files
220
+ - Detect based on running processes
221
+ - User preference storage
222
+
223
+ 3. **Advanced features**:
224
+ - Multi-platform symlinks
225
+ - Skill migration between platforms
226
+ - Per-project skill directories
227
+ - Platform-specific skill variants
228
+
229
+ ### ๐Ÿ™ Acknowledgments
230
+
231
+ This feature was inspired by the need to support multiple AI agent platforms with different directory conventions, making skill installation seamless regardless of which platform users prefer.
232
+
233
+ ### ๐Ÿ“ž Support
234
+
235
+ If you encounter issues with platform detection:
236
+
237
+ 1. Check platform-specific troubleshooting in `PLATFORM-SUPPORT.md`
238
+ 2. Explicitly specify platform: `{ "platform": "cursor" }`
239
+ 3. Use custom directory: `{ "targetDir": "/custom/path" }`
240
+ 4. Report issues with platform details
241
+
242
+ ### ๐Ÿ”— References
243
+
244
+ - [Platform Support Guide](./PLATFORM-SUPPORT.md)
245
+ - [Main README](./README.md)
246
+ - [Usage Examples](./EXAMPLES.md)
247
+ - [SkillsHub Documentation](../../README.md)
248
+
249
+ ---
250
+
251
+ **Version**: 2.0.0
252
+ **Date**: 2026-02-05
253
+ **Author**: SkillsHub Team
254
+ **Type**: Feature Release
255
+ **Compatibility**: Backward Compatible