More screenshots

    Works with the AI Agents you already use

    targetfy

    by Athos Damiani

    1

    Convert R script sequences into verified, reproducible {targets} pipelines with automated equivalence checking.

    Free

    Security scanned
    targetfy

    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

    1. Run targets::tar_make() to execute the pipeline and cache results.
    2. Review targetfy-report.md for details on dropped lines or unresolved objects.
    3. Use targets::tar_visnetwork() to view the interactive dependency graph.

    targetfy.pdf

    PDF · document

    Generated

    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 .R files into a modular {targets} pipeline including _targets.R and 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_glimpse to inspect the workflow structure.

    How it works

    1. Preflight scans the R environment and script sequence to identify required packages and define generated file names.
    2. Analysis reads the source code to extract steps, unresolved objects, and file paths.
    3. Synthesis generates the functions folder and the main pipeline script according to modern {targets} patterns.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Listed13 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the migration of linear R scripts into the {targets} framework, solving the common problem of broken dependencies and redundant re-computations in long-running data analyses.

    Yes, it uses a sandbox environment to run a side-by-side comparison between your original script and the new pipeline, ensuring the final output is byte-identical.

    This skill is designed for standard .R files and R project structures; however, it does not currently support .Rmd, .qmd, or Jupyter Notebook files.

    The skill performs static analysis to identify all necessary packages and supports environments utilizing renv or .Rproj files for seamless integration.

    You receive the core conversion engine, a suite of verification tools for equivalence checking, and documentation for integrating the skill into your existing AI agent workflow.

    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.

    Free