This question is inspired by this earlier post. The question that I'm interested in is as follows:
Let $S= \{A \in \mathbb{Q}^{k \times k} : A^6 = I \text{ and }A^n \ne I \text{ for any }0 < n < 6\}$. How many orbits under conjugation by $GL_k(\mathbb{Q})$ does $S$ contain?
Per the argument that I've given in the linked post, it suffices to list representatives in rational canonical form. Thus, it is equivalent to enumerate the multisets of irreducible polynomials $\{p_1,\dots,p_n\}$ (which are the polynomials corresponding to companion matrix blocks) each of which divides $x^6-1$, whose degrees sum to $k$, and whose lcm divides $x^6 - 1$ but no polynomial of the form $x^n - 1$ for $n < 6$.
Of course, there is only one such multiset in the case of $k=2$, hence the answer to the linked question. As $k$ grows things get trickier. For $k=5$, we have $$ \{x^2 - x + 1, x \pm 1, x \pm 1, x\pm 1\}\\ \{x^2 + x + 1, x+1, x\pm 1, x\pm 1\}\\ \{x^2 - x + 1, x^2 \pm x + 1 ,x \pm 1\}\\ \{x^2 + x + 1, x^2 + x + 1, x+1\}\\ $$ For a total of $14$ conjugacy classes.
How might one approach this problem in general?
Please read my comments under the OP's question. In this answer, I would like to only address the case $m=6$, that is, the situation the OP asks for. I do not know how to deal with the general exponent $m$.
As we have established, the characteristic polynomial involved in each indecomposable block of $A$ is one of the following four cyclotomic polynomials: $$\Phi_1(x)=x-1\,,\,\,\Phi_2(x)=x+1\,,\,\,\Phi_3(x)=x^2+x+1\,,\text{ and }\Phi_6(x)=x^2-x+1\,.$$ Now, $A$ must have at least one indecomposable block of size $2\times 2$. Let $a$ and $b$ denote the number of $2$-by-$2$ indecomposable blocks of $A$ and the number of $1$-by-$1$ blocks of $A$. Then, $a\geq 1$ and $2a+b=k$. Denote by $J_1,J_2,\ldots,J_a$ the $2$-by-$2$ blocks of $A$, whereas $K_1,K_2,\ldots,K_b$ the $1$-by-$1$ blocks. We may assume that $J_1,J_2,\ldots,J_p$ have $\Phi_6$ as the characteristic polynomial, whereas $J_{p+1},J_{p+2},\ldots,J_a$ have $\Phi_3$ as the characteristic polynomial. Similarly, suppose that $K_1,K_2,\ldots,K_q$ have $\Phi_2$ as the characteristic polynomial, whilst $K_{q+1},K_{q+2},\ldots,K_b$ have $\Phi_1$ as the characteristic polynomial.
If $p\geq 1$, then there is no restriction on $q$. Thus, for each fixed $a\in\Biggl\{1,2,\ldots,\left\lfloor\dfrac{k}{2}\right\rfloor\Biggr\}$, there are $a$ ways to choose $p\geq 1$ and $b+1=k-2a+1$ ways to choose $q$. Thus, for $p\geq 1$, there are $$\begin{align}\sum_{a=1}^{\left\lfloor\frac{k}2\right\rfloor}\,a(k-2a+1)&=(k-1)\,\sum_{a=1}^{\left\lfloor\frac{k}2\right\rfloor}\,a-4\,\sum_{a=1}^{\left\lfloor\frac{k}2\right\rfloor}\,\frac{a(a-1)}{2} \\ &=\frac{k-1}{2}\,\left\lfloor\frac{k}{2}\right\rfloor\,\left(\left\lfloor\frac{k}{2}\right\rfloor+1\right)-\frac{2}{3}\,\left\lfloor\frac{k}{2}\right\rfloor\,\left(\left\lfloor\frac{k}{2}\right\rfloor+1\right)\,\left(\left\lfloor\frac{k}{2}\right\rfloor-1\right) \end{align}$$ corresponding conjugacy classes.
If $b=0$, then $q\geq1$ is required. Thus, for each fixed $a\in\Biggl\{1,2,\ldots,\left\lfloor\dfrac{k}{2}\right\rfloor\Biggr\}$, there are $b=k-2a$ ways to choose $q\geq 1$. Hence, for $p=0$, there are $$\sum_{a=1}^{\left\lfloor\frac{k}2\right\rfloor}\,(k-2a)=k\,\left\lfloor\frac{k}{2}\right\rfloor-\left\lfloor\frac{k}{2}\right\rfloor\,\left(\left\lfloor\frac{k}{2}\right\rfloor+1\right)$$ corresponding conjugacy classes.
This shows that $$N(k,6)=\frac{1}{6}\,\left\lfloor\frac{k}{2}\right\rfloor\,\left(3\,(k-3)\,\left\lfloor\frac{k}{2}\right\rfloor-4\,\left\lfloor\frac{k}{2}\right\rfloor^2+9\,k-5\right)$$ is the total number of conjugacy classes. We have $$N(1,6)=0\,,\,\,N(2,6)=1\,,\,\,N(3,6)=3\,,\,\,N(4,6)=7\,,\text{ and }N(5,6)=12\,.$$ (The OP miscounted something. From his list, there should be $12$ distinct conjugacy classes for $k=5$.)
Note that $$\frac{(k-1)(k^2+10k-3)}{24}\leq N(k,6)\leq \frac{k(k-1)(k+10)}{24}\,.$$ The left-hand side is an equality iff $k$ is an odd positive integer. The right-hand side is an equality iff $k=1$ or $k$ is an even positive integer.