Explictly pass the AST to write_skeleton.