A Task Library is a curated, domain-specific collection of task schemas, decomposition methods, and planning operators that formally defines the capabilities and procedural knowledge available to a Hierarchical Task Network (HTN) planner. It serves as the planner's core knowledge base, encoding how abstract, high-level goals (compound tasks) can be recursively broken down into networks of simpler subtasks until directly executable primitive actions are reached. This library essentially provides the "recipes" or blueprints the AI agent uses to understand and accomplish complex work.
