SE

A development discipline ensuring deep code research before implementation to avoid assumptions and wasted effort.

Install

mkdir -p .claude/skills/search-first && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13951" && unzip -o skill.zip -d .claude/skills/search-first && rm skill.zip

Installs to .claude/skills/search-first

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

> ⚠️ **Anti-Pattern**: Concluding "feature X doesn't exist" based solely on empty grep results without reading the actual source file. This leads to incorrect analysis and wasted time.
184 chars · catalog descriptionno explicit “when” trigger
Beginner

Key capabilities

  • Research codebase and documentation before proposing changes
  • Use `grep_search`, `find_by_name`, and `mcp_gitnexus_query` for understanding existing logic
  • Reference existing patterns for similar functionality
  • Cross-reference library documentation for best practices
  • Analyze change impact using `mcp_gitnexus_impact`
  • Cite specific files and line numbers in implementation plans

How it works

The skill enforces a workflow where developers must research the codebase and documentation using various search tools before planning or implementing any changes, especially verifying empty search results.

Inputs & outputs

You give it
Concept or component to be implemented or changed
You get back
Evidence-based plan citing specific files and line numbers

When to use search-first

  • Investigating codebase logic
  • Researching API usage
  • Verifying feature existence
  • Analyzing change impact

About this skill

Search-First Development Skill

🎯 Goal

Ensure absolute context clarity by researching the codebase and documentation before proposing or implementing any changes.

🛠️ Instructions

  1. Stop and Research: Before writing a single line of code, use grep_search, find_by_name, and mcp_gitnexus_query to understand the existing logic.
  2. Reference Existing Patterns: Identify where similar functionality exists and replicate established patterns.
  3. Cross-Reference Docs: Use mcp_context7_query-docs or read_url_content to check library documentation for the latest best practices.
  4. Impact Analysis: Use mcp_gitnexus_impact to see what will break if you change a symbol.
  5. Evidence-Based Planning: Your implementation_plan.md must cite specific files and line numbers found during research.

🚨 Verify Empty Results (MANDATORY)

When grep_search returns "No results found", NEVER trust it blindly. Always verify by:

  1. Read the file directly with view_file — especially for files you've previously viewed or edited, or files under ~500 lines.
  2. Check encoding/save state — the file may have unsaved changes or encoding issues that prevent grep from matching.
  3. Try alternative search terms — the function/variable may use a different naming convention than expected.
  4. Rule: If you previously saw content in a file and grep now says it doesn't exist, the grep result is wrong, not your memory. Always read the file to confirm.

⚠️ Anti-Pattern: Concluding "feature X doesn't exist" based solely on empty grep results without reading the actual source file. This leads to incorrect analysis and wasted time.

🏁 Workflow

  1. Query: Search for the concept/component.
  2. Trace: Follow the execution flow using mcp_gitnexus_context.
  3. Validate: Confirm assumptions with tool output. If grep returns empty but you expect results, READ the file.
  4. Execute: Only then, proceed to planning and implementation.

When not to use it

  • When the user is already certain about the codebase and documentation
  • When the user does not need to verify empty search results
  • When the user is concluding 'feature X doesn't exist' based solely on empty grep results

Limitations

  • Requires verification of empty search results
  • Mandates citing specific files and line numbers in plans
  • Aims to prevent incorrect analysis from incomplete search results

How it compares

This skill mandates a 'search-first' approach, requiring explicit verification of search results and documentation cross-referencing, unlike simply performing a search and assuming its completeness.

Compared to similar skills

search-first side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
search-first (this skill)04moNo flagsBeginner
jupyter-notebook306moReviewIntermediate
external-model-selection28moReviewIntermediate
consult-zai16moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry