Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

excellence-gradient

БесплатноБез исполняемых скриптовНе проверен

Measure quality. Descend toward excellence. No binary gates—only vectors.

plurigridот plurigrid★ 73 звезды на GitHub

Об этом скилле

Excellence Gradient

Trit: -1 (VALIDATOR - measures, constrains, reduces toward optimum)

Core Principle

Quality is not a gate—it's a gradient. Binary pass/fail obscures the path to excellence. Measure everything. Descend continuously toward the minimum of the loss function: distance from ideal.

The Airlock Principle

The airlock should not eat the air.

Validation exists to protect value, not consume it. If your quality gates:

  • Take longer than the work they validate → broken
  • Block more than they enable → broken
  • Cost more than the bugs they catch → broken
  • Kill momentum instead of channeling it → broken
Cost(validation) << Value(protected)
Time(gate) << Time(work)
Friction(process) < Momentum(team)

airlock_efficiency = value_protected / momentum_consumed
# Target: efficiency > 10x
# If < 1x: gate eats more than it saves → remove or automate

The airlock is a membrane, not a wall. It regulates flow, doesn't stop it.

Quality Lineage

Pioneer Contribution Key Metric
Deming 14 Points, PDCA Variation reduction
Juran Pareto principle, Quality Trilogy Cost of poor quality
Ohno Toyota Production System Lead time, waste (muda)
Shingo Poka-yoke, SMED Defects approaching zero
Crosby Zero defects, Quality is free Price of non-conformance

Excellence Temperature (τ)

Distance from optimal. Lower is better. τ = 0 is perfection.

def excellence_temperature(metrics: dict) -> float:
    """
    τ ∈ [0, ∞) where τ → 0 as quality → perfect
    Analogous to simulated annealing: high τ = chaos, low τ = crystallized excellence
    """
    weights = {
        'coverage': 0.20,      # Test coverage
        'latency': 0.15,       # P99 response time
        'satisfaction': 0.25,  # User NPS/CSAT
        'debt_ratio': 0.20,    # Technical debt / LOC
        'defect_rate': 0.20,   # Defects per KLOC
    }
    
    # Normalize each to [0,1] where 0 = optimal
    τ = sum(weights[k] * distance_from_optimal(k, v) 
            for k, v in metrics.items())
    return τ

Measurable Excellence Criteria

1. Code Quality Metrics

Metric Formula Target Critical
Coverage tested_lines / total_lines ≥ 0.80 < 0.60
Complexity Cyclomatic per function ≤ 10 > 20
Duplication dup_lines / total_lines ≤ 0.03 > 0.10
Debt Ratio remediation_time / dev_time ≤ 0.05 > 0.20
Doc Coverage documented / public_symbols ≥ 0.90 < 0.50

2. Performance Metrics

Metric Formula Target Critical
P50 Latency 50th percentile ≤ 100ms > 500ms
P99 Latency 99th percentile ≤ 500ms > 2000ms
Error Rate errors / requests ≤ 0.001 > 0.01
Availability Uptime % ≥ 99.9% < 99.0%
Throughput RPS at P99 SLO ≥ baseline×1.2 < baseline

3. User Satisfaction Metrics

Metric Formula Target Critical
NPS promoters - detractors ≥ 50 < 0
CSAT satisfied / respondents ≥ 0.85 < 0.70
Task Success completed / attempted ≥ 0.95 < 0.80
Time to Value signup → first value ≤ 5min > 30min
Churn lost / total per period ≤ 0.02/mo > 0.10/mo

4. Technical Debt Indicators

Metric Formula Target Critical
TODO Count grep -r TODO ≤ 10 > 100
Dependency Age avg months since update ≤ 6 > 24
Security Vulns CVE count (high/critical) 0 > 0
Dead Code unreachable / total ≤ 0.01 > 0.05
Build Time CI pipeline duration ≤ 10min > 30min

Gradient Descent Protocol

def descend_toward_excellence(current_state: Metrics) -> Action:
    """
    Not binary pass/fail. Continuous improvement via gradient.
    """
    τ = excellence_temperature(current_state)
    gradient = compute_gradient(current_state)
    
    # Priority = steepest descent direction
    worst_metric = max(gradient.items(), key=lambda x: x[1])
    
    return Action(
        focus=worst_metric[0],
        expected_τ_reduction=worst_metric[1],
        effort_estimate=effort_model(worst_metric[0])
    )

def compute_gradient(state: Metrics) -> dict:
    """
    ∂τ/∂metric for each metric
    Higher gradient = faster improvement opportunity
    """
    return {
        metric: partial_derivative(excellence_temperature, metric, state)
        for metric in state.keys()
    }

Anti-Patterns Detection

Code Anti-Patterns

ANTI_PATTERNS = {
    'god_class': lambda c: c.methods > 20 or c.lines > 500,
    'feature_envy': lambda m: external_calls(m) > internal_calls(m) * 2,
    'shotgun_surgery': lambda f: len(dependents(f)) > 10,
    'primitive_obsession': lambda c: p
Полный SKILL.md на GitHub

Установить excellence-gradient в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.md

FAQ

Что делает скилл excellence-gradient?

Measure quality. Descend toward excellence. No binary gates—only vectors.

Как установить скилл excellence-gradient?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл excellence-gradient запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить excellence-gradient с