
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given the function $f(x) = \sqrt{3}\sin{2x} - 2\sin^2{x}$,
(1) find the minimal positive period of $f(x)$ and its intervals of monotonic decrease;
(2) if $x \in \left[-\frac{\pi}{6}, \frac{\pi}{3}\right]$, find the maximum value of $f(x)$ and the corresponding value(s) of $x$ at which the maximum value is attained.

Present the answer in LaTex format: \boxed{Your answer}
user