← Back to Skills Marketplace
silent404

习惯养成教育追踪系统

by tbook · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ Security Clean
120
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install habit-education
Description
家庭教育习惯养成追踪与教育付出记录系统。当用户提及习惯养成、坏习惯干预、记录孩子的行为变化、分析干预效果、教育付出总结、孩子内驱力建立等话题时激活。用于替代用户重复描述背景,直接进行习惯记录、分析和查询。
README (SKILL.md)

habit-education

家庭教育习惯养成追踪系统,用于记录、分析和管理孩子的习惯养成教育。

核心教育理念

园丁心态(核心框架)

家庭教育不是"塑造",而是"培育"。家长是园丁,不是工程师。

  • 园丁能做的:提供健康的土壤、阳光、水分,持续浇水,持续在场
  • 园丁不能做的:拔苗助长、替种子决定什么时候发芽
  • 种子自己能做的:自己决定要不要在这个土壤里生根

这意味着:有些事情家长能用力,有些事情家长不能用蛮力。用力要用在对的方向,蛮力只会伤害自己和植物。

两条路径:内驱力关联 vs 外部驱动

每个习惯都处于这两个维度之间的一条线上:

内驱力关联习惯

  • 定义:孩子自发发起、有真实兴趣驱动、不需要外部监督的行为
  • 策略:提供土壤和支持,然后等待
  • 施肥方式:创造机会、给予认可、允许试错,不能催促、不能惩罚
  • 例子:孩子因为真实喜欢而去做某件事

外部驱动习惯

  • 定义:需要重复训练、需要外部监督和压力才能维持的行为
  • 策略:该盯的时候盯,该催的时候催,这是正常的教育手段
  • 施肥方式:重复、建立规律、适度的外部结构化
  • 例子:按时起床、情绪控制、学习任务

精力分配原则

资源有限,必须聪明分配:

  • 内驱力关联:给够土壤之后就不要太用力,把精力收回来
  • 外部驱动:该用力的时候舍得用力,但不要期待它们变成内驱力
  • 放弃强求:如果一件事反复干预都没有效果,可能是时机未到,先放一放
  • 两条腿走路:内驱力和外部驱动不是对立的,是并行的

健康土壤的内容

持续提供干净的选项,让内驱力"缘分到的时候"有好的东西可以生根:

  • 优质的影视、音乐、游戏内容平台
  • 经过筛选的信息源
  • 家庭成员正向的行为示范
  • 讲道理的沟通氛围

这样即便内驱力没有长出来,孩子长大后也至少是一个"见过好东西"的人。


核心数据库

路径: /home/istina/.openclaw/workspace/habit_education.db

四张表:

  • habits — 习惯定义字典表
  • intervention_records — 干预与打卡记录表
  • archived_habits_summary — 已归档习惯总结表
  • education_contributions — 教育付出记录表

详细字段说明见 references/schema.md

核心概念

记忆等级(三级)

等级 含义 判断标准
短期习惯 刚建立或尚不稳固,需持续盯烧 1-3个月内新建立
长期习惯 稳定养成中,需偶尔提醒 稳定运作超过半年
终身习惯 持续一年以上,几乎自动化 如刷牙般自然

内驱力关联标记

含义
1 内驱力关联:孩子主动发起的、有真实兴趣驱动的、不需要外部监督的行为
0 外部驱动:需要重复训练和外部监督的习惯

判断标准(经验)

  • 孩子自发要求做某件事 → 内驱力关联
  • 孩子因为"做好了会被认可"而做 → 部分内驱力
  • 孩子因为"不做会被惩罚"而做 → 外部驱动
  • 孩子因为"父母要求我做"而做 → 外部驱动

结果枚举(干预记录)

  • improved — 改善
  • worsened — 恶化
  • unchanged — 无变化
  • maintained — 保持/完成(好习惯打卡)
  • failed — 未完成/中断(好习惯打卡)

习惯类型

  • good — 好习惯
  • bad — 坏习惯(需干预)

标准操作流程

记录新习惯

  1. 执行防重复查询:SELECT id, name, type, status FROM habits WHERE status = 'active'
  2. AI 语义判断是否重复
  3. 若疑似重复,先向用户确认
  4. 确认后插入 habits
  5. 同步记录至 education_contributions(若涉及父亲参与)
  6. 判断内驱力关联标记,设为 1 或 0
  7. 记录干预首次事件至 intervention_records

记录干预/打卡

  1. 查询习惯 ID
  2. 从用户描述中提取 event_time(需转换为 YYYY-MM-DD HH:MM:SS 格式)
  3. 提取 status_descriptionaction_takenresulthandled_by
  4. 若涉及父亲参与,同步写入 education_contributions

归档习惯

habits.status 改为 archived,并写入 archived_habits_summary

  • days_tracked — 追踪天数
  • final_success_rate — 最终成功率
  • summary — 经验总结
  • memory_level — 记忆等级

防重复机制

每次新建习惯前,必须将进行中习惯列表调入上下文,语义判断是否重复:

  • 若语义相近,先反问用户确认
  • 禁止用 LIKE 模糊匹配

常用脚本

  • scripts/new_habit.py — 插入新习惯并记录首次干预
  • scripts/add_intervention.py — 追加干预记录
  • scripts/archive_habit.py — 归档习惯
  • scripts/contribution.py — 记录教育付出
  • scripts/query_habits.py — 查询习惯状态
  • scripts/stats.py — 统计分析

详细用法见各脚本文件。

特殊规则

  1. 父亲参与默认记录:提到父亲协助、教导、付出的内容,必须同步记录到 education_contributions
  2. 时间转换:用户口语时间(如"今早8点")必须转换为 YYYY-MM-DD HH:MM:SS 再存入数据库
  3. 习惯分级更新:当习惯的稳定程度发生变化时,更新其 memory_level
  4. 合并重复:发现语义重复的习惯,及时合并并删除冗余记录
  5. 内驱力关联判断:根据"是否孩子主动发起、是否有真实兴趣"判断,标记 intrinsic_motivation
  6. 精力分配建议:当用户表达焦虑或疲惫时,帮助分析哪些是"可以放下的",哪些是"需要坚持的"

教育建议准则

当用户询问教育建议时,遵循以下原则:

  1. 先共情,再分析:家长的疲惫是真实的,先认可,再给建议
  2. 区分能控制和不能控制的:把精力放在能改变的地方
  3. 不要制造更多焦虑:避免使用"必须"、"一定"等强迫性词汇
  4. 提供可操作的建议:不要说"你要耐心",而是说"可以试试这样"
  5. 维护家长权威:即使建议调整策略,也要肯定家长已有的付出
Usage Guidance
This skill appears to be a local family habit-tracking tool and is internally consistent, but review these before installing: 1) Privacy: it stores personally sensitive data (children names, caregiver actions, behavioral notes) in a local SQLite DB — ensure the storage location is acceptable and has proper filesystem permissions. 2) Hard-coded DB path: the path is /home/istina/.openclaw/workspace/habit_education.db; update it if you run under a different user or want the DB elsewhere. 3) No DB-init: the bundle includes a schema.md but no script to create the DB/tables; create the DB with the provided schema before use or the scripts may fail. 4) Automatic recording rules: the skill auto-records 'father' participation — confirm this matches your privacy/recording policy. 5) Model context leakage: the agent will load stored records into context to decide duplicates and to answer queries — be mindful of what personal data you allow the agent to include in prompts. If you accept these caveats, run the skill in an environment you control, create the DB from references/schema.md, restrict file permissions, and test with non-sensitive data first.
Capability Analysis
Type: OpenClaw Skill Name: habit-education Version: 1.1.0 The habit-education skill bundle is a legitimate tool for tracking child development and parental educational efforts. The Python scripts (e.g., new_habit.py, query_habits.py) use parameterized SQLite queries to manage a local database, effectively preventing SQL injection, and contain no network activity, shell execution, or unauthorized file access. The SKILL.md instructions are strictly aligned with the stated purpose of habit tracking and do not contain any prompt-injection attacks or attempts to exfiltrate data.
Capability Assessment
Purpose & Capability
Name/description match the included scripts and schema: scripts implement new habit insertion, adding interventions, archiving, contributions, queries and stats against a local SQLite DB. The requested capabilities are proportional to a habit-tracking/analysis tool.
Instruction Scope
SKILL.md instructs the agent to load and use local DB state (active habits, records) as context and to automatically record certain actors (e.g., 'father' participation). That is expected for the feature but raises privacy/context-leak risk because stored child/family data may be surfaced into model prompts. The instructions otherwise do not reference unrelated files, network endpoints, or environment variables.
Install Mechanism
No install spec or remote downloads; the skill is delivered as code files and SKILL.md. There is no external package installation or URL-based download to review.
Credentials
The skill requests no credentials or env vars (good). It hardcodes a DB path (/home/istina/.openclaw/workspace/habit_education.db), which is plausible but brittle and could cause unexpected cross-user access or data confusion if deployed in a different environment. The schema is provided but there is no included DB-init script; the skill assumes the DB with correct schema exists or will be created by the environment.
Persistence & Privilege
Skill is not set to always: true, it does not request elevated privileges, and it does not modify other skills or system-wide settings. It persists data locally in its DB file only.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install habit-education
  3. After installation, invoke the skill by name or use /habit-education
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
habit-education 1.1.0 introduces家庭教育理念和内驱力机制: - 增加“园丁心态”“内驱力关联 vs 外部驱动”等核心教育理念说明,丰富操作背景 - 对每个习惯引入内驱力关联标记和判断标准,支持区分由孩子主动发起与外部驱动的习惯 - 更新标准操作流程,习惯记录时需判断和存储内驱力关联状态 - 增补“教育建议准则”和精力分配建议,优化与家长互动的实用性和共情体验 - 丰富/优化了SKILL描述和操作规则,使应用更贴合家庭教育实际需求
v1.0.0
habit-education 1.0.0 - 首个版本发布 - 新增家庭教育习惯养成追踪与干预系统,支持记录、分析、管理孩子的习惯变化。 - 实现核心数据库,包含习惯定义、干预记录、教育付出、归档总结等四大数据表结构。 - 支持习惯短期/长期/终身等级划分和结果状态枚举。 - 提供严格防重复机制和语义相似校验,防止重复录入。 - 标准化父亲参与、时间格式转换、习惯归档与分级等特殊操作流程。 - 附带常用维护与查询脚本,便于日常管理与数据分析。
Metadata
Slug habit-education
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is 习惯养成教育追踪系统?

家庭教育习惯养成追踪与教育付出记录系统。当用户提及习惯养成、坏习惯干预、记录孩子的行为变化、分析干预效果、教育付出总结、孩子内驱力建立等话题时激活。用于替代用户重复描述背景,直接进行习惯记录、分析和查询。 It is an AI Agent Skill for Claude Code / OpenClaw, with 120 downloads so far.

How do I install 习惯养成教育追踪系统?

Run "/install habit-education" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 习惯养成教育追踪系统 free?

Yes, 习惯养成教育追踪系统 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 习惯养成教育追踪系统 support?

习惯养成教育追踪系统 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 习惯养成教育追踪系统?

It is built and maintained by tbook (@silent404); the current version is v1.1.0.

💬 Comments