Custom slot example

Can someone provide a complete example of how a custom slot needs to be defined?

This includes the actions.py, domain.yml, stories.MD and nlu.MD…