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.
npx skills add ruvnet/ruflo --skill cognitive-pattern -a claude-codeWhat 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-reviewcognitive pattern with triggers and a decision tree. - Create and execute a workflow for the
incident-triagepattern. - Check the performance of
architecture-choiceand share the successful pattern.
How to install cognitive-pattern
1Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill cognitive-pattern -a claude-code2Manually: put the files in place
~/.claude/skills/cognitive-pattern/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cognitive-pattern/
1Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill cognitive-pattern -a codex2Manually: put the files in place
.agents/skills/cognitive-pattern/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill cognitive-pattern -a cursor2Manually: put the files in place
.cursor/skills/cognitive-pattern/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ruvnet/ruflo cognitive-pattern2Manually: put the files in place
.github/skills/cognitive-pattern/SKILL.md1Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill cognitive-pattern -a gemini-cli2Platform CLI
gemini skills install https://github.com/ruvnet/ruflo --path plugins/ruflo-daa/skills/cognitive-patternManually: put the files in place
.devin/skills/cognitive-pattern/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ruvnet/ruflo --skill cognitive-pattern -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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