AgentSkillsCN

decomplecting

针对Ruby和Ruby on Rails代码库进行架构分析,重点关注简洁性、务实的OOD设计,以及Rails原生的设计选择。适用于设计评审、重构,以及评估Ruby和Rails系统中的耦合与内聚力。

SKILL.md
--- frontmatter
name: decomplecting
description: "Architectural analysis for Ruby and Ruby on Rails codebases focused on simplicity, pragmatic OOD, and Rails-native design choices. Use for design reviews, refactors, and assessing coupling/cohesion in Ruby and Rails systems."

Decomplecting

Architectural analysis for Ruby and Ruby on Rails, grounded in simplicity, pragmatic object-oriented design, and Rails-native patterns.

Usage

code
/decomplecting                 # Run all analyzers
/decomplecting --simplicity    # Rich Hickey-inspired simplicity (adapted for Ruby)
/decomplecting --ood           # Pragmatic OOD (Kay, Metz, Fowler)
/decomplecting --rails-native  # Rails conventions (concerns, AR, callbacks)
/decomplecting --coupling      # Cohesion/coupling checks

Analyzers

AnalyzerQuestion
simplicity-analyzerIs the Ruby code simple (decomplected) rather than merely easy?
ood-analyzerAre responsibilities clear with pragmatic OOD and composable objects?
rails-native-analyzerAre Rails features used thoughtfully to reduce ceremony?
coupling-analyzerAre modules cohesive with minimal coupling?

What It Checks

PillarFocus
SimplicityClear roles, explicit dependencies, small objects, decomplected concerns
OODObject boundaries, message passing, composition, and readable APIs
Rails-nativeConcerns, Active Record, callbacks, CurrentAttributes used with intent
CouplingDependency direction, data boundaries, reduced global state

When to Use

  • Reviewing Ruby/Rails architecture
  • Before large refactors
  • When Rails code feels tangled or over-abstracted
  • When you want pragmatic, framework-friendly design guidance

Supported Languages

  • Ruby
  • Ruby on Rails

Reference Documentation

Load these references when detailed analyzer information is needed.