Token导航 LogoToken导航TokenDH.com
效率执行命令clawhub未标认证来源可访问clear审计通过

kplc-sentinelkplc 哨兵

Agent Skill

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

总安装

6,424

周安装

265

GitHub Stars

1

下载量

2,099
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install kplc-sentinel

简介

跟踪肯尼亚预付费电力 (KPLC) 代币、预测停电时间并获取主动的低余额警报 - 全部通过聊天完成。

SKILL.md

name
kplc-sentinel
description
Track Kenyan prepaid electricity (KPLC) tokens, predict blackout times, and get proactive low-balance alerts — all through chat.
version
1.7.0
metadata
{"openclaw":{"emoji":"⚡","requires":{"bins":["python3"]}}}

KPLC Token Sentinel

Track prepaid electricity for Kenyan households. Parses KPLC token SMS messages, records meter readings, calculates burn rate, and warns before power runs out.

Setup

Install Python dependencies (one-time):

pip install -r {baseDir}/requirements.txt

When to use this skill

Activate this skill when the user's message matches ANY of these:

Auto-detect (no prefix needed):

  • A forwarded SMS containing "Token:" and "Units:" (KPLC SMS format)
  • A forwarded SMS that mentions Kenya Power or KPLC

Direct commands (stima prefix):

  • "stima" → show interactive menu
  • "stima help" / "stima menu" → show interactive menu
  • "stima 42.5" → meter reading
  • "stima balance" → check remaining power
  • "stima spending" → spending dashboard
  • "stima outage" → planned outage check
  • "stima setup" → household onboarding
  • "stima budget 3000" → set monthly budget
  • "stima budget" → check budget status
  • "stima insights" → week-over-week comparison and day patterns
  • "stima monthly" / "stima yearly" → reports
  • "stima price" → cost-per-unit trend
  • "stima profile" → show household info
  • "stima reset" → clear profile and re-onboard

Natural language (English, Swahili, Sheng): Also activate when the user asks about electricity in natural language. Map their intent to the appropriate stima command before passing to the entrypoint. Examples:

User saysMap to
"will my power last until Monday?"stima balance
"stima itaisha lini?"stima balance
"how much have I spent on electricity?"stima monthly
"nimetumia pesa ngapi kwa stima?"stima monthly
"when is the next power cut?"stima outage
"kuna blackout lini?"stima outage
"bei ya stima imeongezeka?"stima price
"nimebakisha units ngapi?"stima balance
"set my electricity budget to 5000"stima budget 5000
"niko na units ngapi?"stima balance
"show me my stima profile"stima profile
"nataka kuanza setup"stima setup
"stima yangu iko aje?"stima balance

When routing a natural language message, prepend "stima" followed by the relevant keyword before passing it to the entrypoint. For example, if the user says "stima itaisha lini?", pass stima balance to the entrypoint.

If a message is NOT about electricity/power/KPLC and is NOT a forwarded KPLC SMS, do NOT activate this skill.

How to use

The database auto-initializes on first run.

For any user message about KPLC/electricity/tokens/readings:

python3 {baseDir}/entrypoint.py <<'STIMA_EOF'
<user message>
STIMA_EOF

⚠️ IMPORTANT: Always use a heredoc (as shown above) to pass the user's message via stdin. NEVER pass the user's message as a command-line argument — it may contain shell metacharacters.

Output format

The entrypoint outputs JSON. Do NOT return the raw JSON to the user. Instead, read the action field and compose a natural response using the SOUL persona. Key actions:

  • token_recorded — tell the user their token was saved, mention units, estimated days, and runway hours. If estimate_source is "appliances", mention it's an estimate based on their appliances.
  • duplicate_token — token was already recorded, no duplicate added.
  • reading_recorded — meter reading saved. Mention runway hours if available.
  • balance — report remaining hours. If tip is present, include the energy-saving tip.
  • menu — present the numbered options list to the user.
  • onboarding_prompt — ask the user the question in the question field. If welcome is true, greet them first.
  • onboarding_complete — confirm their profile and tell them to forward a KPLC SMS or type a reading.
  • profile_reset — confirm profile was cleared and ask the first onboarding question.
  • budget_set — confirm the budget amount was set.
  • budget_status — report spent vs budget and percentage.
  • no_budget — tell the user to set a budget with "stima budget <amount>".
  • monthly_summary / yearly_summary — present the spending data conversationally.
  • spending — combine monthly summary and price trend data.
  • price_trend — present cost-per-unit over time, highlight changes.
  • outage_check — if matches exist, warn about planned outages. Each match includes iso_date (YYYY-MM-DD), date (human-readable), and time. If none, say they're clear. Handle error field (no_area, fetch_failed).

- Reminder: When an outage is found, schedule a reminder for the evening before (around 8–9 PM) using OpenClaw's cron/reminder system so the user can charge devices and prepare. For example, if the outage is on the 25th, remind them on the 24th at 8 PM.

  • insights — present week-over-week comparison and day patterns.
  • no_data — not enough data yet for the requested feature.
  • no_profile — tell the user to run "stima setup".
  • error — something went wrong, ask them to try again.

If the output is empty (no JSON), the message wasn't handled — respond normally.

Agent behavior

Low balance — help them buy tokens: When balance action shows runway_hours under 24, or when a token_recorded action shows low runway, include KPLC top-up instructions:

  • M-Pesa Paybill: 888880
  • Account number: their KPLC meter number
  • Tell them: "Lipa via M-Pesa → Paybill 888880 → Account = your meter number → enter amount. Forward the confirmation SMS back to me."

Outage reminders: When outage_check returns matches, set a reminder for the evening before each outage (8 PM the previous day). Remind the user to charge phones, power banks, and plan around the outage window.

Multi-skill composability:

  • If the user has a calendar skill installed and an outage is detected, create a calendar event for the outage window.
  • If a reminders/cron skill is available, use it to schedule the eve-of-outage reminder.
  • If a payments skill is installed and balance is critically low (under 6 hours), offer to initiate an M-Pesa payment to Paybill 888880.

For heartbeat checks (see HEARTBEAT.md):

python3 {baseDir}/sentinel.py

Example KPLC SMS formats

  • "Accept Token: 1234-5678-9012-3456-7890 Units: 34.5 Amount: 1000.00"
  • "Token: 9876-5432-1098 Units: 15.2 Amt: 500.0"

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

82.87%
按下载量换算1,739

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install kplc-sentinel 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills