Token导航 LogoToken导航

Agent Skill · 效率

self-discipline(自律)

self-discipline 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

self-discipline 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 4,347。

总安装 13,618周安装 579GitHub Stars 公开资料未说明下载 4,771核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.1

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:self-discipline(自律)
来源仓库:https://github.com/ivangdavila/self-discipline
安装命令:
openclaw skills install self-discipline
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install self-discipline

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

用于确保指令合规性和流程正确性。可执行根本原因分析和自动验证。适合复杂任务的质量控制。self-discipline 属于效率类 Skill,可作为该场景下的辅助能力补充。安装命令:openclaw skills install self-discipline 验证规则需根据任务类型定制。

适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install self-discipline;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

self-discipline 怎么安装?

在终端执行 openclaw skills install self-discipline。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

self-discipline 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

self-discipline 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

self-discipline 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

self-discipline 用的人多吗?

公开数据是累计安装 13,618 次,近一周安装 579 次,下载 4,771 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

self-discipline 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
self-discipline

自律 · 本页

13,618—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
Self Discipline
slug
self-discipline
version
1.0.1
homepage
https://clawic.com/skills/self-discipline
description
Guarantee instruction compliance with root cause analysis, flow verification, and automated validators that make future failures impossible.
metadata
{"clawdbot":{"emoji":"⚔️","requires":{"bins":[]},"os":["linux","darwin","win32"],"configPaths":["~/self-discipline/"]}}
changelog
Initial release with severity detection, flow analysis, instruction verification, and validator generation.

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 ~/self-discipline/ for rules, validators, and enforcement logs.

Architecture

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

~/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

TopicFile
Setup processsetup.md
Memory templatememory-template.md
Severity assessmentseverity.md
Root cause protocolroot-cause.md
Flow verificationflow-verification.md
Validator patternsvalidators.md

Core Rules

1. Detect Severity Immediately

When triggered, assess severity FIRST:

LevelIndicatorsResponse
🔴 CRITICALUser angry, security risk, data loss, broken prod, financial impactFull analysis + MANDATORY validator
🟡 MEDIUMUser frustrated, wasted time, incorrect outputFull analysis + instruction fix
🟢 LOWUser annoyed, preference violatedLog + 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 instruction SHOULD be, trace the actual agent flow:

START: New session begins
  ↓
READ: System prompt loaded
  ↓
READ: AGENTS.md (if exists)
  ↓
READ: MEMORY.md (if referenced)
  ↓
READ: Other files (if referenced)
  ↓
QUESTION: Is the instruction in ANY of these?

If instruction is NOT in the flow:

  • The fix is NOT to "write it somewhere"
  • The fix IS to add it to a file ALREADY in the flow
  • OR add a reference to its location in a file ALREADY in the flow

4. User Consent Required

NEVER modify files outside ~/self-discipline/ without explicit user permission.

When suggesting changes to AGENTS.md, HEARTBEAT.md, or other files:

ActionRequirement
Create ~/self-discipline/Ask permission first
Edit AGENTS.mdShow exact changes, wait for approval
Add to HEARTBEAT.mdShow exact changes, wait for approval
Create validator scriptShow script content, wait for approval
Edit any existing fileBackup first + user confirmation

Flow for external file changes:

  1. Explain WHY the change is needed
  2. Show EXACTLY what will be added/changed
  3. Wait for explicit "yes" / approval
  4. Only then make the change

5. Generate Validators for Critical Issues

For 🔴 CRITICAL issues, create automated validators:

# Example: ~/self-discipline/validators/pre-send/no-secrets.sh
#!/usr/bin/env bash
set -euo pipefail

# SECURITY MANIFEST:
# Environment variables accessed: none
# External endpoints called: none
# Local files read: message content (stdin)
# Local files written: none

# Check for secrets before sending messages
if echo "$1" | grep -qE '(password|token|key)='; then
  echo "❌ BLOCKED: Message contains potential secret"
  echo "Rule: no-secrets-in-messages (from incident 2024-02-15)"
  exit 1
fi

Validators must:

  • Exit 0 = pass, exit 1 = block
  • Include the rule origin (incident reference)
  • Never modify data, only check

6. Track Enforcement

In ~/self-discipline/memory.md, maintain:

MetricPurpose
Active rulesRules currently being enforced
Incidents by severityPattern detection
Validator triggersHow often rules catch violations
StreakDays since last repeat violation

7. Escalation Path

If the same rule is violated twice:

  1. First violation: Full analysis + fix
  2. Second violation: Promote to CRITICAL + mandatory validator
  3. Third violation: STOP and ask user for intervention

Severity Assessment Protocol

See severity.md for detailed criteria.

Quick Assessment

QuestionIf YES →
Is the user visibly upset?+1 severity
Could this cause data loss?Automatic CRITICAL
Could this cause security breach?Automatic CRITICAL
Could this affect production?Automatic CRITICAL
Has this happened before?+1 severity
Did user use "never" or "always"?+1 severity

The Flow Verification Process

See flow-verification.md for complete protocol.

Why Instructions Get Ignored

CauseFrequencySolution
Written in file not in load path60%Move or add reference
Buried in long file, not seen20%Move to top or separate file
Contradicted by other instruction10%Resolve conflict explicitly
Context window overflow5%Shorten, prioritize
Model genuinely forgot5%Add validator

Verification Steps

  1. Identify all files in agent's load path (system prompt, AGENTS.md, etc.)
  2. Check if instruction location is in that path
  3. If not in path: Find where to add reference
  4. If in path but buried: Move to more prominent location
  5. If contradicted: Resolve with explicit priority

Validator Patterns

See validators.md for complete reference.

Types

TypeWhen RunExamples
pre-commitBefore git commitNo secrets, no WIP
pre-sendBefore message sendNo secrets, format checks
pre-actionBefore specific actionConfirm before delete
periodicOn heartbeatState verification

Validator Template

#!/usr/bin/env bash
set -euo pipefail

# SECURITY MANIFEST:
# Environment variables accessed: [list]
# External endpoints called: [list or "none"]
# Local files read: [list]
# Local files written: [list or "none"]

# Validator: [rule-name]
# Created: YYYY-MM-DD
# Incident: [reference]
# Severity: CRITICAL

# [description of what this validates]

[validation logic]

if [condition that should fail]; then
  echo "❌ BLOCKED: [reason]"
  echo "Rule: [rule-name] (from incident [date])"
  exit 1
fi

exit 0

Common Traps

TrapConsequenceSolution
Writing rule in memory.md onlyFuture agent won't see itAdd to rules.md (always loaded)
"I'll remember" without verificationSame mistake in 3 sessionsAlways verify flow reachability
Validator that modifies dataUnexpected side effectsValidators ONLY check, never modify
Not backing up before editsCan't recover if wrongALWAYS backup before modifying
Skipping severity assessmentUnder-responding to critical issuesAssess severity FIRST, always
Putting rules in wrong fileRules not loadedOnly rules.md is guaranteed loaded

Commands

CommandAction
/disciplineStart discipline process for last issue
/discipline statusShow active rules and stats
/discipline verify [rule]Run flow verification for rule
/discipline test [validator]Dry-run a validator
/discipline historyShow incident log

Security & Privacy

Data that stays local:

  • All rules, incidents, and validators in ~/self-discipline/
  • No data sent to external services
  • No telemetry or analytics

This skill does NOT:

  • Make network requests
  • Access credentials or secrets
  • Modify files without explicit user permission
  • Run validators without user approval
  • Access files outside ~/self-discipline/ without asking

File modifications outside ~/self-discipline/:

  • Only suggested when needed for rule visibility (e.g., AGENTS.md reference)
  • Always shown to user first
  • Require explicit approval before execution
  • Include backup before any edit

Related Skills

Install with clawhub install <slug> if user confirms:

  • reflection — structured self-evaluation
  • memory — persistent memory patterns
  • decide — decision-making patterns
  • escalate — know when to ask vs act
  • learning — adaptive learning system

Feedback

  • If useful: clawhub star self-discipline
  • Stay updated: clawhub sync

平台分布

OpenClaw

93.7%
按下载量换算4,470

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills