A good starting point for own experiments with the RGB shield is the APA102 library by tinue. We are using software SPI because the pins of the Arduino MKR RGB shield are not connected to the SPI interface of the Raspberry Pi.
sudo apt install python-pip3
sudo pip3 install apa102-pi