followup-sla-check

followup-sla-check: Calculate follow-up deadlines and overdue status by business days; applicable to CRM follow-up SLAs, overdue alerts, and remaining business day queries, or when referencing the followup-sla toolbox.

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 "followup-sla-check" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f203368fc9f375abcca4e53105963d7dcf082ca0d6fa2210a9178cef0f5e9fd5. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/bxqt2026821 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

followup-sla-check: Calculate follow-up deadlines and overdue status by business days; applicable to CRM follow-up SLAs, overdue alerts, and remaining business day queries, or when referencing the followup-sla toolbox.

0 Downloads

Introduction source: third_party · user_f1b049da · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: followup-sla-check
slug: bxqt2026821
displayName: 跟进SLA逾期
version: 1.0.0
summary: 按工作日计算跟进截止日期与是否逾期。
license: MIT
description: 按工作日计算跟进截止日期与是否逾期。当用户需要 CRM 跟进 SLA、逾期提醒、剩余工作日,或提到工具箱 followup-sla 时使用。

跟进 SLA 逾期

灵感:能力工具箱 followup-sla(基于工作日推算)。

何时使用

  • 上次跟进日后,约定 N 个工作日内必须再跟进。
  • 需要状态:正常 / 今日到期 / 已逾期,以及剩余或逾期工作日数。

硬约束

  1. 依赖工作日:截止日期 = addWorkdays(lastFollowAt, slaWorkdays);勿用自然日冒充。
  2. 输入:lastFollowAt(日期)、slaWorkdays(正整数)、可选 now。
  3. 状态规则:
    • 今天 = 截止日 → 今日到期
    • 今天 > 截止日 → 已逾期(remain 为负或绝对值说明)
    • 否则 → 正常 + 剩余工作日
  4. 与工作日 Skill 配合:可复用 workday-follow-calc 的假日/调休注入方式。
  5. 交付:完整 calcFollowupSla 片段;UI 提示文案中文。

推荐实现要点

// 假设已有 addWorkdays / isWorkday / formatYmd
export function calcFollowupSla(input: {
  lastFollowAt: string
  slaWorkdays: number
  now?: Date
}) {
  const last = parseDay(input.lastFollowAt)
  const deadline = addWorkdays(last, input.slaWorkdays)
  const today = startOfDay(input.now || new Date())
  const dead = startOfDay(deadline)
  if (today.getTime() === dead.getTime()) {
    return { deadline: formatYmd(deadline), overdue: false, remainWorkdays: 0, status: '今日到期', tip: '今天须完成跟进' }
  }
  if (today > dead) {
    const overdueDays = countWorkdaysBetween(dead, today) // 不含 dead 含 today 按产品约定写清
    return { deadline: formatYmd(deadline), overdue: true, remainWorkdays: -overdueDays, status: '已逾期', tip: `已逾期约 ${overdueDays} 个工作日` }
  }
  const remain = countWorkdaysBetween(today, dead)
  return { deadline: formatYmd(deadline), overdue: false, remainWorkdays: remain, status: '正常', tip: `距离到期还有 ${remain} 个工作日` }
}

Agent 执行步骤

  1. 接入工作日函数;实现 SLA 三态。
  2. 自测:SLA=1 且上次为周五 → 截止下周一;今日=截止 → 今日到期。
  3. 列表页可用颜色区分三态,勿只返回 boolean。

附加

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 Value75/100

Highlights

  • 解决 CRM 跟进 SLA 计算、逾期提醒等明确业务痛点
  • 适用于销售、客服等高频场景,具有实际业务价值
Trigger Precision85/100

Highlights

  • 触发场景描述清晰:CRM 跟进 SLA、逾期提醒、剩余工作日、工具箱 followup-sla
  • 边界清晰,覆盖合理
Structure and Standards90/100

Highlights

  • 文档结构完整,包含何时使用、硬约束、推荐实现要点、Agent 执行步骤
  • frontmatter 完整,有代码示例和自测建议
Execution Reliability65/100

Areas to improve

  • 依赖工作日函数未明确来源 Reported severity: Major

    代码示例中依赖 addWorkdays/isWorkday 等函数,但未说明这些函数的来源或提供 fallback 方案,可能导致执行失败。

    Recommendation: 建议明确说明工作日函数的来源(如引用 workday-follow-calc Skill),或在文档中提供基础实现或错误处理方案。

Evidence Verifiability (mean of the first four)79/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.