skill-port 0.1.2 → 0.1.3
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 +20 -4
- package/dist/{chunk-UGQBG2TQ.js → chunk-OZ2PBTWL.js} +8 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# skill-port
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/skill-port)
|
|
4
|
+
[](https://www.npmjs.com/package/skill-port)
|
|
5
|
+
[](https://github.com/lu-zhengda/skill-port/actions/workflows/ci.yml)
|
|
6
|
+
[](https://github.com/lu-zhengda/skill-port/actions/workflows/publish.yml)
|
|
7
|
+
[](./LICENSE)
|
|
8
|
+
|
|
3
9
|
`skill-port` converts AI coding skill packages between:
|
|
4
10
|
|
|
5
11
|
- `codex`
|
|
@@ -13,18 +19,28 @@ The CLI is intentionally simple:
|
|
|
13
19
|
|
|
14
20
|
## Install
|
|
15
21
|
|
|
22
|
+
From npmjs:
|
|
23
|
+
|
|
16
24
|
```bash
|
|
17
|
-
|
|
18
|
-
npm run build
|
|
19
|
-
npm link
|
|
25
|
+
npx skill-port --help
|
|
20
26
|
```
|
|
21
27
|
|
|
22
|
-
|
|
28
|
+
Global install:
|
|
23
29
|
|
|
24
30
|
```bash
|
|
31
|
+
npm install -g skill-port
|
|
25
32
|
skill-port --help
|
|
26
33
|
```
|
|
27
34
|
|
|
35
|
+
Project-local install (if you do not want global install):
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm i skill-port
|
|
39
|
+
npx skill-port --help
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Note: `npm i skill-port` is a valid local install. To run the CLI from a local install, use `npx skill-port` (or `npm exec skill-port`).
|
|
43
|
+
|
|
28
44
|
## Commands
|
|
29
45
|
|
|
30
46
|
### list
|
|
@@ -817,7 +817,14 @@ async function convertSkill(options) {
|
|
|
817
817
|
let wroteFiles = false;
|
|
818
818
|
if (!options.dryRun) {
|
|
819
819
|
if (path7.resolve(outputDir) === path7.resolve(inputDir)) {
|
|
820
|
-
|
|
820
|
+
if (sourceProvider === targetProvider) {
|
|
821
|
+
throw new Error(
|
|
822
|
+
`Detected source provider '${sourceProvider}' and target provider '${targetProvider}' for the same skill path (${outputDir}). This is a no-op conversion to the same provider. Choose a different --to provider, or set --target-scope/--out to write elsewhere.`
|
|
823
|
+
);
|
|
824
|
+
}
|
|
825
|
+
throw new Error(
|
|
826
|
+
`Output directory resolves to the input directory (${outputDir}). Set --out (or --target-scope in scoped mode) to a different path.`
|
|
827
|
+
);
|
|
821
828
|
}
|
|
822
829
|
await ensureOutputDirectory(outputDir, Boolean(options.overwrite));
|
|
823
830
|
await copySkillDirectory(inputDir, outputDir);
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED