search-first
Enforce a search-before-edit workflow for code changes. Use this Skill whenever a task involves changing code, tracing behavior, or understanding an…
от MiniMax-AI★ 30 звёзд на GitHub
Установить search-first в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Search First
Use this skill when a task involves changing code, tracing behavior, or understanding an unfamiliar area.
Core rule
Do not modify code until you have first searched for the relevant files, symbols, call sites, nearby patterns, and affected references.
Workflow
- Search for the exact file, symbol, route, command, or error text.
- Read the most relevant definitions and references.
- Identify adjacent code paths that could be affected.
- Identify tests, docs, configs, or UI flows coupled to the target.
- Before proposing or editing, report a concise investigation summary: the primary implementation, important callers, coupled artifacts, the project pattern to follow, and the smallest safe change.
- Only then propose or implement changes.
Priorities
- Prefer exact evidence over assumptions.
- Prefer existing project patterns over inventing new ones.
- Prefer narrow, targeted changes after understanding the local context.
- For a task that proposes changing how code uses an external API or SDK, prefer versioned documentation already present in the repository or local environment. If it is unavailable and host policy permits network access, consult the dependency vendor's official documentation using only the minimum necessary public product, API, and version details. Never send source code, credentials, personal data, private endpoints, internal hostnames, or private package names.
- For read-only tracing, explanation, or investigation tasks, do not initiate an online documentation lookup; report any version-sensitive uncertainty instead.
- If official documentation cannot be accessed, report that limitation and treat version-sensitive behavior as unverified. Avoid guessing; ask the user for documentation or approval of the explicitly stated risk before making that part of the change.
- When the task spans multiple files or uncertainty remains high, narrow the scope or split the work instead of guessing.
Minimum investigation before editing
Before editing, try to answer:
- Where is the primary implementation?
- What calls it or imports it?
- Are there tests, docs, configs, or browser flows coupled to it?
- Is there an existing pattern nearby to follow?
- What is the smallest safe change that solves the request?
Good outcomes
- Fewer blind edits.
- Lower regression risk.
- Faster convergence on the right file and change shape.
Notes
- This skill is a workflow aid only.
- It must not modify hooks, settings, plugins, or global configuration on its own.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл search-first?
Enforce a search-before-edit workflow for code changes. Use this Skill whenever a task involves changing code, tracing behavior, or understanding an unfamiliar area, so the agent searches and reads the relevant files before proposing or implementing edits.
Как установить скилл search-first?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл search-first запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…