YesWorkflow aims to provide the benefits of using a scientific workflow management system without having to rewrite scripts and other scientific software. YesWorkflow annotations added as comments to a script declare how data is used and results produced by blocks of code in the script, and how data flows between the code blocks. YesWorkflow uses the resulting scientific-workflow model of the script to reveal the detailed prospective and retrospective provenance of the products of runs of the script.