search-first
Research-before-building workflow. Use when adding new behavior, dependencies, or integrations to avoid reinventing and to stay compatible across codex/claude/gemini/opencode.
- License 许可
- MIT
- 所属仓库
- rexleimo/aios
- 最近更新
- 2026-11-07
- Stars
- ★ 62
- Forks
- 11
01 前言 Front Matter
- name
- search-first
- tags
- [ "general", "research" ]
- scopes
- [ "global", "project" ]
- clients
- [ "codex", "claude", "gemini", "opencode", "hermes", "workbuddy", "pi", "zcode", "qoder" ]
- description
- Research-before-building workflow. Use when adding new behavior, dependencies, or integrations to avoid reinventing and to stay compatible across codex/claude/gemini/opencode.
- repoTargets
- [ "codex", "claude", "gemini", "opencode", "hermes", "workbuddy", "pi", "zcode", "qoder" ]
- defaultInstall
- { "global": true, "project": false }
- installCatalogName
- search-first
03 SKILL.md 正文
Search First
Trigger
Use this skill before you:
- Add a new feature or workflow step
- Introduce a new dependency, MCP server, or CLI integration
- Write a new utility/helper that might already exist
- Copy patterns from another repo (porting)
Outcome
Pick one of: Adopt, Extend, Compose, Build, with a short justification and evidence.
Workflow (Fast)
-
Define the need
- What is the smallest outcome that solves the problem?
- Constraints: platform (macOS/Linux/Windows), clients (codex/claude/gemini/opencode), offline needs, security posture.
-
Search locally (before the internet)
- CRG (if codemap installed):
semantic_search_nodes(query="<keyword>")thenquery_graph(pattern="callers_of"|"callees_of"|"tests_for", target="<name>")— returns structural context that text search cannot provide - Code:
rg -n "<keyword>"in the repo (fallback when CRG doesn't cover what you need) - Scripts: check
scripts/for existing lifecycle/doctor commands. - Docs: check
README*anddocs/.
- CRG (if codemap installed):
-
Search existing skills
- Repo-local:
.codex/skills,.claude/skills,.agents/skills. - Global:
~/.codex/skills,~/.claude/skills,~/.gemini/skills,~/.config/opencode/skills. - Prefer reusing an existing skill name over creating a near-duplicate.
- Repo-local:
-
Search the ecosystem (when needed)
- Prefer official docs and primary sources (project docs, RFCs, standards).
- Prefer maintained, well-scoped libraries over bespoke code.
- For agent tooling, check if an MCP server already provides the capability.
-
Decide
- Adopt: exact match, maintained, acceptable license.
- Extend: mostly fits; add thin wrapper/adapter.
- Compose: 2-3 small pieces together beat 1 big framework.
- Build: no good option; implement minimal + document why.
-
Record evidence
- Note what you searched, what you found, and why you chose the approach.
- If a decision affects cross-CLI behavior, add it to a
docs/plans/artifact.
04 同仓库更多 Skills
versioning-by-impact
Use when completing a task and deciding whether repository changes require a semantic version bump and changelog entry before commit/push.
verification-loop
Evidence-before-assertions workflow. Use before claiming work is done, before release, and after any behavior change in scripts/skills/MCP.
typesafe-ai
Build AI-powered software with TypeSafe: small units of AI intelligence you can use like programming primitives. Its System One models, including Jev, turn natural language and application state into typed judgments and probabilities that code can combine. Use when a feature needs programmable common sense, when brainstorming what AI could make possible in an app, or when an LLM prompt-and-parse step could become a structured decision. Applications include routing, ranking, extraction, verification, and interactive experiences; these are starting points, not the limits. Read live docs and cookbooks to find useful patterns and discover new combinations.
skill-opt-lite
Train and optimize skill documents using the SkillOpt methodology — the agent acts as both target and optimizer, running tasks, reflecting on failures, proposing edits, and validating improvements in a self-contained training loop. TRIGGER: optimize skill, train skill, improve skill, skill training, skill optimization, SkillOpt, skill evolution, skill iteration loop, skill feedback loop, skill tuning.
skill-constraints
Enforce browser automation safety constraints — tool usage order, anti-detection rules, screenshot discipline, and human-in-the-loop checks. Use when setting up or verifying browser/MCP tool operations, NOT for every skill execution.
seo-geo-page-optimization
Use when improving a single page for SEO and AI answer-engine visibility (GEO), especially when you need faster first-screen conversion and clearer traffic funnels.