@localskills/cli 0.11.0 → 0.11.2
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 +35 -6
- package/dist/index.js +799 -188
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,14 @@ CLI for [localskills.sh](https://localskills.sh) — install, manage, and publis
|
|
|
8
8
|
npm install -g @localskills/cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
Or with your package manager of choice:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add -g @localskills/cli
|
|
15
|
+
yarn global add @localskills/cli
|
|
16
|
+
bun add -g @localskills/cli
|
|
17
|
+
```
|
|
18
|
+
|
|
11
19
|
## Supported platforms
|
|
12
20
|
|
|
13
21
|
| Platform | ID | Global | Project | Method |
|
|
@@ -100,9 +108,14 @@ localskills list
|
|
|
100
108
|
localskills list --public
|
|
101
109
|
```
|
|
102
110
|
|
|
103
|
-
### `localskills publish [
|
|
111
|
+
### `localskills publish [path]`
|
|
112
|
+
|
|
113
|
+
Publish a local skill to localskills.sh. `path` may be a single skill **file** or a skill **folder**:
|
|
104
114
|
|
|
105
|
-
|
|
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.
|
|
106
119
|
|
|
107
120
|
```bash
|
|
108
121
|
# Scan and publish interactively
|
|
@@ -110,6 +123,9 @@ localskills publish
|
|
|
110
123
|
|
|
111
124
|
# Publish a specific file
|
|
112
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
|
|
113
129
|
```
|
|
114
130
|
|
|
115
131
|
**Options:**
|
|
@@ -127,20 +143,33 @@ localskills publish .cursor/rules/my-skill.mdc -n "My Skill" --visibility public
|
|
|
127
143
|
- **Copy** — writes a standalone copy. Independent of cache but requires re-install to update.
|
|
128
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.
|
|
129
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
|
+
|
|
130
154
|
## Configuration
|
|
131
155
|
|
|
132
156
|
Config and cache are stored at `~/.localskills/`:
|
|
133
157
|
|
|
134
158
|
```
|
|
135
159
|
~/.localskills/
|
|
136
|
-
config.json
|
|
160
|
+
config.json # Auth token, installed skills, preferences
|
|
137
161
|
cache/
|
|
138
162
|
my-skill/
|
|
139
|
-
raw.md
|
|
140
|
-
meta.json
|
|
141
|
-
cursor.mdc
|
|
163
|
+
raw.md # Original content (text skills)
|
|
164
|
+
meta.json # Hash, version, metadata
|
|
165
|
+
cursor.mdc # Platform-specific transformed files
|
|
142
166
|
claude/
|
|
143
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
|
|
144
173
|
```
|
|
145
174
|
|
|
146
175
|
## License
|