‹ 首页

domain-hr

@signalpilot-labs · 收录于 5 天前 · 上游提交 6 天前

HR & operations rules: SCD current-record filtering, issue resolution metrics.

适合你,如果经常需要处理HR运营数据与指标统计

/ 通过 npx 安装 校验哈希
npx oh-my-skill add signalpilot-labs/signalpilot/domain-hr
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- signalpilot-labs/signalpilot/domain-hr
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify signalpilot-labs/signalpilot/domain-hr
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
473GitHub stars
~329上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 436a4c4 · 表述以原文为准
它做什么

Claude 在处理 HR 与运营数据时,会从事实/事件表驱动聚合,过滤渐变维度表中的当前记录,并仅用已关闭问题计算解决时长。

什么时候触发

当你查询员工活动报表、处理含历史记录的表格(如SCD表)或计算问题解决指标时触发。

装好后可以这样说
触发驱动表规则
触发SCD过滤规则
触发仅含关闭问题规则
技能原文 SKILL.md作者撰写 · Apache-2.0 · 436a4c4

HR & Operations

Driving Table

When aggregating workforce or issue metrics, drive FROM the fact/event table (issues, tickets, time_entries), not the dimension table (employees, teams, projects). Employees with zero activity MUST NOT appear in activity reports - they have no data to aggregate.

Exception: if a parent/entity table exists whose primary key matches the GROUP BY key AND some parent rows have no matching children in the detail table, drive FROM the parent and LEFT JOIN the detail. Parent rows with zero children must appear with count=0, not be silently dropped.

SCD (Slowly Changing Dimensions)

Tables with _fivetran_start/_fivetran_end or valid_from/valid_to columns track historical state. You MUST filter to the current record before aggregating.

Current record: _fivetran_end = '9999-12-31' OR _fivetran_end IS NULL - verify the sentinel value by querying 3-5 rows before assuming.

For _fivetran_active columns, always use WHERE COALESCE(_fivetran_active, true) - never WHERE _fivetran_active = true because NULL values (meaning "active") would be filtered out.

NEVER aggregate across all historical rows without filtering to current records first - doing so double-counts entities that changed state.

Issue Resolution Metrics

Include ONLY closed issues in resolution time calculations - open issues have no close timestamp.

NEVER substitute current_date for a missing close timestamp - this produces artificially inflated resolution times that corrupt the metric.

按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。