Agent Skillslthoangg/OpenAgentd › oad/search-doc

oad/search-doc

GitHub

用于在文档目录中进行语义搜索,查询产品功能或仓库策略。支持检查并重建向量索引,执行自然语言检索,并指引在需要代码实现细节时切换至源码搜索。

.openagentd/skills/oad/search-doc/SKILL.md lthoangg/OpenAgentd

Trigger Scenarios

查询产品功能 查找仓库政策说明

Install

npx skills add lthoangg/OpenAgentd --skill oad/search-doc -g -y
More Options

Non-standard path

npx skills add https://github.com/lthoangg/OpenAgentd/tree/main/.openagentd/skills/oad/search-doc -g -y

Use without installing

npx skills use lthoangg/OpenAgentd@oad/search-doc

指定 Agent (Claude Code)

npx skills add lthoangg/OpenAgentd --skill oad/search-doc -a claude-code -g -y

安装 repo 全部 skill

npx skills add lthoangg/OpenAgentd --all -g -y

预览 repo 内 skill

npx skills add lthoangg/OpenAgentd --list

SKILL.md

Frontmatter
{
    "name": "oad\/search-doc",
    "description": "Semantic search over the retained OpenAgentd feature catalogue and repository instructions using the turbovec experiment index."
}

Search documents/ semantically only for product-capability or repository-policy questions. The codebase, tests, CLI help, and UI are authoritative for implementation and operation; use grep, glob, source reads, and git history for implementation and historical rationale.

This wraps the experiment at experiments/turbovec_docs/ (turbovec index + local sentence-transformers embeddings). Reuse the index when current; rebuild it only after the retained Markdown corpus changes.

1. Check the index exists

ls experiments/turbovec_docs/index/docs.tvim 2>/dev/null
  • If missing, or if documents/ has changed since the last build, rebuild it:
uv run --group experiment python experiments/turbovec_docs/build_index.py

The corpus is intentionally small: the feature catalogue and repository instructions. Rebuild whenever it might be stale rather than treating old search results as authoritative.

2. Search

uv run --group experiment python experiments/turbovec_docs/search.py "<query>" -k 5
  • Use natural-language questions about shipped features or repository documentation policy.
  • -k controls result count (default 5); lower it when one clear result is expected.
  • Open the returned file and line range before quoting or acting on a result.

3. Use source search instead when

  • You need implementation behavior, API routes, schemas, configuration keys, CLI arguments, UI details, tests, or error strings.
  • You are looking for an exact identifier, function/variable name, or literal text.
  • The semantic result is low-confidence or the retained corpus does not cover the question.

Notes

  • This is local and offline after the one-time model download.
  • experiments/turbovec_docs/README.md describes the experimental index and its limitations.
  • The experiment uv dependency group is dev/local-only; never assume it exists outside this workspace.

Version History

  • b4ec0d3 Current 2026-07-24 16:52

Same Skill Collection

.openagentd/skills/guidelines/SKILL.md
.openagentd/skills/oad/commit/SKILL.md
.openagentd/skills/oad/debug-prod/SKILL.md
.openagentd/skills/oad/debug/SKILL.md
.openagentd/skills/oad/diagram/SKILL.md
.openagentd/skills/oad/docs/SKILL.md
.openagentd/skills/oad/plan/SKILL.md
.openagentd/skills/oad/release/SKILL.md
.openagentd/skills/oad/review/SKILL.md
.openagentd/skills/oad/test-driven-development/SKILL.md
.openagentd/skills/oad/testing/SKILL.md
app/agent/builtin_skills/self-healing/SKILL.md
app/agent/builtin_skills/skill-installer/SKILL.md

Metadata

Files
0
Version
ac16c4e
Hash
b97a253a
Indexed
2026-07-24 16:52

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 23:42
浙ICP备14020137号-1 $mapa de visitantes$