HTN Planner

Decompose complex goals into executable primitive actions using HTN planning.

26|5|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/kunwl123456/zeroclaw-skills-collection --skill htn-planner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: HTN Planner
Source: https://github.com/kunwl123456/zeroclaw-skills-collection/tree/main/htn-planner
Command: npx skills add https://github.com/kunwl123456/zeroclaw-skills-collection --skill htn-planner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of planning and executing complex tasks by breaking them down into hierarchical steps, making intricate processes manageable and executable.

Core Features & Use Cases

  • Hierarchical Task Network (HTN) Planning: Define domains and problems in a structured JSON format to generate executable plans.
  • Plan Visualization: Generates visual representations of the plan decomposition tree using Mermaid syntax, aiding understanding and debugging.
  • Simulation: Simulates the execution of the generated plan to verify its correctness and predict outcomes.
  • Use Case: Planning a multi-stage manufacturing process, a complex software deployment, or a detailed scientific experiment.

Quick Start

Visualize the plan for the domain defined in 'domain.json' and the problem in 'problem.json'.

Frequently Asked Questions about HTN Planner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate task decomposition for complex goals into primitive actions?

Hierarchical Task Network (HTN) planning automates task decomposition by breaking complex goals into executable primitive actions. You define domains and problems in JSON to generate a sequential plan for intricate processes.

What is the best way to visualize a plan decomposition tree?

Visualizing a plan decomposition tree is best achieved using Mermaid syntax. This Skill generates visual representations of the plan decomposition tree from your JSON input, aiding understanding and debugging of the hierarchical steps.

Can I simulate task execution to verify a generated plan?

Yes, you can simulate task execution to verify a generated plan. This Skill supports simulation of the generated sequential plan to verify its correctness and predict outcomes before actual implementation.

Do I need JSON input specifications for HTN planning?

Yes, you need JSON input for domain and problem specifications to perform HTN planning. The Skill requires structured JSON files to define the domain and problem to generate an executable plan.

Does HTN planning work for multi-stage manufacturing or software deployment?

HTN planning works for multi-stage manufacturing, complex software deployment, and scientific experiments. It decomposes these complex processes into hierarchical steps, making intricate operations manageable and executable.