AgentStack
SKILL verified MIT Self-run

Critical Thinking

skill-cogni-ai-ou-cogni-ai-agent-skills-critical-thinking · by Cogni-AI-OU

>-

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add skill-cogni-ai-ou-cogni-ai-agent-skills-critical-thinking

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Critical Thinking? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

critical-thinking

A cognitive framework for deep analytical reasoning.

When to Use

  • When confronted with an ambiguous, contradictory, or complex problem that defies immediate technical fixes.
  • Before embarking on a massive, repository-wide architectural refactoring.
  • When an automated test or build fails silently and standard debugging yields no obvious root cause.

When Not to Use

  • For trivial syntax errors or obvious spelling mistakes.
  • When the user explicitly requests immediate, uncritical execution of a basic command without review.
  • If a problem is already solved and simply requires writing documentation.

Common Pitfalls

  • Paralysis by Analysis: Spending so much time red-teaming and generating alternative hypotheses that no actual code gets written or debugged.
  • Ignoring Empirical Data: Relying purely on abstract logical models while ignoring the actual tracebacks or logs presented in the current environment.
  • Over-Modeling: Writing a 500-line MiniZinc model for a problem that can be solved with a simple unit test.

Core Process

  1. Deconstruct & Frame: Separate the final goal (Conclusion) from the underlying logic (Premises).
  2. Surface Hidden Dependencies: Identify what must be true for the current logic to hold (assumptions, state, concurrency). State your assumptions explicitly. If uncertain, ask.
  3. Generate Hypotheses: Explicitly list alternative explanations or missing context before acting. If multiple interpretations exist, present them—don't pick silently.
  4. Push for Simplicity: If a simpler approach exists, say so. Push back when warranted.
  5. Clarification Protocol: If something is unclear, stop. Name what's confusing. Ask.
  6. Transform Tasks into Verifiable Goals: Reframe ambiguity into provable outcomes:
  • "Add validation" → "Write tests for invalid inputs, then make them pass"
  • "Fix the bug" → "Write a test that reproduces it, then make it pass"
  • "Refactor X" → "Ensure tests pass before and after"
  1. Root Cause Isolation: When troubleshooting, split the problem into smaller, reproducible steps and use version history (git blame/git log) or execution logs to narrow down the fault.
  2. Adversarial Red-Teaming: Aggressively attempt to break your proposed plan. Identify the exact line or condition most likely to fail.
  3. Constraint Formulation (MiniZinc): When applicable, formally model the problem's constraints by writing dry-code definitions in MiniZinc to expose hidden dependencies and restrictions.
  4. Verify Systemically: Evaluate the decision against immediate needs, technical debt accrual, and long-term maintainability.

Core Principles

  • Active Disconfirmation: Do not seek evidence that confirms your theory; design experiments that would prove your favorite hypothesis wrong.
  • Burden of Proof Calibration: Align evidence requirements with risk. High-risk changes demand formal-level proof; low-risk changes require empirical checks.
  • Constraint-Aware Design: Explicitly map and adhere to project-specific constraints (architectural, performance, security).
  • Fact-Based Reasoning: Base every decision on empirically gathered facts from the codebase rather than assumptions.
  • Formal Constraint Mapping: Use MiniZinc snippets as a dry-code exercise to rigorously define problem boundaries, resources, and requirements.
  • Goal-Driven Execution: Define success criteria. Loop until verified. Transform tasks into verifiable goals. Strong success criteria let you loop independently.
  • Information Gain Optimization: Prioritize actions that maximize information about the system's state over actions that merely "try to fix it."
  • Internal Tension Scan: Search for self-contradictions within the plan (e.g., claiming a system is "high-performance" while introducing O(n²) complexity in a critical path).
  • Simplicity First: Minimum code that solves the problem. Nothing speculative.
  • Socratic Depth: Apply a minimum "3-Why" drill-down for any anomaly. Move from the immediate symptom to the behavioral anomaly, to the foundational flaw.
  • Surgical Changes: Touch only what you must. Clean up only your own mess.
  • The Steelman Protocol: Before critiquing a plan, articulate it in its strongest possible form. If you cannot Steelman it, you are not ready to reject it.
  • Think Before Coding: Don't assume. Don't hide confusion. Surface tradeoffs.
  • Use Judgment: For trivial tasks, use judgment.

Diagnostics and Usage Patterns

  • MiniZinc Dry-Code:

Write MiniZinc .mzn snippets to formally declare the parameters, decision variables, and constraints of the problem space, even if you do not execute the solver immediately.

What to Avoid

  • Adjacent Polishing: Don't "improve" adjacent code, comments, or formatting.
  • Confirmation Bias: Over-weighting evidence that supports an initial guess while ignoring contradictory anomalies.
  • Feature Creep: No features beyond what was asked.
  • Impossible Scenario Guarding: No error handling for impossible scenarios.
  • The Sunk Cost Fallacy: Persisting with a failing approach or refactor just because effort was already invested.
  • Over-Abstraction: No abstractions for single-use code.
  • Proactive Refactoring: Don't refactor things that aren't broken.
  • Shallow Fixes: Patching symptoms instead of addressing the architectural or structural root causes.
  • Speculative Generality: No "flexibility" or "configurability" that wasn't requested.
  • Unauthorized Deletion: Don't remove pre-existing dead code unless asked.

Limitations

  • This skill provides a cognitive framework but does not execute external tooling; it relies on the agent to apply these principles internally during planning, execution, and review phases.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.