Back to directory

Rust Lifetimes

Agent skill
1 skill

Detect lifetime bugs and teach lifetime best practices in Rust. Covers why lifetimes exist (preventing dangling references), the three lifetime elision rules, lifetime annotations on functions/structs/methods, 'static and its overuse as a silence-fix, generic lifetime parameters, lifetime bounds (T: 'a, T: 'static), and self-referential structs. Trigger keywords: lifetime, 'a, 'static, elision, E0106, E0309, E0310, E0515, E0597, dangling reference, borrowed value does not live long enough, does not live long enough, cannot return reference, missing lifetime specifier, may not live long enough, reference has a longer lifetime, outlives, borrow checker. Auto-triggers when: any lifetime-related compile error appears (E0106/E0309/E0310/E0515/E0597), a developer adds a 'static bound to make a borrow-checker error disappear, a struct definition holds a reference field, or a function returns a reference tied to input parameters.

Install with
Claude CodeCodexCursorGitHub CopilotGemini CLI

Supported by the Atlas install prompt. Skill-specific requirements vary.

Skill stats

Skills1CategoryEngineeringStars0

About this skill

Detect lifetime bugs and teach lifetime best practices in Rust. Covers why lifetimes exist (preventing dangling references), the three lifetime elision rules, lifetime annotations on functions/structs/methods, 'static and its overuse as a silence-fix, generic lifetime parameters, lifetime bounds (T: 'a, T: 'static), and self-referential structs. Trigger keywords: lifetime, 'a, 'static, elision, E0106, E0309, E0310, E0515, E0597, dangling reference, borrowed value does not live long enough, does not live long enough, cannot return reference, missing lifetime specifier, may not live long enough, reference has a longer lifetime, outlives, borrow checker. Auto-triggers when: any lifetime-related compile error appears (E0106/E0309/E0310/E0515/E0597), a developer adds a 'static bound to make a borrow-checker error disappear, a struct definition holds a reference field, or a function returns a reference tied to input parameters.

Quick start

  1. Copy the install prompt. Use the green button above this README.
  2. Send it to your agent. Paste it into your coding agent’s chat and send.
  3. Review the setup. Your agent checks the skill’s instructions, requirements, and installation scope.
Review, license & listing details
Review the source before using this skill

This is an imported listing. We haven’t certified its safety, license, or compatibility. Skills may include executable scripts.

Automated security scan: Partial

Only SKILL.md was scanned. Supporting files and scripts were not checked. No safety grade has been assigned.

0 potential findings · Scanned 11/4/2026 · Scanner 0.2.1

Content SHA-256: 1892348ceb3ca9fe66fdf5b52f6d0bb6d88e78d1bcb75f6e4eb2b0bfd1d78362

About scan coverage and limitations

About this listing

Category
Engineering
Reported license
MIT
Listing language (estimated)
English
Review status
Not individually reviewed
Agent compatibility
Atlas installation supports Claude Code, Codex, and Cursor. Skill-specific dependencies and features are checked during setup.
Rust Lifetimes | Agent Skills Atlas