From agentic-skills
A high-level cognitive pattern where an agent formulates a structured sequence of actions (a plan) before executing any of them, ensuring goal-directed behavior. Use when user asks to "add planning to my agent", "task planning", "agent planning", or mentions plan generation, plan execution, or step-by-step planning.
npx claudepluginhub lauraflorentin/skills-marketplace --plugin agentic-skillsThis skill uses the workspace's default tool permissions.
Planning (sometimes called "Reasoning & Acting") decouples the strategy from the execution. Instead of reacting immediately to a user request, the agent pauses to decompose the goal into sub-goals, identifies dependencies, and creates an ordered list of steps. This allows agents to tackle complex, multi-step problems that require foresight.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Analyzes BMad project state from catalog CSV, configs, artifacts, and query to recommend next skills or answer questions. Useful for help requests, 'what next', or starting BMad.
Planning (sometimes called "Reasoning & Acting") decouples the strategy from the execution. Instead of reacting immediately to a user request, the agent pauses to decompose the goal into sub-goals, identifies dependencies, and creates an ordered list of steps. This allows agents to tackle complex, multi-step problems that require foresight.
def planning_workflow(goal):
# Step 1: Create Plan
# The planner generates a list of steps, not the actual work.
plan = planner_agent.run(
prompt="Create a step-by-step plan to achieve this goal...",
input=goal
)
results = {}
# Step 2: Execute Plan
for step in plan.steps:
# Check dependencies
if not check_dependencies(step, results):
raise DepedencyError(f"Cannot execute {step.id}")
# Execute the specific step using a worker agent
result = worker_agent.run(
prompt=f"Execute this step: {step.description}",
context=results # Pass context from previous steps
)
results[step.id] = result
# Step 3: Summarize
return synthesizer_agent.run(results)