Update the `diagrams` tool to use the list and pairs library resources when required