From bagklog (“wise after the event”) + -skab.
bagklogskab c (singular definite bagklogskaben, not used in plural form)