Command Palette

Search for a command to run...

Назад к скиллам
скилл № 24104

Self Discipline

Guarantee instruction compliance with root cause analysis, flow verification, and automated validators that make future failures impossible.

БесплатноБез исполняемых скриптов
clawicот clawic★ 23 звезды на GitHub

Установить Self Discipline в Claude Code и Claude Desktop

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

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

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

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

Instructions written but never followed. Lessons logged but never read. The same mistakes repeated across sessions. This skill breaks that cycle permanently.

When something goes wrong — and the user makes it clear it cannot happen again — this skill doesn't just log it. It traces WHY the failure occurred, verifies the fix will actually be seen by future agents, and generates automated validators that make repetition impossible.

When to Use

User is frustrated that the agent ignored instructions. Something critical happened that cannot repeat. User explicitly says "this can never happen again" or "I told you not to..." User explicitly invokes /discipline to ensure compliance on a rule.

How It Works

         ┌──────────────────────────────────────────────┐
         │              DISCIPLINE TRIGGER              │
         └──────────────────────────────────────────────┘
                              │
         ┌────────────────────┼────────────────────┐
         ▼                    ▼                    ▼
    ┌─────────┐         ┌──────────┐         ┌─────────┐
    │  USER   │         │ CRITICAL │         │ COMMAND │
    │  UPSET  │         │ FAILURE  │         │  USED   │
    └────┬────┘         └────┬─────┘         └────┬────┘
         │                   │                    │
         │ "I told you..."   │  Security breach,  │  /discipline
         │ "Why did you..."  │  data loss...      │
         │                   │                    │
         └───────────────────┴────────────────────┘
                              │
                              ▼
                    ┌─────────────────┐
                    │    SEVERITY     │
                    │  🔴 🟡 🟢       │
                    └────────┬────────┘
                              │
                              ▼
                    ┌─────────────────┐
                    │  ROOT CAUSE     │
                    │  5 Whys: Why    │
                    │  wasn't it      │
                    │  followed?      │
                    └────────┬────────┘
                              │
                              ▼
                    ┌─────────────────┐
                    │ FLOW VERIFY     │
                    │ Will next agent │
                    │ see the fix?    │
                    └────────┬────────┘
                              │
                              ▼
                    ┌─────────────────┐
                    │  VALIDATOR      │
                    │  Script that    │
                    │  blocks action  │
                    └────────┬────────┘
                              │
                              ▼
                    ┌─────────────────┐
                    │    COMPLETE     │
                    │ Logged+Enforced │
                    └─────────────────┘

Setup

On first use, read setup.md for integration guidelines. Creates ~/Clawic/data/self-discipline/ for rules, validators, and enforcement logs.

Architecture

Memory lives in ~/Clawic/data/self-discipline/. See memory-template.md for structure.

~/Clawic/data/self-discipline/
├── memory.md              # Status + severity thresholds + stats
├── rules.md               # Active discipline rules (ALWAYS loaded)
├── incidents.md           # Incident log with root cause analysis
├── validators/            # Executable validators
│   ├── pre-commit/        # Run before git commits
│   ├── pre-send/          # Run before sending messages
│   └── custom/            # Domain-specific validators
├── flow-analysis/         # Instruction flow traces
└── archive/               # Resolved incidents

Quick Reference

Topic File
Setup process setup.md
Memory template memory-template.md
Severity assessment severity.md
Root cause protocol root-cause.md
Flow verification flow-verification.md
Validator patterns validators.md

Core Rules

1. Detect Severity Immediately

When triggered, assess severity FIRST:

Level Indicators Response
🔴 CRITICAL User angry, security risk, data loss, broken prod, financial impact Full analysis + MANDATORY validator
🟡 MEDIUM User frustrated, wasted time, incorrect output Full analysis + instruction fix
🟢 LOW User annoyed, preference violated Log + monitor

Default to one level higher if uncertain.

2. Root Cause Before Solution

Never jump to "I'll remember that." Instead:

  1. What exactly failed? — Be specific
  2. What was the instruction? — Quote it verbatim
  3. Where was the instruction? — Path + line number
  4. Why wasn't it followed? — 5 Whys:
    • Why? → Not loaded in context
    • Why? → File not in session's read path
    • Why? → No reference in AGENTS.md / system prompt
    • Why? → Setup assumed it would be read
    • Why? → No verification mechanism

3. Verify Flow Reachability (CRITICAL)

After identifying where the instructi

Полный SKILL.md на GitHub

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

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

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

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

  • _meta.json
  • flow-verification.md
  • memory-template.md
  • root-cause.md
  • setup.md
  • severity.md
  • validators.md

FAQ

Что делает скилл Self Discipline?

Guarantee instruction compliance with root cause analysis, flow verification, and automated validators that make future failures impossible.

Как установить скилл Self Discipline?

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

Скилл Self Discipline запускает скрипты?

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

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

Сравнить Self Discipline с