ruvnet avatar

Cognitive Pattern

This lets you codify reasoning strategies that Claude can execute and refine over time. You define patterns like decision trees, chain of thought breakdowns, or analogy mappings, then wrap them into workflows that can be run and evaluated. It's built on the claude-flow MCP server and gives you hooks to track how patterns perform and share the successful ones. Honestly most useful if you're building agent systems where you want consistent, improvable reasoning rather than ad hoc responses. The pattern types are pretty standard cognitive science stuff, but having them as executable primitives with learning feedback is the actual value here.

skills.sh installs
757
GitHub stars
81.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add ruvnet/ruflo --skill cognitive-pattern --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/ruvnet/ruflo
Categories
AI & Agent Building, Productivity & Planning
First seen
Jun 3, 2026

More from ruvnet/ruflo

All 236
1gccszs avatardisk-cleanergccszs/disk-cleanerCross-platform disk space management toolkit with intelligent optimization. REQUIREMENTS: Python 3.7+. UNIVERSAL COMPATIBILITY: Works with ALL AI IDEs (Cursor, 753skills.sh installs
2ruvnet avatarmemory-searchruvnet/rufloSOTA semantic search — hybrid (sparse+dense), Graph RAG multi-hop, MMR diversity reranking, recency weighting751skills.sh installs
3ruvnet avatarworkflow-runruvnet/rufloRun a workflow — drive an MCP workflow lifecycle (execute/pause/resume/cancel) or invoke + resume a native .claude/workflows/*.js orchestration via the Workflow744skills.sh installs
4ruvnet avatarchat-formatruvnet/rufloFormat prompts for different LLM providers with chat templates and HNSW-powered context retrieval743skills.sh installs
5ruvnet avatarvalidate-pluginruvnet/rufloValidate a Claude Code plugin structure, frontmatter, and MCP tool references742skills.sh installs
6ruvnet avatarobserve-traceruvnet/rufloTrace agent execution by collecting spans and building a trace tree for a task733skills.sh installs