$npx -y skills add Geeksfino/openskills --skill openskills-plugin-separationEnforce clean separation between core openskills-runtime and optional WASM build plugins so plugin compilation does not break runtime consumers or language bindings.
| 1 | # OpenSkills Plugin Separation |
| 2 | |
| 3 | Use this skill when changing plugin features, build-tool wiring, or runtime dependency topology. |
| 4 | |
| 5 | ## Objective |
| 6 | |
| 7 | Keep core runtime usable without plugin toolchains, especially for bindings and non-build execution paths. |
| 8 | |
| 9 | ## Key Files |
| 10 | |
| 11 | - `runtime/Cargo.toml` |
| 12 | - `runtime/src/lib.rs` |
| 13 | - `runtime/src/bin/openskills-runtime.rs` |
| 14 | - `runtime/src/build/**` |
| 15 | - `bindings/ts/Cargo.toml` |
| 16 | - `bindings/python/Cargo.toml` |
| 17 | |
| 18 | ## Separation Rules |
| 19 | |
| 20 | 1. Build plugins must be gated behind explicit features. |
| 21 | 2. Core runtime defaults should not force plugin toolchains. |
| 22 | 3. Bindings should opt out of plugin-heavy default features when appropriate. |
| 23 | 4. Public exports for build functions must be feature-gated. |
| 24 | 5. CLI build commands must degrade gracefully when build features are disabled. |
| 25 | |
| 26 | ## Validation Checklist |
| 27 | |
| 28 | - `cargo check -p openskills-runtime` passes with default features. |
| 29 | - Bindings compile without pulling plugin-specific dependencies unintentionally. |
| 30 | - Runtime tests that do not require plugin build paths continue to pass. |
| 31 | |
| 32 | ## Output Format |
| 33 | |
| 34 | - Feature graph summary |
| 35 | - Leakage findings (if any) |
| 36 | - Minimal patch plan |
| 37 | - Post-change verification commands |