Logo Cognitive Mode

Cognitive Mode

Cộng đồng
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.

Tổng quan

Nhà phát hànhDNYoussef
Kho mãcontext-cascade
Tên kỹ năngcognitive-mode
Sao
32
Bản fork
7
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được DNYoussef công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Cognitive Mode trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/DNYoussef/context-cascade/tree/main/cognitive-architecture/skills/cognitive-mode
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Cognitive Mode trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Cognitive Mode ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Cognitive Mode không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Câu hỏi thường gặp

Kỹ năng AI Cognitive Mode làm được gì?

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.

Vì sao nên dùng Cognitive Mode trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Cognitive Mode là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Cognitive Mode trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/DNYoussef/context-cascade/tree/main/cognitive-architecture/skills/cognitive-mode. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Cognitive Mode?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Cognitive Mode với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Cognitive Mode với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Cognitive Mode có miễn phí không?

Có. Kỹ năng này được DNYoussef phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇