search
Searches knowledge base by title, tags, or content across all knowledge artifacts.
- License 许可
- MIT
- 所属仓库
- goffity/dev-km
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- search
- description
- Searches knowledge base by title, tags, or content across all knowledge artifacts.
- argument-hint
- [query]
- user-invocable
- true
03 SKILL.md 正文
Search - Knowledge Search
Search across learnings, knowledge base, retrospectives, and examples.
Usage
/search [query]
/search --tag [tag-name]
/search --type [learning|knowledge|retrospective|example]
/search --reindex
Instructions
Language Setting
Check
LANGUAGEindocs/current.md. Ifth, translate output perreferences/language-guide.md. Seereferences/bash-helpers.mdfor detection snippet.
If --reindex flag is present
Rebuild the index:
bash scripts/build-index.sh "$PROJECT_ROOT"
Otherwise: Search
- Check if index exists, rebuild if not:
if [[ ! -f .knowledge-index.json ]]; then
bash scripts/build-index.sh "$PROJECT_ROOT"
fi
- Search the index based on query type:
By text query (default)
Search title, summary, and tags for matching terms:
jq --arg q "$QUERY" '
.entries[] |
select(
(.title | ascii_downcase | contains($q | ascii_downcase)) or
(.summary | ascii_downcase | contains($q | ascii_downcase)) or
(.tags[] | ascii_downcase | contains($q | ascii_downcase))
)
' .knowledge-index.json
By tag (--tag)
jq --arg tag "$TAG" '
.entries[] | select(.tags[] == $tag)
' .knowledge-index.json
By type (--type)
jq --arg type "$TYPE" '
.entries[] | select(.type == $type)
' .knowledge-index.json
- Present results in a readable format:
## Search Results for "[query]"
Found [N] results:
| # | Title | Type | Tags | Path |
|---|-------|------|------|------|
| 1 | [title] | [type] | [tags] | [path] |
### [1] [Title]
> [summary snippet]
Path: `[path]`
Tags: [tag1], [tag2]
- If no results: Suggest related tags or broader search terms.
Index Stats
Show index statistics:
jq '{total: .total, types: .types, generated: .generated}' .knowledge-index.json
Related Commands
| Command | Purpose |
|---|---|
/mem |
Capture learnings (indexed) |
/distill |
Create knowledge entries (indexed) |
/example |
Save code examples (indexed) |
/search |
Search all knowledge (you are here) |
04 同仓库更多 Skills
wait-what
Stop. That last message did not land: re-pitch it.
tdd
Test-driven development loop (red-green-refactor) with commit-based phase state and Jira traceability. Use when the user wants to build a feature or fix a bug test-first, mentions "tdd", "red-green-refactor", or "test-first". Replaces the tdg plugin — combines its commit/phase discipline with seam-based test quality rules from kb Testing Standards.
td
Creates post-task retrospectives with Before/After context and session documentation.
summary
Generates weekly or monthly session summaries from retrospectives and activity logs.
share
Shares knowledge across projects by copying to shared-knowledge directory with cross-project metadata.
session-analyzer
Analyzes git changes and creates retrospective drafts with Before/After context.