note-text-diff

note-text-diff: Compares text differences between two versions of follow-up notes so changes before and after are clear at a glance. Used for comparing revised follow-up records, note diffs, or when referencing the note-diff / diff toolkit.

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 "note-text-diff" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-0650367d364ec5c0c00f0f087f2bb34f4bc088e5558b191c7991633ac22adb9f. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/jwvc2026947 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

note-text-diff: Compares text differences between two versions of follow-up notes so changes before and after are clear at a glance. Used for comparing revised follow-up records, note diffs, or when referencing the note-diff / diff toolkit.

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: note-text-diff
slug: jwvc2026947
displayName: 跟进记录Diff
version: 1.0.0
summary: 对比两版跟进笔记文本差异,改前改后一目了然。
license: MIT
description: 对比两版跟进笔记文本差异,改前改后一目了然。当用户需要跟进记录改稿对比、笔记 Diff,或提到工具箱 note-diff / diff 包时使用。

跟进记录 Diff

灵感:能力工具箱 note-diff(pkg: diff)。

何时使用

  • 对比「改前 / 改后」两段跟进笔记。
  • 审计谁改了什么(新增行、删除行),不做 JSON 对象 diff(那是另一类能力)。

硬约束

  1. 文本级:输入两段字符串;按行或按词 diff,输出结构化变更列表或统一 diff 文本。
  2. 依赖:推荐 diff(如 diffLines / createTwoFilesPatch);勿引入重型编辑器。
  3. 空内容:任一侧为空时仍给出完整新增/删除结果,勿抛未捕获异常。
  4. 展示:UI 可用绿增红删;导出可给 unified patch。
  5. 隐私:示例勿塞真实客户电话/金额,用占位符。

推荐实现要点

import { diffLines, createTwoFilesPatch } from 'diff'

export function noteLineDiff(before: string, after: string) {
  return diffLines(before || '', after || '').map((part) => ({
    added: !!part.added,
    removed: !!part.removed,
    value: part.value,
  }))
}

export function noteUnifiedPatch(before: string, after: string, name = 'followup-note.txt') {
  return createTwoFilesPatch(name, name, before || '', after || '')
}

Agent 执行步骤

  1. 实现行级 diff + 可选 unified patch。
  2. 自测:改一句、删一段、整段替换。
  3. 在说明中区分:本 Skill=笔记文本;客户资料 JSON diff 另议。

附加

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

Highlights

  • 针对跟进笔记改稿对比的明确场景,解决文本差异可视化需求
Trigger Precision85/100

Highlights

  • 触发词覆盖完整,包含多种变体(note-diff/diff包),边界清晰
Structure and Standards90/100

Highlights

  • 结构清晰,包含执行步骤、代码示例、硬约束说明,frontmatter完整
Execution Reliability85/100

Highlights

  • 依赖明确(diff包),参数正确,覆盖空内容等异常场景
Evidence Verifiability (mean of the first four)81/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.