I noticed that the characterizations of the Lie algebras of matrix Lie groups can be obtained by differentiation. For example:
$$O(n) = XX^t = \mathbb{1} \implies \mathfrak{o}(n) = X + X^t = \mathbb{0}$$
$$SO(n) = XX^t = \mathbb{1},\; \text{det}(X) = 1 \implies \mathfrak{so}(n) = X + X^t = \mathbb{0},\; tr(X)=0$$
but it works also for $U(n), SU(n), Sl(n,\mathbb{K})$.
Does this work for a general Lie group?
The matrix groups can be defined as regular level sets of functions $f: GL(n) \to M$ where $M = \mathbb R$ (e.g. for $SL(n)$) or $M = n\times n$ matrices (e.g. for $O(n)$). In general, if you have a map $f: M \to N$ and $y \in N$ is a regular value then $f^{-1}(y)$ is a submanifold and $T_xf^{-1}(y) = \ker df_x : T_x M \to T_y N$. So in the case of $O(n)$ for example you're differentiating the function $X \mapsto XX^t$ at the identity to see that its Lie algebra (identifiable with $T_e O(n)$ is skew-symmetric matrices.