Are Human Rules Necessary? Generating Reusable APIs with CoT Reasoning and In-Context Learning | Synapse