A writer should hyphenate a compound modifier that

contains an adverb ending in -ly.
comes after the noun it modifies.
comes before the noun it modifies.
contains an adjective ending in -ive.