Abstract: A method and system are provided for specifying an expert system. Multiple task specifications are formed for specifying tasks as functional units of the expert system. Multiple method specifications are formed for specifying methods for accomplishing ones of the tasks. At least one of the tasks is specified as a subtask of at least one of the methods, such that ones of the task specifications are organized as a structure having multiple levels of tasks.