系统级 Skill:系统自动触发,非用户直接调用。为当前任务自动注入相关知识上下文。根据请求语义检索知识库,按注入策略格式化后注入 Agent 上下文窗口。
Install with the open skills CLI (global, non-interactive — available in every Claude Code session):
npx skills add LeoYeAI/openclaw-master-skills --skill "context-inject" -g -a claude-code -yOr manually — clone and copy the skill directory (SKILL.md + companion files):
git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills /tmp/openclaw-master-skills && cp -r /tmp/openclaw-master-skills/skills/kivo/skill/inject ~/.claude/skills/context-injectPart of the kivo skill collection — installing the parent includes this skill.
This skill is a directory: SKILL.md is the entry point; the files below ship with it.
---
name: context-inject
description: "系统级 Skill:系统自动触发,非用户直接调用。为当前任务自动注入相关知识上下文。根据请求语义检索知识库,按注入策略格式化后注入 Agent 上下文窗口。"
trigger-mode: system
---
# ContextInjectSkill — 上下文注入
为 Agent 当前任务自动注入相关知识上下文,提升回答质量。
## 触发词
system:context-inject
## 使用方式
```bash
# 为查询注入相关上下文
tsx scripts/inject.ts --query "当前用户请求" [--budget <tokens>]
# 指定注入格式
tsx scripts/inject.ts --query "设计决策" --format markdown --budget 3000
```
## 核心路径
`src/injection/context-injector.ts` → `src/injection/injection-policy.ts`
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Use when executing implementation plans with independent tasks in the current session