Adding Materials to a Linked Library

I have a .blend file containing all of my materials for a project. I have is setup so that by default these files are linked every time I start a new instance of blender. However, sometimes when I am working on a scene I end up editing a material or creating a new one that I want to add to the linked library. As far as I have seen there doesn’t seem to be a way to do this other than to open the original file and manually recreate the new material. I was wondering if there is any better way to do this, or if I have to edit the source file every time.