Clairvoyance
Software design skills for AI coding agents, inspired by A Philosophy of Software Design.
我該用這個嗎
品質與安全性
發現項目(17)
- LOW在 complexity-recognition 中
- LOW在 deep-modules 中
- LOW在 module-boundaries 中
- LOW在 information-hiding 中
- LOW在 pull-complexity-down 中
- LOW在 general-vs-special 中
- LOW在 error-design 中
- LOW在 abstraction-quality 中
- LOW在 naming-obviousness 中
- LOW在 comments-docs 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"mcp": {
"url": "https://clairvoyance.fyi/mcp"
}
}
}遠端端點
https://clairvoyance.fyi/mcpstreamable-http它能做什麼
工具清單
工具(17)
🟢deep-modules
Measures module depth: whether the interface is simple relative to the implementation behind it. Use when an interface has too many parameters or methods, many small classes each do too little, or methods just forward calls. Not for whether adjacent layers provide different abstractions (use abstraction-quality) or merging/splitting modules (use module-boundaries).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢module-boundaries
Evaluates where module boundaries are drawn and whether modules should be merged or split. Use when deciding whether to combine or separate two modules, when modules are tightly coupled, or when a change to one forces changes to another. Not for depth within a single module (use deep-modules) or abstraction-layer quality (use abstraction-quality).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢information-hiding
Checks for information leakage across module boundaries, including temporal decomposition and false encapsulation. Use when modules change together, implementation details leak across boundaries, or structure follows execution order rather than knowledge ownership. Not for merge/split decisions (use module-boundaries) or interfaces over-specialized for one caller (use general-vs-special).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢pull-complexity-down
Checks whether complexity is pushed to callers or absorbed by implementations — the direction complexity flows. Use when callers must do significant setup, handle errors the module could resolve, or configure things they don't understand. Not for module depth (use deep-modules), knowledge leakage (use information-hiding), or exception strategy once an error must surface (use error-design).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢general-vs-special
Evaluates whether interfaces are appropriately general-purpose. Use when checking interface generality, when if-branches or parameters serve only one caller, or when getters/setters expose internal representation. Not for information leakage across boundaries (use information-hiding) or auditing configuration parameters (use pull-complexity-down).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢error-design
Reviews error handling and exception design, applying the "define errors out of existence" principle. Use when reviewing error handling, when a module throws too many exceptions, or when callers must handle errors they shouldn't need to know about. Not for general caller-burden complexity (use pull-complexity-down); this skill is specifically for exception and error-condition strategy.
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢abstraction-quality
Evaluates whether abstractions provide a genuinely different way of thinking or are structurally shallow. Use when adjacent layers feel redundant, wrappers add boilerplate without depth, or an abstraction feels leaky. Not for a single module's interface-to-implementation ratio (use deep-modules) or information leakage across boundaries (use information-hiding).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢naming-obviousness
Reviews naming quality and code obviousness via the isolation test, scope-length principle, and consistency audit. Use when names feel vague, something is hard to name (a design signal, not a vocabulary problem), or behavior isn't obvious on first read. Not for comment quality or documentation (use comments-docs).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢comments-docs
Reviews comment quality and documentation practices: the four comment types, comments-first workflow, and comment rot. Use when reviewing comments or docs, when comments just repeat the code, or when something is hard to describe in a sentence. Not for naming or code obviousness (use naming-obviousness).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢strategic-mindset
Assesses whether code reflects strategic or tactical thinking, including the 10-20% investment rule and tactical-tornado patterns. Use when evaluating design investment, when code was written under time pressure, or when working code consistently degrades the system. Not for judging whether a specific diff looks designed-in or bolted-on (use code-evolution).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢design-it-twice
Generates and compares at least two fundamentally different design alternatives on concrete criteria before committing. Use when the user asks to design something twice, or before committing to any significant design of classes, modules, APIs, or architecture. Also use when asked how to structure or architect a feature, or when writing the design or alternatives section of an RFC, design doc, or ADR. Not for judging strategic vs. tactical investment in existing code (use strategic-mindset) or whether a change degrades design (use code-evolution).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢code-evolution
Evaluates whether changes to existing code maintain or degrade design quality. Use when the user asks to review a diff or PR (for example before merging it), or asks about recently modified files, to judge whether each change looks designed-in or bolted-on. Not for scanning design smells (use red-flags) or assessing overall design investment (use strategic-mindset).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢complexity-recognition
Diagnoses whether complexity exists and where it comes from, using the three-symptom, two-root-cause framework. Use when code feels harder to work with than it should but the specific problem is unclear. Not for scanning known design smells (use red-flags) or evaluating a module's depth (use deep-modules).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢red-flags
Scans code against 17 design smells (the book's 14 named Red Flags plus 3 process-stage signals) and produces a structured diagnostic report. Use when the user asks for a red flags or design smell scan, asks to check code against a checklist, is evaluating unfamiliar code, or asks open-endedly whether anything is off in a named or pasted file, class, or function, or asks you to look it over. Not for a specific bug, error, or failing test the user has already identified. Not for a plain diff or PR review before merge, or whether a PR maintains design trajectory (use code-evolution for both), or diagnosing why code feels complex (use complexity-recognition).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢design-review
Orchestrates a structured design review, running the other skills as a diagnostic funnel from complexity triage to a full red-flags sweep. Use when the user asks for a comprehensive or prioritized design assessment of a file, module, or PR. Not for an open-ended "anything off here?" or "take a look at this" prompt that names no review goal (use red-flags), a plain diff review before merge or analyzing how code changed over time (use code-evolution), or applying one specific lens (use that skill directly).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢diagnose
Routes a vague symptom or complaint to the most relevant Clairvoyance skill via a decision tree. Use when someone describes a problem but doesn't know which skill to reach for. Not for a comprehensive review (use design-review) or a checklist scan (use red-flags).
輸入結構描述
{
"type": "object",
"properties": {},
"additionalProperties": false
}🟢fetch-reference(skill, file)
Fetch a supporting file from a Clairvoyance skill's references/ folder, when the skill's instructions point to one. Available: information-hiding (back-door-leakage.md); pull-complexity-down (configuration-parameter-audit.md); comments-docs (comments-first-workflow.md); design-it-twice (pre-mortem-fallback.md); red-flags (flag-interaction-map.md); design-review (workflow-builder.md).
輸入結構描述
{
"type": "object",
"properties": {
"skill": {
"type": "string",
"description": "The skill the file belongs to",
"enum": [
"information-hiding",
"pull-complexity-down",
"comments-docs",
"design-it-twice",
"red-flags",
"design-review"
]
},
"file": {
"type": "string",
"description": "The file name inside the skill's references/ folder",
"enum": [
"back-door-leakage.md",
"comments-first-workflow.md",
"configuration-parameter-audit.md",
"flag-interaction-map.md",
"pre-mortem-fallback.md",
"workflow-builder.md"
]
}
},
"required": [
"skill",
"file"
],
"additionalProperties": false
}社群
證據