Do you need to avoid the contents of the specification and specific implementation methods to avoid patents?

Mainly depends on the purpose of your escape.

If you want to avoid possible product infringement, you only need to look at the claim, especially the claim 1.

If you avoid your own patent application, you need to read not only the patent claims, but also the contents published in the whole specification.