Search first

From mshadmanrahman/pm-pilot · View interactive version

Search first is an AI agent skill from the GitHub repository mshadmanrahman/pm-pilot. Research existing solutions before writing custom code

How to use this skill

Skill file

Search First

Mandatory research before writing any new code. Reuse beats reinvention.

When to Use

Procedure

Step 1: GitHub Code Search

# Search for existing implementations
gh search repos "{feature keywords}" --limit 5
gh search code "{function signature or pattern}" --limit 10

Look for:

Step 2: Package Registry Search

Check the relevant registry:

Evaluate packages on:

Step 3: Library Documentation

Step 4: Decision

Output one of:

REUSE: {package/repo} - {why it fits}
ADAPT: {package/repo} - {what needs modification}
BUILD: No suitable existing solution - {why}

Output Format

Search: {what was needed}

GitHub: 3 repos found, 1 strong match
  - github.com/user/repo (2.1k stars, MIT, active)

Registry: 2 packages evaluated
  - package-name (50k weekly downloads, v3.2.1)

Decision: REUSE package-name
Rationale: Covers all requirements, well-maintained, MIT license
Install: npm install package-name

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.