create-skillet 0.1.1
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/LICENSE +21 -0
- package/README.md +45 -0
- package/bin/cli.js +4 -0
- package/dist/run.d.ts +3 -0
- package/dist/run.js +1948 -0
- package/package.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dafrick
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# create-skillet
|
|
2
|
+
|
|
3
|
+
Interactive wizard that turns a skill directory into a publishable Skillet npm package.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm create skillet
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
or
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npx create-skillet
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Run it in the directory you want to package. The wizard detects defaults from your `package.json`, `git config`, and git remote URL, then walks you through the rest.
|
|
16
|
+
|
|
17
|
+
## What it does
|
|
18
|
+
|
|
19
|
+
1. **Detects defaults** — reads your git user name/email, derives a package name from the directory or git remote, and pre-fills the repository URL from `git remote get-url origin`
|
|
20
|
+
2. **Prompts for configuration** — package name, version, description, author, repository URL, license, and which directory holds your skill files
|
|
21
|
+
3. **Shows a preview** — displays the full `npm pkg set` command before writing anything
|
|
22
|
+
4. **Scaffolds the package** — runs `npm init -y` if there is no `package.json`, then `npm pkg set` to apply all fields
|
|
23
|
+
5. **Writes `bin/cli.js`** — a ready-to-run entry point that calls `@skillet-cli/core`
|
|
24
|
+
6. **Installs the runtime** — runs `npm install @skillet-cli/core`
|
|
25
|
+
7. **Selects skill files** — shows a checkbox list of files in your skill directory (or a single confirm for large directories); pre-selects `SKILL.md` and common resource folders
|
|
26
|
+
|
|
27
|
+
## What you get
|
|
28
|
+
|
|
29
|
+
After the wizard completes, your directory contains:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
package.json # name, version, bin, skillet.skillDir, engines, type=module
|
|
33
|
+
bin/
|
|
34
|
+
cli.js # #!/usr/bin/env node — calls run() from @skillet-cli/core
|
|
35
|
+
node_modules/
|
|
36
|
+
@skillet-cli/core/
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
From there, publish to npm or GitHub Package Registry and your users can run:
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
npx your-package-name install
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
See [`@skillet-cli/core`](https://www.npmjs.com/package/@skillet-cli/core) for the full skill author guide.
|
package/bin/cli.js
ADDED
package/dist/run.d.ts
ADDED