skill-port 0.1.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/LICENSE +21 -0
- package/README.md +125 -0
- package/SECURITY.md +27 -0
- package/dist/chunk-UGQBG2TQ.js +941 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +362 -0
- package/dist/index.d.ts +98 -0
- package/dist/index.js +16 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026
|
|
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,125 @@
|
|
|
1
|
+
# skill-port
|
|
2
|
+
|
|
3
|
+
`skill-port` converts AI coding skill packages between:
|
|
4
|
+
|
|
5
|
+
- `codex`
|
|
6
|
+
- `claude-code`
|
|
7
|
+
- `cursor`
|
|
8
|
+
|
|
9
|
+
The CLI is intentionally simple:
|
|
10
|
+
|
|
11
|
+
- `list`: show skills in a scope
|
|
12
|
+
- `convert`: convert one named skill across providers
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install
|
|
18
|
+
npm run build
|
|
19
|
+
npm link
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Then run:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
skill-port --help
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Commands
|
|
29
|
+
|
|
30
|
+
### list
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
skill-port list [--scope <scope>] [--provider <provider|all>] [--show-paths] [--format text|json]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Defaults:
|
|
37
|
+
|
|
38
|
+
- `scope=user`
|
|
39
|
+
- `provider=all`
|
|
40
|
+
- paths hidden unless `--show-paths`
|
|
41
|
+
|
|
42
|
+
### convert
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
skill-port convert [<skill-name> | --all] --to <provider> [--from <provider|auto>] [--scope <scope>] [--target-scope <scope>] [--out <dir>] [--report <path>] [--strict] [--dry-run] [--overwrite] [--format text|json]
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Defaults:
|
|
49
|
+
|
|
50
|
+
- `from=auto`
|
|
51
|
+
- `scope=user`
|
|
52
|
+
- `target-scope` matches `scope`
|
|
53
|
+
|
|
54
|
+
Notes:
|
|
55
|
+
|
|
56
|
+
- `<skill-name>` is required unless `--all` is set.
|
|
57
|
+
- `--all` converts all skills in the selected scope/provider set.
|
|
58
|
+
- `--all` cannot be combined with `--out` or `--report`.
|
|
59
|
+
- `--all` continues per-skill on errors and exits non-zero if any skill fails.
|
|
60
|
+
- `<skill-name>` must be a single directory name (no path separators).
|
|
61
|
+
|
|
62
|
+
## Scopes
|
|
63
|
+
|
|
64
|
+
- `user`
|
|
65
|
+
- `project`
|
|
66
|
+
- `local`
|
|
67
|
+
|
|
68
|
+
Provider roots used by scope:
|
|
69
|
+
|
|
70
|
+
- `codex`: `.agents/skills`
|
|
71
|
+
- `claude-code`: `.claude/skills`
|
|
72
|
+
- `cursor`: `.cursor/skills`
|
|
73
|
+
|
|
74
|
+
`user` scope resolves under the user home. `project` resolves under the nearest git root. `local` resolves under current working directory.
|
|
75
|
+
|
|
76
|
+
## Examples
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# list all user-scoped skills
|
|
80
|
+
skill-port list
|
|
81
|
+
|
|
82
|
+
# list project-scoped codex skills
|
|
83
|
+
skill-port list --scope project --provider codex
|
|
84
|
+
|
|
85
|
+
# convert a user-scoped skill from codex to claude-code
|
|
86
|
+
skill-port convert deploy-app --from codex --to claude-code
|
|
87
|
+
|
|
88
|
+
# convert all user-scoped codex skills to cursor
|
|
89
|
+
skill-port convert --all --from codex --to cursor
|
|
90
|
+
|
|
91
|
+
# convert with strict safety checks
|
|
92
|
+
skill-port convert deploy-app --from codex --to cursor --strict
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Behavior
|
|
96
|
+
|
|
97
|
+
- Converts by skill name + scope, not by direct input folder path.
|
|
98
|
+
- Preserves unknown `SKILL.md` frontmatter keys by default.
|
|
99
|
+
- Preserves non-skill files by default (scripts, references, assets, etc.).
|
|
100
|
+
- Writes `skill-port.report.json` by default in output directory.
|
|
101
|
+
|
|
102
|
+
## Strict Mode
|
|
103
|
+
|
|
104
|
+
Use `--strict` to fail conversions that contain lossy mappings or conflicts.
|
|
105
|
+
|
|
106
|
+
## Open Source
|
|
107
|
+
|
|
108
|
+
- Contributor guide: [`CONTRIBUTING.md`](./CONTRIBUTING.md)
|
|
109
|
+
- Security policy: [`SECURITY.md`](./SECURITY.md)
|
|
110
|
+
- Community standards: [`CODE_OF_CONDUCT.md`](./CODE_OF_CONDUCT.md)
|
|
111
|
+
|
|
112
|
+
## Scripts
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
npm run lint
|
|
116
|
+
npm test
|
|
117
|
+
npm run build
|
|
118
|
+
npm run test:e2e:live
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
`test:e2e:live` is optional and requires network access plus `SKILL_PORT_LIVE_E2E=1`.
|
|
122
|
+
|
|
123
|
+
## Provider Study
|
|
124
|
+
|
|
125
|
+
See [`docs/provider-study.md`](docs/provider-study.md) for the March 8, 2026 compatibility baseline and field matrix.
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Only the latest released version is supported for security fixes.
|
|
6
|
+
|
|
7
|
+
## Reporting a Vulnerability
|
|
8
|
+
|
|
9
|
+
Please do not open public issues for security vulnerabilities.
|
|
10
|
+
|
|
11
|
+
Report privately to the maintainers with:
|
|
12
|
+
|
|
13
|
+
- clear reproduction steps
|
|
14
|
+
- affected version/commit
|
|
15
|
+
- impact assessment
|
|
16
|
+
- any suggested mitigation
|
|
17
|
+
|
|
18
|
+
You should receive an acknowledgement within 3 business days.
|
|
19
|
+
|
|
20
|
+
## Scope Notes
|
|
21
|
+
|
|
22
|
+
When reporting, include whether the issue is about:
|
|
23
|
+
|
|
24
|
+
- filesystem safety (`--overwrite`, path traversal, scope escaping)
|
|
25
|
+
- data privacy (path/token leakage in logs/reports)
|
|
26
|
+
- dependency/supply-chain risk
|
|
27
|
+
- parsing/serialization integrity issues
|