微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

dxh141130

dxh141130 · v1.0.1
安全 A 级 作者 dxh141130 公开目录收录
2.4k 下载 0 安装 6.3k 收藏 2 浏览

简介

dxh141130

原始描述

Automate punching time in/out on WPS Time / NetTime (wpstime.com NetTime). Use for phrases like setup punchclock/configure punchclock/set up time clock, clock in/clock out, start break/end break, start lunch/end lunch, check status/status. Runs a Playwright flow, captures a screenshot, and replies with a brief confirmation.

通过你的 Agent 添加

安装目录:wpstime-punchclock/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/dxh141130/
Codex CLI~/.codex/skills/dxh141130/
DeepSeek Harness~/.agents/skills/dxh141130/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

wpstime-punchclock 是一款专为 WPS Time / NetTime (wpstime.com) 设计的自动化打卡工具。该技能通过 Playwright 浏览器自动化技术,模拟用户登录企业时间管理系统,执行 clock in/out、break/lunch 开始结束等操作,并自动截图留存记录。

使用时,用户通过自然语言指令(如"我要打卡上班""开始午休""查看打卡状态")触发对应动作。技能首先读取 macOS Keychain 中存储的企业ID、用户名和密码,然后启动无头浏览器完成登录、操作、截图、登出的完整流程,最终以 JSON 格式返回操作结果,附带页面截图作为凭证。

首次配置需在本地终端运行交互式脚本 setup.mjs,将敏感凭据安全存入 Keychain,避免密码泄露到聊天日志中。技能支持 setup、clock-in、clock-out、start-break、end-break、start-lunch、end-lunch、status 八种核心动作,覆盖完整的工时管理场景。

显著优点

安全性设计出色:采用 macOS Keychain 作为凭据存储方案,用户名和密码永不进入聊天历史或日志文件,从根本上杜绝了敏感信息泄露风险。相比明文存储或环境变量方案,这符合企业级安全标准。

零依赖轻量化:代码仅 296 行,仅依赖 Playwright 官方库,无第三方恶意包风险,供应链攻击面极小。

操作闭环完整:每次打卡自动截图留存,形成可追溯的操作记录,便于后续核对与审计。

自然语言交互:支持口语化指令识别,用户无需记忆具体命令格式,降低了使用门槛。

潜在缺点与局限性

网络传输存在隐患:目标网站 wpstime.com 使用 HTTP 明文传输(非 HTTPS),用户名密码在网络层以明文形式传输,存在中间人攻击窃听风险。这是该技能最严重的安全短板。

平台限制严格:仅支持 macOS 系统(依赖 Keychain 和 security 命令),Windows/Linux 用户无法使用。

截图隐私风险:自动截图可能包含个人工时信息、公司名称等敏感数据,本地存储无自动清理机制,长期积累存在信息泄露隐患。

服务依赖单一:完全依赖 WPS Time/NetTime 第三方服务的可用性与页面结构稳定性,一旦对方改版可能导致技能失效。

无二次确认机制:关键操作(如下班打卡)直接执行,缺乏用户确认环节,存在误操作风险。

适合的目标群体

  • 使用 WPS Time / NetTime 作为考勤系统的企业员工
  • 需要频繁打卡但容易遗忘的远程办公人员
  • 追求自动化效率、熟悉终端操作的 macOS 用户
  • 对信息安全有基础认知、能接受 HTTP 风险的中小型企业

不适合:使用其他考勤系统的用户、Windows/Linux 平台用户、对网络传输安全要求极高的金融/政府机构。

使用风险

网络层风险(中高):HTTP 明文传输导致凭据可被网络嗅探,建议仅在受信任的企业内网或 VPN 环境中使用。

系统调用风险(低):使用 execFile 执行 security 命令读取 Keychain,虽参数已严格控制,但仍属系统级操作。

隐私合规风险(低):截图文件本地留存无自动清理,需用户手动管理;截图可能包含敏感信息,分享时需脱敏。

自动化误操作风险(中):缺乏二次确认,语音/指令误触发可能导致错误打卡记录,建议关键操作后人工复核状态。

技能正文


name: wpstime-punchclock description: Automate punching time in/out on WPS Time / NetTime (wpstime.com NetTime). Use for phrases like setup punchclock/configure punchclock/set up time clock, clock in/clock out, start break/end break, start lunch/end lunch, check status/status. Runs a Playwright flow, captures a screenshot, and replies with a brief confirmation.

WPS Time / NetTime Punchclock

Run the bundled Playwright script to log into WPS Time NetTime using macOS Keychain credentials, perform the requested punch action (or status check), take a screenshot, and report results.

Inputs → actions

Map user intent to the script --action:

Setup / credentials

  • setup punchclock / configure punchclock / set up time clock → run setup flow

Punch actions

  • clock in → clock-in
  • clock out → clock-out
  • start break → start-break
  • end break → end-break (implemented as Clock In (end break) in script)
  • start lunch → start-lunch
  • end lunch → end-lunch (implemented as Clock In (end lunch) in script)
  • status / check status → status

First-time setup (per machine / per user)

Option A (recommended): local terminal setup (password never enters chat logs)

Run the interactive setup script to store credentials in macOS Keychain:

cd {baseDir}/scripts
node ./setup.mjs

This stores credentials locally under Keychain services:

  • wpstime-punchclock.company (secret = company/common id)
  • wpstime-punchclock (account = username, secret = password)

Option B: chat wizard setup (includes password; higher risk)

Only use if the user explicitly asks for chat-based setup and accepts that the password will appear in chat history/logs.

Workflow:

  1. Warn clearly:
    • the password will be sent via chat and may be stored by the chat platform + gateway logs.
    • recommend Option A instead.
  2. If they still confirm, collect 3 fields in separate turns:
    • companyId
    • username
    • password
  3. Store into macOS Keychain on the SAME machine running the gateway using security add-generic-password -U:
security add-generic-password -U -s "wpstime-punchclock.company" -a "company" -w "<companyId>"
security add-generic-password -U -s "wpstime-punchclock" -a "<username>" -w "<password>"
  1. Never echo the password back. After storing, run status to verify login works.

Workflow

  1. Run the punch script (headless by default):
node {baseDir}/scripts/punchclock.mjs --action <action>

Optional flags:

  • --headless 0 for debugging
  • --outDir <path> to control screenshot output
  1. Parse stdout JSON.
  • On success: read performed, screenshotPath, and (optionally) pull key fields from snippet.
  • On failure: report error and do not claim the punch succeeded.
  1. Reply to the requesting channel with:
  • one-line confirmation (what was performed)
  • effective status/time if present (best-effort)
  • attach the screenshot at screenshotPath
  1. If the user asks to clock in/out but they may already be in that state, prefer running status first or immediately after to confirm and avoid double-punch confusion.

Credentials (macOS Keychain)

Do not store secrets in files or prompts. Use Keychain.

Preferred services (used by setup.mjs):

  • Service wpstime-punchclock.company → secret = company/common id
  • Service wpstime-punchclock → account = username, secret = password

Backward-compat (older OpenClaw setups):

  • openclaw.wpstime.company
  • openclaw.wpstime

If missing, the punch script throws an error. When that happens, guide the user to run:

cd {baseDir}/scripts
node ./setup.mjs

Then retry the requested action.

Reference

If you need the longer operational runbook, read:

  • references/PUNCHCLOCK_RUNBOOK.md

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill