carto-composite-scoring
Installation
SKILL.md
Use this skill whenever the user wants to create a composite score, index, or multi-variable ranking in a CARTO Workflow.
Prerequisites: Load carto-create-workflow for the development process.
Instructions
Step 1: Determine the scoring approach
Ask the user the following decision tree:
- "Do you have a target/outcome variable?" (e.g. revenue, sales, crime rate)
- Yes → Supervised method using
native.spatialcompositesupervised
- Yes → Supervised method using
- "No target, but do you have expert knowledge of variable importance?" (i.e. custom weights)
- 2a. Transparency matters more than node count →
native.normalizeper variable +native.selectexpressionwith the weighted-sum literally in SQL (a_norm * 0.5 + b_norm * 0.2 + c_norm * 0.3). Inputs and weights are inspectable inline in Workflows; each normalized column is materialized; no Analytics Toolbox dependency. Use when stakeholders need to see/audit the formula, or when you're not running on AT. - 2b. Want the AT pipeline (scaling, aggregation, bucketing) handled for you →
native.spatialcompositeunsupervisedwithscoring_method: CUSTOM_WEIGHTS. One node, but the formula is hidden inside the component.
- 2a. Transparency matters more than node count →
- "No target, no weights?"
- → Unsupervised method with
ENTROPYorFIRST_PCusingnative.spatialcompositeunsupervised
- → Unsupervised method with
Success: You have identified which component and scoring method to use before designing the pipeline.