Skip to content
Back to skills

Pattern Finder

ASecurity

Find the existing exemplar to mirror before writing a new unit that has the same shape as something already in the codebase — a module, a handler, a test, a migration, a tooling script. Use before writing new code, so it reads like the code around it instead of introducing a second convention.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agents

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add JiarongGu/Lyntai --skill pattern-finder --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pattern Finder?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pattern Finder
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiaronggu-pattern-finder-lyntai/badge)](https://www.skillsdirectory.com/skills/jiaronggu-pattern-finder-lyntai)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pattern-finder
description: Find the existing exemplar to mirror before writing a new unit that has the same shape as something already in the codebase — a module, a handler, a test, a migration, a tooling script. Use before writing new code, so it reads like the code around it instead of introducing a second convention.
---
<!-- daoris: core/core/skills/pattern-finder/SKILL.md @ 0.0.1 — canonical; edit via `daoris upstream` -->

# pattern-finder

New code should read like the code around it: same registration, naming, error handling, and wiring.
The exemplar is nearly always already there.

## Steps

1. **Name the shape.** Say what you are adding in the codebase's own vocabulary — not "a class" but the
   kind of unit it is. If you cannot name the shape, it is probably a new one, and that is a design
   decision rather than a copy.
2. **Find exemplars by searching, not from memory.** Search this repository first: a convention it
   already follows outranks any external reference. Only if nothing here has the shape, look to whatever
   proven source the repository's own documents point at.
3. **Read one exemplar end to end.** Skimming yields the surface and misses the wiring — the
   registration, the error path, the lifecycle, the threading discipline, the chain across files.
   **Keep the comments that explain a non-obvious choice**; they are usually the record of something
   that went wrong once.
4. **Report** the file to mirror and the three to five conventions it establishes, then implement in
   that shape.

## Why

Two conventions for the same thing is worse than either one alone: every later reader has to determine
which applies, and every later change has to be made twice. Divergence enters a codebase one reasonable
local decision at a time, which is exactly why the check belongs *before* the code is written rather
than in review.

If the exemplar is wrong, fixing it and following it is the right move. Working around it silently
leaves the next person to rediscover the same problem.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.