Definitions of competency
the competency (of a witness) to testify refers to a person's ability to stand trial, especially a criminal defendant
The trial court was satisfied with her competency to testify.
the mental ability to understand problems and make decisions
If she really is unable to understand or participate adequately in her own defense then proceedings must be suspended until her competency is restored.