mcpField
C
cognitive-pattern

cognitive-pattern

github.com/ruvnetAgent workflows80.0k756 installsUpdated today
Repository

About cognitive-pattern

Cognitive Pattern is a skill for defining reasoning strategies that agents can apply and improve. It turns patterns such as decision trees and analogy mapping into executable workflows, then supports evaluation and sharing.

Key features

  1. 01Define patterns and their triggers
  2. 02Create executable workflows
  3. 03Run cognitive workflows
  4. 04Evaluate pattern performance
  5. 05Share successful patterns

Use cases

  1. 01Encode a decision tree for an agent
  2. 02Structure step-by-step problem solving
  3. 03Apply analogy-based reasoning to new problems

MCP support

Uses MCP tools to define cognitive patterns, create and execute workflows, check learning status, and share knowledge.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ruvnet/ruflo --skill cognitive-pattern

After installing, type/cognitive-patternin Claude Code to confirm it loaded.

Details

From the project README

Cognitive Pattern

Define cognitive patterns that guide agent reasoning and decision-making.

When to use

When you want to codify reasoning strategies, decision trees, or problem-solving approaches that agents can use and improve over time.

Steps

  1. Define pattern — call mcp__plugin_ruflo-core_ruflo__daa_cognitive_pattern with the pattern structure and triggers
  2. Create workflow — call mcp__plugin_ruflo-core_ruflo__daa_workflow_create to embed the pattern in an executable workflow
  3. Execute — call mcp__plugin_ruflo-core_ruflo__daa_workflow_execute to run the cognitive workflow
  4. Evaluate — call mcp__plugin_ruflo-core_ruflo__daa_learning_status to see how the pattern performs
  5. Share — call mcp__plugin_ruflo-core_ruflo__daa_knowledge_share to propagate successful patterns

Pattern types

  • Decision trees — structured if/then reasoning
  • Chain of thought — step-by-step problem decomposition
  • Analogy mapping — solve new problems by referencing similar solved ones
  • Consensus patterns — multi-perspective evaluation before deciding

Comments

Markdown supported