Skip to main content
skill CX Codex

cognitive-pattern — Claude Code skill: install guide

Defines reasoning patterns for agents and turns them into executable workflows. Use it for decision trees, task decomposition, analogy-based reasoning, or multi-perspective choices.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ruvnet/ruflo --skill cognitive-pattern -a claude-code
Open on GitHub

What cognitive-pattern does

This skill defines cognitive patterns that guide an agent's reasoning and decisions. A pattern can use if/then decision trees, step-by-step decomposition, analogy mapping from solved cases, or evaluation from multiple perspectives.

Its flow is explicit. mcp__plugin_ruflo-core_ruflo__daa_cognitive_pattern defines the pattern and its triggers, then mcp__plugin_ruflo-core_ruflo__daa_workflow_create embeds it in a workflow. Run that workflow with mcp__plugin_ruflo-core_ruflo__daa_workflow_execute, and inspect performance through mcp__plugin_ruflo-core_ruflo__daa_learning_status.

Successful patterns can be propagated with mcp__plugin_ruflo-core_ruflo__daa_knowledge_share. It relies on the listed ruflo-core MCP tools, so checking their availability before running a workflow is warranted.

What it helps with

  • define an if/then decision tree
  • decompose a problem into reasoning steps
  • map a new issue to a solved case
  • compare perspectives before deciding
  • share a successful reasoning pattern

Example prompts for the agent

  • Define a code-review cognitive pattern with triggers and a decision tree.
  • Create and execute a workflow for the incident-triage pattern.
  • Check the performance of architecture-choice and share the successful pattern.

How to install cognitive-pattern

1Skills CLI (Vercel)

npx skills add ruvnet/ruflo --skill cognitive-pattern -a claude-code

2Manually: put the files in place

~/.claude/skills/cognitive-pattern/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cognitive-pattern/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cognitive-pattern

How do I install cognitive-pattern in Claude Code?

Run npx skills add ruvnet/ruflo --skill cognitive-pattern -a claude-code, then run npx skills add ruvnet/ruflo --skill cognitive-pattern -a claude-code again. The skill file is at ~/.claude/skills/cognitive-pattern/SKILL.md.

What does cognitive-pattern do?

It defines agent reasoning patterns, places them in executable workflows, runs those workflows, and checks their performance. The patterns include decision trees, decomposition, analogy mapping, and multi-perspective evaluation.

Which tools does cognitive-pattern use?

It uses the daa_cognitive_pattern, daa_workflow_create, and daa_workflow_execute MCP tools to define and run patterns. daa_learning_status evaluates them, while daa_knowledge_share propagates successful patterns.

Source text

SKILL.md · MIT
---
name: cognitive-pattern
description: Define and manage cognitive patterns for agent reasoning and decision-making
argument-hint: "<pattern-name>"
allowed-tools: mcp__plugin_ruflo-core_ruflo__daa_cognitive_pattern mcp__plugin_ruflo-core_ruflo__daa_workflow_create mcp__plugin_ruflo-core_ruflo__daa_workflow_execute mcp__plugin_ruflo-core_ruflo__daa_knowledge_share mcp__plugin_ruflo-core_ruflo__daa_learning_status Bash
---

# 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

© ruvnet · MIT · ruvnet/ruflo

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set146

goal-plan A skill that builds step-by-step plans for complex tasks, tracks what conditions must be met before each step, estimates costs, and switches to an alternative path if something fails. CX Codex +1 770installs iot-fleet Manages Cognitum Seed device fleets through the cognitum-iot command line tool. It creates groups, lists fleets, and modifies device membership. CX Codex +1 764installs pii-detect Scans text, source code, and configs for personal data, tokens, and credentials before commits or logging. Flags exposed lines and suggests redaction. CX Codex +1 762installs discover-plugins A skill that discovers and recommends ruflo plugins based on your workflow, installed MCP tools, and current task. Handy when starting a new project or figuring out which plugins fit your needs. CX Codex +1 757installs ruflo-doctor Runs a health check on a Ruflo install: Node.js, npm, git, config, daemon, memory database, API keys, MCP servers. Add --fix and it repairs the usual breakages. CX Codex +1 755installs test-gaps Detects missing test coverage and suggests tests to write. Helpful right after adding a new feature or before cutting a release. CX Codex +1 753installs autopilot-loop A skill that runs one iteration of an autonomous loop: checks progress, picks the next task, schedules the next wake. Use it when you want Claude to keep working without manual breaks between tasks. CX Codex +1 752installs diff-analyze Analyzes a git diff before a PR, scoring risk, classifying changes, and suggesting reviewer roles. Use it before merging a large change. CX Codex +1 751installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor