AgentSkillsCN

codebase-pattern-finder

在代码库中寻找现有的模式与示例(涵盖 API、数据、UI、测试等领域),并以代码片段与文件:行号的引用加以呈现。当你需要以现有模式为蓝本开展新工作时,此技能将助你事半功倍。

SKILL.md
--- frontmatter
name: codebase-pattern-finder
description: Find existing patterns and examples in the codebase (API, data, UI, testing) and present them with snippets and file:line references. Use when you need to model new work after existing patterns.

Codebase Pattern Finder

Overview

Collect concrete examples of how similar problems are solved in the codebase.

Workflow

  1. Identify the pattern type to search for (feature, structure, integration, testing).
  2. Search for multiple examples, not just one.
  3. Extract minimal snippets with context and file:line references.
  4. Present patterns without judging which is best.