Special traits: If it has Shadow Form (advantage on Dexterity saves), that's a +1 CR. Invisibility would be another +1. So traits would push it higher. Then actions: Multiattack with two claws (say 1d6+3 + 1d8 +3 = 1d6+1d8+6 per hit, two attacks). Maybe 14 average damage per turn. That would be CR 2. Combining traits and attacks, maybe the CR is around 3. Need to adjust accordingly.
Special traits: Maybe Invisibility in darkness, or some kind of shadow teleport. Actions: Multiattack with claws, maybe a shadow breath or something. Legendary actions? If CR is 4, maybe 3-4 legendary actions. Companion of Darkness -Ch. 9- By Berkili4
Dex +6, Con +6 Skills Stealth +6, Perception +4 Damage Resistances nonmagical physical Condition Immunities frightened, charmed Senses darkvision 60 ft., passive Perception 14 Languages understands Common but can't speak Challenge 3 (700 XP) Special Traits Invisibility. The companion is automatically invisible in areas of dim light or darkness. Shadow Form. The companion has advantage on Dexterity saving throws against nonmagical attacks and effects. Additionally, creatures have disadvantage on Wisdom (Perception) checks to detect it. Actions Multiattack. The companion makes two Shadow Claws attacks or one Shadowblast . Special traits: If it has Shadow Form (advantage
14 (natural armor) HP 65 (10d8 + 30) Speed 30 ft., climb 20 ft. Then actions: Multiattack with two claws (say 1d6+3