Add/Fix composer in an ongoing project
Try the Drush Composer Generate project. If you have your composer.json committed to a vcs, you can run composer-generate and then compare the results and fix up anything that it might mis-apply.