cargo-pgrx Commands and Tests
yugabyte/yugabyte-db
Helps choose and run cargo-pgrx commands and decide whether a Rust test is a plain test or a pg_test, so code never crosses the Postgres boundary the wrong way.
Patterns for Rust testing in Axone CosmWasm contracts. An agent skill from axone-protocol/contracts.
$ npx skills add axone-protocol/contracts --skill rust-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install axone-protocol/contracts rust-testing --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/axone-protocol/contracts.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/rust-testing .claude/skills/rust-testing && rm -rf skills-srcUse ~/.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/
Install the "rust-testing" agent skill from https://github.com/axone-protocol/contracts/tree/main/.agents/skills/rust-testing into .claude/skills/rust-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-testing", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/axone-protocol/contracts/tree/main/.agents/skills/rust-testingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add axone-protocol/contracts --skill rust-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install axone-protocol/contracts rust-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/axone-protocol/contracts.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/rust-testing .agents/skills/rust-testing && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "rust-testing" agent skill from https://github.com/axone-protocol/contracts/tree/main/.agents/skills/rust-testing into .agents/skills/rust-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-testing", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add axone-protocol/contracts --skill rust-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install axone-protocol/contracts rust-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/axone-protocol/contracts.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/rust-testing .cursor/skills/rust-testing && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "rust-testing" agent skill from https://github.com/axone-protocol/contracts/tree/main/.agents/skills/rust-testing into .cursor/skills/rust-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-testing", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/axone-protocol/contracts.git --path .agents/skills/rust-testing--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add axone-protocol/contracts --skill rust-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install axone-protocol/contracts rust-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/axone-protocol/contracts.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/rust-testing .gemini/skills/rust-testing && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "rust-testing" agent skill from https://github.com/axone-protocol/contracts/tree/main/.agents/skills/rust-testing into .gemini/skills/rust-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-testing", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install axone-protocol/contracts rust-testingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add axone-protocol/contracts --skill rust-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/axone-protocol/contracts.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/rust-testing .github/skills/rust-testing && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "rust-testing" agent skill from https://github.com/axone-protocol/contracts/tree/main/.agents/skills/rust-testing into .github/skills/rust-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-testing", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add axone-protocol/contracts --skill rust-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install axone-protocol/contracts rust-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/axone-protocol/contracts.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/rust-testing .opencode/skills/rust-testing && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "rust-testing" agent skill from https://github.com/axone-protocol/contracts/tree/main/.agents/skills/rust-testing into .opencode/skills/rust-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "rust-testing", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
rust-testingPatterns for Rust testing in Axone CosmWasm contracts. An agent skill from axone-protocol/contracts.
Rust Testing is an agent skill from axone-protocol/contracts. Patterns for Rust testing in Axone CosmWasm contracts. Use when adding unit tests, integration tests, data-driven cases, or coverage-oriented test scenarios.
Its SKILL.md is about 500 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/integration-patterns.md` and `references/test-style.md`).
It sits in Testing & QA, covering Integration testing and Unit testing. It works with Rust. The repository describes itself as: 📜 Smart contracts for the Axone protocol. The licence is BSD-3-Clause.
6 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 02724f3. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
cargoFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Rust Testing loads about 501 tokens when it runs, and up to ~1.8k if it reads all its reference files. Until then it costs about 43 tokens; SKILL.md has 158 words of instructions outside code blocks.
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.
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.
The full file from axone-protocol/contracts at commit 02724f3, republished under its BSD-3-Clause licence (© axone-protocol). 158 words, ~501 tokens.
.claude/skills/rust-testing/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.| Component | Target |
|---|---|
| Handlers | 100% |
| State operations | 100% |
| Error paths | 90%+ |
| Message parsing | 80%+ |
| Overall | 90%+ |
# Run all unit tests
cargo make test-unit
# Run all tests (includes integration)
cargo make test
# Run tests with coverage
cargo make test-coverage
# Run specific test
cargo test test_name -- --nocaptureCoverage output is written to lcov.info.
# Generate HTML report (requires lcov)
genhtml lcov.info --output-directory coverage/
# Or use cargo-llvm-cov directly
cargo llvm-cov --html --opentest_ prefix.© axone-protocol, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (references) in .agents/skills/rust-testing of axone-protocol/contracts.
Open the folder on GitHubat commit 02724f3
Rust Testing 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Rust Testing this skillaxone-protocol/contracts | 123 | — | ~501 | Automated safety check: Pass | BSD-3-Clause | |
| cargo-pgrx Commands and Testsyugabyte/yugabyte-db | 11k | — | ~1.9k | Automated safety check: Pass | Custom licence | |
| Testingstatic-web-server/static-web-server | 2.4k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Rust Testingkurealnum/dotfiles | 290 | 6 repos | ~2.9k | Automated safety check: Pass | None | |
| Validationjosstei/maestro-orchestrate | 465 | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Rust TDD Workflowrtk-ai/rtk | 83k | — | ~753 | Automated safety check: Notes | Apache-2.0 |
yugabyte/yugabyte-db
Helps choose and run cargo-pgrx commands and decide whether a Rust test is a plain test or a pg_test, so code never crosses the Postgres boundary the wrong way.
static-web-server/static-web-server
Write or review tests for the Static Web Server (SWS) project — unit tests, integration tests, test fixtures, and mocking strategies
kurealnum/dotfiles
Rust testing patterns including unit tests, integration tests, async testing, property-based testing, mocking, and coverage.
josstei/maestro-orchestrate
Cross-cutting validation methodology for verifying phase outputs and project integrity
rtk-ai/rtk
Enforces red-green-refactor for Rust work, with idiomatic test patterns, a naming convention and a pre-commit gate of cargo fmt, clippy and test.
iOfficeAI/AionUi
Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.
axone-protocol/contracts
Guide for writing conventional commit messages. An agent skill from axone-protocol/contracts.
axone-protocol/contracts
Repository quality gates for Rust and generated artifacts. An agent skill from axone-protocol/contracts.
axone-protocol/contracts
Best practices for designing CosmWasm smart contract APIs. An agent skill from axone-protocol/contracts.
axone-protocol/contracts
Guide for writing Rust doc comments that produce accurate generated contract documentation.
axone-protocol/contracts
Axone contract structure and Abstract SDK patterns. An agent skill from axone-protocol/contracts.
axone-protocol/contracts
Axone deployment workflows with cargo-make, cw-orch, and Abstract.
Works with
Categories
Patterns for Rust testing in Axone CosmWasm contracts. An agent skill from axone-protocol/contracts. Rust Testing is an agent skill from axone-protocol/contracts. Patterns for Rust testing in Axone CosmWasm contracts.
Rust Testing fits situations like: adding unit tests; integration tests; data-driven cases; coverage-oriented test scenarios.
Run `npx skills add axone-protocol/contracts --skill rust-testing -a claude-code`. Or copy the skill folder (.agents/skills/rust-testing in axone-protocol/contracts) into .claude/skills/rust-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add axone-protocol/contracts --skill rust-testing -a codex`. Or copy the skill folder (.agents/skills/rust-testing in axone-protocol/contracts) into .agents/skills/rust-testing in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add axone-protocol/contracts --skill rust-testing -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rust-testing, .gemini/skills/rust-testing, .github/skills/rust-testing and .opencode/skills/rust-testing in your project.
Going by SKILL.md and its folder, Rust Testing needs the command-line tools its instructions call (cargo).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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.
Rust Testing is published under the BSD-3-Clause licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 501 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Rust Testing: cargo-pgrx Commands and Tests (yugabyte/yugabyte-db, 11k stars), Testing (static-web-server/static-web-server, 2.4k stars), Rust Testing (kurealnum/dotfiles, 290 stars) and Validation (josstei/maestro-orchestrate, 465 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
axone-protocol (a GitHub organization) maintains it in axone-protocol/contracts, which has 123 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on September 25, 2026.
Source: axone-protocol/contracts on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.