A robust system for enforcing AI agent instruction compliance through root cause analysis and automated bash-based validators.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install self-discipline
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install self-discipline using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Self Discipline skill is a sophisticated framework designed to eliminate the repetition of AI agent errors. Unlike basic logging tools, this skill implements a systematic approach to instruction compliance by analyzing the root causes of failure and verifying that corrective actions are permanently integrated into the agent's workflow. By leveraging Openclaw Skills for self-regulation, developers can transform frustrated feedback into rigorous, automated safeguards.
The skill operates on the principle that "I'll remember next time" is an insufficient fix. It uses a structured directory system to store active rules and incident history, ensuring that every lesson learned is backed by technical enforcement. Whether you are managing complex codebases or sensitive data, this skill provides the infrastructure needed to maintain absolute compliance with your specific operational requirements.
On first use, initialize the skill by following the integration guidelines in the setup documentation. The skill creates a local workspace to manage all rules and validators.
# The skill automatically manages this directory structure:
mkdir -p ~/self-discipline/validators/{pre-commit,pre-send,custom}
touch ~/self-discipline/{memory.md,rules.md,incidents.md}
The Self Discipline skill maintains a strict local data hierarchy to ensure privacy and persistence within the Openclaw Skills ecosystem.
| Component | Path | Description |
|---|---|---|
| Memory | ~/self-discipline/memory.md |
Stores severity thresholds, active rules, and compliance statistics. |
| Rules | ~/self-discipline/rules.md |
The core repository of active discipline rules that are always loaded. |
| Incidents | ~/self-discipline/incidents.md |
A detailed log of failures including the 5 Whys root cause analysis. |
| Validators | ~/self-discipline/validators/ |
Executable bash scripts that enforce compliance before commits or messages. |
| Flow Analysis | ~/self-discipline/flow-analysis/ |
Traces of agent instruction paths to verify fix reachability. |
Loading
A sophisticated skill that allows AI agents to internalize your decision-making system and act autonomously based on your values and goals.

A professional security review workflow that prioritizes exploitable risks and delivers minimal-diff fixes with verifiable evidence.

A strategic reasoning skill that identifies hidden risks and long-term opportunities by tracing decisions through three levels of consequences.

A comprehensive intelligence layer for navigating Seattle as a tech professional, resident, or visitor, providing deep insights into neighborhoods, careers, and local culture.

A comprehensive framework for deploying, securing, and maintaining resilient self-hosted services using containerization and automation.

An AI-powered sales assistant designed to accurately price items, generate high-converting marketplace listings, and navigate buyer negotiations.








































