Agent skill

Skylv Metacognition Engine

by LeoYeAI in LeoYeAI/openclaw-master-skills

Enables AI agents to reflect on their own reasoning, detect cognitive biases, and improve decision quality through structured self-examination loops.

MITAuto-check passed

Install Skylv Metacognition Engine

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill skylv-metacognition-engine -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills skylv-metacognition-engine --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/skylv-self-thinking-agent .claude/skills/skylv-metacognition-engine && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
skylv-metacognition-engine
GitHub stars
2.2k
Token cost
~583 tokens
SKILL.md length
213 words
Files
4
Skills in repo
1,235
Repo updated
First seen
Licence
MIT

At a glance

Enables AI agents to reflect on their own reasoning, detect cognitive biases, and improve decision quality through structured self-examination loops.

  • Works in 3 steps: Pre-Output Check → Cognitive Bias Detection → Uncertainty Quantification
  • SKILL.md covers What is Metacognition?, Core Framework, Example and Use Cases, plus 1 more section
  • Runs JavaScript scripts from its folder

What it does

Skylv Metacognition Engine is an agent skill from LeoYeAI/openclaw-master-skills. Enables AI agents to reflect on their own reasoning, detect cognitive biases, and improve decision quality through structured self-examination loops.

Its SKILL.md is about 580 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `.clawhub/origin.json`, `_meta.json` and `metacognition_engine.js`).

The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.

Example prompts

  • “Use the skylv-metacognition-engine skill to enable AI agents to reflect on their own reasoning, detect cognitive biases, and improve decision…”
  • “/skylv-metacognition-engine”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Pre-Output Check
  2. Cognitive Bias Detection
  3. Uncertainty Quantification

What it can do on your machine

Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Skylv Metacognition Engine loads about 583 tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 213 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~583

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 213 words, ~583 tokens.

Download SKILL.mdSave it as .claude/skills/skylv-metacognition-engine/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
skylv-metacognition-engine
description
Enables AI agents to reflect on their own reasoning, detect cognitive biases, and improve decision quality through structured self-examination loops.
keywords
metacognition, self-reflection, bias-detection, reasoning, self-improvement, agent-ai
triggers
metacognition, self-reflection, agent thinking, bias detection, reasoning quality

Metacognition Engine

Give your AI agent the ability to think about its own thinking.

What is Metacognition?

Metacognition = "thinking about thinking." This skill enables AI agents to:

  • Detect when they're uncertain or confused
  • Identify reasoning gaps before they cause errors
  • Recognize cognitive biases in their own output
  • Self-correct before delivering answers

Core Framework

1. Pre-Output Check

Before responding, run through these questions:

1. Am I confident in this answer? (Yes / Partial / No)
2. What are the 3 most likely ways this could be wrong?
3. What information would I need to be 100% certain?
2. Cognitive Bias Detection

Check for common biases:

  • Anthropomorphism — projecting human traits onto AI
  • Authority bias — deferring to stated credentials without verification
  • Hindsight bias — acting like something was obvious after the fact
  • Confirmation bias — seeking only confirming evidence
3. Uncertainty Quantification

Express confidence explicitly:

ConfidenceMeaningAction
90%+Highly confidentAnswer directly
70-89%Likely correctAnswer + add caveat
50-69%UncertainAsk clarifying questions
<50%Likely wrongDecline or escalate

Example

Without metacognition:

"The capital of France is Paris."

With metacognition:

"Based on my training data, the capital of France is Paris (confidence: 95%). Note: My knowledge has a cutoff date. For real-time data, verify current information."

Use Cases

  • Critical decisions: Add metacognition checkpoint before any consequential answer
  • User corrections: When a user corrects you, analyze WHY you were wrong
  • Complex problems: Run bias detection before solving multi-step problems
  • Knowledge boundaries: Automatically flag when you're approaching your knowledge limit

MIT License © SKY-lv

© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files in skills/skylv-self-thinking-agent of LeoYeAI/openclaw-master-skills.

  • SKILL.md
  • .clawhub/origin.json
  • _meta.json
  • metacognition_engine.js

Open the folder on GitHubat commit e5199b5

Compare with similar skills

Skylv Metacognition Engine next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Skylv Metacognition Engine compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Skylv Metacognition Engine this skillLeoYeAI/openclaw-master-skills2.2k—~583Automated safety check: PassMIT
Reflectalirezarezvani/claude-skills28k1 repos~2.4kAutomated safety check: PassMIT
Cognitive Patternruvnet/ruflo74k—~384Automated safety check: NotesMIT
Threat Detectionalirezarezvani/claude-skills28k—~3.5kAutomated safety check: PassMIT
Deepseek Reasonruvnet/ruflo74k—~626Automated safety check: NotesMIT
Meta Cognitive Reasoningaiskillstore/marketplace4331 repos~3.4kAutomated safety check: PassNone

Similar skills

  • Reflect

    alirezarezvani/claude-skills

    Mid-conversation reflection skill that pauses execution and zooms out from detail-mode to honestly reassess direction, assumptions, and bias.

    28k GitHub starsUsed in 1 repo~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Cognitive Pattern

    ruvnet/ruflo

    Define and manage cognitive patterns for agent reasoning and decision-making

    74k GitHub stars~384 tokensUpdated yesterday
    Auto-check: notes
  • Threat Detection

    alirezarezvani/claude-skills

    A skill your agent uses when hunting for threats in an environment, analyzing IOCs, or detecting behavioral anomalies in telemetry.

    28k GitHub stars~3.5k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Deepseek Reason

    ruvnet/ruflo

    Reasoning-mode completion against DeepSeek's deepseek-reasoner model (R1) via /v1/chat/completions.

    74k GitHub stars~626 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check: notes
  • Meta Cognitive Reasoning

    aiskillstore/marketplace

    Meta-cognitive reasoning specialist for evidence-based analysis, hypothesis testing, and cognitive failure prevention.

    433 GitHub starsUsed in 1 repo~3.4k tokens
    DevelopmentAuto-check passed
  • Reflection Coach

    paperclipai/paperclip

    Reflect on another agent's recent execution record and propose the smallest durable instruction, skill, or tool-description change.

    100k GitHub stars~3k tokensUpdated today
    Sales & SupportAuto-check passed

More from LeoYeAI/openclaw-master-skills

All 1,200 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Skylv Metacognition Engine

What does Skylv Metacognition Engine do?

Enables AI agents to reflect on their own reasoning, detect cognitive biases, and improve decision quality through structured self-examination loops. Skylv Metacognition Engine is an agent skill from LeoYeAI/openclaw-master-skills. Enables AI agents to reflect on their own reasoning, detect cognitive biases, and improve decision quality through structured self-examination loops.

How do I install Skylv Metacognition Engine in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill skylv-metacognition-engine -a claude-code`. Or copy the skill folder (skills/skylv-self-thinking-agent in LeoYeAI/openclaw-master-skills) into .claude/skills/skylv-metacognition-engine in your project. Claude Code loads it when a task matches its description.

How do I install Skylv Metacognition Engine in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill skylv-metacognition-engine -a codex`. Or copy the skill folder (skills/skylv-self-thinking-agent in LeoYeAI/openclaw-master-skills) into .agents/skills/skylv-metacognition-engine in your project. Codex loads it when a task matches its description.

Can I use Skylv Metacognition Engine in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill skylv-metacognition-engine -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/skylv-metacognition-engine, .gemini/skills/skylv-metacognition-engine, .github/skills/skylv-metacognition-engine and .opencode/skills/skylv-metacognition-engine in your project.

What does Skylv Metacognition Engine need to run?

Going by SKILL.md and its folder, Skylv Metacognition Engine needs JavaScript for the scripts in its folder. Our summary lists: Node.js.

Does Skylv Metacognition Engine access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Skylv Metacognition Engine safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Skylv Metacognition Engine use?

Skylv Metacognition Engine is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Skylv Metacognition Engine use?

About 583 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Skylv Metacognition Engine?

Skills that share tags, products or a category with Skylv Metacognition Engine: Reflect (alirezarezvani/claude-skills, 28k stars), Cognitive Pattern (ruvnet/ruflo, 74k stars), Threat Detection (alirezarezvani/claude-skills, 28k stars) and Deepseek Reason (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Skylv Metacognition Engine?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.