Is there any way to store a script and its data as an asset?

Hello!

So lets say i have a weapon skin script that has a couple of variables like name, color, material ect…

I would like to store JUST THE SCRIPT as an asset in a folder that i can use later. Is there any way to do this or do i need to just attach the script to a GameObject and save that as a prefab?

Thank You!

you should be able to click on the script in the project window and fill in the perimeters, no?