safety-work-hours-calculator

Enter the most recent lost-work date and current headcount to automatically calculate safety work hours and safety days that match the Excel rules, based on the common domestic 8-hour workday standard, with results 100% aligned to the original sheet.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "safety-work-hours-calculator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-cd9f7e59b8fc77851c8b38b4f2fcf4ef86996f20303de6a82e37331cb870936a. Verify the upstream source and version against https://skillhub.cn/skills/user_1d2c812e/wangpp614 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Enter the most recent lost-work date and current headcount to automatically calculate safety work hours and safety days that match the Excel rules, based on the common domestic 8-hour workday standard, with results 100% aligned to the original sheet.

0 Downloads

Introduction source: third_party · user_1d2c812e · 1.0.0 Reference

SkillPi interpretation

Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: safety-work-hours-calculator
display_name: 安全工时&安全天数计算器
description: 输入最近一次损工日期和当前人数,自动计算匹配Excel规则的安全工时和安全天数,基于国内通用8小时标准工作制,计算结果与原表100%对齐
version: 1.0.0
author: 安全管理工具
tags: 安全管理,工时计算,工程管理,人事统计
trigger:
  - 计算安全工时
  - 计算安全天数
  - 损工日期计算安全工时
  - 输入损工日期和人数算安全工时
  - 安全工时计算器

安全工时&安全天数计算器

核心计算规则(与原Excel完全匹配)

  1. 【安全天数】:从最近一次损工日期到当前统计日期的累计天数(保留1位小数)
  2. 【安全工时】= current人数 × 8小时/天 × 安全天数(与原表公式完全一致,原表示例验证:1583人 × 8小时 × 105.7天 = 1338584.8,与原表结果完全匹配)
  3. 支持自定义每日标准工时(默认8小时,可按需调整)

输入要求

需要你提供2个核心参数:

  1. 最近一次损工日期:格式为 YYYY-MM-DD(例如 2026-02-20)
  2. 当前人数:正整数(例如 1583) 可选补充:每日标准工时(默认8小时,非必填)

计算步骤

  1. 接收用户输入的最近一次损工日期、当前人数、可选的每日工时
  2. 计算从损工日期到当前日期的累计天数(保留1位小数),即为安全天数
  3. 按公式计算安全工时:安全工时 = 人数 × 每日工时 × 安全天数
  4. 按原表格式输出结果,同时标注计算逻辑与原表的匹配性

输出格式

计算结果

指标 数值 备注
最近一次损工日期 {输入的日期} 与原表输入一致
当前人数 {输入的人数} 与原表输入一致
安全天数 {计算结果} 天 保留1位小数,与原表精度一致
安全工时 {计算结果} 小时 保留1位小数,与原表精度一致

计算说明

  • 本次计算基于8小时标准工作制,与原Excel计算规则完全对齐
  • 安全天数为损工日期到当前日期的累计自然天数,可按需切换为工作日计算
  • 计算结果100%匹配原表公式逻辑,可直接用于安全管理台账、项目统计上报

示例(原Excel数据验证)

输入

  • 最近一次损工日期:2026-02-20
  • 当前人数:1583
  • 每日标准工时:8

输出

指标 数值 备注
最近一次损工日期 2026-02-20 原表基准日期
当前人数 1583 原表人数
安全天数 105.7 天 与原表完全一致
安全工时 1338584.8 小时 与原表完全一致

验证说明

1583 × 8 × 105.7 = 1338584.8,与原表安全工时结果100%匹配,计算逻辑完全兼容。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决企业安全管理台账的核心计算需求
  • 与原Excel表格100%匹配,确保数据一致性
  • 高频刚需场景,显著提升工作效率
Trigger Precision95/100

Highlights

  • 触发词覆盖完整,包含多种用户表达变体
  • 边界清晰,不易与其他Skill重叠
Structure and Standards95/100

Highlights

  • Phase/步骤清晰,输入→计算→输出完整闭环
  • 包含端到端示例和验证说明
  • frontmatter完整,文档结构规范
Execution Reliability90/100

Highlights

  • 基于标准日期计算和数学公式,可靠性高
  • 参数定义清晰,有格式和类型校验
  • 提供原表验证示例确保计算准确性
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.