Pddl tpp planning

From XuShuwenn/RedAct · View interactive version

Pddl tpp planning is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Solve travelling purchase problem (TPP) tasks using PDDL planning, generating valid plans from domain and problem files.

How to use this skill

Skill file

PDDL Planning for TPP Tasks

When to Use

Execution Protocol

Input Format

problem.json entries:

{
  "id": "problem_id",
  "domain": ".../xxx.pddl",
  "problem": ".../yyy.pddl",
  "plan_output": "xxx/problem_id.txt"
}

Manifest discipline

Workflow

  1. Read the task instructions for execution constraints before acting; confirm available tools, required call format, and any exact completion signal
  2. Load the full PDDL domain file and inspect complete action schemas
  3. Load the full PDDL problem file and inspect complete initial facts and goals
  4. If any file/tool output is truncated, cut off, or ends mid-line/mid-token, fetch the missing content before reasoning further
  5. Verify action names, parameter order, preconditions/effects, predicate meanings, and any level-transition arguments from the actual domain before instantiating actions
  6. Generate plan using planner, or manually derive one only after complete inspection of the full domain and problem
  7. Check each planned action is applicable from the current accumulated state and update the state step by step
  8. Write plan to output path
  9. Read back and verify each written plan file completely before concluding success
  10. Confirm outputs were produced only for tasks listed in problem.json and that each expected plan_output exists, is non-empty, and ends with a complete action line
  11. Only claim validation if you actually observed successful validator/planner output or another explicit validity check

Plan Format

One action per line:

drive(truck1, depot1, market1)
buy(truck1, goods1, market1, level0, level1, level0, level1)
load(goods1, truck1, market1, level0, level1, level0, level1)
drive(truck1, market1, depot1)
unload(goods1, truck1, depot1, level0, level1, level0, level1)

Malformed example to reject:

buy(truck1, goods2, market1, level0, level1, level0, leve

Never accept a plan file that ends with a partial action line.

Requirements

Verification Checklist

Verification Checklist

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.