/gabbe-ai:reasoning-patternsfrom gabbe-ai
Selects and applies test-time reasoning techniques (chain-of-thought, self-consistency, tree-of-thoughts, least-to-most, step-back, reflexion) based on problem structure, cost, and latency constraints.
Ships in gabbe-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Choose the right amount and shape of reasoning for a task, then apply it without overspending. Reasoning techniques trade extra tokens and latency for accuracy on hard problems — they are powerful on multi-step logic and actively harmful on simple lookups, where they add cost and can talk the model out of a correct first answer. The objective is to match the technique to the problem's structure (linear, branching, decomposable, abstract, environment-grounded), spend the minimum compute that clears the quality bar, and always pair self-evaluation with an external anchor.
Classify the problem before choosing a technique
agentic-patterns.skill).beyond-llms.skill.Chain-of-Thought (CoT) — instruct the model to lay out intermediate steps before the final answer. The cheapest reasoning lever; usually a single call. Use as the default when a one-shot answer is unreliable; skip for trivial tasks.
Self-Consistency — sample several independent CoT traces at non-zero temperature and take the
majority (or otherwise aggregated) answer. Use when one trace is noisy and a verifiable/aggregable
answer exists. Cost is N× tokens — bound N and use it only where the accuracy gain is measured. For
the aggregation/quorum mechanics defer to swarm-consensus.skill.
Tree-of-Thoughts / Graph-of-Thoughts — explore reasoning as a branching tree (ToT), score partial branches with a value heuristic, and prune dead ends; generalize to a DAG (GoT) when partial results should merge, not only branch. Use for genuine search problems. This is the most expensive pattern (many calls) — reserve it for problems a linear chain provably cannot solve.
Least-to-Most — first prompt the model to decompose the problem into an ordered list of easier sub-problems, then solve them in sequence, each consuming earlier answers. Use when the hard problem is really a chain of dependent easy ones; it improves generalization to harder instances than seen in examples.
Step-Back Prompting — before the specific answer, ask the model to state the higher-level principle, abstraction, or general question, then reason down from it. Use when the model over-anchors on surface details and a governing concept would steady it.
Reflexion (anchored) — after a failed attempt, have the model write a verbal self-critique,
persist it to memory, and retry with that lesson in context. Use only when multiple attempts are
allowed and a real success/failure signal exists; persist the lesson via episodic-consolidation.skill.
The reflection itself must be grounded (Step 9).
Scale test-time compute to difficulty, not uniformly
cost-benefit-router.skill rather
than hard-coding model selection here.Prefer process-level over outcome-only scoring, with an external anchor
agentic-patterns.skill (grounded self-critique) and cognitive-testing.skill.Bound every reasoning loop — max iterations/branches, a token and wall-clock budget, and a quality-threshold exit so search or refinement cannot run away.
swarm-consensus.skill, cost-benefit-router.skill, llm-as-judge.skill, and
episodic-consolidation.skill.A reasoning plan containing:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-ai11 skills in this plugin
/a2ui-protocolsDesign the message schema and streaming events an agent uses to send UI to a frontend (JSON, WebSocket, SSE, HTMX). Use when an agent must stream components or UI updates to a browser./actor-agent-frameworksSet up an agent or actor graph (LangGraph, Akka or custom) with state schema, checkpoints and failure recovery. Use when you build or change a multi-step agent graph or actor system that must survive restarts./agent-communicationChoose and wire the channel between agents - MCP, A2A, ACP, gossip or a broker (Kafka, RabbitMQ, MQTT), with a capability handshake. Use when two or more agents must exchange messages or delegate work across processes or vendors./agent-uiBuild a UI that shows what an agent thinks, calls and does - traces, tool calls, streamed markdown or JSON. Use when you add a tracing view, an approval screen or a front end for an agent./autonomous-swarm-patternsBuild a self-organising swarm of agents that coordinate through shared markers and simple local rules. Use when one agent cannot cover a decentralised problem and you want many agents with no central planner./beyond-llmsCombine an LLM with deterministic rules, genetic algorithms or an active-inference loop so hard constraints override model output. Use when a problem needs guaranteed rules, search or optimisation that a prompt alone cannot give.Other plugins' skills for the same job