Skip to content
metacognition logo

Metacognition Protocol

metacognition

Validates approach and checks assumptions before/after tasks. Use when: starting work, encountering errors, or switching phases.

SKILL.md

Full skill instructions

Metacognition Protocol

Purpose

Self-assessment checkpoints.

When to Apply [MANDATORY CHECKPOINTS]

BLOCKING METACOGNITION REQUIRED at:

  • [CHECKPOINT] Task type changes → CANNOT proceed without assessment
  • [CHECKPOINT] After completing ANY task from Work Plan document → MUST evaluate before next task
  • [CHECKPOINT] When encountering error or unexpected result → ASSESS approach immediately
  • [CHECKPOINT] Before writing first line of new feature → VALIDATE approach first
  • [CHECKPOINT] When switching between major phases → CONFIRM all gates passed

ENFORCEMENT: Skipping metacognition = CRITICAL VIOLATION

Assessment Questions

1. Task Understanding

  • What is the fundamental goal?
  • Am I solving the root cause or symptom?
  • Do I have all necessary information?
  • Are success criteria clear and measurable?
  • What are the known unknowns at this point?

2. Current State

  • What rules are currently loaded?
  • Which rules are actually being used?
  • What assumptions am I making?
  • What could go wrong?

3. Approach Validation

  • Is my approach the simplest solution?
  • Am I following established patterns?
  • Have I considered alternatives?
  • Is this maintainable long-term?
  • What would make me reverse this decision? (Kill criteria)

Rule Selection Guide

By Task Type

Task TypeEssential RulesOptional Rules
Implementationlanguage/​rules.md, ai-development-guide.mdarchitecture patterns
Bug Fixai-development-guide.mddebugging patterns
Designdocumentation-criteria.mdarchitecture patterns
Testinglanguage/​testing.mdcoverage strategies
Refactoringai-development-guide.mddesign patterns

Loading Strategy

Immediate needs: Load only what's required now Progressive loading: Add rules as specific needs arise Cleanup: Unload rules after task completion

Note: Context management is user's responsibility. Ask for guidance if unsure.

Common Decision Points

When Starting Work [BLOCKING CHECKLIST]

☐ [MUST VERIFY] Task type and scale documented with evidence ☐ [MUST VERIFY] Required rules LOADED and file paths listed ☐ [MUST VERIFY] Success criteria MEASURABLE and specific ☐ [MUST VERIFY] Approach validated against existing patterns

GATE: CANNOT start coding if ANY unchecked

During Execution [PROGRESS GATES]

☐ [VERIFY] Following Work Plan from docs/​plans/ ☐ [VERIFY] Making measurable progress (list completed items) ☐ [EVALUATE] Additional rules needed? (load IMMEDIATELY if yes) ☐ [EVALUATE] Blocked for >10 minutes? (MUST ask for help)

Dynamic Rule Loading Triggers:

  • Same error occurs 2+ times → Load ai-development-guide.md for debugging patterns
  • "Performance" mentioned in requirements → Load optimization rules if available
  • "Security" mentioned in requirements → Load security guidelines if available
  • External API/​service integration needed → Load integration patterns if available

ENFORCEMENT: If progress stalled → MANDATORY metacognition

After Completion [EXIT GATES]

☐ [VERIFIED] ALL completion criteria met with evidence ☐ [VERIFIED] Code quality metrics passed (lint, test, build) ☐ [VERIFIED] Documentation updated (if applicable) ☐ [RECORDED] What worked/​failed for next iteration

GATE: CANNOT mark complete without ALL verified

Anti-Pattern Recognition

PatternSignsCorrection
Over-engineeringComplex solution for simple problemSimplify approach
Under-planningJumping into code too quicklyStep back, plan first
Tunnel visionIgnoring alternativesConsider other approaches
Quality debtSkipping tests or docsComplete properly
Context bloatLoading unnecessary rulesLoad only essentials

Error Recovery

When stuck:

  1. Identify what's blocking progress
  2. Check if it's a knowledge gap or logic error
  3. Review loaded rules for guidance
  4. Consider simpler approach
  5. Ask user for clarification

ERROR HANDLING PROTOCOL:

When encountering an error or blocker:

  • [IMMEDIATE] Execute metacognition assessment
  • [SEARCH] Look for similar patterns in codebase
  • [RE-READ] Relevant rule files for guidance
  • [EVALUATE] Can I solve this with available information?

If unable to resolve:

  • [DOCUMENT] Exact error message and context
  • [EXPLAIN] What was attempted and why it failed
  • [REQUEST] User guidance with specific questions

PRINCIPLE: Ask for help when genuinely stuck, not after arbitrary attempt count

Learning from Experience

Track:

  • What worked well
  • What caused delays
  • Which rules were helpful
  • What patterns emerged
  • What to do differently

Guidelines

  • Be honest: Acknowledge when uncertain
  • Be systematic: Follow structured approach
  • Be efficient: Don't overthink simple tasks
  • Be thorough: Don't skip important steps
  • Be adaptive: Adjust approach based on feedback

Notes

Remember:

  • Metacognition prevents costly mistakes
  • Regular reflection improves quality
  • It's okay to pause and think
  • Ask for help when genuinely stuck
  • Perfect is the enemy of good

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View