In short.
r-cli-app is a skill for R developers using AI coding assistants to create command-line apps, with the catch that argument meaning depends on precise Rapp declaration patterns. Skill version 1.1 documents Rapp v0.3.0, including optional values, subcommand scope, launcher installation and package testing. Three evaluation tasks define expected behavior but supply no generated apps, scores or execution results.
Researched and written by an AI model and checked by a second AI model. How it works
The supplied scope covers all nine files in r-lib/r-cli-app at revision 951959403f4ecc9d0274adf35538fc67153b6f31: SKILL.md, references/advanced.md and seven evaluation files. The repository root LICENSE is included as the related notice outside that folder. Other skills, the Rapp implementation, dependency source and assistant integrations are outside scope. No code was executed, and generated applications, completed evaluation results and runtime compatibility were not assessed.
The overview
Identity
r-cli-app is the agent skill in posit-dev/skills at r-lib/r-cli-app. Its metadata names Garrick Aden-Buie as author and identifies skill version 1.1. It teaches an assistant how to build R command-line applications using Rapp; the selected folder does not contain the Rapp package implementation.
The original source folder is [https://github.com/posit-dev/skills/tree/main/r-lib/r-cli-app]. The resource consists of SKILL.md, an advanced reference and supporting evaluation files.
Assessment
The skill offers useful guidance for turning an R script with hardcoded settings into a command-line tool, or shipping tools inside an R package. Its strongest feature is the explicit mapping between R declarations and command-line inputs, supported by examples of optional values, switches and subcommands.
The evaluation materials specify what correct assistant output should contain, including preserving an existing script's behavior. They establish intended behavior, not demonstrated reliability: generated solutions, completed assessments and execution results are absent.
Users
R users with working scripts can use the guidance to expose file paths and settings as command-line arguments. Beginners still need enough R knowledge to understand assignments, missing values, file operations and package dependencies.
Experienced developers may find the package exec/ layout, global versus command-local options, machine-readable help and testthat patterns useful. Compatibility with particular AI assistants or skill-loading systems is not established by the supplied files.
Capabilities
The skill documents named string and numeric options, boolean switches, required and optional positional arguments, repeated options and variadic inputs. It explains argument descriptions, short aliases, nested subcommands and both human-readable --help and machine-readable --help-yaml.
It also covers standard input and output, error messages, exit status, interactive debugging and distributing launchers from R packages. The advanced reference adds launcher configuration and examples for inspecting computed values, snapshotting output and checking file changes.
Using it
Requirements
The documented runtime requirement is R 4.1.0 or newer, plus Rapp and an accessible Rapp launcher. SKILL.md describes Rapp v0.3.0; compatibility with other versions is not established here.
Resulting applications need their own dependencies. The Markdown conversion input uses commonmark, the todo example uses yaml, and the package-installation example uses remotes. These are example-specific dependencies. The folder provides no assistant-specific installation or activation procedure.
Mechanism
Rapp is documented as deriving the command-line interface from recognized R expressions. A scalar default becomes a named option; TRUE or FALSE becomes a boolean toggle; NA_character_ becomes an optional string option; NULL becomes a required positional argument unless annotated otherwise. Positional inputs arrive as character strings and require explicit conversion when another type is needed.
Hash-pipe annotations supply help text and overrides. A supported switch() structure declares subcommands: assignments before it are global, while declarations inside a command branch are local. Ordinary assignments inside functions, loops or conditionals are not recognized as argument declarations. Optional named values use is.na(), whereas optional positional values use is.null().
Setup
The documented R setup is install.packages("Rapp"), followed by Rapp::install_pkg_cli_apps("Rapp"). The default launcher location is ~/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\R\Rapp\bin on Windows. The launcher must be accessible through PATH.
Standalone macOS/Linux scripts use #!/usr/bin/env Rapp and executable permissions; Windows users invoke Rapp myscript.R explicitly. For package distribution, scripts go in exec/, Rapp goes in Imports, and users install launchers with Rapp::install_pkg_cli_apps("mypkg"). Keep references/advanced.md alongside SKILL.md because the skill links to it.
Example
The conversion task starts with an actual R script that renders Markdown files to HTML using commonmark. Its paths and recursion setting are hardcoded. The requested conversion makes input_dir and output_dir required positional arguments, template an optional named option, and recursive a boolean defaulting to TRUE.
The expected declarations are input_dir <- NULL, output_dir <- NULL, template <- NA_character_ and recursive <- TRUE. The rubric requires an NA-aware template check while preserving Markdown conversion, template substitution, directory creation and library loading. An illustrative invocation would be Rapp md-render.R posts/ public/ --template template.html --no-recursive. No converted md-render.R or result from that invocation is supplied.
Assessment & evidence
Limitations
Argument declarations have structural consequences. Confusing NA with NULL changes an optional named option into a positional argument. Recognized scalar assignments at script level become options, so adapting an existing script requires deciding which values should be exposed. These consequences follow from the documented mapping; their behavior has not been assessed through execution.
The variadic mapping table uses a name ending in ... assigned NULL, while examples use a name ending in ... assigned c(). The supplied material does not demonstrate whether these forms behave equivalently. The dotenv task also supplies no implementation, leaving handling of quoting, comments, escaping and malformed files unknown.
Reasoning
The skill's practical value comes from putting easy-to-confuse Rapp conventions beside concrete examples. The conversion task distinguishes required paths from an optional template, the CSV task combines column selection with verbose and output options, and the dotenv task separates a global file option from command-local arguments.
These examples support its usefulness as implementation guidance. They do not establish better assistant accuracy, faster development, fewer defects or production suitability, because comparative measurements and completed task results are absent.
Alternatives
The evaluation rubrics name optparse, argparse, docopt and manual commandArgs() parsing as approaches that the requested Rapp solutions should avoid. They provide no comparative assessment of those approaches. Rapp is described as an alternative Rscript front-end, but compatibility across existing scripts and migration costs are not measured.
For an established CLI using another parser, these files do not demonstrate that migration would improve the application. The concrete reason to consider this skill is a decision to adopt Rapp's declaration-based interface.
Evidence
The supplied resource contains SKILL.md, references/advanced.md and seven evaluation files: three for script conversion, two for CSV summarization and two for subcommands. Only the conversion task includes an input program. The other task files describe requested applications and assessment criteria.
No generated applications, completed scoring reports, model identities or execution logs are included. Runtime correctness, assistant success rates and platform compatibility remain unassessed. The version-specific main file is available at [https://raw.githubusercontent.com/posit-dev/skills/951959403f4ecc9d0274adf35538fc67153b6f31/r-lib/r-cli-app/SKILL.md].
Access & freshness
Costs
The supplied files state no prices, assistant subscription requirements, model usage, token consumption or measured operating costs. Total cost is unknown. The MIT permissions describe reuse rights; they do not establish the cost of an AI assistant, the R environment or support.
Rights
SKILL.md declares MIT, and the repository root LICENSE carries Copyright (c) 2025 Posit PBC. That notice permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions. It also disclaims warranties.
These notices support redistribution of the captured skill material with the required notice. Licences for Rapp, example dependencies and any AI assistant are outside the supplied evidence.
Freshness
The supplied snapshot was captured on 2026-11-16 at 23:00:34.248 UTC from revision 951959403f4ecc9d0274adf35538fc67153b6f31. Its metadata states skill version 1.1, and its instructions describe Rapp v0.3.0.
The capture timestamp is not a release or last-maintenance date. Whether the main branch, Rapp API or installation behavior has changed since this revision is unknown.
Actions
Before adopting the skill, confirm how your assistant loads skill folders and whether your Rapp version supports the documented patterns. Start with a small script and inspect its help output, required arguments, omitted optional values and boolean negation. For subcommands, check global and local option scope.
The reference proposes Rapp::run() for inspecting computed values, testthat snapshots for help and output, and direct checks of file changes. It specifies that --help returns NULL rather than an evaluation environment. Apply those checks to the resulting application; the supplied tasks provide criteria but no passing results.
