A plugin for Claude Code and other AI coding platforms providing Agent Skills for Bayesian modeling and reactive notebooks. Packages specialized knowledge for PyMC and marimo into skills that Claude loads on-demand.
| Skill | Description |
|---|---|
| pymc-modeling | Bayesian statistical modeling with PyMC v5+. Covers model specification, MCMC inference (nutpie, NumPyro), ArviZ diagnostics, hierarchical models, GLMs, GPs, BART, time series, and more. |
| pymc-testing | Testing PyMC models with pytest. Covers mock sampling with pymc.testing.mock_sample, pytest fixtures, and the distinction between fast structure-only tests (mocking) and slow posterior inference tests. |
| marimo-notebook | Reactive Python notebooks with marimo. Covers CLI, UI components, layout, SQL integration, caching, state management, and wigglystuff widgets. |
claude plugin marketplace add /path/to/python-analytics-skillsOr install from GitHub:
claude plugin marketplace add https://github.com/pymc-labs/python-analytics-skillsnpx skills add pymc-labs/python-analytics-skillsUse the install script to copy skills to any supported platform:
git clone https://github.com/pymc-labs/python-analytics-skills.git
cd python-analytics-skills
# Install to a specific platform
./install.sh claude # Claude Code (~/.claude/skills/)
./install.sh opencode # OpenCode (~/.config/opencode/skills/)
./install.sh gemini # Gemini CLI (~/.gemini/skills/)
./install.sh cursor # Cursor (~/.cursor/skills/)
./install.sh copilot # VS Code Copilot (~/.copilot/skills/)
./install.sh all # All platforms
# Install a specific skill
./install.sh claude -- pymc-modeling
# Preview without changes
./install.sh --dry-run claude# List available skills with descriptions
./install.sh --list
# Validate skill structure
./install.sh --validate| Platform | Install Location | Auto-Discovered |
|---|---|---|
| Claude Code | ~/.claude/skills/ |
Yes |
| OpenCode | ~/.config/opencode/skills/ |
Yes |
| Gemini CLI | ~/.gemini/skills/ |
Yes |
| Cursor | ~/.cursor/skills/ |
Yes |
| VS Code Copilot | ~/.copilot/skills/ |
Yes |
python-analytics-skills/
├── .claude-plugin/
│ ├── marketplace.json # Plugin registry metadata
│ └── plugin.json # Plugin configuration
├── skills/
│ ├── pymc-modeling/
│ │ ├── SKILL.md # Main skill instructions
│ │ └── references/ # 12 detailed reference docs
│ ├── pymc-testing/
│ │ ├── SKILL.md # Main skill instructions
│ │ └── references/
│ └── marimo-notebook/
│ ├── SKILL.md # Main skill instructions
│ ├── references/ # 4 reference docs
│ ├── assets/ # Notebook templates
│ └── scripts/ # Conversion utilities
├── hooks/
│ ├── hooks.json # Hook configuration
│ └── suggest-skill.sh # Keyword-based skill suggestion
├── install.sh # Multi-platform installer
├── package.json # npm package metadata
└── skills.json # Skills registry
The plugin includes a UserPromptSubmit hook that suggests relevant skills when it detects keywords in your prompt:
- PyMC keywords: bayesian, pymc, mcmc, posterior, inference, arviz, prior, sampling, divergence, hierarchical model, gaussian process, bart, etc.
- Marimo keywords: marimo, reactive notebook, @app.cell, mo.ui, etc.
Skill not loading:
- Verify the skill directory exists with a valid
SKILL.md - Run
./install.sh --validateto check structure - For Claude Code plugins, check
claude --debugfor hook/skill loading errors
Hook not firing:
- Hooks load at session start -- restart Claude Code after changes
- Use
/hooksin Claude Code to see loaded hooks - Test the hook script directly:
echo '{"user_prompt": "bayesian model"}' | bash hooks/suggest-skill.sh
See CONTRIBUTING.md for guidelines on adding new skills.
MIT License. See LICENSE for details.