# Install Rust Best Practices in Google Antigravity

Source: https://github.com/apollographql/skills/tree/main/skills/rust-best-practices
Listing: https://www.antigravityskills.org/skill/rust-expert
Safety review (2026-10-14): Markdown-only Rust guide with no scripts or API keys; the agent may run cargo (including cargo install) and edit your files.

## Rules for the agent
- Before running anything, tell the user what you will download and whether it contains scripts, and ask them to confirm.
- Install into this project (.agents/skills/) unless the user asks for a global install (~/.gemini/config/skills/).
- Do not run other commands from the source repository unless the user asks.

## Steps
1. Download the repository

```bash
git clone --depth 1 https://github.com/apollographql/skills /tmp/apollo-skills && git -C /tmp/apollo-skills log -1 --format=%h -- skills/rust-best-practices
```

   The second command prints the last commit that changed this skill. We reviewed fd9e4ba; a different hash means the skill changed after our review.
2. Copy the skill into this project (workspace skill)

```bash
mkdir -p .agents/skills && cp -r /tmp/apollo-skills/skills/rust-best-practices .agents/skills/
```

   Run from your project root. Antigravity then reads .agents/skills/rust-best-practices/SKILL.md plus its references/ folder (keep both; SKILL.md links to the chapters).
3. Or install it for all projects (global skill)

```bash
mkdir -p ~/.gemini/config/skills && cp -r /tmp/apollo-skills/skills/rust-best-practices ~/.gemini/config/skills/
```

   Use this instead of the previous step. For the Antigravity CLI the global folder is ~/.gemini/antigravity-cli/skills/.
4. Check that Antigravity sees it
   Antigravity 2.0 app: start a new conversation and ask "What skills do you have?"; rust-best-practices should be listed. Antigravity CLI: run /skills (/skills reload in a session that was already open).

Note: The apollographql/skills README documents the Skills CLI, the Claude Code plugin and gh skill, and does not mention Antigravity. These steps copy the plain SKILL.md folder into Antigravity's standard skill folders. No API keys; you need cargo, rustc and rustfmt on PATH for the agent's checks.

Done when the skill is listed: in the Antigravity 2.0 app ask "What skills do you have?" in a new conversation (the app has no /skills command); in the Antigravity CLI run /skills (run /skills reload first in a session that was already open).
