agentleFS
d-o-hubd-o-hub/do-harness/.agents/skills/crates-io-name-check/SKILL.md

crates-io-name-check

Skill1 starsChanged 30 days agoMITView on GitHub

Check crates.io name availability, naming appropriateness, and reservation guidance before creating or publishing a new crate. Use when introducing a new publishable crate, renaming a crate, or verifying name availability prior to first publish.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Verify crate name availability, check naming appropriateness, and record reservation guidance before introducing or publishing a new crate …

    line 17
  2. Distinctive:

    Run these check commands before creating or first-publishing a new crate:

    line 22
  3. Distinctive:

    Search for similar or colliding existing crates:

    line 41
  4. Very specific:

    Convention: Use lowercase kebab-case (e.g.

    line 51
  5. Very specific:

    Project Scope: Prefer prefixed workspace crate names (e.g., do-harness-*) to avoid namespace collisions and clarify ownership.

    line 52
  6. Very specific:

    Avoid Misleading Prefixes: Do not use rust-, official-, or std- prefixes, or generic single-word names.

    line 53
  7. Distinctive:

    Before opening a PR that adds or publishes a new crate:

    line 58
  8. Very specific:

    If the name returns 404, proceed with crate creation or tag release.

    line 62
  9. Very specific:

    If the name returns 200 or conflicts with existing crates, select a non-colliding alternative (e.g.

    line 63
  10. Distinctive:

    No automated CI gate required (advisory skill run on demand).

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

crates.io Name Check Skill

Purpose

Verify crate name availability, check naming appropriateness, and record reservation guidance before introducing or publishing a new crate to crates.io.

Exact Check Commands

Run these check commands before creating or first-publishing a new crate:

1. crates.io API Availability Check

crates.io requires a custom User-Agent header on unauthenticated API requests; requests without User-Agent are rejected with HTTP 403.

crate_name="do-harness-newcrate"
curl -s -o /dev/null -w "%{http_code}\n" \
  -H "User-Agent: do-harness-name-check (https://github.com/d-o-hub/do-harness)" \
  -H "Accept: application/json" \
  "https://crates.io/api/v1/crates/${crate_name}"

Interpreting HTTP status codes:

  • 404: Crate name is available (not found on crates.io).
  • 200: Crate name is taken (already published on crates.io).
  • 403: Missing or invalid User-Agent header in request.

2. Cargo Search Similarity Check

Search for similar or colliding existing crates:

cargo search "${crate_name}"

Review the results to ensure the candidate name does not closely collide with or typosquat an existing crate.

Naming Appropriateness Guidelines

  • Convention: Use lowercase kebab-case (e.g. do-harness-types) or snake_case.
  • Project Scope: Prefer prefixed workspace crate names (e.g., do-harness-*) to avoid namespace collisions and clarify ownership.
  • Avoid Misleading Prefixes: Do not use rust-, official-, or std- prefixes, or generic single-word names.
  • Squatting Policy Compliance: crates.io prohibits name squatting without functional code. Do not publish empty placeholder crates solely to reserve names.

Check-then-Record Pre-Publish Workflow

Before opening a PR that adds or publishes a new crate:

  1. Execute the curl status check and cargo search command.
  2. Record the terminal output in the pull request description or release record.
  3. If the name returns 404, proceed with crate creation or tag release.
  4. If the name returns 200 or conflicts with existing crates, select a non-colliding alternative (e.g. using do-harness-<purpose>) and re-run the check.

Quality Checklist

  • API probe always includes -H "User-Agent: ..." and -H "Accept: application/json".
  • 404 status code confirmed prior to first publish attempt.
  • Name check output pasted into pre-publish / release documentation.
  • No automated CI gate required (advisory skill run on demand).

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.