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
Copy the install prompt. Use the green button above this README.
Send it to your agent. Paste it into your coding agent’s chat and send.
Review the setup. Your agent checks the skill’s instructions, requirements, and installation scope.
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.
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.