skill-perfection

当需要对插件技能文件进行质量审核和修复时使用。该技能提供根据官方文档验证技能内容、就地修复问题并生成验证报告的方法。

仓库最近推送
GitHub Stars
126
Forks
13
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "skill-perfection":https://skillpi.com/zh/skills/deepskill-718c2e7c428b90e51edd184a2d1605e74e28ec32c23f13f52e970018f7e45cd7。安装前核对上游来源和版本:https://github.com/OmidZamani/dspy-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

当需要对插件技能文件进行质量审核和修复时使用。该技能提供根据官方文档验证技能内容、就地修复问题并生成验证报告的方法。

0 下载

介绍来源: third_party · OmidZamani · 1.1.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: skill-perfection
description: "Use this skill when you need to QA audit and fix a plugin skill file. Provides a methodology for verifying skill content against official documentation, fixing issues in-place, and producing verification reports."
version: 1.1.0

Skill Perfection

A systematic process for auditing and fixing plugin skills in a single pass.

Core Principle

Audit + Fix in One Pass: When you find an issue, fix it immediately, then continue. This eliminates redundant research and multiple iterations.

Process Overview

[Optional Preflight] → Audit+Fix (single pass) → Verify (spot-check) → Report

Phase 1: Preflight (Optional, Advisory)

A Python-based preflight script is bundled for Python-heavy skills only.

When to Use Preflight

Skill Content Use Preflight?
Mostly Python code blocks ✅ Yes
Mixed Python + other languages ⚠️ Optional (Python blocks only)
Non-Python (JS, Rust, Go, etc.) ❌ Skip, go to Phase 2
Skill about the preflight script itself ❌ Skip (conflict of interest)

Running Preflight

uv run python ${SKILL_DIR}/scripts/preflight.py <path-to-skill.md> --no-urls

Interpreting Results

Result Action
✅ PASSED Good signal. Proceed to Phase 2, trust syntax is valid.
❌ FAILED with clear errors (syntax error at line X) Fix those specific issues, then proceed to Phase 2.
❌ FAILED with confusing/many errors Ignore preflight entirely. Proceed to Phase 2, let LLM verify.
Script crashes or hangs Ignore preflight entirely. Proceed to Phase 2.

Key Rule: Preflight is Advisory

The preflight script is a helper, not a gatekeeper. If it produces confusing output, skip it. The LLM-based Phase 2 is always authoritative.

Signs to ignore preflight:

  • More than 10 errors on a skill that "looks fine"
  • Errors that don't make sense (line numbers don't match)
  • Python tracebacks from the script itself
  • Timeouts or hanging

When in doubt, skip preflight and let the LLM verify everything.

Phase 2: Audit + Fix (Single Pass) - THE CORE

This is the main phase. Work through the skill file section by section.

2.1 Identify the Technology

From the skill's content, identify:

  • Primary technology/framework (e.g., LangGraph, React, Axum, Go-kit)
  • Version constraints if mentioned
  • Official documentation domain

2.2 Research Strategy

Batch similar lookups to minimize web calls:

Example: For a skill with 10 import statements from the same package,
do ONE search that covers them all, not 10 separate searches.

Documentation priority:

  1. Official docs (use site: filter)
  2. Official GitHub repo (examples, tests, README)
  3. Package registry (PyPI, npm, crates.io, pkg.go.dev)
  4. Official blog/changelog

2.3 For Each Verifiable Item

Item Type What to Verify
Import/require statement Package exists, path is current, not deprecated
API call Signature matches official docs, parameters correct
Code example Would execute, complete imports, correct syntax
URL/link Accessible (WebFetch), points to claimed content
Version claim Current/accurate
Best practice claim Aligned with official recommendations

2.4 Fix-As-You-Go

When you find an issue:

  1. STOP auditing that section
  2. FIX the issue immediately (Edit tool)
  3. LOG the change in memory: {location, old, new, reason, source_url}
  4. CONTINUE auditing

All severities get fixed in one pass - don't defer anything.

2.5 Syntax Verification (LLM-based)

For code blocks, verify syntax by reading carefully:

Python: Check for matching parentheses, correct indentation, valid syntax JavaScript/TypeScript: Check for matching braces, valid syntax, correct imports
Rust: Check for matching braces, semicolons, valid syntax Go: Check for matching braces, correct package structure Any language: Apply your knowledge of that language's syntax rules

If unsure about syntax validity, note it but don't block on it - focus on semantic correctness against official docs.

Phase 3: Verification (Spot-Check)

After completing Phase 2:

  1. Re-read the modified skill file
  2. Spot-check 3-5 items you fixed (not everything)
  3. Verify URLs you added/modified (WebFetch)

If spot-checks pass → Proceed to Phase 4 If spot-checks fail → Fix those specific items, re-check only those

Do NOT do a full re-audit. You already verified everything in Phase 2.

Phase 4: Generate Report

Create a concise report (<100 lines):

# Skill Perfection Report

**Skill**: {skill-name}
**Date**: {date}  
**Version**: {old} → {new}
**Status**: ✅ PERFECTED | ⚠️ NEEDS REVIEW

## Summary
- Items verified: {N}
- Issues found and fixed: {N}

## Changes Made

### High Priority
| Location | Change | Reason | Source |
|----------|--------|--------|--------|
| line 45 | `old` → `new` | why | [docs](url) |

### Medium/Low Priority
| Location | Change | Reason | Source |
|----------|--------|--------|--------|
| line 12 | `old` → `new` | why | [docs](url) |

## Verification
- [x] All imports verified against official docs
- [x] All API signatures match current documentation
- [x] Code examples are complete and correct
- [x] All URLs accessible

## Sources
1. {url}
2. {url}

Save to: {skill-directory}/PERFECTION_REPORT.md

Efficiency Guidelines

Metric Target
Web searches <20 per skill (batch similar items)
Iterations 1 audit+fix pass + 1 spot-check
Report length <100 lines

Anti-Patterns

❌ Run preflight on non-Python skills ✅ Skip preflight, let LLM verify

❌ Trust confusing preflight output
✅ Ignore preflight when output doesn't make sense

❌ Separate audit pass, then separate update pass ✅ Fix issues as you find them

❌ Full re-audit after fixes ✅ Spot-check only changed items

❌ Research same API multiple times
✅ Batch similar lookups, cache results

Bundled Scripts

scripts/preflight.py

Purpose: Quick syntax check for Python-heavy skills Limitation: Only useful for Python; advisory only

# Use for Python skills
uv run python ${SKILL_DIR}/scripts/preflight.py skill.md --no-urls

# Skip for non-Python skills or if output is confusing

If preflight causes problems, ignore it entirely. The LLM-based audit is always the authoritative verification.

当前收录版本

1.1.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 提供了一套完整的技能文件质量审核与修复方法论,实用性强
  • 适用于开发者维护和优化技能文件,受众广泛
触发精准95/100

亮点

  • 触发描述清晰完整,覆盖多种使用场景
  • 边界明确,不易误触或漏触
结构规范95/100

亮点

  • Phase 划分清晰,步骤完整,包含端到端示例
  • frontmatter 完整,文档长度适中,排版规范
执行可靠88/100

待提升项

  • 不可逆操作缺乏显式确认机制 原报告严重程度:轻微

    流程中涉及修改技能文件,但未明确要求用户确认

    改进建议:在 Phase 2 的 Fix-As-You-Go 步骤中增加确认提示

亮点

  • 工具调用策略明确,覆盖主要异常场景
  • preflight 脚本设计合理,提供清晰的忽略条件
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

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

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。