Does anyone have a template for a commission based NFT smart contract?

Hi there,

Does anyone have a template for a commission based NFT smart contract?

I. e. every time anyone buys the NFT the OP gets x percent in commission.

Ideally this contract should also be compatible with OpenSea so I can sell the NFT there.

Also, I prefer a long contract in just one file only without import statements.

Anyone has a template like this?