knowledge-patterns

Identify and retrieve known review patterns from a searchable library to guide PR fixes.

2|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/penkzhou/swiss-army-knife-plugin --skill knowledge-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: knowledge-patterns
Source: https://github.com/penkzhou/swiss-army-knife-plugin/tree/main/swiss-army-knife/skills/knowledge-patterns
Command: npx skills add https://github.com/penkzhou/swiss-army-knife-plugin --skill knowledge-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PR Review 修复模式库提供已知问题模式与解决方案的快速参考,帮助团队在评审评论时避免重复分析和劳动成本。

Core Features & Use Cases

  • 快速索引: 提供可检索的模式清单,涵盖常见代码审查场景。
  • 智能匹配: 与 PR 评论上下文结合,快速识别匹配的模式以辅助决策。
  • 学习与沉淀: 通过知识沉淀持续扩展模式库,促进最佳实践在团队内传播。

Quick Start

从知识模式库中查找与当前 PR 评论相关的模式并应用于修复建议。

Frequently Asked Questions about knowledge-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I suggest fixes for common issues found during code review?

To suggest fixes for common issues found during code review, apply known PR review patterns from a knowledge-patterns library. This approach matches PR comments with established solutions to guide decision-making and avoid repeated analysis.

What are PR review patterns and how do they help code review workflows?

PR review patterns are structured files containing known issues and best practices for code review. They help workflows by providing a searchable index to quickly retrieve solutions, reducing duplicated effort and promoting consistent improvements across teams.

How do I find matching best practices for a specific PR comment?

You can find matching best practices for a specific PR comment by using a searchable index of a pattern library. The system intelligently matches the context of the comment against known patterns to guide your review decisions.

Can I use a pattern library to automate code review for my team?

You can use a pattern library to automate code review suggestions by applying patterns across PR comments. While it provides intelligent matching for common issues, it serves as a reference to guide decisions rather than fully automating the review process.

What is the best way to build a knowledge base for code review?

The best way to build a knowledge base for code review is to maintain a structured pattern library with a consistent metadata schema. This allows continuous knowledge accumulation and quick retrieval of best practices during PR reviews.