← 返回 Skills 市场
457
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install self-discipline
功能描述
Guarantee instruction compliance with root cause analysis, flow verification, and automated validators that make future failures impossible.
安全使用建议
This skill is internally consistent with its stated purpose, but it will create files and executable validators in your home directory and may propose edits to AGENTS.md or heartbeat files so rules are actually loaded. Before installing or granting permission: 1) Confirm you want ~/self-discipline/ created and review the exact files the skill will write. 2) Inspect any validator scripts (pre-send, pre-commit, pre-action) before making them executable — they run locally and can block actions; ensure their behavior is acceptable. 3) If the skill requests edits to AGENTS.md/HEARTBEAT.md, ask to see the exact diffs and make backups. 4) Keep validators under version control and test them manually first. 5) If you don’t want the skill to influence other agent sessions, decline edits to AGENTS.md/heartbeat or keep activation_mode set to manual. If you want additional assurance, paste the actual validator scripts here and ask for a line-by-line review.
功能分析
Type: OpenClaw Skill
Name: self-discipline
Version: 1.0.1
The skill is designed to enforce agent discipline by generating and executing shell scripts (validators) and modifying system-level configuration files (e.g., Git hooks, HEARTBEAT.md). While the skill's documentation (SKILL.md, setup.md, validators.md) explicitly emphasizes user consent, transparency, and security best practices (e.g., validators never modify data, no external network requests, no credential access), the inherent capability to generate and execute arbitrary shell code based on agent instructions, and to modify critical system integration points, introduces a significant risk. This powerful capability, even with stated good intent, makes the skill 'suspicious' due to the potential for prompt injection or agent misinterpretation leading to vulnerabilities, despite the skill's internal safeguards.
能力评估
Purpose & Capability
Name/description (enforcing instruction compliance, root-cause, validators) match the actual content: the skill is instruction-only and describes creating local rule files, logs, and executable validators. It does not request unrelated credentials or binaries.
Instruction Scope
SKILL.md instructs the agent to create ~/self-discipline/, store rules, logs, and validator scripts, and (with explicit permission) suggest edits to AGENTS.md/HEARTBEAT.md so rules are reachable. These are within scope for a 'discipline' skill, but they involve modifying user-visible files and creating executables — the skill's setup doc says it will ask for consent and show exact edits before changing other files.
Install Mechanism
No install spec or external downloads; instruction-only skill. Example validators are provided as plain scripts in the docs (no automatic fetch/install). This is low-risk from an install standpoint.
Credentials
The skill declares no required env vars or credentials. Validators read local files (staged git files, message content, ~/self-discipline/rules.md) and reference protected paths (e.g., ~/.ssh, /etc) to block dangerous deletions. Access is local and explained in 'security manifest' comments in the templates — proportionate but worth reviewing before authorizing creation/execution of scripts that touch sensitive paths.
Persistence & Privilege
always is false (normal). The skill may ask to add references to AGENTS.md or HEARTBEAT.md to ensure rules are loaded on session start; doing so increases the skill's effective persistence across agent sessions but the setup instructions state user confirmation and backups are required before edits. Consider this an intentional persistence mechanism that relies on user approval.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install self-discipline - 安装完成后,直接呼叫该 Skill 的名称或使用
/self-discipline触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Fix: diagram rendering in review PDF.
v1.0.0
Initial release with severity detection, flow analysis, instruction verification, and validator generation.
元数据
常见问题
Self Discipline 是什么?
Guarantee instruction compliance with root cause analysis, flow verification, and automated validators that make future failures impossible. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 457 次。
如何安装 Self Discipline?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install self-discipline」即可一键安装,无需额外配置。
Self Discipline 是免费的吗?
是的,Self Discipline 完全免费(开源免费),可自由下载、安装和使用。
Self Discipline 支持哪些平台?
Self Discipline 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 Self Discipline?
由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.1。
推荐 Skills