@delorenj/skillex 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/README.md +91 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +15851 -0
- package/dist/commands/compositions.d.ts +9 -0
- package/dist/commands/diagnostics.d.ts +7 -0
- package/dist/commands/migrate.d.ts +7 -0
- package/dist/commands/profiles.d.ts +8 -0
- package/dist/commands/selections.d.ts +7 -0
- package/dist/commands/sync.d.ts +7 -0
- package/dist/commands/vendor.d.ts +8 -0
- package/dist/core/activation-ownership.d.ts +18 -0
- package/dist/core/activation-state.d.ts +37 -0
- package/dist/core/activation-types.d.ts +32 -0
- package/dist/core/aliases.d.ts +7 -0
- package/dist/core/catalog-lock.d.ts +15 -0
- package/dist/core/catalog-types.d.ts +28 -0
- package/dist/core/catalog-write.d.ts +25 -0
- package/dist/core/catalog.d.ts +7 -0
- package/dist/core/composition-mutation.d.ts +38 -0
- package/dist/core/composition-types.d.ts +45 -0
- package/dist/core/composition.d.ts +12 -0
- package/dist/core/content.d.ts +25 -0
- package/dist/core/diagnostics-types.d.ts +76 -0
- package/dist/core/diagnostics.d.ts +6 -0
- package/dist/core/discovery.d.ts +5 -0
- package/dist/core/doctor-sources.d.ts +10 -0
- package/dist/core/doctor-types.d.ts +37 -0
- package/dist/core/doctor-writers.d.ts +11 -0
- package/dist/core/doctor.d.ts +4 -0
- package/dist/core/error.d.ts +8 -0
- package/dist/core/filesystem.d.ts +5 -0
- package/dist/core/lock.d.ts +18 -0
- package/dist/core/manifest.d.ts +7 -0
- package/dist/core/metadata.d.ts +6 -0
- package/dist/core/migration-activation-state.d.ts +52 -0
- package/dist/core/migration-activation.d.ts +6 -0
- package/dist/core/migration-common.d.ts +8 -0
- package/dist/core/migration-manifest.d.ts +4 -0
- package/dist/core/migration-registry-state.d.ts +72 -0
- package/dist/core/migration-registry.d.ts +7 -0
- package/dist/core/migration-sources.d.ts +4 -0
- package/dist/core/migration-types.d.ts +56 -0
- package/dist/core/migration.d.ts +4 -0
- package/dist/core/packs.d.ts +8 -0
- package/dist/core/profile-discovery.d.ts +15 -0
- package/dist/core/profile-state.d.ts +27 -0
- package/dist/core/profile-sync.d.ts +40 -0
- package/dist/core/profile-types.d.ts +88 -0
- package/dist/core/profiles.d.ts +6 -0
- package/dist/core/reconciliation-types.d.ts +36 -0
- package/dist/core/reconciliation.d.ts +47 -0
- package/dist/core/resolution.d.ts +6 -0
- package/dist/core/result.d.ts +37 -0
- package/dist/core/selection-command-types.d.ts +23 -0
- package/dist/core/selection-commands.d.ts +6 -0
- package/dist/core/selection-manifest.d.ts +18 -0
- package/dist/core/selection.d.ts +98 -0
- package/dist/core/sets.d.ts +7 -0
- package/dist/core/vendor-git.d.ts +26 -0
- package/dist/core/vendor-inspect.d.ts +5 -0
- package/dist/core/vendor-provenance.d.ts +9 -0
- package/dist/core/vendor-sources.d.ts +14 -0
- package/dist/core/vendor-state.d.ts +54 -0
- package/dist/core/vendor-sync.d.ts +4 -0
- package/dist/core/vendor-types.d.ts +132 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +15028 -0
- package/dist/version.d.ts +1 -0
- package/package.json +62 -0
- package/schemas/result.schema.json +47 -0
- package/skills.schema.json +144 -0
package/README.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Skillex
|
|
2
|
+
|
|
3
|
+
A Node CLI for defining skills once, composing them by reference, and exposing the selected skills to agentic CLIs.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Requires Node 24 or newer. The npm package contains the compiled CLI, typed ESM core, and JSON schemas. It has no Python or uv runtime dependency.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install --global @delorenj/skillex@0.1.1
|
|
11
|
+
skillex --help
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Keep a local registry checkout with its `all-skills/` submodule initialized. Select it with `--registry-root PATH` or `PJ_SKILLS_REGISTRY_ROOT`; an explicit invalid root is an error. Resolution and reconciliation work offline.
|
|
15
|
+
|
|
16
|
+
## Select and sync skills
|
|
17
|
+
|
|
18
|
+
A global or project `.agents/skills.json` declares skills, sets, an optional exclusive pack, and exclusions. Projects inherit global selections by default.
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
skillex init --scope global
|
|
22
|
+
skillex enable set global --scope global
|
|
23
|
+
skillex init --scope project --project /workspace/example
|
|
24
|
+
skillex enable skill code-reviewer --scope project --project /workspace/example
|
|
25
|
+
skillex sync --scope project --project /workspace/example --dry-run
|
|
26
|
+
skillex sync --scope project --project /workspace/example
|
|
27
|
+
skillex status --project /workspace/example
|
|
28
|
+
skillex explain code-reviewer --project /workspace/example
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
`enable`, `disable`, and `inherit` save the selected scope's intent and immediately reconcile that scope. Disabling an inherited skill adds a local exclusion. A pack supplies the entire loadout; disabling it restores the retained ordinary selection.
|
|
32
|
+
|
|
33
|
+
Plain `sync` reconciles global plus the nearest project, or global alone outside a project. `--scope project --project PATH` restricts writes to that project while still resolving inheritance. Existing foreign files and installer-owned content are preserved. Only recorded owned links can be pruned.
|
|
34
|
+
|
|
35
|
+
## Manage the catalog
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
skillex skill list --query review
|
|
39
|
+
skillex skill show code-reviewer
|
|
40
|
+
skillex skill create my-workflow
|
|
41
|
+
skillex skill import /workspace/authored-skill --name my-import
|
|
42
|
+
skillex set list
|
|
43
|
+
skillex pack list
|
|
44
|
+
skillex pack verify hermes-base@0.18.2
|
|
45
|
+
skillex doctor --sources-only
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`all-skills/` owns real definitions. Sets and packs contain canonical references; packs may also own hooks, commands, and support assets. Ordinary CLI skill roots alias one `.agents/skills` activation root. Catalog and composition edits take effect for a consumer when that consumer explicitly syncs.
|
|
49
|
+
|
|
50
|
+
Vendoring reads committed trees from available local upstream checkouts, preserves source pins and executable modes, and never clones or fetches implicitly. Use `vendor list`, `vendor show`, `vendor status`, and `vendor sync`; see the [vendoring contract](docs/implementation/cli-vendoring.md).
|
|
51
|
+
|
|
52
|
+
Hermes profiles keep real skill directories and their own content. Project targeting is explicit:
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
skillex profile list
|
|
56
|
+
skillex profile show example-pm
|
|
57
|
+
skillex profile sync example-pm --project /workspace/example --dry-run
|
|
58
|
+
skillex profile sync example-pm --project /workspace/example
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Migrate an existing installation
|
|
62
|
+
|
|
63
|
+
Preview the registry and each target before applying their migration. The migration result lists content choices, changed objects, and verification receipts. Missing mappings and unresolved local content remain visible as blocked items.
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
skillex migrate --registry-root /workspace/skillex --json
|
|
67
|
+
skillex migrate --registry-root /workspace/skillex --mapping choices.json --apply
|
|
68
|
+
skillex migrate --scope global --json
|
|
69
|
+
skillex migrate --scope global --apply
|
|
70
|
+
skillex migrate --project /workspace/example --json
|
|
71
|
+
skillex migrate --project /workspace/example --apply
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Do not run the Python and Node reconcilers against the same target. The [migration contract](docs/implementation/cli-migration.md) covers legacy references, explicit choices, ownership handoff, interruption recovery, and profile conversion. The [CLI Revamp delivery record](docs/tasks/cli-revamp-tickets.md) tracks the remaining template and consumer cutover work; installing the package alone does not migrate consumers.
|
|
75
|
+
|
|
76
|
+
## Automation and development
|
|
77
|
+
|
|
78
|
+
Use `--json` for a schema-2 envelope with `schema`, `command`, `ok`, `exit`, `data`, and `findings`. Diagnostic output does not contaminate JSON stdout. Mutating commands support `--dry-run`; `migrate` previews by default and requires `--apply`. `sync --dry-run --exit-code` returns 6 for drift.
|
|
79
|
+
|
|
80
|
+
Exit codes: 0 success, 1 execution failure, 2 invalid configuration or arguments, 3 refusal, 4 partial application, 5 lock contention, 6 drift, and 130 interruption. Receipts and locks live in XDG state outside the source repositories.
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
npm ci
|
|
84
|
+
npm run check
|
|
85
|
+
npm pack
|
|
86
|
+
node dist/cli.js --help
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Checks cover the installed npm package, Node 24/26, Linux/macOS behavior, offline resolution, content preservation, ownership, concurrency, and recovery. Python characterization checks remain in the development workflow until retirement is complete.
|
|
90
|
+
|
|
91
|
+
See the [command specification](docs/plan/cli-revamp.md), [ownership ADR](docs/architecture/ADR-0001-reference-only-skill-topology.md), and [result schema](schemas/result.schema.json). PJangler consumes the same public core exported by `@delorenj/skillex`.
|
package/dist/cli.d.ts
ADDED