npx claudepluginhub ivyleavedtoadflax/rapskillUK Government Reproducible Analytical Pipelines for R and Python
A Claude Code plugin that helps analysts implement Reproducible Analytical Pipelines (RAP) in R and Python, based on the UK Government Analysis Function methodology.
RAP applies software engineering best practices — version control, automated testing, dependency management, and build automation — to the production of official statistics, replacing manual spreadsheet processes with reproducible, auditable code.
Claude Code has a built-in plugin marketplace. No bootstrap or shell commands required.
In Claude Code, run:
/plugin marketplace add ivyleavedtoadflax/RapSkill
/plugin install rap
This installs 10 RAP skill files into your project, making them available as slash commands.
/rap-init my-statistics-pipeline # R project
/rap-py-init my-statistics-pipeline # Python project
| Command | Description |
|---|---|
/rap-init [name] | 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 <type> | Generate accessible statistical outputs: spreadsheet (a11ytables), charts (GOV.UK theme), report (R Markdown) |
/rap-test | Set up testthat infrastructure and generate test skeletons for existing R functions |
/rap-pipeline | Configure {targets} build automation with a dependency-aware _targets.R |
| Command | Description |
|---|---|
/rap-py-init [name] | 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 <type> | Generate accessible statistical outputs: spreadsheet (gptables), charts (matplotlib GOV.UK theme), report (Jupyter notebook or Quarto) |
/rap-py-test | Set up pytest infrastructure and generate test skeletons for existing Python functions |
/rap-py-pipeline [type] | Configure build automation: make (default, Makefile) or dvc (for complex data pipelines) |
The UK government defines three cumulative levels of RAP compliance. /rap-check and /rap-py-check audit your project against all 18 checks.
| Requirement | R Tooling | Python Tooling |
|---|---|---|
| Minimal manual intervention | {targets} | Makefile / DVC |
| Comprehensive documentation | roxygen2 | Docstrings (numpy-style) |
| Standard directory structure | R/ package layout | src/ package layout |
| Reusable functions | R functions | Python functions |
| Coding standards | lintr / styler | ruff |
| Testing framework | testthat | pytest |
| Dependency management | renv | uv |
| Automatic logging | {logger} | logging (stdlib) |
| Tidy data format | tidyverse | pandas |
| Requirement | R Tooling | Python Tooling |
|---|---|---|
| Fully packaged | R package (NAMESPACE) | Python package (pyproject.toml + build-system) |
| CI/CD automation | GitHub Actions | GitHub Actions |
| Event/schedule triggers | CI triggers | CI triggers |
| Changelog & versioning | NEWS.md | CHANGELOG.md |
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
No description available.
Code intelligence powered by a knowledge graph — execution flows, blast radius, and semantic search