Agent skill

Agent Cargo Publish

by pellegre in pellegre/libcrafter

Publish the libcrafter crafter crate to crates.io only after the local release gate, cargo publish dry-run, package summary, ask-tool confirmation, and crates.io/docs.rs verification.

MITAuto-check passedDevelopment

Install Agent Cargo Publish

skills CLI
$ npx skills add pellegre/libcrafter --skill agent-cargo-publish -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pellegre/libcrafter agent-cargo-publish --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pellegre/libcrafter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/agent-cargo-publish .claude/skills/agent-cargo-publish && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-cargo-publish
GitHub stars
312
Token cost
~651 tokens
SKILL.md length
297 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Publish the libcrafter crafter crate to crates.io only after the local release gate, cargo publish dry-run, package summary, ask-tool confirmation, and crates.io/docs.rs verification.

  • Works in 8 steps: Verify the release context → Run the local release gate → Run the publish dry run → …
  • Development work in your project
  • SKILL.md covers Required Order and Hard Stops
  • Calls cargo, git and curl; reaches crates.io and docs.rs; needs CARGO_REGISTRY_TOKEN

What it does

Agent Cargo Publish is an agent skill from pellegre/libcrafter. Publish the libcrafter crafter crate to crates.io only after the local release gate, cargo publish dry-run, package summary, ask-tool confirmation, and crates.io/docs.rs verification.

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with Git. The repository describes itself as: A Rust library for constructing, sending, capturing, and decoding network packets. The licence is MIT.

When your agent uses it

  • Development work in your project

Example prompts

  • “/agent-cargo-publish”

Requirements

  • A credential in CARGO_REGISTRY_TOKEN

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Verify the release context
  2. Run the local release gate
  3. Run the publish dry run
  4. Check whether the exact version already exists on crates.io. Prefer
  5. Summarize what will change before asking
  6. Ask for approval with an ask-capable tool immediately before publishing. Use
  7. Publish
  8. Verify and report

What it can do on your machine

Read from SKILL.md and the folder at commit f9ef000. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo
    • git
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • crates.io
    • docs.rs

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • CARGO_REGISTRY_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Cargo Publish loads about 651 tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 297 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~651

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pellegre/libcrafter at commit f9ef000, republished under its MIT licence (© pellegre). 297 words, ~651 tokens.

Download SKILL.mdSave it as .claude/skills/agent-cargo-publish/SKILL.md (or your agent's skills folder).
name
agent-cargo-publish
description
Publish the libcrafter crafter crate to crates.io only after the local release gate, cargo publish dry-run, package summary, ask-tool confirmation, and crates.io/docs.rs verification.

Agent Cargo Publish

Use this skill when asked to publish the crafter crate from this repository to crates.io.

Publishing is irreversible. Do not run the real cargo publish command unless all gates pass and the user explicitly approves through an ask-capable tool. Plain-text confirmation is not enough.

Required Order

  1. Verify the release context:
    • git status --short must be empty.
    • Record git rev-parse --abbrev-ref HEAD and git rev-parse HEAD.
    • Read the crate name and version from Cargo metadata and require crafter as the package.
    • Target crates.io only.
  2. Run the local release gate:
sh
.agents/scripts/check-crafter-release --static
  1. Run the publish dry run:
sh
cargo publish -p crafter --dry-run --locked
  1. Check whether the exact version already exists on crates.io. Prefer:
sh
curl -fsSL "https://crates.io/api/v1/crates/crafter/<version>"

Stop if the query succeeds. 5. Summarize what will change before asking:

  • crate and version
  • registry
  • git branch and commit
  • package contents summary from the release gate or cargo package --list
  • crates.io metadata/readme update from the packaged Cargo metadata
  • docs.rs build expected from the published package
  1. Ask for approval with an ask-capable tool immediately before publishing. Use request_user_input when that tool is available. The question must name the exact crate, version, registry, and commit. Provide a non-publish option and a publish-now option. Proceed only if the user chooses the publish-now option.
  2. Publish:
sh
cargo publish -p crafter --locked
  1. Verify and report:
    • crates.io package page: https://crates.io/crates/crafter/<version>
    • docs.rs page: https://docs.rs/crafter/<version>/crafter/

If docs.rs is still building, report it as pending with the expected URL. Do not try to force docs.rs.

Hard Stops

Stop before real publishing if:

  • the working tree is dirty
  • the release gate or dry run fails
  • the crate version is already published
  • the ask-capable tool is unavailable
  • the user does not explicitly choose the publish-now option
  • credentials are missing or cargo reports authentication failure

Never use --allow-dirty or --no-verify for the real publish. Never print CARGO_REGISTRY_TOKEN or any credential value.

© pellegre, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/agent-cargo-publish of pellegre/libcrafter.

Open the folder on GitHubat commit f9ef000

Compare with similar skills

Agent Cargo Publish next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Cargo Publish compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Cargo Publish this skillpellegre/libcrafter312—~651Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Finishing A Development Branchfarm-fe/farm5.6k35 repos~1.8kAutomated safety check: PassMIT
Migrate Internal Package into GhostTryGhost/Ghost56k—~3.8kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 35 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.

    56k GitHub stars~3.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Doc Sync

    JetBrains/ideavim

    Official

    Keeps IdeaVim documentation in sync with code changes. An agent skill from JetBrains/ideavim.

    10k GitHub starsUsed in 2 repos~2.6k tokens
    DevelopmentAuto-check passed

More from pellegre/libcrafter

  • Commit Changes

    pellegre/libcrafter

    Create, amend, reword, split, squash, or prepare libcrafter commits with the repository's Conventional Commits policy and scoped staging discipline.

    312 GitHub stars~496 tokensUpdated 7 days ago
    Auto-check passed
  • Prepare PR

    pellegre/libcrafter

    Open, update, title, review, or prepare libcrafter pull requests so commits are ready for rebase-and-fast-forward landing and required validation is documented.

    312 GitHub stars~482 tokensUpdated 7 days ago
    Auto-check passed
  • Create Branch

    pellegre/libcrafter

    Create, rename, check out, or prepare libcrafter branches and worktrees with typed branch names such as feature/slug or fix/slug instead of bare task names.

    312 GitHub stars~412 tokensUpdated 7 days ago
    Auto-check passed
  • Scratch Work

    pellegre/libcrafter

    Use ignored .scratch workspaces for experiments, disposable prototypes, network probes, hardware exploration, generated code, and any task where the user asks for work that should not be committed…

    312 GitHub stars~669 tokensUpdated 7 days ago
    Auto-check passed
  • Packet Validation

    pellegre/libcrafter

    Add or run deterministic libcrafter packet behavior validation through oracle specs, reference backends, offline checks, pcap checks, probe plans, and artifacts.

    312 GitHub stars~418 tokensUpdated 7 days ago
    Auto-check passed

Works with

Categories

Questions about Agent Cargo Publish

What does Agent Cargo Publish do?

Publish the libcrafter crafter crate to crates.io only after the local release gate, cargo publish dry-run, package summary, ask-tool confirmation, and crates.io/docs.rs verification. Agent Cargo Publish is an agent skill from pellegre/libcrafter.rs verification.

When should I use Agent Cargo Publish?

Agent Cargo Publish fits situations like: development work in your project.

How do I install Agent Cargo Publish in Claude Code?

Run `npx skills add pellegre/libcrafter --skill agent-cargo-publish -a claude-code`. Or copy the skill folder (.agents/skills/agent-cargo-publish in pellegre/libcrafter) into .claude/skills/agent-cargo-publish in your project. Claude Code loads it when a task matches its description.

How do I install Agent Cargo Publish in Codex?

Run `npx skills add pellegre/libcrafter --skill agent-cargo-publish -a codex`. Or copy the skill folder (.agents/skills/agent-cargo-publish in pellegre/libcrafter) into .agents/skills/agent-cargo-publish in your project. Codex loads it when a task matches its description.

Can I use Agent Cargo Publish in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pellegre/libcrafter --skill agent-cargo-publish -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-cargo-publish, .gemini/skills/agent-cargo-publish, .github/skills/agent-cargo-publish and .opencode/skills/agent-cargo-publish in your project.

What does Agent Cargo Publish need to run?

Going by SKILL.md and its folder, Agent Cargo Publish needs the command-line tools its instructions call (cargo, git and curl) and credentials named CARGO_REGISTRY_TOKEN. Our summary lists: A credential in CARGO_REGISTRY_TOKEN.

Does Agent Cargo Publish access the network?

SKILL.md names 2 domains. In commands or code: crates.io and docs.rs; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Agent Cargo Publish safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Cargo Publish use?

Agent Cargo Publish is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Cargo Publish use?

About 651 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Agent Cargo Publish?

Skills that share tags, products or a category with Agent Cargo Publish: Finishing a Development Branch (obra/superpowers, 297k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Finishing A Development Branch (farm-fe/farm, 5.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Cargo Publish?

pellegre (a GitHub user) maintains it in pellegre/libcrafter, which has 312 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 4, 2026.

Source: pellegre/libcrafter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.