@localskills/cli 0.11.1 → 0.12.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.
- package/README.md +27 -6
- package/dist/index.js +831 -193
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,9 +108,14 @@ localskills list
|
|
|
108
108
|
localskills list --public
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
### `localskills publish [
|
|
111
|
+
### `localskills publish [path]`
|
|
112
112
|
|
|
113
|
-
Publish a local skill
|
|
113
|
+
Publish a local skill to localskills.sh. `path` may be a single skill **file** or a skill **folder**:
|
|
114
|
+
|
|
115
|
+
- **File** → published as a single-file (text) skill; frontmatter is stripped.
|
|
116
|
+
- **Folder** → zipped and published as a multi-file **package** (e.g. a Claude skill directory: `SKILL.md` plus `scripts/`, `references/`, assets). Files are uploaded **verbatim** (frontmatter preserved). A skill folder must contain a `SKILL.md` at its root; a `--type rule` folder need not. Limits: **1 MB** compressed, **1 MB** uncompressed, **500 files**.
|
|
117
|
+
|
|
118
|
+
Without a `path`, scans your project for unpublished skills across all supported platform directories. Detected Claude skill folders (`.claude/skills/<name>/`) are published as packages, bundling every file in the folder.
|
|
114
119
|
|
|
115
120
|
```bash
|
|
116
121
|
# Scan and publish interactively
|
|
@@ -118,6 +123,9 @@ localskills publish
|
|
|
118
123
|
|
|
119
124
|
# Publish a specific file
|
|
120
125
|
localskills publish .cursor/rules/my-skill.mdc -n "My Skill" --visibility public
|
|
126
|
+
|
|
127
|
+
# Publish a whole skill folder as a package
|
|
128
|
+
localskills publish .claude/skills/my-skill -n "My Skill" --visibility public
|
|
121
129
|
```
|
|
122
130
|
|
|
123
131
|
**Options:**
|
|
@@ -135,20 +143,33 @@ localskills publish .cursor/rules/my-skill.mdc -n "My Skill" --visibility public
|
|
|
135
143
|
- **Copy** — writes a standalone copy. Independent of cache but requires re-install to update.
|
|
136
144
|
- **Section** — for single-file platforms (Copilot, Codex, Windsurf global), injects the skill into a shared file between `<!-- localskills:start:slug -->` / `<!-- localskills:end:slug -->` markers.
|
|
137
145
|
|
|
146
|
+
### Folder (package) skills
|
|
147
|
+
|
|
148
|
+
Multi-file skills are cached **unpacked** as a real folder (never a `.zip`) under
|
|
149
|
+
`cache/<slug>/pkg/`, so the cache mirrors the actual skill directory. Installing one
|
|
150
|
+
symlinks (default) or copies that folder into the platform's per-skill directory —
|
|
151
|
+
e.g. `~/.claude/skills/<slug>/`. Because folder skills are a directory format, they
|
|
152
|
+
install to **Claude Code only**; other platforms are skipped with a notice.
|
|
153
|
+
|
|
138
154
|
## Configuration
|
|
139
155
|
|
|
140
156
|
Config and cache are stored at `~/.localskills/`:
|
|
141
157
|
|
|
142
158
|
```
|
|
143
159
|
~/.localskills/
|
|
144
|
-
config.json
|
|
160
|
+
config.json # Auth token, installed skills, preferences
|
|
145
161
|
cache/
|
|
146
162
|
my-skill/
|
|
147
|
-
raw.md
|
|
148
|
-
meta.json
|
|
149
|
-
cursor.mdc
|
|
163
|
+
raw.md # Original content (text skills)
|
|
164
|
+
meta.json # Hash, version, metadata
|
|
165
|
+
cursor.mdc # Platform-specific transformed files
|
|
150
166
|
claude/
|
|
151
167
|
SKILL.md
|
|
168
|
+
my-folder-skill/
|
|
169
|
+
meta.json
|
|
170
|
+
manifest.json # File list for a package skill
|
|
171
|
+
pkg/ # Unpacked folder skill (SKILL.md + scripts/, references/, …)
|
|
172
|
+
SKILL.md
|
|
152
173
|
```
|
|
153
174
|
|
|
154
175
|
## License
|