@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.
Files changed (71) hide show
  1. package/README.md +91 -0
  2. package/dist/cli.d.ts +2 -0
  3. package/dist/cli.js +15851 -0
  4. package/dist/commands/compositions.d.ts +9 -0
  5. package/dist/commands/diagnostics.d.ts +7 -0
  6. package/dist/commands/migrate.d.ts +7 -0
  7. package/dist/commands/profiles.d.ts +8 -0
  8. package/dist/commands/selections.d.ts +7 -0
  9. package/dist/commands/sync.d.ts +7 -0
  10. package/dist/commands/vendor.d.ts +8 -0
  11. package/dist/core/activation-ownership.d.ts +18 -0
  12. package/dist/core/activation-state.d.ts +37 -0
  13. package/dist/core/activation-types.d.ts +32 -0
  14. package/dist/core/aliases.d.ts +7 -0
  15. package/dist/core/catalog-lock.d.ts +15 -0
  16. package/dist/core/catalog-types.d.ts +28 -0
  17. package/dist/core/catalog-write.d.ts +25 -0
  18. package/dist/core/catalog.d.ts +7 -0
  19. package/dist/core/composition-mutation.d.ts +38 -0
  20. package/dist/core/composition-types.d.ts +45 -0
  21. package/dist/core/composition.d.ts +12 -0
  22. package/dist/core/content.d.ts +25 -0
  23. package/dist/core/diagnostics-types.d.ts +76 -0
  24. package/dist/core/diagnostics.d.ts +6 -0
  25. package/dist/core/discovery.d.ts +5 -0
  26. package/dist/core/doctor-sources.d.ts +10 -0
  27. package/dist/core/doctor-types.d.ts +37 -0
  28. package/dist/core/doctor-writers.d.ts +11 -0
  29. package/dist/core/doctor.d.ts +4 -0
  30. package/dist/core/error.d.ts +8 -0
  31. package/dist/core/filesystem.d.ts +5 -0
  32. package/dist/core/lock.d.ts +18 -0
  33. package/dist/core/manifest.d.ts +7 -0
  34. package/dist/core/metadata.d.ts +6 -0
  35. package/dist/core/migration-activation-state.d.ts +52 -0
  36. package/dist/core/migration-activation.d.ts +6 -0
  37. package/dist/core/migration-common.d.ts +8 -0
  38. package/dist/core/migration-manifest.d.ts +4 -0
  39. package/dist/core/migration-registry-state.d.ts +72 -0
  40. package/dist/core/migration-registry.d.ts +7 -0
  41. package/dist/core/migration-sources.d.ts +4 -0
  42. package/dist/core/migration-types.d.ts +56 -0
  43. package/dist/core/migration.d.ts +4 -0
  44. package/dist/core/packs.d.ts +8 -0
  45. package/dist/core/profile-discovery.d.ts +15 -0
  46. package/dist/core/profile-state.d.ts +27 -0
  47. package/dist/core/profile-sync.d.ts +40 -0
  48. package/dist/core/profile-types.d.ts +88 -0
  49. package/dist/core/profiles.d.ts +6 -0
  50. package/dist/core/reconciliation-types.d.ts +36 -0
  51. package/dist/core/reconciliation.d.ts +47 -0
  52. package/dist/core/resolution.d.ts +6 -0
  53. package/dist/core/result.d.ts +37 -0
  54. package/dist/core/selection-command-types.d.ts +23 -0
  55. package/dist/core/selection-commands.d.ts +6 -0
  56. package/dist/core/selection-manifest.d.ts +18 -0
  57. package/dist/core/selection.d.ts +98 -0
  58. package/dist/core/sets.d.ts +7 -0
  59. package/dist/core/vendor-git.d.ts +26 -0
  60. package/dist/core/vendor-inspect.d.ts +5 -0
  61. package/dist/core/vendor-provenance.d.ts +9 -0
  62. package/dist/core/vendor-sources.d.ts +14 -0
  63. package/dist/core/vendor-state.d.ts +54 -0
  64. package/dist/core/vendor-sync.d.ts +4 -0
  65. package/dist/core/vendor-types.d.ts +132 -0
  66. package/dist/index.d.ts +32 -0
  67. package/dist/index.js +15028 -0
  68. package/dist/version.d.ts +1 -0
  69. package/package.json +62 -0
  70. package/schemas/result.schema.json +47 -0
  71. 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
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};