code-settlement

Code settlement: a code settlement interface triggered when a user requests implementing, writing, creating, modifying, fixing, refactoring, generating, building, developing, adding, updating, or deleting code, or when the conversation involves creating/modifying source files.

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 "code-settlement" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-33480188dd2f384637ca7d1eda6a18a82704b79fd25af697f914f3c1c045369f. Verify the upstream source and version against https://skillhub.cn/skills/user_309b5d43/vapcodesettlement 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

Code settlement: a code settlement interface triggered when a user requests implementing, writing, creating, modifying, fixing, refactoring, generating, building, developing, adding, updating, or deleting code, or when the conversation involves creating/modifying source files.

0 Downloads

Introduction source: third_party · user_309b5d43 · 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: code-settlement
description: 代码结算画面。当用户要求实现、编写、创建、修改、修复、重构、实现、生成、构建、开发、添加、更新或删除代码时,或对话涉及创建/修改源文件时自动触发。TRIGGER when user asks to write, create, modify, fix, refactor, implement, generate, build, develop, add, update, or delete code.

🃏 代码结算 — Vegas 风格

完成代码任务后,回顾本轮工作,决定是否在回复末尾追加"游戏结算画面"。

结算判断

完成代码工作后执行以下检查。满足任一则不结算,静默结束:

  • 未生成/修改任何代码
  • 代码净变更 < 20 行
  • 纯格式化/重命名
  • 纯读取/搜索无产出

全部不满足 → 进入结算流程。

数据收集

回顾本轮工作,从记忆和上下文提取(不额外调工具):

主数据(永远显示): ♠ 新增行数 / ♥ 删除行数 / ♦ 涉及文件数 / ♣ 对话轮数

副数据(永远显示): 🕐 工作时长 / ⚡ 效率(行数÷轮数)/ 🔧 工具调用次数 / 📁 新建文件数 / 🧪 测试 ✓✗ / 🎯 一次通过(重试=0)/ ☕ 咖啡指数

标签数据(永远显示): 📝 任务类型 / 🔖 技术栈

条件数据(>0 才显示): 🔌 MCP 调用数 / 🃏 Skill 触发数

附加: 一句话总结(≤20字)

工作时长

当前时间 - 8:30am = Xh Ym。若当前时间 < 8:30am,显示「才几点,这么卷?」。

咖啡指数

☕ = 工作时长 ÷ 2h,向上取整,最小 ×1。时间不足8:30时默认 ×1。

效率

⚡ = (新增+删除) ÷ 对话轮数,取整,单位"行/轮"。

计分(内部规则,不向用户展示公式)

CHIPS = 新增行数 + 删除行数(绝对值之和)

MULT = 1.0,叠加以下因子(满足则乘):

  • 对话 ≤3 轮且代码 >50 行 → ×1.5
  • 文件 ≥5 → ×1.2
  • 含测试 → ×1.3
  • 零报错一次通过 → ×1.2
  • 当前时间 22:00-06:00 → ×1.1

SCORE = CHIPS × MULT(取整)

RANK(全正反馈):A(0-199) S(200-499) SS(500-999) SSS(1000+)

只展示 SCORE 数字和 RANK 等级,不展示 CHIPS/MULT/公式。

RANK 装饰递进

RANK SCORE 行 RANK 行 称号行
A ⭐ S C O R E ⭐ ⭐ A ⭐ ✦「称号」✦
S 💰 S C O R E 💰 ✨ S ✨ ✦ ✦「称号」✦ ✦
SS 💰💰 S C O R E 💰💰 🔥 SS 🔥 ✦ ✦ ✦「称号」✦ ✦ ✦
SSS 💰💰💰💰 S C O R E 💰💰💰💰 🔥🔥🔥 SSS 🔥🔥🔥 👑✦✦✦「称号」✦✦✦👑

称号

根据本次数据+上下文创意生成一个称号。

  • 2-8字,「」包裹,戏谑/有梗/夸张,不冒犯
  • 中文或中英混搭
  • 参考:「手起码落」「代码整容师」「信任危机患者」
  • 结合:时间段、代码类型、技术栈、工作方式,自由发挥

渲染

纯文本 + emoji,直接写在回复中。不区分 CLI/IDE,不用 ANSI 转义码,直接返回文本,不要借用 markdown code标签。

与正文分隔

代码工作说明完成后,空一行,开始结算画面。

布局模板

副数据两列排布,右列从第 26 字符位置开始(从行首缩进算起)。主数据四卡一行。

SSS 级示例:

  · · · · · · · · · · · · · · · · · · · · · · · · · ·

       🎰  ★  R O U N D   C L E A R  ★  🎰
                 「一句话总结」

  · · · · · · · · · · · · · · · · · · · · · · · · · ·

       🎴 ♠ +{N} 行         🎴 ♥ -{N} 行
       🎴 ♦ {N} 文件         🎴 ♣ {N} 轮

       🕐 奋战 {Xh Ym}      ⚡ 效率 {N}行/轮
       🔧 工具 ×{N}          📁 新建 ×{N}
       🧪 测试 {✓/✗}         🎯 {一次通过!/重试×N}
       📝 {类型}              🔖 {技栈}
       🔌 MCP ×{N}           ☕ ×{N}

  · · · · · · · · · · · · · · · · · · · · · · · · · ·

      💰💰💰💰 S C O R E 💰💰💰💰
                 ✨ {SCORE} ✨

          🔥🔥🔥  SSS  🔥🔥🔥

        👑✦✦✦「{称号}」✦✦✦👑

  · · · · · · · · · · · · · · · · · · · · · · · · · ·

  "{极客名言}" — {出处}

注意: MCP/Skill 行仅在 >0 时显示。若两者都为 0,该行不出现。若只有一个 >0,与同行另一项(如 ☕)搭配或单独一行。

极客签名

底部点阵线下方,空一行,输出一句极客名言或 AI 原创金句。英文,1-2 句,"引文" — 出处 格式。每次不同。

参考风格:

  • "Talk is cheap. Show me the code." — Linus Torvalds
  • "It works on my machine." — Every Developer, Since 1970
  • "First, solve the problem. Then, write the code." — John Johnson

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value55/100

Highlights

  • 提供代码工作后的趣味结算画面,增强开发者体验
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,边界清晰,有效避免误触/漏触
Structure and Standards95/100

Highlights

  • 结构清晰,阶段划分明确,含完整示例和渲染模板
Execution Reliability90/100

Highlights

  • 纯展示逻辑,无外部依赖,计算规则自洽,可靠性高
Evidence Verifiability (mean of the first four)84/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.