/flowr:flowrfrom flowR
Statically analyzes R code using flowR for program slicing, dependency extraction, linting, and dataflow queries. Useful for understanding variable origins, finding unused code, and inspecting package function signatures.
Ships in flowR. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
flowR analyzes R code without running it and understands R's scoping. Prefer it over grepping when the question is about dataflow ("where does this value come from", "is this used") rather than text.
flowR answers queries, the most useful being:
{"type":"static-slice","criteria":["12@x"]}: the minimal code affecting x in line 12 (also 12:5 for line 12, column 5).{"type":"linter"}: lint findings, optionally only some "rules". Findings marked uncertain deserve a second look.{"type":"dependencies"}: loaded libraries, files read and written, plots.{"type":"guess-dep-versions"}: the package versions the code works with, optionally only those released before a "date".{"type":"call-context","callName":"^read_"}: all calls matching a regex.{"type":"signature","package":"dplyr","function":"across"}: signature, properties, and calls of a package function, optionally in a "version" (globs allowed, no code needed).{"type":"function-info","name":"filter"}: the packages exporting a function (no code needed).Every other query of the Query API works the same way.
If the flowr MCP server is connected, pass the queries to its query tool together with R code (or, locally,
files: R files or project folders).
Otherwise, run them with flowR itself (needs Node.js 22 or newer, no R), giving a JSON array of queries and the
code as file:// paths of R files or project folders:
npx -y --omit=optional --ignore-scripts @eagleoutice/flowr --default-engine tree-sitter -e ':query* [{"type":"static-slice","criteria":["12@x"]}] file://analysis.R'
The answer is JSON. Inline code works as well, as the last argument in place of the file:// path, with its
statements on separate lines (-e splits commands at ;). Version guessing
and signature search download flowR's signature database (about 66 MB) once, into ~/.cache/flowr.
To have the query tool in every session instead, add the MCP server once:
claude mcp add flowr -- npx -y --omit=optional --ignore-scripts @eagleoutice/flowr-mcp
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub flowr-analysis/flowr --plugin flowrOther plugins' skills for the same job