AgentSkillsCN

kb

从Modal知识库中注入上下文信息。当用户输入/kb,随后键入诸如“/kb实例管理器”或“/kb调度器”等主题时,这一工具便能迅速响应。

SKILL.md
--- frontmatter
name: kb
description: Inject context from the Modal knowledge base. Use when user types /kb followed by a topic like "/kb instance manager" or "/kb scheduler".
allowed-tools: Glob, Grep, Read

Modal Knowledge Base Context Injection

Quickly retrieve and inject context from ~/obsidian/personal/5_modal.

Instructions

  1. Take the user's topic (e.g., "instance manager", "scheduler", "week 32")

  2. Find matching files:

    • Search file names first with Glob: **/*{topic}*.md
    • If no matches, use Grep to search content for the topic
  3. Read and output the content directly - do not summarize. The goal is to inject raw context.

  4. If multiple files match, read the most relevant one (prefer system-cards over logs).

File Locations

Base path: /Users/aviralmansingka/obsidian/personal/5_modal

Topic PatternLikely Location
system/component namessystem-cards/**/*.md
week + numberlogs/week_NNN/summary.md
proto/protobufkb/modal_proto.md
deal namesdeals/*.md
conceptsconcepts.md

Examples

  • /kb instance manager -> Read system-cards/cloud-capacity/instance-manager.md
  • /kb scheduler -> Read system-cards/cloud-capacity/scheduler-system.md
  • /kb week 32 -> Read logs/week_032/summary.md
  • /kb cognition -> Read deals/cognition.md