Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
RapSkill avatar

Rap

  • Updated June 3, 2026
  • ivyleavedtoadflax/RapSkill

rap helps build UK Government Reproducible Analytical Pipelines (RAP) in R and Python. Data practitioners use it to construct reproducible, standards-compliant analytical pipelines for government analysis. It applies the published RAP methodology to real R/Python codebases.

Key points

  • UK Gov RAP standard
  • R and Python
  • Reproducible analytical pipelines

Rap by the numbers

  • Data as of Jul 7, 2026 (Skillselion catalog sync)
/plugin marketplace add ivyleavedtoadflax/RapSkill
/plugin install rap@rapskill

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Last updatedJune 3, 2026
Repositoryivyleavedtoadflax/RapSkill

What it does

Builds UK Government Reproducible Analytical Pipelines (RAP) in R and Python following published RAP standards.

README.md

RAP Plugin for Claude Code

A Claude Code plugin that helps analysts implement Reproducible Analytical Pipelines (RAP) in R and Python, based on the UK Government Analysis Function methodology.

Installation

In Claude Code, run:

/plugin marketplace add ivyleavedtoadflax/RapSkill
/plugin install rap

No bootstrap or shell commands required — Claude Code's built-in plugin marketplace handles everything.

Available Commands

R

Command Description
/rap-init Scaffold a RAP-compliant R project with standard directory structure, configuration files, and starter templates
/rap-check Audit your R project against the three UK government RAP maturity levels (Baseline/Silver/Gold)
/rap-output Generate accessible statistical outputs: spreadsheets (a11ytables), GOV.UK-styled charts (govstyle), R Markdown reports
/rap-test Set up testthat infrastructure and generate starter test files for existing R functions
/rap-pipeline Configure {targets} build automation with a generated _targets.R reflecting your workflow

Python

Command Description
/rap-py-init Scaffold a RAP-compliant Python project with src/ layout, pyproject.toml, and uv dependency management
/rap-py-check Audit your Python project against the three UK government RAP maturity levels (Baseline/Silver/Gold)
/rap-py-output Generate accessible statistical outputs: spreadsheets (gptables), GOV.UK matplotlib theme, Jupyter notebook or Quarto reports
/rap-py-test Set up pytest infrastructure and generate starter test files for existing Python functions
/rap-py-pipeline Configure build automation: Makefile (default) or DVC pipeline for complex data workflows

Python Tooling

The Python skills use modern, well-supported tools:

Purpose Tool Why
Dependency management uv Fast, lockfile-based, PEP 621 compliant
Testing pytest Universal Python testing standard
Linting & formatting ruff Fast all-in-one linter and formatter
Accessible spreadsheets gptables GSS-maintained, UK gov standard
Charts matplotlib With GOV.UK accessible theme
Reports Jupyter / Quarto Notebook default, Quarto optional
Build automation Make / DVC Simple default, DVC for complex pipelines

RAP Maturity Levels

The UK government defines three levels of RAP compliance:

Baseline

  • Code written in an open-source language (R or Python)
  • Version controlled with Git
  • Repository includes README with reproduction steps
  • Code has been peer reviewed
  • Code is published openly

Silver (all Baseline requirements plus)

  • Outputs produced with minimal manual intervention
  • Comprehensive documentation including function docstrings
  • Well-organized code following standard directory structure
  • Reusable functions used where appropriate
  • Adherence to coding standards
  • Testing framework
  • Dependency management
  • Automatic logging
  • Tidy data format for outputs

Gold (all Silver requirements plus)

  • Code is fully packaged
  • Automated testing via CI/CD (GitHub Actions)
  • Process runs on event-based triggers or schedule
  • Changes documented with changelog and semantic versioning

UK RAP Resources

Related skills

Data Science & MLpipelinesetl

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.