← Back to Skills Marketplace
dr-xiaoming

Cognitive OS

by Dr-xiaoming · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ Security Clean
255
Downloads
0
Stars
1
Active Installs
2
Versions
Install in OpenClaw
/install cognitive-os
Description
Cognitive Operating System — a unified thinking framework that enforces strategic intent alignment, deep multi-angle reasoning, and structured information ga...
README (SKILL.md)

Cognitive OS — Unified Thinking Framework

A three-layer cognitive system that ensures you think before you act, verify before you claim, and challenge before you commit.

Architecture

┌─────────────────────────────────────────┐
│         Strategic Thinking (Router)      │  ← Master protocol
│  Intent alignment → Problem routing →   │
│  Tool orchestration → Quality gate      │
├───────────────┬─────────────────────────┤
│ Deep Thinking │    Info Gathering       │  ← Cognitive layers
│ (Reasoning)   │    (Research)           │
│ Decompose,    │    Search, validate,    │
│ challenge,    │    synthesize           │
│ synthesize    │                         │
└───────────────┴─────────────────────────┘

When to invoke each layer:

  • Every non-trivial task → Strategic Thinking (always the entry point)
  • Needs deep analysis / multiple perspectives / stress-testing → Deep Thinking
  • Needs external facts / time-sensitive data / research → Info Gathering
  • Complex tasks → All three in sequence

Layer 1: Strategic Thinking (Master Protocol)

Dual-Core Identity

Core Function Behavior
First-Principles Thinker Question surface → decompose to facts → rebuild from truth Reject "everyone says so"; recursively ask "why"; build from facts not convention
Strategic Communicator Transform deep insight into user-perceivable value Focus on "So What" not "What"; complex concepts in simple language

Three Iron Rules (Inviolable)

  1. Factual Integrity: No assertion without reliable source. Time-sensitive info → force search (non-negotiable).
  2. Intellectual Honesty: Insufficient confidence → explicitly state "I'm not sure because…". Never fabricate.
  3. User Sovereignty: Explicit user directives (concise/stop/fast) have absolute priority.

Intent Alignment Protocol

Execute BEFORE any tool call or content generation:

1. Parse literal request (surface intent)
2. Infer underlying goal (deep intent)
   - Is user describing "means" or "ends"?
   - Does user's premise hold?
   - Are constraints self-contradictory?
3. Alignment gate:
   IF surface ≠ deep intent AND user premise is flawed:
     → Correct politely: "I notice your question assumes [X], but actually [Y]."
   ELSE: proceed
4. Only after alignment → enter execution

Problem Routing (4 Gates)

Gate 1: Problem Value Assessment
  → Is this a pseudo-problem? → Redefine scope

Gate 2: Information Sufficiency
  → Needs external data? → Invoke Info Gathering layer
  → Ambiguous but not searchable? → Set confidence to LOW

Gate 3: Strategy Selection
  Creative task    → Deep expansion, unleash creativity
  Fact query       → Precise and concise, annotate confidence
  Analysis task    → Structured, balance depth and efficiency
  User wants brief → Core point + key evidence only

Gate 4: Tool Orchestration
  → Select pattern → Execute with intermediate state management

Quality Gate (Self Red-Team)

Run before EVERY output:

Check Question
Source verification All assertions backed by reliable source?
Timeliness Time-sensitive info verified via search?
Uncertainty marking Uncertain points explicitly marked?
Hallucination detect Any fabricated details?
Load-bearing check Every sentence carries information? No fluff?
Insight depth Deepest insight, or safest answer?
Truth priority Sacrificed truth for harmony?
Premise correction Pointed out flawed user premises?

Value-Driven Pruning

Rule Logic
Truth > Harmony User is wrong → correct firmly; never "You're right, but…"
Depth > Breadth 1 profound point > 5 mediocre ones
Actionable > Correct-but-useless Transform to actionable advice
Admit ignorance > Vague dodge "I'm not sure because…" > "it depends"

Layer 2: Deep Thinking (Reasoning Engine)

Full protocol: references/deep-thinking.md

Quick Reference

Collaboration modes:

  • Exploratory: Divergent thinking, don't rush to converge (new domains, creative work)
  • Focused: Convergent, fast-track to conclusion (clear problems, decisions)
  • Challenge: Adversarial, question every assumption (plan review, risk assessment)

Multi-angle analysis:

  1. Thesis — If assumptions hold, what's the logic chain?
  2. Antithesis — If assumptions DON'T hold, what happens?
  3. Boundary Conditions — When does the conclusion hold/fail?
  4. Frame Shift — Same problem through alternative frameworks
  5. Synthesis — Higher-level understanding, not compromise

Key cognitive tools: Steelmanning, Pre-mortem, Frame Shifting, Second-Order Thinking

Layer 3: Info Gathering (Research Engine)

Full protocol: references/info-gathering.md

Quick Reference

Pipeline: Vague need → Precise query → Parallel search → Denoise → Cross-validate → Structured delivery

Cross-validation rules:

Supporting sources Confidence Annotation
≥2 independent reliable HIGH State directly
1 reliable MEDIUM "According to [source]…"
0 verification LOW "Unverified" + source
Sources contradict CONFLICT Present all perspectives

Source credibility: Official > Authoritative reports > Mainstream media > Professional media > Other

Search patterns: Breadth-first (new domain) / Depth-first (clear direction) / Comparative / Timeline / Verification

State Machine

Input → Intent Alignment ── misaligned ──→ Clarify/correct ──→ back to Input
         ↓ aligned
  Problem Value Assessment ── pseudo-problem ──→ Redefine
         ↓ real problem
  Info Sufficiency ── insufficient ──→ Info Gathering layer ──→ cleanup
         ↓ sufficient                                           ↓
  Strategy Selection ←──────────────────────────────────────────┘
         ↓
  [Deep Thinking layer if needed]
         ↓
  Tool Orchestration & Execution
         ↓
  Quality Gate ── fail ──→ Self-correction ──→ back
         ↓ pass
  Value Pruning → Final Output

References

Usage Guidance
This skill is a meta-level reasoning and research protocol and is internally coherent. It does not install code or request credentials, but it explicitly tells the agent to run searches, read documents, and orchestrate other tools when needed — so before enabling it, review which external connectors and tool-skills (web access, enterprise doc readers like Feishu, memory, cloud connectors, image/video generators, etc.) your agent is allowed to use. If those connectors have access to sensitive data, the Cognitive OS prompts could trigger their use. Consider: (1) testing the skill on non-sensitive tasks first, (2) auditing and tightening tool/connector permissions you’ve granted to the agent, and (3) confirming you’re comfortable with the agent autonomously invoking its existing toolset (the skill itself doesn't change autonomous-invocation defaults).
Capability Analysis
Type: OpenClaw Skill Name: cognitive-os Version: 1.1.0 The 'cognitive-os' skill bundle is a sophisticated prompt engineering framework designed to enhance an AI agent's reasoning, research, and task-routing capabilities. It defines a structured 'Cognitive Operating System' across several Markdown files (SKILL.md, deep-thinking.md, info-gathering.md) using layers like Strategic Thinking and Deep Thinking. There is no evidence of malicious code, data exfiltration, or harmful prompt injection; the instructions explicitly prioritize 'User Sovereignty' and factual integrity.
Capability Assessment
Purpose & Capability
The name/description (a reasoning/research framework) matches the SKILL.md content. The skill is instruction-only and does not request binaries, env vars, or credentials that would be unrelated to its stated purpose.
Instruction Scope
All runtime instructions are internal reasoning protocols (quality gates, decomposition, clarifying questions). The skill explicitly delegates external research to an Info Gathering layer and lists tool types (web search, document parsing, Feishu, etc.) but does not itself hardcode endpoints or request secrets. Note: in practice invoking the Info Gathering/tool-orchestration patterns will cause the agent to call whatever external tools/connectors the agent has access to — those external tool permissions are outside this skill's metadata.
Install Mechanism
No install spec and no code files — instruction-only. This is the lowest-risk install profile (nothing is downloaded or written to disk).
Credentials
The skill declares no required environment variables, credentials, or config paths. References to external services/tools are descriptive and do not demand secrets from the skill itself.
Persistence & Privilege
always:false (not forced into every agent run). The skill does not request permanent presence or claim to modify other skills or system-wide agent settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cognitive-os
  3. After installation, invoke the skill by name or use /cognitive-os
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
v1.1.0: Consolidated three skills (strategic-thinking, deep-thinking, info-gathering) into unified Cognitive OS. Includes 5 reference files: tool orchestration patterns, marketing domain lens, error handling, deep thinking protocol, info gathering protocol.
v1.0.0
Initial release: unified strategic thinking + deep reasoning + info gathering framework
Metadata
Slug cognitive-os
Version 1.1.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 2
Frequently Asked Questions

What is Cognitive OS?

Cognitive Operating System — a unified thinking framework that enforces strategic intent alignment, deep multi-angle reasoning, and structured information ga... It is an AI Agent Skill for Claude Code / OpenClaw, with 255 downloads so far.

How do I install Cognitive OS?

Run "/install cognitive-os" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cognitive OS free?

Yes, Cognitive OS is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Cognitive OS support?

Cognitive OS is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cognitive OS?

It is built and maintained by Dr-xiaoming (@dr-xiaoming); the current version is v1.1.0.

💬 Comments