This paper describes an integrated design and implementation framework for cognitive models in complex task environments. We propose a task-and human-centered development methodology for deriving the cognitive models, and present a goal-based framework for implementing them. We illustrate our approach by modelling cognitive lockup as an error producing mechanism for pilots, and present the outcomes of the implemented cognitive models that resulted from applying our methods and tools.