strategy-engine

Route user directives through a LangGraph pipeline with Redis checkpointing.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/lofibrainwav/AFO_Kingdom --skill strategy-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategy-engine
Source: https://github.com/lofibrainwav/AFO_Kingdom/tree/main/skills/strategy-engine
Command: npx skills add https://github.com/lofibrainwav/AFO_Kingdom --skill strategy-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill acts as the strategic decision hub, triaging commands through multiple strategists and persisting state for reliability.

Core Features & Use Cases

  • 4-Stage Triage: Parse, triage, strategize, and execute with consensus.
  • Redis Checkpointing: Stateful conversations for resilience and audit.
  • 3 Strategists: Zhuge Liang, Sima Yi, Zhou Yu for balanced decisions.

Quick Start

result = await chancellor.invoke({"command": "Optimize the database queries", "context": {"current_latency": "500ms"}})

Frequently Asked Questions about strategy-engine

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

FAQPage Schema
How do I automate command decision-making with LangGraph and Redis checkpoints?

Automate command decision-making by routing user directives through a 4-stage LangGraph pipeline (Parse, Triage, Strategize, Execute) with Redis checkpointing for state persistence. The engine triages commands through multiple strategists, applies consensus voting, and persists state for resilience and audit trails across domains like database optimization and workflow orchestration.

What is a 4-stage triage pipeline and how does it work for strategic decisions?

A 4-stage triage pipeline parses natural language commands, extracts intent, gathers context, and routes decisions through multiple strategists for balanced assessment. This Skill implements Parse, Triage, Strategize, and Execute stages with consensus voting (2/3 for AUTO_RUN) to evaluate feasibility and risk across long-term planning scenarios.

Can I use LangGraph with Redis for stateful conversation workflows?

Yes. LangGraph works with Redis checkpointing to maintain stateful conversations across processing stages. This Skill persists state through Redis, enabling resilience, audit trails, and recovery for multi-stage orchestration workflows requiring long-term planning and risk assessment.

How do I integrate Redis checkpointing into a LangGraph command router?

Integrate Redis checkpointing by invoking the strategy engine with command and context inputs. The engine automatically persists decision state at each stage (Parse, Triage, Strategize, Execute), enabling reliable recovery and audit compliance for commands requiring rapid feasibility evaluation and consensus.

What are the limitations of consensus voting in multi-strategist decision engines?

Consensus voting (2/3 threshold for AUTO_RUN) requires sufficient strategist agreement before execution. This introduces latency and may block decisions when strategists diverge significantly. The approach prioritizes safety and balanced assessment over speed in high-risk domains like database optimization and resource allocation.

Do I need prior knowledge of LangGraph to use this strategic decision engine?

Familiarity with LangGraph orchestration and Redis state management accelerates integration. The Skill abstracts the 4-stage pipeline, so you invoke it with command and context inputs; however, understanding graph-based workflows and checkpoint mechanics helps optimize configuration for your domain.