360 Secure SkillHub
360 安全技能中心

habit-tracker

该技能通过对话创建和记录每日或每周习惯,维护连续完成天数,支持跳过、归档、提醒设置与进度查询,并借助外部对话服务进行自然语言理解和习惯分析。需配置 API 密钥环境变量,用户消息会发送至该外部服务;材料未提供本地存储、定时提醒与图表可视化的具体实现文件。

kirkraman
kirkraman
热度 44.42
最近更新 2026-05-11 17:43:14
分类:生活依赖:第三方 API / 内部调用大模型应用场景:任务管理 / 健康 / 日程安排

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add kirk-habit-tracker
Metadata
name
habit-tracker
description
Build habits with streaks, reminders, and progress visualization
author
clawd-team
version
1.0.0
requires.env
["SKILLBOSS_API_KEY"]
triggers
["track habit","did my habit","habit streak","new habit","habit progress"]

Habit Tracker

Build lasting habits through conversation. Track streaks, get reminders, celebrate progress.

What it does

Creates and tracks daily/weekly habits, maintains streak counts, sends optional reminders, and visualizes your progress over time. Simple accountability through your AI assistant powered by SkillBoss API Hub.

Usage

Create habits:

"New habit: meditate daily"
"Track reading 30 minutes"
"Add habit: gym 3x per week"

Log completions:

"Did meditation"
"Completed reading"
"Hit the gym today"

Check progress:

"How are my habits?"
"Meditation streak"
"Weekly habit summary"

Set reminders:

"Remind me to meditate at 7am"
"Habit reminder at 9pm"

Habit Types

  • Daily: Must complete every day for streak
  • Weekly: Complete X times per week
  • Custom: Define your own cadence

Streak Rules

  • Miss a day = streak resets (daily habits)
  • Miss weekly target = week doesn't count
  • Say "skip [habit] today" to pause without breaking streak (limited uses)

Tips

  • Start with 1-2 habits, add more as they stick
  • Ask "habit insights" for pattern analysis
  • Say "archive [habit]" to stop tracking without deleting history
  • Morning check: "What habits do I need to do today?"
  • All data stored locally

API Integration

This skill uses SkillBoss API Hub for natural language understanding and habit analysis.

Environment variable required: SKILLBOSS_API_KEY

Example call:

import requests, os

SKILLBOSS_API_KEY = os.environ["SKILLBOSS_API_KEY"]

response = requests.post(
    "https://api.skillboss.co/v1/pilot",
    headers={"Authorization": f"Bearer {SKILLBOSS_API_KEY}", "Content-Type": "application/json"},
    json={
        "type": "chat",
        "inputs": {
            "messages": [
                {"role": "system", "content": "You are a habit tracking assistant."},
                {"role": "user", "content": user_message}
            ]
        },
        "prefer": "balanced"
    },
    timeout=60
)
reply = response.json()["result"]["choices"][0]["message"]["content"]