Can I give my assets to my wife and then file bankruptcy?
No. That's a fraudulent transfer. It might even be a fraudulent transfer in a divorce context.
What Jon says is absolutely correct. If you were to transfer assets, the trustee can still go after the property even if assets changed hands legally.