n1ckyb/skills/new-crate

Claude Code and agent skill by n1ckyb/skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Add a new crate to the OpenDataSuite Cargo workspace with correct layering, metadata, lints, and test scaffolding. Use when creating ods-* module crates, provider crates, or stores, or when scaffolding the workspace for the first time.

Install

npx vskill@latest install n1ckyb/skills/new-crate

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry-data/new-crate.

Add a crate

Decide where it goes

KindPathMay depend on
Core/domain (ods-core, ods-events, ods-config, ods-policy)crates/std, serde, small utility crates; ods-core depends on nothing internal
Contracts (ods-sdk)crates/ods-core, foundation crates
Module (ods-state, ods-erd, …)crates/core, sdk, other modules only if ADR-approved
Provider/store (ods-provider-*, ods-store-*)providers/core, foundation, sdk, vendor client libs — never modules
Binary (ods-cli)crates/anything

A module crate must never depend on a provider crate. If you need one, you need a new contract in ods-sdk instead.

First-time workspace scaffold

If no root Cargo.toml exists, create it with:

  • [workspace] resolver = "3", members = ["crates/*"] — add "providers/*" with the first provider crate (Cargo rejects a glob that matches nothing)
  • [workspace.package] edition = "2024", license = (per #10/#101, default Apache-2.0), repository, rust-version
  • [workspace.dependencies] pinning shared deps (serde, thiserror, tokio, clap, tracing)
  • [workspace.lints.rust] unsafe_code = "forbid"; [workspace.lints.clippy] all = "warn", pedantic = "warn" (allow noisy ones explicitly)
  • rust-toolchain.toml (stable), deny.toml, .github/workflows/ci.yml running the verify stages.

Per-crate steps

  1. cargo new --lib crates/<name> (or providers/<name>); binaries use --bin.
  2. In its Cargo.toml: version.workspace = true, edition.workspace = true,

license.workspace = true, [lints] workspace = true; use dep.workspace = true for shared deps.

  1. src/lib.rs starts with a crate-level doc comment stating purpose and allowed dependencies.
  2. Add at least one unit test and, for providers, wire the SDK conformance tests.
  3. Register the crate's layer in scripts/check-layering.py (unknown crates fail CI).
  4. Update the layout in docs/ROADMAP.md §7 / AGENTS.md if the crate is new to the plan.
  5. Run the verify skill.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/n1ckyb/skills/new-crate/badge)](https://verified-skill.com/skills/n1ckyb/skills/new-crate)

Something wrong with this skill or its page? Tell us.