posit-dev

Btw — Development skill for Claude Code

Development community

A complete toolkit for connecting R and LLMs.

How to install Btw

This entry records only its repository, not the path inside it, so there is no exact command to give. Open posit-dev/btw and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Btw does

A complete toolkit for connecting R and LLMs.

Alternatives in Development

  • Create Blog Article For Claude Code Component — You will create a complete, SEO-optimized blog article for a Claude Code component 23.4k ★
  • Claude Hooks Mastery — 3,300+ Complete mastery guide for Claude Code hooks with production-ready scripts 3.4k ★
  • Ralphy — My Ralph Wiggum setup, an autonomous bash script that runs Claude Code, Codex, OpenCode, Cursor agent, Qwen & 2.8k ★

README

btw btw website

A complete toolkit for connecting R and LLMs

[![CRAN status](https://www.r-pkg.org/badges/version/btw)](https://CRAN.R-project.org/package=btw) [![R-universe version](https://posit-dev.r-universe.dev/btw/badges/version)](https://posit-dev.r-universe.dev/btw) [![R-CMD-check](https://github.com/posit-dev/btw/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/posit-dev/btw/actions/workflows/R-CMD-check.yaml) [![Codecov test coverage](https://codecov.io/gh/posit-dev/btw/graph/badge.svg)](https://app.codecov.io/gh/posit-dev/btw)

Overview

btw helps R users work with Large Language Models, whether you’re pasting context into ChatGPT, chatting with an AI assistant in your IDE, or building LLM-powered applications.

The challenge: LLMs need context about your R environment to be helpful—your data structures, the packages you’re using, relevant documentation.

btw provides a flexible toolkit that works across different workflows:

  • Copy-paste to external LLMs: Quickly gather context from your R session and copy it to your clipboard for pasting into ChatGPT, Claude, or any other chat interface.
  • Interactive chat in R: Launch a full-featured AI assistant directly in your IDE that can explore your environment, read documentation, and help you write code.
  • Build LLM-powered tools: Integrate btw’s capabilities into your own applications, whether you’re creating custom chat interfaces or connecting R to coding agents.

Quick Start

Copy-paste workflow

Use `btw()` to gather context from your R session and copy it to your clipboard:

library(btw)

# Describe a data frame
btw(mtcars)

# Include package or function documentation
btw("{dplyr}", ?dplyr::across)

# Combine multi