# Lading Preflight

> Environment validation checklist. Run this FIRST when starting a new Claude session to verify the environment is ready for optimization work. Checks Rust toolchain, ci/ scripts, build, benchmarking tools, profilers, memory tools, git state, and SMP CLI.

- Skill: `datadog/lading-preflight` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add datadog/lading-preflight`
- Raw SKILL.md: https://api.skillmd.com/api/skills/datadog/lading-preflight/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: datadog (https://skillmd.com/u/datadog)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/datadog/lading-preflight

---


# Run preflight script

```bash
.claude/skills/lading-preflight/scripts/preflight
```

**STOP on any failure.** Use the table below to suggest fixes for `[X]` items.

# Offer suggestions then ask before proceeding

For each failed check, show the user the suggested fix from the table below and **ask if they want you to run it**. Do NOT automatically execute fixes — wait for user confirmation before taking action.

| Failed Check                             | Fix                                                               |
| ---------------------------------------- | ----------------------------------------------------------------- |
| rustc not found                          | `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \| sh` |
| cargo not found                          | Reinstall rustup                                                  |
| cargo-nextest not found                  | `cargo install cargo-nextest`                                     |
| ci/* not executable                      | `chmod +x ci/*`                                                   |
| ci/check failed                          | `cargo update`, check dependency issues                           |
| payloadtool build failed                 | Check Rust version and dependencies                               |
| hyperfine not found                      | `brew install hyperfine`                                          |
| cargo-criterion not found                | `cargo install cargo-criterion`                                   |
| criterion benchmarks missing             | Check `lading_payload/benches/` and `Cargo.toml`                  |
| payloadtool --memory-stats not supported | Rebuild payloadtool from current branch                           |
| git user.name not set                    | `git config user.name "Your Name"`                                |
| git user.email not set                   | `git config user.email "you@example.com"`                         |
| gh not found                             | `brew install gh`                                                 |
| aws CLI not found                        | `brew install awscli`                                             |
| smp not found                            | `.claude/skills/lading-preflight/scripts/install_smp`             |

