| name | dist-channel-selection |
| version | 0.2.10 |
| category | tool |
| description | Guide for selecting the correct distribution channel (npm, Cargo, etc.) based on artifact type and target audience. Use this skill when preparing to publish or release a new version of a package — even if they just say "publish this" or "release it". Not for cicd-pipeline. |
| license | MIT |
Distribution Channel Selection
Ensure artifacts are published to the correct channels with appropriate verification.
When to Use
- User asks to publish or release a new version of a package
- Need to select the correct distribution channel (npm, Cargo, etc.)
- Even if they just say "publish this" or "release it"
Decision Matrix
| Artifact Type | Channel | Primary Verification | Dry Run Command |
|---|
| Rust library | crates.io | cargo test | cargo publish --dry-run |
| WASM library | npm | scripts/wasm_size_gate.sh | npm pack --dry-run |
| CLI (Node) | npm | npm test | npm pack --dry-run |
| CLI (Rust) | GitHub/npm | scripts/quality_gate.sh | cargo build --release |
Preconditions
Publishing Process
1. Verification
Run the domain-specific verification tools (e.g., WASM size gates, LOC enforcement).
2. Dry Run
Always perform a dry run before the final publish to catch packaging issues.
3. Final Publish
Use the official toolchain for the selected channel.
Common Pitfalls
- Publishing WASM binaries without size verification.
- Forgetting to sync the
VERSION file across sub-packages.
- Incomplete CHANGELOG leading to consumer confusion.
See Also
cicd-pipeline — CI/CD pipeline for publishing
git-github-workflow — Git workflow for releases
Rationalizations
| Rationalization | Reality |
|---|
| "I'll skip the dry run — the publish always works." | Dry runs catch packaging errors, missing files, and metadata issues that silently corrupt published artifacts. |
| "The VERSION file doesn't need to match package.json." | Version mismatches confuse consumers, break CI/CD pipelines, and invalidate changelog entries. |
Red Flags
References
AGENTS.md - Version management policy
scripts/wasm_size_gate.sh - WASM size enforcement
Voice & Context
- Default:
professional + blog
- Reference:
voice-profiles skill for definitions and auto-detection.