AgentSkillsCN

decomplect

针对设计质量的架构代码分析。评估简洁性(Rich Hickey)、函数核心/命令式外壳(Gary Bernhardt)与耦合(Constantine & Yourdon)。在设计评审或架构评估时使用。

SKILL.md
--- frontmatter
name: decomplect
description: Architectural code analysis for design quality. Evaluates simplicity (Rich Hickey), functional core/imperative shell (Gary Bernhardt), and coupling (Constantine & Yourdon). Use for design review or architectural assessment.

Decomplect

Architectural analysis for design quality.

Usage

code
/decomplect                # Run all 3 analyzers in parallel
/decomplect --simplicity   # Specific analyzer
/decomplect --fcis         # Specific analyzer
/decomplect --coupling     # Specific analyzer

Analyzers

AnalyzerQuestion
simplicity-analyzerIs this truly simple or just easy?
fcis-analyzerIs pure logic separated from I/O?
coupling-analyzerAre modules well-separated?

What It Checks

PillarFocus
SimplicityValues over state, decomplected concerns
FCISFunctional core (pure), imperative shell (I/O)
CouplingHigh cohesion, low coupling

When to Use

  • Reviewing system design
  • Before major refactoring
  • Assessing architectural quality
  • Checking if code is "Rich Hickey approved"

Supported Languages

  • TypeScript / JavaScript
  • Go
  • Rust

Reference Documentation

See Also

  • /unslopify - Tactical code cleanup (types, SRP, fail-fast)