Pdd Pr Review logo

Pdd Pr Review

Community
wonderslife
pdd-pr-review

汇总审查结果,给出建议操作。支持 GitHub 模式和本地模式。支持中文触发:审查PR、PR审查、查看审查结果、PR建议。

Overview

Publisherwonderslife
Repositorypdd-skills
Skill namepdd-pr-review
Stars
41
Forks
11
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by wonderslife on GitHub. Read the source before you install it.

Installation

Install the Pdd Pr Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wonderslife/pdd-skills/tree/main/pdd-pr-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wonderslife/pdd-skills.git /tmp/pdd-skills
mkdir -p .claude/skills
cp -r /tmp/pdd-skills/pdd-pr-review .claude/skills/pdd-pr-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pdd Pr Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pdd Pr Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pdd Pr Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

pdd-pr-review

Description: 汇总审查结果,给出建议操作。支持 GitHub 模式和本地模式。

Details: 查看 PR 审查结果和建议

Input: OpenSpec Change ID 或 PR 编号

执行流程

1. 获取 PR 状态

GitHub 模式:
├── 从 GitHub API 获取 PR 信息
├── 获取 PR 状态、评论、检查结果
└── 获取关联的 Change ID

本地模式:
├── 读取 pr-record.md
├── 解析审查记录
└── 获取 Change ID

2. 读取审查报告

读取: openspec/changes/{change-id}/review-report.md

解析:
├── Blocking 问题数量
├── Warning 问题数量
├── Suggestion 数量
├── 测试覆盖率
└── 各检查项状态

3. 汇总审查结果

统计:
├── Blocking 问题: 0 → ✅ 可合并
├── Warning 问题: ≤3 → ⚠️ 建议修复后合并
└── Warning 问题: >3 → ❌ 建议修复

4. 生成建议

判断逻辑:
├── 无 Blocking + Warning ≤ 3 → 建议: 通过
├── 有 Blocking → 建议: 需修复
└── Warning > 3 → 建议: 建议修复

5. 输出结果

输出:
├── 审查结果汇总表
├── 问题列表(可选详细模式)
├── 建议操作
└── 等待用户决策

输出格式

简洁模式(默认)

markdown
## PR 审查报告

**PR 编号**: #123
**Change ID**: c-001-xxx
**标题**: feat(workflow): 添加权限控制

### 审查结果汇总

| 级别 | 数量 | 状态 |
|------|------|------|
| 🔴 Blocking | 0 | ✅ |
| 🟡 Warning | 2 | ⚠️ |
| 💡 Suggestion | 3 | ℹ️ |

### 建议操作

**✅ 可以合并** - 无 Blocking 问题,Warning 数量在可接受范围内

### 操作选项

- 确认合并: `/pdd-pr-merge c-001-xxx`
- 修复后重新审查: 修复问题后执行 `/pdd-pr-create c-001-xxx --re-review`
- 查看详细问题: `/pdd-pr-review c-001-xxx --detail`

详细模式(--detail)

markdown
## PR 审查报告(详细)

**PR 编号**: #123
**Change ID**: c-001-xxx
**标题**: feat(workflow): 添加权限控制

### 审查结果汇总

| 级别 | 数量 | 状态 |
|------|------|------|
| 🔴 Blocking | 0 | ✅ |
| 🟡 Warning | 2 | ⚠️ |
| 💡 Suggestion | 3 | ℹ️ |

### 🟡 Warning 问题

#### [W-001] 方法参数命名不一致

- **文件**: WorkflowController.java:45
- **描述**: 参数名 `userId` 与其他方法不一致
- **建议**: 统一使用 `user_id` 或 `userId`

#### [W-002] 缺少 JavaDoc 注释

- **文件**: WorkflowService.java:78
- **描述**: 公共方法缺少文档注释
- **建议**: 添加方法功能说明和参数说明

### 💡 Suggestion

#### [S-001] 可优化循环逻辑

- **文件**: WorkflowService.java:102
- **描述**: 可使用 Stream API 简化代码
- **建议**: `list.stream().filter(...).collect(...)`

### 测试覆盖详情

| 模块 | 覆盖率 | 状态 |
|------|--------|------|
| asset-admin | 85% | ✅ |
| asset-system | 72% | ✅ |

### 建议操作

**✅ 可以合并**

### 操作选项

- 确认合并: `/pdd-pr-merge c-001-xxx`
- 修复后重新审查: 修复问题后执行 `/pdd-pr-create c-001-xxx --re-review`

参数

参数类型必需默认值描述
change_idstring否-OpenSpec Change ID
pr_numbernumber否-GitHub PR 编号
detailboolean否false是否显示详细问题列表

错误处理

PR 不存在

❌ PR 不存在

**Change ID**: c-001-xxx

请先创建 PR: `/pdd-pr-create c-001-xxx`

本地模式无记录

❌ 本地 PR 记录不存在

**Change ID**: c-001-xxx

请先创建 PR: `/pdd-pr-create c-001-xxx`

与其他技能的协作

pdd-pr-review
    │
    ├── 被调用方
    │   ├── pdd-pr-create (创建后查看)
    │   └── 用户直接调用
    │
    └── 调用方
        └── pdd-pr-merge (合并前查看)

PR管理规范

详见 pdd-pr-create SKILL.md


PDD实施规范引用

本Skill遵循PDD框架实施规范,详见 pdd-framework-design.md 第9章。

Frequently asked questions

What does the Pdd Pr Review AI skill do?

汇总审查结果,给出建议操作。支持 GitHub 模式和本地模式。支持中文触发:审查PR、PR审查、查看审查结果、PR建议。

Why use Pdd Pr Review on TypingMind?

Because you install it once and use it with any model. Pdd Pr Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pdd Pr Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wonderslife/pdd-skills/tree/main/pdd-pr-review. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Pdd Pr Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pdd Pr Review?

As many as you like. As long as a model supports skills, you can use Pdd Pr Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pdd Pr Review AI skill free?

Yes. It is published on GitHub by wonderslife under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇