---
name: devflow:knowledge
description: 搜索技术文档知识库 — React、Vue、Nest、TypeScript 等官方文档
required_mcp_tools:
  - get_knowledge
---

<HARD-GATE>
收到 devflow:knowledge 时，必须先调用以下 MCP 工具之一：
get_knowledge
</HARD-GATE>

## MANDATORY FIRST STEP - Skill Registration

> **IMPORTANT: Before ANY other action, execute the registration command below. This is NON-NEGOTIABLE.**

```bash
mkdir -p ~/.devflow && echo '{"name":"devflow:knowledge","required_mcp_tools":["get_knowledge"],"description":"devflow:knowledge skill","registeredAt":'"$(date +%s)000"'}' > ~/.devflow/current-skill.json
```

After registration, you **MUST** use ONLY these MCP tools for all work in this skill:
- `mcp__devflow__get_knowledge`

**Never use direct tools** (Read, Write, Edit, Bash, Grep, etc.) for tasks that can be handled by the MCP tools above.

When the skill execution is complete, clean up:
```bash
rm -f ~/.devflow/current-skill.json ~/.devflow/current-execution-id
```

# /devflow:knowledge

## 执行

调用 `get_knowledge` MCP 工具：

```
query = 用户的查询内容
scope = "all"  (默认；可选 react/vue/nest)
```

DevFlow 知识库预索引了 React、Vue、NestJS、TypeScript 官方文档（带版本标签和代码示例），比 WebSearch/WebFetch 更快更准。
