agentleFS
d-o-hubd-o-hub/github-template-ai-agents/.agents/skills/dist-channel-selection/SKILL.md

dist-channel-selection

Skill2 starsChanged 11 days agoMITView on GitHub

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.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ensure artifacts are published to the correct channels with appropriate verification.

    line 11
  2. Distinctive:

    Run the domain-specific verification tools (e.g., WASM size gates, LOC enforcement).

    line 39
  3. Distinctive:

    Always perform a dry run before the final publish to catch packaging issues.

    line 43
  4. Distinctive:

    Use the official toolchain for the selected channel.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 TypeChannelPrimary VerificationDry Run Command
Rust librarycrates.iocargo testcargo publish --dry-run
WASM librarynpmscripts/wasm_size_gate.shnpm pack --dry-run
CLI (Node)npmnpm testnpm pack --dry-run
CLI (Rust)GitHub/npmscripts/quality_gate.shcargo build --release

Preconditions

  • Version bumped in VERSION file.
  • CHANGELOG.md updated with new version details.
  • ./scripts/quality_gate.sh passes locally.
  • All CI checks are green.

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

RationalizationReality
"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

  • Publishing without running the dry-run command first
  • Forgetting to update CHANGELOG.md before publishing
  • Skipping quality gate checks prior to release

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.