Clairvoyance

ESP for AI Coding

Good software isn't written. It's designed.

Open your agent's third eye and see what it's been missing.

Claude Code

1/plugin marketplace add codybrom/clairvoyance
2/plugin install clairvoyance@clairvoyance-plugins

Other Agents (via Skills.sh)

$ npx skills add codybrom/clairvoyance --skill '*'

Universal (LLMs.txt)

clairvoyance.fyi/llms-full.txt

Also on Codex, Cursor, Gemini CLI, and more. See all install instructions

Extrasensory Perspective

Your agent already knows how to code. Teach it how to sense. Battle-tested philosophy on software design, grounded in decades of engineering experience.

Structure

  • Deep Modules
  • Module Boundaries
  • Information Hiding
  • Pull Complexity Down
4 skills

Abstraction

  • General Vs Special
  • Error Design
  • Abstraction Quality
3 skills

Clarity

  • Naming Obviousness
  • Comments Docs
2 skills

Process

  • Strategic Mindset
  • Design It Twice
  • Code Evolution
  • Complexity Recognition
4 skills

Diagnostic

  • Red Flags
  • Design Review
  • Diagnose
3 skills

Read the Tea Leaves

Complexity hides all over your code. Each skill teaches your AI assistant exactly where to look.

Browse all skills or take the quiz →
Structure

Deep Modules

Measures module depth: whether the interface is simple relative to the implementation behind it.

Read →
Structure

Module Boundaries

Evaluates where module boundaries are drawn and whether modules should be merged or split.

Read →
Structure

Information Hiding

Checks for information leakage across module boundaries, including temporal decomposition and false encapsulation.

Read →
Structure

Pull Complexity Downwards

Checks whether complexity is pushed to callers or absorbed by implementations — the direction complexity flows.

Read →
Abstraction

General vs. Special-Purpose

Evaluates whether interfaces are appropriately general-purpose.

Read →
Abstraction

Error Design

Reviews error handling and exception design, applying the "define errors out of existence" principle.

Read →
Abstraction

Abstraction Quality

Evaluates whether abstractions provide a genuinely different way of thinking or are structurally shallow.

Read →
Clarity

Naming & Obviousness

Reviews naming quality and code obviousness via the isolation test, scope-length principle, and consistency audit.

Read →
Clarity

Comments & Documentation

Reviews comment quality and documentation practices: the four comment types, comments-first workflow, and comment rot.

Read →
Process

Strategic Mindset

Assesses whether code reflects strategic or tactical thinking, including the 10-20% investment rule and tactical-tornado patterns.

Read →
Process

Design It Twice

Generates and compares at least two fundamentally different design alternatives on concrete criteria before committing.

Read →
Process

Code Evolution

Evaluates whether changes to existing code maintain or degrade design quality.

Read →
Process

Complexity Recognition

Diagnoses whether complexity exists and where it comes from, using the three-symptom, two-root-cause framework.

Read →
Diagnostic

Red Flags Diagnostic

Scans code against 17 design smells (the book's 14 named Red Flags plus 3 process-stage signals) and produces a structured diagnostic report.

Read →
Diagnostic

Design Review Orchestrator

Orchestrates a structured design review, running the other skills as a diagnostic funnel from complexity triage to a full red-flags sweep.

Read →
Diagnostic

Diagnose

Routes a vague symptom or complaint to the most relevant Clairvoyance skill via a decision tree.

Read →

See It in Action

Check out how Clairvoyance skills activate in real coding sessions. Your agent sees the design problem, applies the right principle and rewrites with intent.

clairvoyance · session replay

See through complexity

The principles behind Clairvoyance are inspired by the teachings of John Ousterhout and his book A Philosophy of Software Design. If you haven't read it, you really should.

Star on GitHub