Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

kb-monitor知识库监视器

Agent Skill

kb-monitor 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

188

周安装

8

GitHub Stars

3

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:kb-monitor(知识库监视器)
来源仓库:https://github.com/farzadshbfn/knowledge-skills
仓库路径:skills/kb-monitor
安装命令:
npx skills add https://github.com/farzadshbfn/knowledge-skills --skill kb-monitor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/farzadshbfn/knowledge-skills --skill kb-monitor

简介

kb-monitor 用于查找、检索和筛选相关信息,适合快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配或来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

/kb-monitor — KB Usage Monitoring & Skill Gardening

1. Routing

Parse $0 (the first argument) to determine the mode:

  • If $0 is --status or empty (default/proactive activation): Follow Section 3 (Status Mode).
  • If $0 is --convert: Follow Section 4 (Convert Mode). $1 is the topic path.
  • If $0 is --health: Follow Section 5 (Health Mode). $1 is the skill name.
  • Otherwise: Show usage: Usage: /kb-monitor [mode] Modes: --status Show candidates + health (default) --convert <topic-path> Convert KB topic to skill --health <skill-name> Check skill health + correction history Examples: /kb-monitor /kb-monitor --convert claude/mcp/ /kb-monitor --health writing-article

1a. Target Format Awareness

When recommending or executing conversions, consider the target environment:

EnvironmentRecommendationDelegate to
Standalone project (default)Convert to KB-backed skill/kb-mint --skill
Plugin distributionConvert to skill, then package as plugin/kb-mint --skill then /kb-mint --plugin
Cowork pluginConvert to skill, then package with Cowork additions/kb-mint --skill then /kb-mint --cowork

Detect environment from context: if the project has a .claude-plugin/plugin.json, it's a plugin project. If skills reference Cowork connectors or the project targets Cowork, recommend the Cowork path.

For plugin projects, also track plugin candidates — groups of related skills that could be bundled under a shared namespace. A group becomes a plugin candidate when 3+ skills share a common category prefix.

2. References

ReferencePurpose
scoring-rulesThresholds and scoring criteria for candidates and health

2a. Data Sources

Access Log

Run analyze_access.py to query the access log without loading it into context:

uv run ${CLAUDE_SKILL_DIR}/scripts/analyze_access.py --top-topics --candidates --health --format=json

Output is compact JSON (~50-100 tokens).

Global KB Suggestions

Check for pending suggestions to global (read-only) KBs:

uv run ${CLAUDE_SKILL_DIR}/../kb-learn/scripts/suggestion.py list --status pending --json

If count > 0, include in status output. Alert when > 5 pending suggestions.

Memory

Read the memory file at the standard Claude memory location for this project. Look for monitoring_kb_observations.md. This contains:

  • Skill candidate tracking (KB topics, session counts, status)
  • Skill health tracking (corrections, status)
  • Conversion history
  • Policy gates (exclude, cooldown, condition, throttle)

2a. Agents

AgentModelPurposeUsed by
analyzerhaikuCompute access scores from raw log--status (optional, for large logs)

Use the analyzer agent when the access log is large (1000+ entries). For most cases, the analyze_access.py CLI output is sufficient.

3. Status Mode (--status)

  1. Gather data: Run analyze_access.py --top-topics --candidates --health --format=json
  2. Check suggestions: Run suggestion.py list --status pending --json to count pending global KB suggestions
  3. Read memory: Load monitoring_kb_observations.md from memory directory
  4. Present findings: Skill Candidates: For each candidate topic (high read count, no skill/ folder): Skill Health Issues: For each skill with corrections in memory: Pending Suggestions (Global KBs): If any pending suggestions exist, show count and summary per target KB. Alert if > 5 pending — user should review in the global KB repo. Recent Conversions: List from memory's Conversion History table.

- Topic name, session count, total reads - Whether memory has any gate (cooldown, exclude, condition) - Recommendation: "Convert?", "Skip", "Never for this topic" - Skill name, correction count, last issue description - Status: watch (1-2 corrections), action (3+ corrections) - Recommendation: "Fix?", "Skip", "Mark resolved"

  1. Prompt for action: Use AskUserQuestion to ask the user what to do with each candidate/issue. Present the options clearly (Convert / Fix / Skip / Never / Not now / Wait until condition). Then process:

- "Convert" → Switch to Section 4 (Convert Mode) for that topic - "Fix" → Switch to Section 5 (Health Mode) for that skill - "Skip" → No action, no memory update - "Never" → Add exclude gate to memory's Policy Gates table - "Not now" → Add cooldown gate with session count to memory - "Wait until <condition>" → Add condition gate to memory

  1. Update memory: After each interaction, update monitoring_kb_observations.md:

- Update candidate session counts and statuses - Record any new policy gates - Keep under 100 lines (archive old entries)

4. Convert Mode (--convert <topic-path>)

Delegate the actual conversion to /kb-mint:

/kb-mint --skill <topic-path>

After kb-mint completes the conversion:

  1. Update monitoring memory: Add conversion record to memory's Conversion History table
  2. Remove from candidates: Remove the topic from Skill Candidates table
  3. If plugin project: Suggest follow-up: /kb-mint --plugin <new-skill-name> (in plugin contexts, use the namespaced form instead)

5. Health Mode (--health <skill-name>)

  1. Read memory: Load correction history for this skill from monitoring_kb_observations.md
  2. Read skill files: Load the skill's SKILL.md and key reference files
  3. Present health summary:

- Correction count (30-day window) - Specific issues from memory's Skill Health table - Comparison between recorded issues and current skill content

  1. Offer remediation: Use AskUserQuestion to ask the user which action to take:

- "Fix" → Run /kb-learn fix with pre-filled description constructed from correction history - "Mark resolved" — if issues have been fixed - "Skip" — no action

  1. Update memory: Record health check, update status

6. Memory Management

Memory File Location

Standard Claude memory: ~/.claude/projects/<project-key>/memory/monitoring_kb_observations.md

Memory File Structure

---
name: kb-monitoring-observations
description: Cross-session KB access patterns, skill health scores, conversion history, and pending recommendations
type: project
---

# KB Monitoring Observations

## Skill Candidates
| KB Topic | First Seen | Sessions | Status |
|----------|-----------|----------|--------|

## Skill Health
| Skill | Corrections (30d) | Last Issue | Status |
|-------|-------------------|------------|--------|

## Conversion History
| Topic | Converted | Skill Name |
|-------|-----------|------------|

## Policy Gates
| Topic/Skill | Gate Type | Condition | Set On |
|-------------|-----------|-----------|--------|
| * (global) | throttle | max 1 conversion suggestion per session | — |

Gate Types

  • exclude: Never surface this topic/skill (permanent)
  • cooldown: Wait N more sessions before resurfacing
  • condition: Don't surface until free-text condition is met
  • throttle: Global rate limits on recommendation frequency

Housekeeping

  • Keep memory file under 100 lines
  • Archive old conversion history entries (older than 90 days)
  • Remove stale cooldowns when session count is met
  • Remove conditions when user confirms they're resolved

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.25%
按下载量换算23

Claude

31.19%
按下载量换算21

Cursor

18.99%
按下载量换算13

Gemini CLI

9.24%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills