- Home
- Skills
- Workflow Automation
- targetfy
More screenshots
Works with the AI Agents you already use
targetfy
Convert R script sequences into verified, reproducible {targets} pipelines with automated equivalence checking.
Free
targetfy
Example session with this skill installed
Convert my linear scripts 01_load.R and 02_analyze.R into a targets pipeline. Verification is important.
- Read your context and instructions
- Compiled the targetfy
- Generated the document
I have analyzed the script sequence and generated a {targets} pipeline. I performed an Equivalence Check using R 4.3.2; both the original scripts and the new pipeline produced identical objects.
Generated Pipeline Files
I have created the following files in your project directory:
_targets.R: The main pipeline definition.R/01_load_functions.R: Extracted functions for data ingestion.R/02_analyze_functions.R: Extracted functions for analysis.targetfy-report.md: Full conversion and verification logs.
library(targets)
library(tarchetypes)
tar_source()
tar_option_set(packages = c("readr", "dplyr", "ggplot2"))
list(
tar_file_read(
raw_data,
"data/raw_input.csv",
read = readr::read_csv(!!.x)
),
tar_target(
cleaned_data,
clean_raw_data(raw_data)
),
tar_target(
analysis_results,
run_analysis(cleaned_data)
),
tar_target(
final_plot,
create_summary_plot(analysis_results),
format = "file"
)
)
Next steps
- Run
targets::tar_make()to execute the pipeline and cache results. - Review
targetfy-report.mdfor details on dropped lines or unresolved objects. - Use
targets::tar_visnetwork()to view the interactive dependency graph.
targetfy.pdf
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Managing R scripts for long-running analyses often leads to broken dependencies and redundant re-computation. This skill converts linear R scripts into reproducible {targets} pipelines, automating the transition to a formal Directed Acyclic Graph (DAG) architecture.
What it does
- Script Conversion transforms sequential
.Rfiles into a modular{targets}pipeline including_targets.Rand supporting functions. - Equivalence Verification runs a side-by-side comparison of the original script and the new pipeline in a sandbox to ensure identical output.
- Dependency Mapping identifies input files, written outputs, and handoff objects between scripts to define target relationships.
- Static Analysis validates pipeline syntax and package requirements without executing the code.
- Pipeline Visualization generates interactive dependency graphs using
tar_glimpseto inspect the workflow structure.
How it works
- Preflight scans the R environment and script sequence to identify required packages and define generated file names.
- Analysis reads the source code to extract steps, unresolved objects, and file paths.
- Synthesis generates the functions folder and the main pipeline script according to modern
{targets}patterns. - Validation performs either an Equivalence Check (execution-based) or a Static Check (parsing-based) to ensure correctness.
Frameworks & tools
Built for the R ecosystem using {targets}, {tarchetypes}, {callr}, and {jsonlite}. It supports standard R scripts and project structures utilizing renv or .Rproj files.
Why this beats prompting it yourself
Manual conversion often misses subtle object handoffs or fails to track external file dependencies correctly. This skill uses specialized R scripts to verify that the resulting pipeline produces byte-identical results to your original code.
Use cases
- Migrating a legacy "run all" R script into a cacheable production pipeline.
- Modularizing monolithic analysis scripts into discrete, testable R functions.
- Setting up parallel execution for independent analysis branches.
- Adding automated file tracking to existing data processing workflows.
Known limitations
Does not support .Rmd, .qmd, or .ipynb source files yet. It is not suitable for non-linear analyses like Shiny apps or R package source code.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 13 days ago
- Free with an Agensi account
- Software
- R 4.1+targets 1.12+
Git
Permissions
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.