
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)=2\sqrt{3}\sin (\frac{x}{2}+\frac{\pi }{4})\cos (\frac{x}{2}+\frac{\pi }{4})-\sin (x+\pi )$.

(1) Find the smallest positive period of $f(x)$;

(2) If the graph of $f(x)$ is shifted to the right by $\frac{\pi }{6}$ units to obtain the graph of function $g(x)$, find the maximum and minimum values of function $g(x)$ on the interval $[0,\pi ]$.

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