Source profileQuality 95/100

vasilyu1983/AI-Agents-public/frameworks/shared-skills/skills/foundations-ai-planning-search/SKILL.md

foundations-ai-planning-search

Applies planning and search theory (A*, CSP, MCTS, STRIPS/PDDL, HTN) to agent design. Use when an LLM agent hallucinates action sequences or needs precondition/effect validity.

Source repository stars
82
Declared platforms
0
Static risk flags
0
Last source update
2026-08-21
Source checked
2026-08-28

Decision brief

What it does: where it fits

10 applied AI planning and search primitives for turning a problem into states, actions, constraints, heuristics, and plans. Use this when the hard part is problem formulation or explicit search over alternatives, not language fluency.

Best for

  • The task can be stated as states, actions, transitions, goals, and costs.
  • You need A, uniform-cost search, beam search, backtracking, alpha-beta, MCTS, STRIPS/PDDL, HTN, or CSP reasoning.
  • An LLM agent is hallucinating action sequences that need explicit validity checks.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/foundations-ai-planning-search"
Safe inspection promptEditorial

Inspect the Agent Skill "foundations-ai-planning-search" from https://github.com/vasilyu1983/AI-Agents-public/blob/53f6cb73ea53a2646e3e7d4665062ad66f3683ac/frameworks/shared-skills/skills/foundations-ai-planning-search/SKILL.md at commit 53f6cb73ea53a2646e3e7d4665062ad66f3683ac. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Workflow Planner For Human Operations

    Failure: Task decomposition is repeated manually and varies across runs.

    HTN (8): encode standard decompositions and method selection.Classical planning (7): validate preconditions for steps with tool or data dependencies.Grounding boundary: use foundations-grounding-communication for handoff repair and common-ground checks.
  2. 02

    Workflow

    1. Formulate the problem as state, actions, transition model, goal test, and cost. 2. Classify the dominant structure: path search, assignment/CSP, game tree, symbolic plan, hierarchy, or uncertainty. 3. Choose the simplest algorithm family that preserves required guarantees: co…

    Formulate the problem as state, actions, transition model, goal test, and cost.Classify the dominant structure: path search, assignment/CSP, game tree, symbolic plan, hierarchy, or uncertainty.Choose the simplest algorithm family that preserves required guarantees: completeness, optimality, bounded memory, or good-enough solution quality.
  3. 03

    Quick Reference

    Review the “Quick Reference” section in the pinned source before continuing.

    Review and apply the “Quick Reference” source section.
  4. 04

    When to Apply

    Apply this skill when: - The task can be stated as states, actions, transitions, goals, and costs. - You need A, uniform-cost search, beam search, backtracking, alpha-beta, MCTS, STRIPS/PDDL, HTN, or CSP reasoning. - An LLM agent is hallucinating action sequences that need expli…

    The task can be stated as states, actions, transitions, goals, and costs.You need A, uniform-cost search, beam search, backtracking, alpha-beta, MCTS, STRIPS/PDDL, HTN, or CSP reasoning.An LLM agent is hallucinating action sequences that need explicit validity checks.
  5. 05

    Primitive Index

    Each primitive is expanded in references/primitives-overview.md. Use references/patterns-scenarios-traps.md for scenario recipes and references/formal-theory-map.md when completeness, optimality, or complexity claims matter.

    Each primitive is expanded in references/primitives-overview.md. Use references/patterns-scenarios-traps.md for scenario recipes and references/formal-theory-map.md when completeness, optimality, or complexity claims ma…

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score95/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars82SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
vasilyu1983/AI-Agents-public
Skill path
frameworks/shared-skills/skills/foundations-ai-planning-search/SKILL.md
Commit
53f6cb73ea53a2646e3e7d4665062ad66f3683ac
License
MIT
Collected
2026-08-28
Default branch
main
View the original SKILL.md

AI Planning And Search Foundations

10 applied AI planning and search primitives for turning a problem into states, actions, constraints, heuristics, and plans. Use this when the hard part is problem formulation or explicit search over alternatives, not language fluency.

Contents


Quick Reference

PrimitiveProblem It SolvesKey Parameters
Problem FormulationVague tasks cannot be searched or verifiedState, actions, transition model, goal test, path cost
Uninformed SearchNeed complete baseline without domain heuristicBranching factor b; depth d; frontier policy
Heuristic SearchLarge state spaces need directed explorationHeuristic h(n); admissibility; consistency
Local SearchState is large but path is irrelevantNeighborhood; objective; restart/schedule
Constraint SatisfactionNeed assignments satisfying hard constraintsVariables, domains, constraints, MRV/LCV, arc consistency
Adversarial SearchOpponent actions affect outcomesUtility, depth, alpha-beta bounds, rollout policy
Classical PlanningNeed valid action sequence from symbolic preconditions/effectsSTRIPS/PDDL, progression/regression, plan graph
Hierarchical PlanningTasks decompose into reusable subplansMethods, subtasks, ordering constraints
Contingent / Belief-State PlanningPartial observability or nondeterministic actionsBelief state, sensing actions, policy vs sequence
Planner-Agent IntegrationLLM agent needs explicit plan validity and search boundariesPlanner tool, state abstraction, verifier, replanning trigger

When to Apply

Apply this skill when:

  • The task can be stated as states, actions, transitions, goals, and costs.
  • You need A*, uniform-cost search, beam search, backtracking, alpha-beta, MCTS, STRIPS/PDDL, HTN, or CSP reasoning.
  • An LLM agent is hallucinating action sequences that need explicit validity checks.
  • The workflow needs a planner as a tool, not only prompt decomposition.
  • A search or planning algorithm choice changes runtime, completeness, optimality, or failure behavior.

Skip or route elsewhere when:

  • It is product search, vector retrieval, ranking, or query matching -> use software-search or ai-rag.
  • It is expected utility, value of information, real options, or bandits -> use foundations-decision-theory.
  • It is feedback control, setpoint tracking, or MPC -> use foundations-control-theory.
  • It is strategic incentive design or equilibrium -> use foundations-game-theory.
  • It is cooperative subagent allocation with shared payoff and partitioned information -> use foundations-team-theory.
  • It is general agent architecture, memory, tools, or MCP/A2A orchestration -> use ai-agents after this skill defines the planner boundary.

Primitive Index

Each primitive is expanded in references/primitives-overview.md. Use references/patterns-scenarios-traps.md for scenario recipes and references/formal-theory-map.md when completeness, optimality, or complexity claims matter.

#MechanismFailure Mode Addressed
1Problem formulationAgent cannot know what counts as legal progress
2Uninformed searchNo baseline for completeness, optimality, or frontier explosion
3Heuristic searchState space explodes because exploration is undirected
4Local searchPath-tracking wastes memory when only final configuration matters
5CSPConstraints are mixed into prompts instead of enforced structurally
6Adversarial searchOpponent response is ignored or treated as noise
7Classical planningPreconditions and effects are implicit, so invalid plans pass review
8HTNRepeated task decomposition is ad hoc and inconsistent
9Contingent / belief-state planningPlan assumes full observability or deterministic actions
10Planner-agent integrationLLM tool loop lacks plan validation, replanning, or bounded search

Formal Supporting Theory

Theory AreaUse WhenApplied Primitives It Grounds
State-space searchNeed complete/optimal algorithms over explicit states#1, #2, #3
Graph algorithmsNeed shortest paths, frontier policies, or path-cost proofs#2, #3
Heuristic admissibilityNeed guarantees that A* returns optimal paths#3
Combinatorial optimizationNeed efficient assignment/configuration under hard constraints#4, #5
Constraint propagationNeed pruning before or during backtracking#5
Game-tree searchNeed bounded lookahead against an opponent#6
Automated planningNeed symbolic preconditions, effects, and plan validity#7
Hierarchical task networksNeed reusable decomposition methods#8
Decision processes under observability limitsNeed policies over belief states or contingencies#9
Neuro-symbolic / tool-using agentsNeed LLMs to propose, planners to verify, and executors to act#10

Anti-Patterns

Anti-PatternPlanning/Search DiagnosisFix
"Ask the LLM to plan" with no state modelNo legal-action or goal-test boundaryDefine state, action schema, preconditions, effects, and cost (#1, #7)
Greedy search used where optimality is promisedHeuristic is not an admissible cost lower boundUse A* with admissible/consistent heuristic or stop promising optimality (#3)
BFS on high branching factor without depth boundFrontier blowupUse UCS/A*, iterative deepening, pruning, or abstraction (#2, #3)
Constraints buried in prompt proseViolations are discovered after executionModel as CSP with propagation and backtracking (#5)
Minimax for real-world negotiationPayoffs and strategies are not a finite game treeRoute incentive/equilibrium design to foundations-game-theory (#6 boundary)
PDDL generated but never validatedPlanner accepts malformed or semantically wrong domainRun domain/problem validation and check plan preconditions/effects (#7)
Replanning on every token/tool callPlanner-agent boundary is too fine-grainedReplan only on state drift, failed precondition, or new observation (#10)
Treating a valid plan as a safe planValidity checks preconditions/effects; it does not check whether the goal or path is one that should be executedAdd a separate safety/permission gate over the action set — validity and safety are independent axes (#7, #10)
Adding tree search to raise accuracy without a verifierSearch amplifies the scoring signal; an unreliable scorer just finds higher-confidence errors fasterEstablish scorer/verifier reliability first, then spend rollout budget (#3, #6)

Misuse Boundaries

MisuseWhy It Is WrongRequired Correction
Calling a prompt outline a planIt has no executable action model or validity checkConvert to state/action/precondition/effect model
Treating local optimum as global optimumLocal search is incomplete without strong assumptionsUse restarts, exact search for small instances, or state the approximation
Using A* with an overestimating heuristic while claiming optimalityA* optimality depends on admissibility/consistencyProve h(n) <= true remaining cost or downgrade claim
Modeling soft preferences as hard CSP constraintsSearch may become infeasible for avoidable reasonsSeparate hard constraints from weighted objectives
Using adversarial search for cooperative teamsCooperative information structure has different primitivesRoute to foundations-team-theory
Treating partial observability as deterministic planningActions may need sensing and contingenciesUse belief-state or contingent planning (#9)
Inferring plan safety from planning competenceMeasured separately, the two do not track each other: a model can be near-perfect at producing executable plans and still route a large fraction of tasks through dangerous actionsGate the action set independently of the planner's success metric (#10)

Decision Checklist

  • State model: Can you name states, legal actions, transition model, goal test, and cost? -> Problem formulation (#1)
  • No heuristic: Need complete baseline over small/medium search? -> BFS/DFS/UCS/IDS (#2)
  • Need optimal path with guidance: Can you design an admissible heuristic? -> A* (#3)
  • Only final assignment matters: Path is irrelevant and space is huge? -> Local search (#4)
  • Hard constraints dominate: Variables/domains/constraints are natural? -> CSP (#5)
  • Opponent moves matter: Finite lookahead game/tree? -> Adversarial search (#6)
  • Preconditions/effects matter: Need valid action sequence? -> Classical planning (#7)
  • Reusable decomposition exists: Tasks break into methods/subtasks? -> HTN (#8)
  • Observations are incomplete: Need sensing, contingency, or policy? -> Belief-state planning (#9)
  • LLM agent is involved: Need planner/verifier/tool-loop boundary? -> Planner-agent integration (#10)

Composition Recipes

LLM Agent With Valid Plans

Failure: Agent produces plausible steps that violate tool preconditions.

  • Problem formulation (#1): define typed state and legal action schema.
  • Classical planning (#7): encode preconditions/effects for tools.
  • Planner-agent integration (#10): LLM proposes goals or abstractions; planner validates; executor runs only valid next action.
  • Replanning trigger (#10): replan after failed precondition, external state drift, or new observation.

Configuration Assistant That Respects Constraints

Failure: Recommendations violate compatibility, license, budget, or availability constraints.

  • CSP (#5): model components as variables and compatibility rules as constraints.
  • Local search (#4): if preferences are soft and space is too large for exact search.
  • Decision theory boundary: route scoring tradeoffs to foundations-decision-theory when expected value or risk weighting matters.

Game Or Simulation Agent

Failure: Agent picks locally good moves and misses opponent responses.

  • Adversarial search (#6): minimax or alpha-beta for deterministic games.
  • MCTS (#6): stochastic or high-branching games with rollout evaluation.
  • Heuristic search (#3): evaluate states with domain heuristic.
  • Game theory boundary: route equilibrium, mechanism, or incentive design to foundations-game-theory.

Workflow Planner For Human Operations

Failure: Task decomposition is repeated manually and varies across runs.

  • HTN (#8): encode standard decompositions and method selection.
  • Classical planning (#7): validate preconditions for steps with tool or data dependencies.
  • Grounding boundary: use foundations-grounding-communication for handoff repair and common-ground checks.

"Works In The Demo, Fails In Production"

Failure: A planner or agent loop that passed every walkthrough degrades or breaks under real traffic.

  • Diagnose in order of likelihood before assuming a logic bug: production branching factor vs. demo branching factor, heuristic/verifier fit to the demo distribution, unmodeled nondeterminism, missing or unbounded replanning triggers, a validator that exists in eval but not in the production executor path, and search budget (rollouts/nodes/beam width) silently shrunk by latency or cost limits.
  • Full diagnostic checklist: references/patterns-scenarios-traps.md.

Workflow

  1. Formulate the problem as state, actions, transition model, goal test, and cost.
  2. Classify the dominant structure: path search, assignment/CSP, game tree, symbolic plan, hierarchy, or uncertainty.
  3. Choose the simplest algorithm family that preserves required guarantees: completeness, optimality, bounded memory, or good-enough solution quality.
  4. Write the search/planning assumptions explicitly before implementation.
  5. For LLM agents, decide what the LLM may propose and what the planner/verifier must enforce.
  6. Validate with small hand-checkable cases, impossible cases, and adversarial edge cases.

ASCII Flow

Planning/search problem
  -> Define state, actions, transition, goal, cost
  -> Classify structure
     +-- path to goal -> BFS/UCS/A*/local search
     +-- variable assignment -> CSP
     +-- opponent -> minimax/alpha-beta/MCTS
     +-- symbolic action model -> STRIPS/PDDL/plan graph
     +-- reusable decompositions -> HTN
     +-- partial observability -> belief-state/contingent planning
  -> Check guarantees and constraints
  -> Integrate with agent/tool loop if needed
  -> Validate plan legality and replanning triggers

Navigation

Related Skills

  • foundations-decision-theory - utility, value of information, regret, and bandits.
  • foundations-control-theory - feedback loops, stability, and MPC.
  • foundations-game-theory - incentives, equilibrium, mechanism design, and strategic actors.
  • foundations-team-theory - cooperative multi-agent allocation with shared payoff.
  • foundations-grounding-communication - handoff repair and common-ground checks for HTN workflow planners.

Fact-Checking

  • Check data/sources.json before citing algorithm properties or source claims.
  • Treat complexity and optimality guarantees as conditional on assumptions: nonnegative costs for UCS/A*, admissible/consistent heuristics for A*, finite branching for completeness, and correct action preconditions/effects for planners.
  • Do not invent benchmark numbers. If a planner or solver is recommended, report assumptions, problem size, and validation cases instead of generic speed claims.
  • LLM planning benchmark numbers move fast and are rarely comparable across papers: success rate depends on domain, instance size, prompt encoding, number of retries, and whether a verifier was in the loop. Cite the specific setup or state the result qualitatively; do not carry a headline percentage across domains.
  • Plan validity and plan safety are distinct measurements. A reported planning success rate says nothing about whether the produced plans are safe to execute, and the two have been observed to diverge sharply. Never substitute one metric for the other.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

Frequently asked questions

What to verify before installation and use

What does the foundations-ai-planning-search source document cover?

10 applied AI planning and search primitives for turning a problem into states, actions, constraints, heuristics, and plans. Use this when the hard part is problem formulation or explicit search over alternatives, not language fluency.

How do I install foundations-ai-planning-search?

The source record exposes this install command: npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/foundations-ai-planning-search". Inspect the command and pinned source before running it.

Alternatives

Compare before choosing

Computed 10014,706

prowler-cloud/prowler

postgresql-indexing

PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance

Computed 100147

oaustegard/claude-skills

featuring

Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre

Computed 9931,947

HKUDS/Vibe-Trading

strategy-generate

Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.

Computed 9982

vasilyu1983/AI-Agents-public

qa-testing-ios

Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.