You could definitely make a trait check script similar to the ones in the template. Pretty sure all the queries are there for it.
I have looked through the files. Fantastic!
I've noticed that events for attributes never get cleared (problematic when boosted before dialog or after respec). I have almost no knowledge about story scripting but I think I did it right. The result is as expected.
IF
DialogEnded(_DialogName,_InstanceID)
THEN
ProcClearEvents();
PROC
ProcClearEvents()
AND
DB_EventSet(_Event)
THEN
GlobalClearEvent(_Event);
NOT DB_EventSet(_Event);
These files are really precious. Thank you for letting me know.
EDIT: Forgot to remove the DB_EventSet entries after clearing the events.