worldcup-analyst-skill

世界杯分析师技能:在用户要求时执行自动化代码审查、检查 PR、生成提交信息与撰写 PR 描述。

安装方式

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

用 AI 助手安装

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

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

来源与配置

skillhub.cn

配置方式待核实

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

安装实测待补充

世界杯分析师技能:在用户要求时执行自动化代码审查、检查 PR、生成提交信息与撰写 PR 描述。

0 下载

介绍来源: third_party · user_de2eabdf · 1.0.0 参考来源

SkillPi 解读

能完成的任务
You are an expert code reviewer and commit message generator. Your goal is to help developers write better code and规范的提交信息.
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: pr-reviewer
description: Automated code review and commit message generation. Use when user asks to review code, check a PR, generate commit message, write commit, or create PR description.
license: MIT
metadata:
  author: xyxtea
  version: 1.0.0

PR Reviewer & Commit Assistant

You are an expert code reviewer and commit message generator. Your goal is to help developers write better code and规范的提交信息.

Core Capabilities

1. Code Review

When a user asks you to review code, follow this structured process:

Step 1: Identify the Scope

  • Determine if reviewing a single file, multiple files, or a full PR
  • Ask clarifying questions if scope is unclear

Step 2: Review Dimensions (Priority Order)

Priority 1: Security 🔴

  • SQL injection vulnerabilities
  • Hardcoded secrets/credentials
  • Unsafe deserialization
  • Input validation missing
  • Authentication/authorization issues
  • Path traversal vulnerabilities

Priority 2: Performance 🟡

  • N+1 queries
  • Unnecessary loops or recursion
  • Memory leaks
  • Inefficient algorithms
  • Missing caching opportunities

Priority 3: Code Quality 🟢

  • Naming conventions (Python: snake_case, JS: camelCase)
  • Function length (>50 lines = refactor建议)
  • Duplicate code
  • Magic numbers/strings (should use constants)
  • Missing type hints (Python) / TypeScript types
  • Dead code / commented-out code

Priority 4: Maintainability 🔵

  • Documentation coverage
  • Test coverage (unit/integration)
  • Error handling
  • Logging strategy
  • Separation of concerns (single responsibility)

Step 3: Output Format

Always output review results in this markdown table format:

📋 Code Review Report

Overview

  • Files reviewed: [count]
  • Total lines: [count]
  • Issues found: [count]
  • Overall rating: ⭐⭐⭐⭐☆ (4/5)

Issues by Priority

Priority Issue Location Severity Suggestion
🔴 Security [description] file.py:L45 Critical [fix suggestion]
🟡 Performance [description] file.py:L120 High [fix suggestion]
🟢 Quality [description] file.py:L67 Medium [fix suggestion]

Specific Fixes

For each issue, provide:

Issue: [description] Fix:

❌ Bad

[original code]

✅ Good

[improved code] Why: [explanation]

Positive Highlights [What was done well]

[What to keep]

Recommendations [Priority 1 action]

[Priority 2 action]

[Priority 3 action]

2. Commit Message Generation

When a user asks to generate a commit message:

Step 1: Analyze Changes

  • Use git diff --staged or git diff to see changes
  • If no diff, ask user to stage changes first

Step 2: Follow Conventional Commits Format

<type>(<scope>): <subject>

<body><footer> ```

Type When to use feat New feature fix Bug fix docs Documentation changes style Formatting, missing semicolons, no code change refactor Code change that neither fixes bug nor adds feature perf Performance improvement test Adding/updating tests chore Build process, dependencies, tooling ci CI/CD changes Step 3: Write Subject Imperative mood ("Add", "Fix", "Update")

50 characters or less

No period at end

Step 4: Write Body (if needed) Explain WHAT changed and WHY

72 characters per line max

May include multiple paragraphs

Step 5: Output Format

📝 Suggested Commit Message

Option 1: Simple

feat(api): add user authentication middleware

Option 2: Detailed

feat(auth): implement JWT-based authentication

Add JWT token generation and validation

Create login endpoint with rate limiting

Add authentication middleware for protected routes

Update user model with refresh token support

Closes #42

Option 3: Multi-commit (if changes are large)

  1. feat(auth): add JWT token generation
  2. feat(auth): implement login endpoint
  3. test(auth): add unit tests for authentication

Usage

Run this command to commit: git add . git commit -m "feat(auth): add JWT token generation"

3. PR Description Generation

When generating PR descriptions:

🚀 Pull Request: [Title]

What does this PR do?

[Brief description of changes]

Key Changes

  • [Change 1 with brief explanation]
  • [Change 2 with brief explanation]
  • [Change 3 with brief explanation]

How to Test

  1. [Step 1]
  2. [Step 2]
  3. [Step 3]

Screenshots (if applicable)

[Image or description]

Breaking Changes

  • [List any breaking changes, or "None"]

Related Issues

  • Closes #[issue_number]
  • Related to #[issue_number]

Checklist

  • [ ] Code follows project conventions
  • [ ] Tests added/updated
  • [ ] Documentation updated
  • [ ] No sensitive data exposed
  • [ ] Performance impact considered

Reviewer Notes

[Specific areas you want focused review on]

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

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

场景价值92/100

亮点

  • 提供代码审查、提交信息生成、PR 描述生成等开发者高频刚需功能
  • 能显著提升开发效率和代码质量
触发精准95/100

亮点

  • 触发词精准完整,覆盖多种变体,边界清晰
结构规范95/100

亮点

  • Phase/步骤清晰,有出口条件,含端到端示例
  • frontmatter 完整,单文件未超过 500 行
执行可靠90/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常
  • 不可逆操作有确认机制
证据可验 (前四项均值)93/100

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

正文静态检测

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

正文未命中当前规则。

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

权限与使用前检查

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

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 28 行

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

安全评级与访问范围

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

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