By cartodb
Skills for building, validating, and analyzing CARTO geospatial workflows.
npx claudepluginhub cartodb/workflows-assistantTips for visualizing analysis results on a CARTO map.
An AI-powered assistant for building CARTO Workflows using OpenCode and the carto CLI.
Follow the instructions at https://opencode.ai to install OpenCode. In macOS, should be enough to run:
brew install opencode
Create ~/.config/opencode/opencode.jsonc with the following content:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"google-vertex-anthropic": {
"models": {},
"options": {
"project": "carto-ai-staff-usage",
"location": "us-east5"
}
}
}
}
The CLI requires the @cloud-native/workflows-engine package from the CartoDB/cloud-native repository.
# Clone the cloud-native repository (required dependency)
git clone \
-b feat/workflows-validation-for-assistant \
https://github.com/CartoDB/cloud-native.git
# Install cloud-native dependencies (required for building workflows-engine)
cd cloud-native
# Review the cloud-native README
nvm install && nvm use
corepack enable && yarn install
cd ..
# Clone the carto-cli repository
git clone \
-b feature/workflows-engine-validation \
https://github.com/CartoDB/carto-cli.git
# Specify the custom path to cloud-native to link workflows-engine
cd carto-cli
./scripts/setup-engine.sh /path/to/cloud-native
# Build the CLI
npm install
npm run build
npm run bundle
The bundled CLI will be available at bundle/carto. Add it to your PATH or create a symlink:
# Option A: Create symlink to make 'carto' available globally, you may need sudo
ln -s $(pwd)/bundle/carto /usr/local/bin/carto
# Option B: symlink to the local bin folder if you have it configured
ln -s $(pwd)/bundle/carto $HOME/.local/bin/carto
git clone https://github.com/CartoDB/workflows-assistant.git
cd workflows-assistant
Copy the .env.template file to .env and fill in the required values:
cp .env.template .env
# Edit .env with your configuration values
Before using the assistant, source the environment file to load the variables:
source .env
carto auth login
carto auth status # verify authentication
Start OpenCode in the repository directory:
cd workflows-assistant
opencode
Press Tab to cycle through agents:
Select Workflows-Assistant to test the workflows agent. Before starting, please make sure that you are using Opus 4.5 via Vertex AI by running the /models command.
If you test this tool and run into any issues, missing functionality, or come up with feedback, please create an issue in this GitHub repository.
Some things that can help you diagnose errors if something is not working:
Authentication issues
carto auth logout
carto auth login
Check available connections
carto connections list
Verify CLI is working
carto workflows components list --connection <name|uuid>
Make sure that the OpenCode colorscheme is correct
# Use this command from OpenCode
/theme
7-day visitors to each marketplace page
Anthropic example skills
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
Ultra-compressed communication mode. Shortens prose while preserving technical terms, code, commands, and exact errors.