How can I add a custom role capability to use in a custom plugin?

How can I add a custom role capability to use in a custom plugin?

error code: 523