r-lifecycle SKILL.md skillA
r-lifecycle from posit-dev/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add posit-dev/skills/r-lifecycle@v1.1Pins v1.1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- posit-dev/skills
- Path
r-lib/r-lifecycle/SKILL.md- Versions recorded
- 1
- Latest version
- v1.1, committed Oct 6, 2026
- Size
- 5,950 bytes
- Repository stars
- 556
- License
- MIT
Guidance for managing R package lifecycle according to tidyverse principles using the lifecycle package. Use when: (1) Setting up lifecycle infrastructure in a package, (2) Deprecating functions or arguments, (3) Renaming functions or arguments, (4) Superseding functions, (5) Marking functions as experimental, (6) Understanding lifecycle stages (stable, experimental, deprecated, superseded), or (7) Writing deprecation helpers for complex scenarios.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# R Package Lifecycle Management
Manage function and argument lifecycle using tidyverse conventions and the lifecycle package.
## Setup
Check if lifecycle is configured by looking for `lifecycle-*.svg` files in `man/figures/`.
If not configured, run:
```r
usethis::use_lifecycle()
```
This:
- Adds lifecycle to `Imports` in DESCRIPTION
- Adds `@importFrom lifecycle deprecated` to the package documentation file
- Copies badge SVGs to `man/figures/`
## Lifecycle Badges
Insert badges in roxygen2 documentation:
```r
#' @description
#' `r lifecycle::badge("experimental")`
#' `r lifecycle::badge("deprecated")`
#' `r lifecycle::badge("superseded")`
```
For arguments:
```r
#' @param old_arg `r lifecycle::badge("deprecated")` Use `new_arg` instead.
```
Only badge functions/arguments whose stage differs from the package's overall stage.
## Deprecating a Function
1. Add badge and explanation to `@description`:
```r
#' Do something
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' `old_fun()` was deprecated in mypkg 1.0.0. Use [new_fun()] instead.
#' @keywords internal
```
2. Add `deprecate_warn()` as first line of function body:
```r
old_fun <- function(x) {
…Read the whole file at its exact version.
How to install
mdr add posit-dev/skills/r-lifecycle@sha256:41d93fc540e0b015The line at the top of this page pins the label v1.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_dyjn5wxaa7y72nrj)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Oct 6, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5950 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
posit-dev/skills · 556 stars · license MIT · pushed 2026-11-02 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_dyjn5wxaa7y72nrj GET https://markdownregistry.com/api/v1/resolve?ref=posit-dev/skills/r-lifecycle GET https://markdownregistry.com/api/v1/blob/41d93fc540e0b015ec6df8cb50a76baa578fbd1262a17ae5c3200f443d8c72df
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.