Logo vun Cognitive Mode

Cognitive Mode

Communautéit
DNYoussef
cognitive-mode

Comprehensive cognitive mode management skill for the VERILINGUA x VERIX x DSPy x GlobalMOO integration. Enables automatic mode selection, frame configuration, VERIX epistemic notation, and GlobalMOO optimization. Use this skill when configuring AI behavior for specific task types, optimizing prompt engineering, or ensuring epistemic consistency in responses.

Iwwersiicht

EditeurDNYoussef
Repositorycontext-cascade
Skill-Nummcognitive-mode
Stären
32
Forks
7
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum DNYoussef op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Cognitive Mode an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/DNYoussef/context-cascade/tree/main/cognitive-architecture/skills/cognitive-mode
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/DNYoussef/context-cascade.git /tmp/context-cascade
mkdir -p .claude/skills
cp -r /tmp/context-cascade/cognitive-architecture/skills/cognitive-mode .claude/skills/cognitive-mode
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Cognitive Mode an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Cognitive Mode automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Cognitive Mode net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

SKILL-SPECIFIC GUIDANCE

When to Use This Skill

  • Configuring cognitive modes for different task types (research, coding, security)
  • Optimizing prompt engineering through GlobalMOO optimization
  • Ensuring epistemic consistency with VERIX notation
  • Selecting appropriate VERILINGUA cognitive frames
  • Running multi-objective optimization on prompt configurations
  • Meta-loop recursive improvement on foundry skills

When NOT to Use This Skill

  • Simple one-off tasks that don't require specialized configuration
  • Tasks where speed is paramount and optimization overhead is unacceptable
  • When default balanced mode is sufficient
  • Non-technical conversational interactions

Success Criteria

  • Appropriate mode selected for task domain and complexity
  • VERIX epistemic notation applied correctly to claims
  • Cognitive frames activated match task requirements
  • GlobalMOO optimization produces Pareto-optimal configurations
  • Cross-model consistency maintained (Claude + Gemini + Codex)

Edge Cases & Limitations

  • Mode selection may be uncertain for novel task types
  • VERIX parsing may miss nuanced epistemic markers
  • GlobalMOO optimization requires multiple iterations
  • Some cognitive frames may conflict (e.g., minimal vs comprehensive)

Critical Guardrails

  • NEVER skip VERIX grounding for high-confidence claims
  • ALWAYS validate mode selection for security-sensitive tasks
  • NEVER use minimal mode for compliance/audit tasks
  • ALWAYS include confidence levels for factual assertions
  • NEVER modify holdout corpus (never_optimize: true)

Evidence-Based Validation

  • Mode selection validated against expected_metrics
  • VERIX consistency checked via ConsistencyChecker
  • Optimization results compared to Pareto frontier
  • Cross-model evaluation via 3-model council

Cognitive Mode Management

A comprehensive skill for managing cognitive modes, VERILINGUA frames, VERIX epistemic notation, and GlobalMOO optimization in the Context Cascade plugin system.

Overview

This skill integrates four major systems:

  1. VERILINGUA: 7 cognitive frames from diverse linguistic traditions
  2. VERIX: Epistemic notation for claim validation
  3. DSPy: Two-layer prompt optimization (Level 2 caching + Level 1 evolution)
  4. GlobalMOO: Multi-objective optimization for configuration tuning

Slash Commands

/mode - Mode Selection

Select and configure cognitive modes:

bash
/mode                    # List available modes
/mode <name>             # Select mode by name
/mode auto "<task>"      # Auto-select based on task
/mode info <name>        # Show mode details
/mode recommend "<task>" # Get top-3 recommendations

Available Modes:

  • strict: Maximum epistemic consistency (research, legal, medical)
  • balanced: Good tradeoff for general use (default)
  • efficient: Optimized for token efficiency (high-volume APIs)
  • robust: Edge case handling (security, adversarial)
  • minimal: Lightweight with no frames (simple Q&A)

/eval - Evaluation

Evaluate tasks against cognitive architecture metrics:

bash
/eval "<task>" "<response>"  # Evaluate response
/eval --corpus <path>        # Run corpus evaluation
/eval --metrics              # Show metric definitions
/eval --graders              # List available graders

Metrics:

  • task_accuracy: Correctness (0.0 - 1.0)
  • token_efficiency: Tokens vs target (0.0 - 1.0)
  • edge_robustness: Adversarial handling (0.0 - 1.0)
  • epistemic_consistency: VERIX compliance (0.0 - 1.0)

/optimize - GlobalMOO Optimization

Run multi-objective optimization:

bash
/optimize               # Show optimization status
/optimize start         # Start optimization run
/optimize suggest       # Get configuration suggestions
/optimize report        # Get optimization report
/optimize phase <A|B|C> # Run specific cascade phase

Three-MOO Cascade:

  • Phase A: Framework structure optimization
  • Phase B: Edge case discovery
  • Phase C: Production frontier refinement

/pareto - Pareto Frontier

Explore the Pareto frontier:

bash
/pareto                  # Display frontier
/pareto filter <metric>  # Filter by metric
/pareto export           # Export as JSON
/pareto distill          # Distill into named modes
/pareto visualize        # ASCII visualization

/frame - VERILINGUA Frames

Configure cognitive frames:

bash
/frame                    # List all frames
/frame <name>             # Show frame details
/frame enable <names>     # Enable frames
/frame disable <names>    # Disable frames
/frame preset <name>      # Apply preset

Frames:

  • evidential: Turkish -mis/-di ("How do you know?")
  • aspectual: Russian pfv/ipfv ("Complete or ongoing?")
  • morphological: Arabic trilateral roots (semantic decomposition)
  • compositional: German compounding (primitives to compounds)
  • honorific: Japanese keigo (audience calibration)
  • classifier: Chinese measure words (object comparison)
  • spatial: Guugu Yimithirr (absolute positioning)

Presets:

  • all: All 7 frames
  • minimal: No frames
  • research: evidential + aspectual
  • coding: compositional + spatial
  • documentation: honorific + compositional
  • analysis: evidential + aspectual + morphological
  • security: evidential + spatial + classifier

/verix - Epistemic Notation

Apply VERIX notation:

bash
/verix                     # Show VERIX guide
/verix parse "<text>"      # Parse for VERIX elements
/verix validate "<claim>"  # Validate epistemic consistency
/verix annotate "<text>"   # Add VERIX annotations
/verix level <0|1|2>       # Set compression level

VERIX Structure:

STATEMENT := ILLOCUTION + AFFECT + CONTENT + GROUND + CONFIDENCE + STATE

Compression Levels:

  • L0: AI-AI (Emoji shorthand, maximum compression)
  • L1: AI+Human (Full annotation, balanced)
  • L2: Human (Natural language, lossy)

Thin Waist Architecture

Two contracts that NEVER change:

Contract 1 - PromptBuilder:

python
def build(task: str, task_type: str) -> Tuple[str, str]:
    """Returns (system_prompt, user_prompt)"""

Contract 2 - Evaluate:

python
def evaluate(config_vector: List[float]) -> OutcomesVector:
    """config_vector -> outcomes_vector"""

Configuration Vector

14-dimensional vector for GlobalMOO:

  • Dimensions 0-6: Framework flags (7 cognitive frames)
  • Dimension 7: VERIX strictness (0-2)
  • Dimension 8: Compression level (0-2)
  • Dimensions 9-13: Reserved for future use

Integration with Meta-Loop

This skill integrates with the recursive improvement system:

  1. Prompt Forge: Optimizes prompts (including skill prompts)
  2. Skill Forge: Applies improvements (including to itself)
  3. Agent Creator: Creates auditor agents
  4. Eval Harness: Gates ALL changes (FROZEN - never self-improves)

3-Model Council

For cross-model compatibility, evaluation uses a 3-model council:

  • Claude (primary)
  • Gemini (validation)
  • Codex (technical verification)

All three must agree for high-confidence claims.


Core Principles

1. Mode-First Thinking

Always select the appropriate cognitive mode before executing tasks. Modes encode domain-specific optimizations that dramatically improve outcomes. Don't default to balanced - consciously choose based on task requirements.

2. Epistemic Hygiene

Every high-confidence claim requires grounding. Use VERIX notation to make epistemic status explicit. Ungrounded certainty is a red flag - always provide evidence basis for strong assertions.

3. Multi-Objective Optimization

Recognize that accuracy, efficiency, robustness, and consistency often trade off against each other. Use GlobalMOO to find Pareto-optimal configurations rather than optimizing a single metric.


Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Using minimal mode for security tasksMinimal mode lacks evidential and spatial frames critical for security analysis. Missing grounding leads to unverified claims about vulnerabilities.Use robust or strict mode for security tasks. Enable evidential + spatial + classifier frames.
High confidence without groundingVERIX validation will flag ungrounded certainty. Reduces epistemic_consistency score. Undermines trust in system outputs.Always provide ground for conf > 80%. Use [ground: direct observation] or [ground: expert testimony].
Optimizing holdout corpusHoldout corpus marked never_optimize: true. Optimizing it causes Goodhart's Law - optimizing for benchmark rather than true capability.Separate training (core_corpus) from validation (holdout). NEVER modify holdout tasks.

Conclusion

The cognitive-mode skill provides a unified interface to VERILINGUA, VERIX, DSPy, and GlobalMOO. By selecting appropriate modes, applying epistemic notation, and running multi-objective optimization, you can dramatically improve AI task performance across diverse domains.

Key insight: The cognitive architecture is itself subject to recursive improvement. The prompt-architect, skill-forge, and agent-creator form a foundry triangle that continuously optimizes the system - but always gated by the frozen eval harness to prevent Goodhart's Law.

Heefeg gestallte Froen

Wat mécht de KI-Skill Cognitive Mode?

Comprehensive cognitive mode management skill for the VERILINGUA x VERIX x DSPy x GlobalMOO integration. Enables automatic mode selection, frame configuration, VERIX epistemic notation, and GlobalMOO optimization. Use this skill when configuring AI behavior for specific task types, optimizing prompt engineering, or ensuring epistemic consistency in responses.

Firwat Cognitive Mode op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Cognitive Mode besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Cognitive Mode an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/DNYoussef/context-cascade/tree/main/cognitive-architecture/skills/cognitive-mode an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Cognitive Mode benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Cognitive Mode benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Cognitive Mode domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Cognitive Mode gratis?

Jo. De Skill gëtt vum DNYoussef ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇